struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apte, Dhanashree (Noblestar)" <DA...@jims.hctx.net>
Subject RE: passing object in request from jsp to action
Date Thu, 31 Mar 2005 19:20:32 GMT
the same... my bad I wrote request.getParameter()   instead of
request.getAttribute().
:) Sorry!

The solution below should work for you...
-----Original Message-----
From: temp temp [mailto:miroconnect@yahoo.com] 
Sent: Thursday, March 31, 2005 1:18 PM
To: Struts Users Mailing List
Subject: RE: passing object in request from jsp to action

I want to use request.getAttribute("string",object);
thanks & regards

--- "Apte, Dhanashree (Noblestar)"
<DApte@jims.hctx.net> wrote:
> ... meaning in the Action you want to reference it by doing
>     request.getParameter("someAttribute");
> Is that correct? If so, on the jsp, in the link to your action, add 
> that parameter as well. Instead of just
>     <a href="/someAction.do">
> use
>    <a href="/someAction.do?someAttribute=123">.
> 
> Hope this helps,
> Dhanashree.
> 
> -----Original Message-----
> From: temp temp [mailto:miroconnect@yahoo.com]
> Sent: Thursday, March 31, 2005 1:11 PM
> To: user@struts.apache.org
> Subject: passing object in request from jsp to action
> 
> I want pass an object  from a jsp to an struts action  in request 
> attribute.
> 
> I have a jsp it got  link to an action upon click the action is 
> invoked. How can I pass object to this action  using request 
> Attribute.
> thanks & regards
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!? 
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


		
__________________________________
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message