Ashish,

Your action has validate="true" but not input="...." parameter to go when
validation fails. So where does the page go?  Is this part of your display
problem?

Regards,
David

-----Original Message-----
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 5:56 PM
To: [EMAIL PROTECTED]
Subject: problem with <forward..> element in struts-config.xml


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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to