You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sundar Narasimhan <su...@ascent.com> on 2003/02/14 05:53:20 UTC

Q: forwarding to another action ..

Hi, I finally figured out that the problem w/ what I was trying to do
was that the "back" forward didn't have the ".do". Once I included the
.do things seem to work. (i.e. I can have my "compose", "save"
etc. actions forward back to the master action in certain cases).

    		<forward name="back"
		         path="/admin.do">
		</forward>

However I now have another problem. I'd like to make sure that a
certain request.attribute is removed when I go back to the master
form. So in the above action I do a 
      request.removeAttribute("someName");

But surprisingly I find that in the admin action this attribute is NOT
removed. It's almost as though the "someName" attribute is saved and
restored when I forward through "back".

Why is this happening? I would have that the life-cycle of a "request"
remains the same.. and struts wouldn't muck with it behind my back..

Any help will be much appreciated.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org