struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish Kulkarni <kulkarni_ash1...@yahoo.com>
Subject problem with <forward..> element in struts-config.xml
Date Thu, 14 Oct 2004 21:55:35 GMT
Hi
I am having problem with <forward .> element
I have 2 jsp, adminlogin.jsp is in folder pages and
index.jsp is in folder pages\admin
Here is how i have defined my action in
struts-config.xml file
<action name="loginForm" type="admin.AdminLoginAction"
validate="true" scope="request"   
path="/pages/admin/adminlogin">
<forward name="success"
path="/pages/admin/index.jsp"/>
<forward name="error" path="/pages/adminlogin.jsp"  />
</action>
Now the problem if i get error in AdminLoginAction it
tries to display adminlogin.jsp, but the relative path
gets messed up and i dont see any images, 
but if i declare it as
<forward name="error" path="/pages/adminlogin.jsp" 
redirect="true"/>
it works fine, but then i dont get error messages set
in action class.
So how do i work make it work
Ashish


		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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


Mime
View raw message