[S2] Fetching request parameters in jsp

2008-02-18 Thread Gaurav Arora
I'm in the process of learning struts and I have a very simple jsp with a very simple Action behind it (doing no processing, simply returning SUCCESS). I want to access a get parameter in the jsp and print it out. This page : http://struts.apache.org/2.x/docs/accessing-application-session-request-o

Re: [S2] Fetching request parameters in jsp

2008-02-18 Thread Nils-Helge Garli Hegvik
Request attributes are not the same as request parameters. Nils-H On Feb 18, 2008 2:16 PM, Gaurav Arora <[EMAIL PROTECTED]> wrote: > I'm in the process of learning struts and I have a very simple jsp > with a very simple Action behind it (doing no processing, simply > returning SUCCESS). I want t

Re: [S2] Fetching request parameters in jsp

2008-02-18 Thread Laurie Harper
Yup; specifically, request attributes are available through #request while request parameters are available through #parameters: Nils-Helge Garli Hegvik wrote: Request attributes are not the same as request parameters. Nils-H On Feb 18, 2008 2:16 PM, Gaurav Arora <[EMAIL PROTECTED]> wrote:

Re: [S2] Fetching request parameters in jsp

2008-02-18 Thread Laurie Harper
Oops, and here's the link: http://struts.apache.org/2.x/docs/ognl-basics.html Laurie Harper wrote: Yup; specifically, request attributes are available through #request while request parameters are available through #parameters: Nils-Helge Garli Hegvik wrote: Request attributes are not the s

Re: [S2] Fetching request parameters in jsp

2008-02-18 Thread Wes Wannemacher
On top of the OGNL error, your JSP page is also incorrect. Your taglib declaration points to 's' as the prefix, but you are using ' Oops, and here's the link: > > http://struts.apache.org/2.x/docs/ognl-basics.html > > Laurie Harper wrote: > > Yup; specifically, request attributes are available th

RE: [S2] Fetching request parameters in jsp

2008-02-18 Thread Gaurav Arora
Thanks. As I suspected I was missing something really obvious. -Original Message- From: Wes Wannemacher [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 19, 2008 4:04 AM To: Struts Users Mailing List Subject: Re: [S2] Fetching request parameters in jsp On top of the OGNL error, your