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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to