Re: How do I get a request parameter

2009-05-13 Thread Jim Collings
>> %{#parameters.someName} >> %{#parameters['someName']} >> %{parameters.someName} >> %{parameters['someName'} >> parameters.someName >> parameters['someName'] >> #parameters.someName >> #parameters['someName'] I believe it turned out to be this one above. Many thanks to all who assisted. :-) J

Re: How do I get a request parameter

2009-05-13 Thread mitch gorman
Jim Collings wrote: > Has to be in the jsp. > tried: > value="#parameters.something" > > wrap with %{ } > Didnt work. Showed up as text in the textfield we are using. > > On 5/13/09, Terry Gardner wrote: > >> One way is via the ServletActionContext, for example, >> ServletActionContex

Re: How do I get a request parameter

2009-05-13 Thread Musachy Barroso
don't forget that what is returned from #parameters['somename'] is an array of values, so try: #parameters['somename'][0] musachy On Wed, May 13, 2009 at 3:57 PM, Wes Wannemacher wrote: > Well, parameters are available in the OGNL context through the named > variable 'parameters.' So, you should

Re: How do I get a request parameter

2009-05-13 Thread Wes Wannemacher
Well, parameters are available in the OGNL context through the named variable 'parameters.' So, you should be able to do one of - %{#parameters.someName} %{#parameters['someName']} %{parameters.someName} %{parameters['someName'} parameters.someName parameters['someName'] #parameters.someName #para

Re: How do I get a request parameter

2009-05-13 Thread Jim Collings
The question is simpler than it seems. It's the syntax that's the kicker. The old script based way is like this: <%= request.getParameter("someName") %> What's the new way? On Wed, May 13, 2009 at 3:28 PM, Jim Collings wrote: > Has to be in the jsp. > tried: > value="#parameters.something" >

Re: How do I get a request parameter

2009-05-13 Thread Wes Wannemacher
wrote: > Has to be in the jsp. > tried: >  value="#parameters.something" > > Didnt work.  Showed up as text in the textfield we are using. > > On 5/13/09, Terry Gardner wrote: >> One way is via the ServletActionContext, for example, >> ServletActionContext.getRequest().getParameter(String); >> >>

Re: How do I get a request parameter

2009-05-13 Thread Jim Collings
Has to be in the jsp. tried: value="#parameters.something" Didnt work. Showed up as text in the textfield we are using. On 5/13/09, Terry Gardner wrote: > One way is via the ServletActionContext, for example, > ServletActionContext.getRequest().getParameter(String); > > On May 13, 2009, at 3:1

Re: How do I get a request parameter

2009-05-13 Thread Terry Gardner
One way is via the ServletActionContext, for example, ServletActionContext.getRequest().getParameter(String); On May 13, 2009, at 3:16 PM, Jim Collings wrote: It isn't in the value stack but I need to snag it. Can't find any examples of how to do this. Clue anyone? Jim C. smime.p7s D

Re: How do I get a request parameter

2009-05-13 Thread Wes Wannemacher
On Wed, May 13, 2009 at 3:16 PM, Jim Collings wrote: > It isn't in the value stack but I need to snag it. Can't find any examples > of how to do this. > > Clue anyone? -W -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more

How do I get a request parameter

2009-05-13 Thread Jim Collings
It isn't in the value stack but I need to snag it. Can't find any examples of how to do this. Clue anyone? Jim C.