M
Mehmet Gunacti
hello,
i'm a newbie to struts and have a question about the base tag.
the html:base tag produces this output :
<base href="http://localhost:9080/emanet/pages/layouts/mainLayout.jsp">
now, the whole jsp path is visible to everyone, although the request
uri is "http://localhost:9080/emanet/". is this ok, that everybody can
see the project folder structure ? how can this be avoided ?
the folder structure looks like this :
webContent
----images
----pages
--------layouts
--------tiles
when displaying a layout (jsp) under /pages/layouts, the images, which
are refered as <img src="/images/myImage.jpg"> don't show.
after changing to <img src="/emanet/images/myImage.jpg"> the image
gets showed in browser. thus i have to include the context root of the
web application. what if some day in future the context root has to be
modified ?
how do the struts developers solve this problem ?
every answer is appreciated.
thanks in advance
i'm a newbie to struts and have a question about the base tag.
the html:base tag produces this output :
<base href="http://localhost:9080/emanet/pages/layouts/mainLayout.jsp">
now, the whole jsp path is visible to everyone, although the request
uri is "http://localhost:9080/emanet/". is this ok, that everybody can
see the project folder structure ? how can this be avoided ?
the folder structure looks like this :
webContent
----images
----pages
--------layouts
--------tiles
when displaying a layout (jsp) under /pages/layouts, the images, which
are refered as <img src="/images/myImage.jpg"> don't show.
after changing to <img src="/emanet/images/myImage.jpg"> the image
gets showed in browser. thus i have to include the context root of the
web application. what if some day in future the context root has to be
modified ?
how do the struts developers solve this problem ?
every answer is appreciated.
thanks in advance