Hello Karen,

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! (-:<



----------
Personalise your email address at http://another.com
THINK: your slogan or email address on a gorgeous mousemat
CLICK HERE http://another-shop.com
--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to