struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Colic" <alex.co...@pop-ware.com>
Subject Re: how to forward page on logic:notPresent?
Date Wed, 09 May 2001 14:37:08 GMT
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: struts-user@jakarta.apache.org
From: "Bart Moberts" <stuitertje@hotmail.com>
Subject: Re: how to forward page on logic:notPresent?
Message-ID: <F107GCl9FopYC98Bi89000009f1@hotmail.com>

>From: "Alex Colic" <alex.colic@pop-ware.com>
>Reply-To: struts-user@jakarta.apache.org
>To: "Struts" <struts-user@jakarta.apache.org>
>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


Mime
View raw message