struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Colic" <>
Subject Re: how to forward page on logic:notPresent?
Date Wed, 09 May 2001 14:37:08 GMT

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?



Original Message

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

>From: "Alex Colic" <>
>To: "Struts" <>
>Subject: how to forward page on logic:notPresent?
>Date: Tue, 8 May 2001 16:47:12 -0400
>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
>if the object is not there. I can use the <logic:notPresent> to check to
>if the object is not in the session but how would you forward the user?
>Thanks for any help.

Hello Alex

Maybe you can do this with logic:forward tag?


View raw message