its already in the request
public class EditFuBarAction extends Action {
/* (non-Javadoc)
* @see
org.apache.struts.action.Action#execute(org.apache.struts.action.ActionMapping,
org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
*/
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception {
String user=request.getParameter("user");
return mapping.findForward("success");
}
}
unless of course you want the parameters on the vs in which case you will have
to implement
Petrellis ParametersInterceptor..
http://struts.apache.org/2.0.14/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/ParametersInterceptor.html
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business
of Sender. This transmission is of a confidential nature and Sender does not
endorse distribution to any party other than intended recipient. Sender does
not necessarily endorse content contained within this transmission.
> Date: Sat, 14 Mar 2009 06:28:50 -0700
> From: [email protected]
> To: [email protected]
> Subject: RE: tag set
>
>
> and to access from the Action
>
> mgainty wrote:
> >
> >
> > ..to set..
> > <s:set name="user" value="user" scope="request"/>
> >
> > ..to access..
> > <s:property value="#request.user"/>Martin
> > ______________________________________________
> > Disclaimer and confidentiality note
> > Everything in this e-mail and any attachments relates to the official
> > business of Sender. This transmission is of a confidential nature and
> > Sender does not endorse distribution to any party other than intended
> > recipient. Sender does not necessarily endorse content contained within
> > this transmission.
> >
> >
> >
> >
> >> Date: Fri, 13 Mar 2009 16:05:36 -0700
> >> From: [email protected]
> >> To: [email protected]
> >> Subject: Re: tag set
> >>
> >>
> >> certainly;
> >> but how do i achieve this thing?
> >>
> >> <s:set name="x" value="user">
> >> <% reqest.setAttribute("key",user)%>
> >>
> >> can i achieve this thing? in this way?
> >>
> >>
> >>
> >>
> >>
> >>
> >> Nils-Helge Garli wrote:
> >> >
> >> > Maybe you could try explaining what you're trying to achieve? Usually,
> >> > input is passed to the action through a form or request parameters.
> >> >
> >> > Nils-H
> >> >
> >> > On Fri, Mar 13, 2009 at 11:23 PM, PEGASUS84 <[email protected]>
> >> wrote:
> >> >>
> >> >> good evenig
> >> >> i would ask if i can get the value of variable x <s: set name="x"> in
> >> an
> >> >> action
> >> >> --
> >> >> View this message in context:
> >> >> http://www.nabble.com/tag-set-tp22506157p22506157.html
> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: [email protected]
> >> >> For additional commands, e-mail: [email protected]
> >> >>
> >> >>
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: [email protected]
> >> > For additional commands, e-mail: [email protected]
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/tag-set-tp22506157p22506748.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >
> > _________________________________________________________________
> > Express your personality in color! Preview and select themes for HotmailĀ®.
> > http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme
> >
>
> --
> View this message in context:
> http://www.nabble.com/tag-set-tp22506157p22512640.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
_________________________________________________________________
HotmailĀ® is up to 70% faster. Now good news travels really fast.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009