Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Issue with forwarding to another .do

Jay

2007-02-28

Replies:


Hi,
 I hope every one is fine. Iam forwarding a 'login.do' to another path
like this

<action path="/public/login" type="blah blah" >
  <forward name="success" path="/public/defaultPage.do">
</forward>

<action path="/public/defaultPage"
type="org.apache.struts.actions.ForwardAction"
   parameter="/jsp/framework/layout.jsp">
</action>


PROBLEM:  when i see the jsp file the url in address bar contain login.do
at the end, but i want defaultPage.do instead of login.do... The lesson i
get from this is that struts does not consider the chain of .do in url, it
only shows first .do iin url. Please help me to modify this property of
struts.

thanks

--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.