Karen, Yes, you can specify an action mapping for the input parameter, so this is also a solution.
HTH Malc -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 04 December 2001 11:50 To: struts users mailing list Subject: Re: mapping.getInput() and request scope beans Hello Karen, (sorry, used th wron address) I have had a similar problem using the html:selection tag which is at first used with session beans but I wanted to build request scope objects (I do not like to let hang aroung junks of session beans...). So what I have done is to do a request.setAttribute(“bean“,bean) and have a hidden field in the form to get the bean. I works quite well up to now. Hope, this helped Thomas -----Original Message----- >From : Prengaman.Karen <[EMAIL PROTECTED]> To : “'[EMAIL PROTECTED]'“ <[EMAIL PROTECTED]> Date : 04 December 2001 00:49:13 Subject : mapping.getInput() and request scope beans Hello, > >I have a jsp that displays data and has a very simple one-button form with >one hidden field. When this form is submitted, ExitAction is called. In >ExitAction's perform method, if a certain condition occurs, I want to return >to the calling page. I do this with the following code: > >return new ActionForward(mapping.getInput()); > >My problem is that my jsp references a request-scope bean, and when >returning to it, the bean is out of scope. If I put the bean in the session >the problem does not occur (i.e., the jsp can access it), but I would rather >leave the bean in the request. > >Any thoughts on how I can get around this? Do I have to specify a jsp file >in the input parameter in struts-config, or can I specify an action? > >Thanks, > >Karen > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > >:-) As sceptical as one can be! (-:< ---------- Get a free, personalised email address at http://another.com TXT ALRT! Stop wasting money now. Send FREE, personalised txt from http://another.com ************************************************************************* The information contained in this message or any of its attachments may be privileged and confidential and intended for the exclusive use of the addressee. If you are not the addressee any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited ************************************************************************* -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>