When redirect is "true" a message is sent to the browser to get the new resource. This means that the browser is aware of the path of your error.jsp. When redirect is false, the browser is not aware of the location of the JSP that is actually displaying the results. To get around the problem, the <html:base/> tag will tell the browser to resolve all URI's contained in the HTML document against a different location. I'm pretty sure (though I haven't used this) that all you need to do is include <html:base/> at the top of your error.jsp file to have everything resolve correctly.

-- Jeff

Ashish Kulkarni wrote:
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