Re: Access to ValueStack from JSPs

2009-05-11 Thread cm132005
h the JSTL Tag. > > #3 & #4 seems to indicate you have JSTL EL evaluation turned off in your > servlet container. > > I'm not sure what #5 is supposed to do. > (*Chris*) > > On Mon, May 11, 2009 at 1:32 PM, cm132005 wrote: > >> >> http://s

Access to ValueStack from JSPs

2009-05-11 Thread cm132005
http://struts.apache.org/2.x/docs/access-to-valuestack-from-jsps.html has an example on how to access the ValueStack from JSP. I am not able to get the tag/tld working in this example. 1. a[0] = 2. a[0] = 3. a[0] = ${x:vs('a[0]')} 4. Top of ValueStack: ${x:top()}

Re: S2 - s:submit method="value" has to be hard-coded?

2009-05-11 Thread cm132005
Yes and that's why I think the DispatchAction was better in Struts 1. musomesa wrote: > > There is bound to be some logic that determines what method the button > would invoke. Why not put that logic in the action method and have it call > appropriate helper methods? In other words move the

Re: Passing a value to JavaScript from a tag

2009-05-08 Thread cm132005
Thanks, Dave and Suhash. OGNL expression worked fine! newton.dave wrote: > > cm132005 wrote: >> How to pass a value from valueStack to a JavaScript function? >> >> This doesn't work: >> > onclick='"doEdit(\'\')"&

RE: S2 - s:submit method="value" has to be hard-coded?

2009-05-07 Thread cm132005
That's how I have it configured but somehow the "method" doesn't seem to take a variable value these throw exception: "/> works with hard-coded values: May be I am missing something... Thanks. mgainty wrote: > > > I would try populating the method with a splitting of the act

Passing a value to JavaScript from a tag

2009-05-07 Thread cm132005
How to pass a value from valueStack to a JavaScript function? This doesn't work: \')"' /> Any help would be appreciated. Thanks. -- View this message in context: http://www.nabble.com/Passing-a-value-to-JavaScript-from-a-tag-tp23438467p23438467.html Sent from the Struts - User mailing list a

s:iterator and form submission

2009-05-07 Thread cm132005
When the Edit is submitted, the aId passed in is actually a String of comma separated aIds of all aVOs. The requirement is such that I need to use the same form instead of having a s:form tag within the iterator. How to submit the correc

S2 - s:submit method="value" has to be hard-coded?

2009-05-06 Thread cm132005
There is a scenario where the same submit button needs to handle three different method calls in a dispatch action. To avoid coding the same button three times, I tried java.lang.NoSuchMethodException: com.abc.xyz.struts.ExampleDispatchAction.() org.apache.jasper.JasperException: /jsp/exampl

Struts 2 – changing method signature

2009-05-06 Thread cm132005
In Struts 2, is DefaultActionInvocation invokeAction responsible for invoking the action methods and what would be a good approach to change all action method signature to have a fixed number of parameters? For regular actions, I implemented a BaseAction class with an abstract method and having

Struts 2 - Dispatch Action

2009-05-06 Thread cm132005
In Struts 1 dispatch action, a request parameter can be set either as a form attribute or as a request attribute from within any action class or through URL and the correct dispatch method in the action gets invoked. Is there a way to do this in Struts 2? We are migrating our Struts 1.x applicat

Re: Struts 2 - Parameterized error messages

2009-05-05 Thread cm132005
tween apostrophe's to be a literal > value, > you have to use double apostrophe's to represent a single apostrophe in > the > output. > (*Chris*) > > On Mon, May 4, 2009 at 12:27 PM, cm132005 wrote: > >> >> Hi, >> >> We are migrating our S

Struts 2 - Parameterized error messages

2009-05-04 Thread cm132005
Hi, We are migrating our Struts 1.x application to Struts 2.1.6 and currently we are using Struts Validation framework where the parameterized error messages are picked up from the resource bundle. field.required=Field '{0}' is required. field.numeric=Field '{0}' must be a number. Expected out