If I forward to the jsp via an action, how do I make it so when the
jsp refreshes it hits the action?

On 6/7/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> On 6/7/05, Daniel Kies <[EMAIL PROTECTED]> wrote:
> > Greetings.  Here is my problem:
> > index.jsp does a redirect to my action.
> > action loads a bean with data
> > forwards to x.jsp
> >
> > x.jsp looks fine, data comes up fine.
> >
> > I do a refresh.  I get Cannot find bean in any scope.  The first time
> > i have data with no problems because the action class loads the
> > request with the bean w\data.
> >
> > The second time the bean is not in the request since i am calling the
> > jsp directly (through the refresh).
> 
> Do you redirect or forward to x.jsp? If you redirect, you lose beans
> with scope less than session.
> 
> > Question:
> > 1) What is a simple way to fix this?
> 
> Either store bean in session, or forward to jsp through action. Thus,
> you actually would be reloading action.
> 
> > 2) I thought the request kept the data in it for a refresh.  Is this wrong?
> 
> yep, this is wrong.
> 
> Michael.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to