I'm a fan of a separate success page because it makes the jsps easier to understand and maintain. Combining functions into one page causes it to end up like a perl script. I typically use my index.jsp as the destination after an action that displays the success message before listing the menu items.

David






From: "Daniel Tamborelli Alvarenga" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Simple Doubt
Date: Wed, 4 Dec 2002 04:01:35 -0300

Hi everyone,

First I wanna say that i'm new in Struts and my problem is above...

i have a "Talk to us" section at my website, so i wanna know wich is the best way to show a confirmation
to the user saying that the message was sent ok...

I thought in two possibilities:

1) I could have one separated file like talk_to_us_message_ok.jsp and this file would be mapped by a "success" forward
action...

2) I could have the same talk_to_us.jsp that look at the action parameter and change the view based on these
parameters... Example: http://......./talk_to_us.jsp?status=ok

Does anybody have a better suggestion or pattern...

Thank you

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus


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

Reply via email to