J
Joerg Gippert
Hello everyone!
I´m just trying to digest some webpages from our grafician using
Struts-tags and I´ve encountered a little problem, I´m a bit confused about.
Within a JSP I use the following tag to insert a picture: <html:img
src="images/navi/ball.gif" width="65" height="30" border="0"/> where the
directory structure is webapp/jsp/images. This works fine when I open
this page in my browser and it translates to
http://127.0.0.1:8080/MyWebapp/jsp/images/navi/ball.gif However, if the
JSP's include a form (html:form) and the Actionform class returns some
ActionErrors that need to be displayed on the JSP, the picture
disappears and the URI changed to
http://127.0.0.1:8080/MyWebApp/images/navi/ball.gif which is wrong since
the "jsp" directory is missing. Looks, like the tag looks after the
right path, when it is loaded and the JSP displays. But when the
ActionForm servlet modifies this page, it uses the path which is given
within the tag.
Does anyone know, how to avoid this problem?
Thanks for any hint!
Regards,
Joerg
I´m just trying to digest some webpages from our grafician using
Struts-tags and I´ve encountered a little problem, I´m a bit confused about.
Within a JSP I use the following tag to insert a picture: <html:img
src="images/navi/ball.gif" width="65" height="30" border="0"/> where the
directory structure is webapp/jsp/images. This works fine when I open
this page in my browser and it translates to
http://127.0.0.1:8080/MyWebapp/jsp/images/navi/ball.gif However, if the
JSP's include a form (html:form) and the Actionform class returns some
ActionErrors that need to be displayed on the JSP, the picture
disappears and the URI changed to
http://127.0.0.1:8080/MyWebApp/images/navi/ball.gif which is wrong since
the "jsp" directory is missing. Looks, like the tag looks after the
right path, when it is loaded and the JSP displays. But when the
ActionForm servlet modifies this page, it uses the path which is given
within the tag.
Does anyone know, how to avoid this problem?
Thanks for any hint!
Regards,
Joerg