I have had a problem for quite a while and I don't know how to solve it properly.
Here is a part of my problem. Once it is solved, I will ask for help for the rest
The root of my application is <my_app> and I have the following:
<my_app>
|
-------------------------------------------
| | |
web images
| | login.jsp
serv logo.gif menu.jsp
| login_page.jsp
index.jsp header.jsp
logo.html
You should enter the application using "login.jsp". The authentication is the Tomcat form-based authentication. The form page is "login_page".
In web.xml I have defined:
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Site .. Test</web-resource-name>
<url-pattern>/web/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>tomcat</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/web/login_page.jsp</form-login-page>
<form-error-page>/web/login_failed.jsp</form-error-page>
</form-login-config>
</login-config>
Now, my problem is that the "login_page.jsp" contains a logo which can be found under the images directory.
For this reason, the file "login_page" contains:
<%@ include file="logo.html" %>
where logo.html is:
<a href="http://www.lucent.com/"><img border="0"
src="../images/lucent-logo.gif
<p> </p>
<p> </p>
<p><center><B>PROVISION DE DATOS </B></center></p>
The first time, if the user enters the application with "login.jsp", the "login_page.jsp" page appears and every thing works fine.
Now, if the user tries to enter the application, let's say with "servicios/index.jsp", the login_page appears ..... but the logo cannot be found since it is at the level above it!!
I have tried absolute path but I must do something wrong since it does not work.
HELP, please!!!
Elisabeth
Para cancelar su subscripción a este grupo, envÃe un mensaje de correo electrónico a:
[email protected]
Propietario de la lista:
[email protected]
Enlaces a Yahoo! Grupos
Para visitar tu grupo en la web, accede a:
http://es.groups.yahoo.com/group/j2ee-spanish/
Para cancelar tu suscripción en este grupo, envÃa
un mensaje en blanco a:
[email protected]
El uso que hagas de Yahoo! Grupos está sujeto a
las Condiciones del servicio de Yahoo!:
http://es.docs.yahoo.com/info/utos.html