Hi,

I thought about <login:forward> but from what I know I would have to know
the name of the next page and place that in this tag. I don't want to do
that because if I change the order of my pages in the struts.xml file then I
have to remember to change this tag. I think what I am looking for is a way
to either, immediately submit this page if an object in the session does not
exist and this let the action servlet figure out what the next page should
be or, check in the previous page if this object exists and if does not then
bypass this page.

Any thoughts, suggestions?

Regards

Alex

Original Message

Date: Wed, 09 May 2001 07:50:08
To: [EMAIL PROTECTED]
From: "Bart Moberts" <[EMAIL PROTECTED]>
Subject: Re: how to forward page on logic:notPresent?
Message-ID: <[EMAIL PROTECTED]>

>From: "Alex Colic" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "Struts" <[EMAIL PROTECTED]>
>Subject: how to forward page on logic:notPresent?
>Date: Tue, 8 May 2001 16:47:12 -0400
>
>Hi,
>
>suppose you have an object in the session. If the user access a page that
>uses this object you want data to be displayed but if this object is not in
>the session you want the page submitted so that the user will end up on the
>next page. A sort of a wizard app.. page 1 to 2 to 3 where you bypass page
>2
>if the object is not there. I can use the <logic:notPresent> to check to
>see
>if the object is not in the session but how would you forward the user?
>
>Thanks for any help.
>
>Alex
>

Hello Alex

Maybe you can do this with logic:forward tag?

Grtz

Reply via email to