Hello all, I'm having problems with j_security_check because when I try to log in my login.jsp it doesn't work and I don't know why. Here is my web.xml : < ?xml version="1.0" encoding="UTF-8"? > <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>application</param-name> <param-value>TourismResources</param-value> </init-param> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>3</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>3</param-value> </init-param> <load-on-startup>0</load-on-startup> </servlet> <servlet> <servlet-name>dbInit</servlet-name> <servlet-class>com.wrox.tourism.db.util.DBInitServlet</servlet-class> <init-param> <param-name>driverClass</param-name> <param-value>org.gjt.mm.mysql.Driver</param-value> </init-param> <init-param> <param-name>jdbcURL</param-name> <param-value>jdbc:mysql://localhost:3306/tourism_db</param-value> </init-param> <init-param> <param-name>minCount</param-name> <param-value>1</param-value> </init-param> <init-param> <param-name>maxCount</param-name> <param-value>10</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <jsp-config> <taglib> <taglib-uri>/bean</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib> <taglib> <taglib-uri>/form</taglib-uri> <taglib-location>/WEB-INF/struts-form.tld</taglib-location> </taglib> <taglib> <taglib-uri>/logic</taglib-uri> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> </taglib> <taglib> <taglib-uri>/template</taglib-uri> <taglib-location>/WEB-INF/struts-template.tld</taglib-location> </taglib> <taglib> <taglib-uri>/html</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib> </jsp-config> <security-constraint> <web-resource-collection> <web-resource-name>Edit attraction</web-resource-name> <url-pattern>/editAttraction.do</url-pattern> </web-resource-collection> <web-resource-collection> <web-resource-name>Update attraction</web-resource-name> <url-pattern>/updateAttraction.do</url-pattern> </web-resource-collection> <web-resource-collection> <web-resource-name>Deregister attraction</web-resource-name> <url-pattern>/deregisterAttraction.do</url-pattern> </web-resource-collection> <web-resource-collection> <web-resource-name>List events</web-resource-name> <url-pattern>/listEvents.do</url-pattern> </web-resource-collection> <web-resource-collection> <web-resource-name>Add event</web-resource-name> <url-pattern>/editEvent.jsp</url-pattern> </web-resource-collection> <web-resource-collection> <web-resource-name>Edit event</web-resource-name> <url-pattern>/editEvent.do</url-pattern> </web-resource-collection> <web-resource-collection> <web-resource-name>Update event</web-resource-name> <url-pattern>/updateEvent.do</url-pattern> </web-resource-collection> <web-resource-collection> <web-resource-name>Delete event</web-resource-name> <url-pattern>/deleteEvent.do</url-pattern> </web-resource-collection> <auth-constraint> <role-name>attraction</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>FORM</auth-method> <form-login-config> <form-login-page>/login.jsp</form-login-page> <form-error-page>/login.jsp</form-error-page> </form-login-config> </login-config> </web-app> My login.jsp:<br/> <br/> <br/> <table cellpadding="2"> <form action="j_security_check" focus="userId" method="post"> <tr> <td align="right"> <b>User ID:</b> </td> <td> <input type="text" name="j_username" size="15"/> </td> </tr> <tr> <td align="right"> <b>Password:</b> </td> <td> <input type="password" name="j_password" size="15"/> </td> </tr> <tr> <td align="right"> </td> <td> <input type="submit" value="logon"/> </td> </tr> </html:form> </table> Why not work?, Any idea?. Thanks so much
______________________________________________ Enviado desde Correo Yahoo! La bandeja de entrada más inteligente. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]