Link to home
Start Free TrialLog in
Avatar of suprapto45
suprapto45Flag for Singapore

asked on

ActionForm

Hi,

I have one localhost/test/main.jsp that called LoginForm and LoginAction subsequently. Then, in my LoginForm, if the errors are obtained, the application will be sent back to main.jsp automatically with the <html:errors /> displayed, right? However, my ActionLogin URL is similar like localhost/test/login/login.do. So when I get back, all the images URL are wrong. My question is how to solve that problem?

The images URL would be like localhost/test/login/pic12.gif instead of localhost/test/pic12.gif

Regards
Dave
Avatar of aozarov
aozarov

Have the full path for your images in the jsp page.
e.g. (<img src="/test/login/pic12.gif" />). [assuming test is your context name]
ASKER CERTIFIED SOLUTION
Avatar of aozarov
aozarov

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of bloodredsun
bloodredsun
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of suprapto45

ASKER

Hi thanks,

Sorry for the delay. I have no time to test. I hope I can test it late today. sorrry :)

Regards
Dave
Cheers Dave