Thanks all for your reply!
Michael : What are "navigation buttons"? an applet, a dhtml framework? Have you
a link? thanks
Shawn : Sorry but I always get "backUrl is NULL" and not "backUrl is NOT
NULL"...so as I think like you on the process, I wonder why I get "backUrl is
NULL"...Thanks
Marcelo : the refere header will give me back the last visited page i think or
I want to retrieve the struts action that redirect to this page...
If you can help again...it would be great
Thanks,
Gaet'
----- Original Message -----
From: Michael Jouravlev
To: Struts Users Mailing List
Sent: Wednesday, January 11, 2006 6:27 PM
Subject: Re: Session Attribute strange behaviour
On 1/11/06, Gaet <[EMAIL PROTECTED]> wrote:
> Hi the list,
>
> I know this is not a struts question (unless there is a simpler solution
> with struts :o))
>
> My goal : Add a back button on each of my pages with the url from where the
> user comes (or another url if it comes from a page at a deeper level)
Have you heard about browser navigation buttons?
> So i code the following simple code :
>
> Page A.jsp
> ----------
>
> <% session.setAttribute("backUrl","/initA.do"); %>
> <html:link href="/B.do">Go to B</html:link>
>
>
> Page B.jsp
> ----------
>
> <%
> String backUrl = (String)session.getAttribute("backUrl");
> if (backUrl != null){
> System.err.println("backUrl is NOT NULL");
> } else {
> System.err.println("backUrl is NULL");
> }
> %>
>
> And it always prints "backUrl is NOT NULL"...
> Does somebody can explain me?
Isn't it because you just set it on page A ?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]