quire 'force evaluation'.
The only resource that mentioned it was Dave Newton's letter
http://old.nabble.com/Re%3A-S2-tags---dynamic-attributes-p19292043.html
I really think that this notation must be documented
specifically on this page:
http://struts.apache.org/2.1.8.1/
Oleg Mikheev wrote:
> Do I really need to have saxon9-dom.jar with it?
That strange error message was caused by some other jars
in Tomcat share lib folder, probably castor.
Strange....
Oleg
-
To unsubscribe, e-mail: u
created an issue
https://issues.apache.org/jira/browse/XW-379
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
Hi,
I don't like Spring and that's why I'm using Struts2.
I thought that Struts2 Spring integration is optional,
at least that's the official version.
Unfortunately mvn dependency:tree tells me that struts2-core
depends on Spring:
[INFO] +- org.apache.struts:struts2-core:jar:2.1.8.1:compile
[IN
.. 36 more
Oleg
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
documentation to include a note about the workaround?
Thanks,
Oleg
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
would really like to keep my annotation
validation. Any ideas?
Thanks,
Oleg
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
It eliminated the error, however, now field specific message defined
for the Model does not get displayed. I am still testing and will try
the same implementing ModelDriven.
Thanks, Oleg
On Mon, Jan 26, 2009 at 6:20 PM, Gustave Pheiffers
wrote:
> Thanks Peter.
>
> That fixed th
gestions guys? Since Gus and I are the only ones seem to
have this problem, I am wondering if anyone upgraded and was able to
use VisitorFieldValidator without passing a message and without
getting an error?
Thanks, Oleg
On Thu, Jan 22, 2009 at 11:56 AM, Gustave Pheiffers
wrote:
> Hi,
>
&
I am trying to upgrade to 2.1.6 and getting an error on Validation
that I am having problems isolating. I followed migration guide at
http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html
and didn't actually have to change that much since application is in
very
Hi, I am using Struts 2.0.12 and having a problem getting selected=""
to work on s:select with my data converter. It seems that converter is
called when I submit from the select box, but when its populated its
never called.
1. My select is:
2. Converter is defined in xwork-conversion file
3. p
Hi,
I am using Struts 2.0.14 without Ajax theme since its end-of-life now
with 2.1 in the works. I still want to use Dojo but as a standalone.
What work arounds are there to add dojoType to a
Thanks,
Oleg
-
To unsubscribe, e
;
State {
int id;
String name;
}
and
Any way to have struts 2 make the conversion so I don't to manually
look up the State object via submitted key?
Thanks a lot, Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
e me to
create a separate freemarker template per each web form.
Thanks,
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi guys!
What are the plans for v2.1 release? Is there
any roadmap available?
Like this one but with dates:
http://cwiki.apache.org/S2WIKI/21-to-25-roadmap.html
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
ndario wrote:
Is there any way to validate the string before conversion to BigDecimal?
The right (and default) way of handling conversion errors is to
use the Conversion Error Interceptor:
http://struts.apache.org/2.x/docs/conversion-error-interceptor.html
There is no converter for BigDecimal,
't display action errors it might be a good idea
to implement that, I guess it's not hard to do - modify s:actionerror
tag and add some code to addError JavaScript.
I can't do that b/c of my defense in October :)
Thanks
Oleg
--
Hello
To put it straight:
do I understand it right that S2 AJAX validation doesn't
take care of action errors, only the field ones?
So that action errors are displayed only on submit.
Thanks
-
To unsubscribe, e-mail: [EMAIL PR
Dave Newton wrote:
I'm pretty sure it's Struts 1, since there are both and tags.
The answer, however, is probably the easiest.
My bad :)
I always keep forgetting that two Struts' share one mail list
Oleg
-
URL to a variable and then use it
in your html:link (with an OGNL expression :)
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Chris Pratt wrote:
I proposed a method of enabling JSTL EL safely a while ago, but I
haven't heard anything (or had any time to actually do anything about
it myself).
But if they had to get rid of one of two ELs why did they decide to
keep OGNL?
Isn't JSTL more popular and more stand
Hi
Are there any plans to re-enable JSTL EL in custom tags which
was disabled starting from Struts 2.0.10?
And, where can I find the changes between Struts 2 and 2.1?
Any 2.1 documentation available yet?
Thanks,
Oleg
-
To
2 in Action
book it seemed that he wasn't aware of JSON plugin at
all - he devoted several pages to implementation of a
custom JSON handlers instead of just dropping JSON
plugin into Struts 2 stack..
Oleg
-
To unsubscri
Dave Newton wrote:
Change the TLD?
The combination of the two levels of EL is a security risk in some
applications. If you're not worried about it or not affected by it then
it's an easy, if annoying, workaround.
Thanks
Is repackaging struts jar the only way of doing that?
--
Hoying, Ken wrote:
Editorial: I cannot help but wonder if these consecutive painful
upgrades are going to have an adverse affect on Struts2 adoption, future
user base and perception. I have been a big proponent of Struts2 up
till now, but must admit that I am finding myself questioning if there
I was trying to upgrade from 2.0.9 to the latest Struts 2 and
encountered this issue:
http://issues.apache.org/struts/browse/WW-2107
If I have a lot of code like this:
fieldValue="${requestScope[tmpVar]}" value="${not empty renewaledId ?
false : requestScope[tmpVar]}"
sol myr wrote:
What's the Strut2 recommendation for Table Pagination (AKA Paging)?
We're showing a large table (say, 500 records) and need to break it down to
25 pages (20 records per page).
http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html
-
quinquin2209 wrote:
I am using Struts 2 and I wanna develop a datagrid as that provided in
Struts Layout. I have couple of questions:
I don't know what Struts layout is, but there is a nice
grid in dojo 1.0 (in dojox).
It's not included in Struts2 (I think), but it will be someday.
--
Zarar Siddiqi wrote:
I really recommend using something like Prototype to do your Ajax
stuff. There's no need to reinvent the wheel and introduce countless
Struts2 incorporates DoJo, so there's not much sense
adding another Ajax framework
-
Henry Park wrote:
I could not get the packaged struts2 ajax implementation to work, so I am
trying to go at it with plain javascript.
I have Struts2 ajax working fine.
What was the problem?
-
To unsubscribe, e-mail: [EMAIL
Brian Trzupek wrote:
value="[EMAIL PROTECTED]@getRequest().isUserInRole('Administrator')}"/>
Both of the above constructs should execute in no time.
I really think that there is something else that slows downs
your page load time.
You can always measure the time that your JSP page took
Dave Newton wrote:
I have just renamed it to struts2-core.jar and
replaced in my application that was working with
2.0.9 version.
You can't just randomly replace libraries.
You can replace 2.0.8 with 2.0.9, but you can't
replace 2.0.9 with 2.1.0
This is what they call a rule of thumb 8-)
ht
Phil404 wrote:
I don't think this is the problem since if I view source the generate code
says:
<--img
src='/surveytortoise-main/piechart.action?visual=10&auditory=15&kinesthetic=20'
/>
So, the code seems to be correct. Why are these parameters not being set by
Struts2? Please help!
Does an
Phil404 wrote:
I presume you mean org.apache.struts2.servlet.ParameterAware. If I implement
setParameters(), it is not called before the execute() method. I'm still in
the dark. I feel like I'm missing something really simple.
Try this:
http://www.nabble.com/-S2--Using-%3Cs:url%3E-t3884129.h
Session A Mwamufiya wrote:
Any pointers as to which template file I should be modifying?
Get Firebug and see what exactly makes it being italic.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EM
Session A Mwamufiya wrote:
I ran a simple jsp page with the tag to add an image, and it ran fine.
However, if I do the same in my struts 2 project, I don't get anything showingup. My
image file is within the same folder as the jsp file and is referenced the same way
in both cases.
Any ideas
Martin Gainty wrote:
Im sorry.. what is the question?
I think he is asking whether he needs to use Spring
fw to connect to DB several times.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Marc Eckart wrote:
Any ideas? Or any other suggestions?
http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
N N wrote:
And a JSP (fragment):
...
...
It's a miracle.
Empty JSPs don't usually result in any request parameters.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
using a Firefox and Firebug w/o which getting the
real HTML output is a nightmare.
All you need to do is to substitute tag with
HTML tag that is generated,
and remove all tables/other layout and add yours.
Then make sure JS function I mentioned work fine with your
layout - me
emes seemed too complicated to me, so I just looked at the HTML
output of ajax theme tags and copied them with my changes to JSP.
Do you edit freemarker files to extend a theme?
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
Anna Simbirtsev wrote:
Hello
I have 2 screens that use the same form. The form class has a validate
function. To distinguish which screen(jsp file) is using the form I do the
following in jsp files:
<% session.setAttribute("page", "add") %>
<% session.setAttribute("page", "add_2") %>
Then in th
that I've mentioned.
I don't think there is any documentation about that,
just my debugging experience.
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
t function
function addError(e, errorText) {...}
and it will substitute the one called by validation fw.
Same about
function clearErrorLabels(form) {...}
and
function clearErrorMessages(form) {...}
Concerning WebSphere - this sucks :)
Is it a known issue with
the steps to do
this ? . I need to know :
Alex,
Please keep in mind that AJAX Validation doesn't effect
the Performance.
Performance should be considered with AJAX as a whole,
and its validation part doesn't take much resources.
Oleg
--
Hi!
I wrote an article on AJAX tables with Struts 2:
http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html
Should a module be created based on that concept?
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
ion context:
<% request.setAttribute("value_", duf1.getValue()); %>
In JSTL syntax the same would look like:
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
are calling it a JSP bean, which is not a JavaBean.
Although this is just my guess.
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
object. Hope somebody finds
it useful.
Did you take a look at Struts 2 JSON Plugin?
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
outputted by
DataFormat.getDateInstance(DataFormat.SHORT).format(yourDate)
What value do you enter?
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Oleg Mikheev wrote:
Anyone fought a problem with guice plugin not working
with custom converters?
I'm working it around by using per field converters
instead of global ones, but it's no good.
Oleg
-
To unsubscri
ogged?
Syntax errors should be caught on stage of editing your JSP by
your favorite editor.
Idea validates tag syntax, and I'm sure other IDEs have this
functionality too.
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
.
You don't have to do anything to do that.
Default conversion for date is SHORT format, to override - write your
own converter.
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi!
Anyone fought a problem with guice plugin not working
with custom converters?
Thanks,
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
That worked for me:
<% String str="form.action='action.do?command=notify&rowId="; %>
onclick="<%= str%>'" />
And in Action:
String rowId = request.getParameter("rowId");
Thank you all,
Oleg.
On 8/13/07, Frank W. Zammetti <[EMA
vascript will get screwed up - will complain.
And I will have to make all inside a scriplet, something like:
onClick="<% form.rowId.value=<*c:out* *value=*'${list.rowId}/>;
form.action='action.do?command=notify' %>"
Is that better ?
On 8/13/07, Frank W. Zammet
x27;t want to coexist with any Javascript.
I would not like to have multiple forms on one JSP page.
So which of your suggestions would you recommend in my case ?
And how do I get a value of rowId in Action class (notify action),
via request.getSession().getAttribute("rowId") ?
Thank you
Value] in Action class ?
TIA,
Oleg.
On 8/11/07, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>
> What is rowId? That's not a standard attribute of the tag,
> hence the error makes sense I think, assuming it's being interpreted
> equivalent to this.rowId... also,
Dave,
What am I doing wrong in that Javascript ?
Honestly, I don't see it.
Please help !
Thank you,
Oleg.
On 8/10/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Oleg Konovalov <[EMAIL PROTECTED]> wrote:
> > > As of now I am getting Javascript error
completed]
Now how do I pass it , is that the right way of doing it with calling
request.getSession().getAttribute(rowId) in the Action class ?
As of now I am getting Javascript error "Object doesn't support this
property or method", complaining about *rowId=value;*
Using Struts 1.3
Please help !
TIA,
Oleg.
How can I do that from the Scriplet ?
TIA,
Oleg.
On 8/2/07, Aram Mkhitaryan <[EMAIL PROTECTED]> wrote:
>
> Try this
>
> ${actionFormName.propertyName}
>
> Best,
> Aram
>
> Aram Mkhitaryan
>
> 52, 25 Lvovyan, Yerevan 375
and if it's not included
there yet - sometimes S2 code changes faster than its documentation).
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
, but I'm not sure how to get it or set the tree to it,
or if it's even possible.
You don't need to be an expert to see that s:tree doesn't have support
for auto expanding trees. You will have to do it programaticaly:
http://dojotoolkit.org/pipermail/dojo-interest/20
Hi,
I would like to access a Struts [1.3] Form property from the JSP page
via scriplet.
Is there a simple way of doing that ?
TIA,
Oleg.
rrecoba wrote:
i have an ajax submit button that replaces the div specified by the targets
attribute with the result from an action, and the result returned by the
action has some javascript to be executed that uses the
document.getElementById().
I´ve read that this is a known issue (WW-1951)
rrecoba wrote:
i have an ajax submit button that replaces the div specified by the targets
attribute with the result from an action, and the result returned by the
action has some javascript to be executed that uses the
document.getElementById().
I´ve read that this is a known issue (WW-1951)
alidity check is a task of DTD attached.
Please put DTD (or Schema) to the XMLs and it will cure
your issues.
(In 2.0.9 DTDs became required for validator XMLs I think)
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
loaded.
Try putting smth like
_container_.addOnLoad(function() {alert('hi');});
inside the result.
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
sol myr wrote:
1. Have you used struts2 in production, and did you feel it was mature and
stable?
We used it.
It's AJAX theme is not very mature, the rest is.
If you know how to use DOJO manually - you're pretty s
s that the scripts in the reoladed content is not being
executed, any idea?
Alta persona
Doesn't s:a have a parameter telling to execute scripts?
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
.4/docs/tutorial/doc/index.html
and read Chapter 32, web-tier in particular.
Other security mechanisms are available too, but that's another story.
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
eptor/RolesInterceptor.html
the beauty of it is that unlike standard J2EE security constraint
is can reference roles not described in web.xml
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-conditional and doesn't depend on logic of 1 or 2
(validation for instance).
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
How can I access an ActionForm from my JSP in Struts 1.2-1.3 ?
Thank you,
Oleg.
JBL wrote:
We have a link to a Struts 2 action that includes a URL parameter
(.../something_method.action?name=NAME), and the URL parameter is getting
lost -- it doesn't show up in the action, the request map (when we implement
RequestAware), the parameter map (when we implement ParameterAware),
setecastronomy wrote:
Hello, I'm moving the first steps with S2.
I'm going to build a form with many input components. Some of them should be
disabled or hidden based upon the selection of a radio button. In a pure jsp
scenario where html tags are used I can link some javascript function which
us
JSP:
<%--html:select property='selectedFromIds' multiple="true"-->
Hi,
I wrote a simple screen with 2 html:selects [fromList, toList] and 2 buttons
Add & Remove
using html:optionscollection tag and now need to rework the code using
"html:options collection="
to something like [that is a piece of my existing application which I have
to follow]:
wher
t.println("Welcome " + user.getUsername() + "!");
%>
Just try this:
${user.username}
Depending on JSP version you're running it might work.
(I know it's not struts tags but no need to complicate things)
Oleg
-
ce-struts2-plugin-1.0.1.jar) to WEB-INF/lib,
and put this line to struts.xml:
That's all I had to do to be able to use @Inject in actions.
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Any other useful Struts tag for that [and to do Collection
synchronization with DB]?
Code snippets ?
Sorry for the newbie question.
Thank you in advance,
Oleg.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
cially to do DB synchronization]?
Code snippets ?
Sorry for the newbie question.
Thank you in advance,
Oleg.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The resulting query string for the div href action
indeed includes 'dojo.transport=xmlhttp' parameter.
Does dojo toolkit add it? If so is it possible to ignore it in Parameters
interceptor?
Thanks,
Oleg
_
FREE pop-up blocki
UrlHelper uses & to add GET parameters. This results in wrong hrefs in
anchor tags like /.../...?id=1&index=1. Besides,
UrlHelper.parseQueryString uses plain & to separate parameters and merges
parameters incorrectly for url tag when includeParams is get or all.
See also http://forums.opens
Michael, I tried that, however it seems to work only if actions are
using same ActionForm if lets say each action uses its own form, the
second action gets the form with its original values (from session)
without any changes taken from the JSP page. Any ideas?
Thanks
Oleg
On 11/16/05, Oleg
it is
Oleg
On 11/15/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> If I remember correctly, when you either forward or redirect from one
> action to another, Struts performs the reset/populate/validate
> sequence again. If you redirect, the request is empty, so nothing to
>
I read through the documentation and it seems like a nice add-on,
however, I did not see any examples on submitting two action forms
with one jsp page at the same time. Can you show me a code sample?
Thanks
Oleg
On 11/15/05, Oleg <[EMAIL PROTECTED]> wrote:
> Cool. I will check it out.
Cool. I will check it out. Any other ideas on how to do it without
extra libraries, with just struts?
Thanks,
Oleg
On 11/15/05, Danny Lee <[EMAIL PROTECTED]> wrote:
> Yeap I had similar problem too,
> perfectly solved with Struts Dialogs Framework.
>
> Just check this s
orm C) - >
Action A(ActionForm A)
What do you think guys? Whats the best way to go about it.
Thanks,
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
cast exception.
What can I do?
thanks,
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Ok, this is embarrassing, of course HashMap doesnt guarantee the
order, TreeMap did the trick, sorry :)
Oleg
On 10/14/05, Oleg <[EMAIL PROTECTED]> wrote:
> I have been hours at this, going crazy. I am setting up Dynamicly sized form.
>
> st
size 16 with array[0]
record placed at map[6] and array[1] record placed at [1].
So when I display records with c:forEach loop:
It all our of order! Any ideas guys as to how to keep it ordered?
Thanks
Oleg
-
To unsubsc
I found a bunch of posts and articles on dynamic forms but I havent
found any tips on how one can dynamically define wheter the field will
be html-el:text, html-el:img, ..
Bascially something like:
Of course a dirty way would be printing out plain html like
work. Any ideas why it does not work and what I can do to fix it?
Thank you
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thank you everyone for your help. This page
http://wiki.apache.org/struts/StrutsCatalogLazyList explained the
process very clearly, perfect! Thank you, it works now.
Oleg
On Sun, 16 Jan 2005 10:03:32 -0800, Richard Yee <[EMAIL PROTECTED]> wrote:
> Why don't you send the code
u should initialize it while declaring or in the
> reset()
>
>
> On Sat, 15 Jan 2005 17:06:33 -0800, Oleg <[EMAIL PROTECTED]> wrote:
> > I finally got it to display, no problem, however there is an error
> > w
String type;
... with all getters and setters ..
...
JSP (displays no problem!!):
Hit the wall here, big time.
Thanks,
Oleg
ou have a select, you don't want an ArrayList from request scope.
> You want the value selected to be the value of the option name.
> Right?
>
> Also, you can do indexed properties with JSTL.
>
> Jack
>
>
> On Sat, 15 Jan 2005 14:31:27 -0800, Oleg <[EMAIL PROTECTED]&
ArrayList
from request scope. Any ideas how would I get the ArrayList of fields
after from is posted and populate ActionForm manually?
Oleg
On Sat, 15 Jan 2005 02:37:28 -0600, Kishore Senji <[EMAIL PROTECTED]> wrote:
> Sorry forgot to tack on the actual property
>
/setter for a hole List but getters and setters for the
label,type, are within the Bean rather than ActonForm.
Still stuck guys, what else can I try?
Thanks,
Oleg
On Sat, 15 Jan 2005 04:26:21 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote:
> I don't know what Kishore is talking abou
1 - 100 of 105 matches
Mail list logo