|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Jul 2001
Messaggi: 9947
|
[Tomcat] Posso migliorare ancora il mio web.xml ?!
Codice HTML:
<?xml version="1.0" encoding="ISO-8859-1"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <!-- Se uso JSP 2.0 and Tomcat 5.0 il file web.xml deve iniziare come sopra --> <!-- Le definizioni delle mie Servlet in "public_html" --> <servlet> <servlet-name>GreetingServlet</servlet-name> <servlet-class>GreetingServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>GreetingServlet</servlet-name> <url-pattern>/GreetingServlet</url-pattern> </servlet-mapping> <servlet> <servlet-name>GreetingServletPost</servlet-name> <servlet-class>GreetingServletPost</servlet-class> </servlet> <servlet-mapping> <servlet-name>GreetingServletPost</servlet-name> <url-pattern>/GreetingServletPost</url-pattern> </servlet-mapping> <servlet> <servlet-name>QueryJdbc</servlet-name> <servlet-class>QueryJdbc</servlet-class> </servlet> <servlet-mapping> <servlet-name>QueryJdbc</servlet-name> <url-pattern>/QueryJdbc</url-pattern> </servlet-mapping> <!-- Le definizioni delle TAG Librerie: DBTAGS, JSTL, Custom --> <taglib> <taglib-uri>http://jakarta.apache.org/taglibs/taglibs-dbtags</taglib-uri> <taglib-location>/WEB-INF/taglibs-dbtags.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri> <taglib-location>/WEB-INF/c.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jsp/jstl/sql</taglib-uri> <taglib-location>/WEB-INF/sql.tld</taglib-location> </taglib> <!-- Codice per la "FORM autenticazione" con Tomcat --> <!-- File inerente: C:\Programmi\Apache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml --> <!-- In cui ho incluso: <user username="UNO_USER" password="CON_LA_SUA_PWD" roles="0"/> --> <!-- <security-constraint> <web-resource-collection> <web-resource-name>Entire Application</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>0</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>FORM</auth-method> <realm-name>megatron</realm-name> <form-login-config> <form-login-page>/login.jsp</form-login-page> <form-error-page>/error.jsp</form-error-page> </form-login-config> </login-config> <security-role> <role-name>0</role-name> </security-role> --> </web-app> Io realm lo ho preso come un gruppo di persone ... ![]() L'atro lasciamo perdere va ...
__________________
Aiuta la ricerca col tuo PC: >>Calcolo distribuito BOINC.Italy: unisciti anche tu<< Più largo è il sorriso, più affilato è il coltello. Ultima modifica di Matrixbob : 28-08-2005 alle 10:31. |
|
|
|
|
|
#2 | |
|
Senior Member
Iscritto dal: Dec 2002
Messaggi: 418
|
Quote:
http://jakarta.apache.org/tomcat/tom...alm-howto.html |
|
|
|
|
|
|
#3 | |
|
Senior Member
Iscritto dal: Jul 2001
Messaggi: 9947
|
Quote:
__________________
Aiuta la ricerca col tuo PC: >>Calcolo distribuito BOINC.Italy: unisciti anche tu<< Più largo è il sorriso, più affilato è il coltello. |
|
|
|
|
|
|
#4 | |
|
Senior Member
Iscritto dal: Dec 2002
Messaggi: 418
|
Quote:
Guarda cosa dice la documentazione Jakarta |
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 16:47.




















