Re: How to access request & session objects in jsp using struts2 tags

2007-08-31 Thread afp
instead of #request[''] which was what I was trying to do earlier! Arup afp wrote: > > Hi, > >I am trying to identify whether a button has been clicked or not in my > jsp. > The way I do this or is trying to do this is to access the request object > and then check

Re: How to access request & session objects in jsp using struts2 tag

2007-08-30 Thread afp
ename} or > ${sessionScope.attributename} and if you need to get at the actual > accessors you can use ${pageContext.request.contextPath} > (*Chris*) > > On 8/30/07, Dave Newton <[EMAIL PROTECTED]> wrote: >> --- afp <[EMAIL PROTECTED]> wrote: >> > [...] but really tat doesn&

Re: How to access request & session objects in jsp using struts2 tags

2007-08-30 Thread afp
y I >> was thinking was to determine whether the button was clicked in the jsp >> and based on tat call a javascript function which wud set all sections to >> expanded mode. This was why I am trying to access the request in the jsp. >> Hope this made sense! Arup newton.dav

Re: How to access request & session objects in jsp using struts2 tags

2007-08-30 Thread afp
have tto implement > ServletRequestAware. Similarly for Sessions, if you just need the > attributes, implement SessionAware, if you need full access implement > ServletRequestAware and call request.getSession(). > (*Chris*) > > On 8/30/07, afp <[EMAIL PROTECTED]> wrote:

Re: How to access request & session objects in jsp using struts2 tags

2007-08-30 Thread afp
above interfaces are implemented by the action class? The requirement is tat I need to access it in the jsp and not in the action class method. newton.dave wrote: > >> On 8/30/07, afp wrote: >>> I am trying to identify whether a button has >>> been clicked or not in my **jsp

How to access request & session objects in jsp using struts2 tags

2007-08-30 Thread afp
Hi, I am trying to identify whether a button has been clicked or not in my jsp. The way I do this or is trying to do this is to access the request object and then check in that for the button name. The code is as shown below The button which was clicked is coded as shown below The piece of

Re: Adding additional parameters to struts 2 tags and accessing them in the ftl files

2007-08-29 Thread afp
Guys any ideas on how to do the below?? afp wrote: > > Reposting as last post was not very clear > > Hi, > >I am trying to add some custom parameters/attributes to the struts2 > tags like etc... > > Some tihing like the below wud have been perfect >

Adding additional parameters to struts 2 tags and accessing them in the ftl files

2007-08-29 Thread afp
Reposting as last post was not very clear Hi, I am trying to add some custom parameters/attributes to the struts2 tags like etc... Some tihing like the below wud have been perfect and I shud be able to access the parameter abc from within the ftl file like this <#if parameters.abc?exist