|
Hi,
Create a mapping for your servlet and try accessing
in this way.
Can you try once accessing your form as
project/faces/test.jsf.
I'm attaching my web.xml havea reference to it and
the problem can be solved.
<?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"> <!--Configuring facesConfig.xml --> <context-param> <param-name>javax.faces.CONFIG_FILES</param-name> <param-value>/WEB-INF/faces-config.xml</param-value> </context-param> <!-- State Saving Method for Client and Server --> <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>client</param-value> </context-param> <!-- This is the Tag which allows _javascript_ into your JSF Application .Default is true --> <context-param> <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name> <param-value>true</param-value> </context-param> <!-- This is the tag for AutoScroll of your JSF page default is true --> <context-param> <param-name>org.apache.myfaces.AUTO_SCROLL</param-name> <param-value>true</param-value> </context-param> <!-- Tag for Checking your HTML along with your rendererd JSF Components as HTML --> <context-param> <param-name>org.apache.myfaces.PRETTY_HTML</param-name> <param-value>true</param-value> </context-param> <!-- Tag for the Faces Context Listener --> <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> </listener> <!-- Initialization of the Faces Servlet --> <servlet> <servlet-name>FacesServlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>0</load-on-startup> </servlet> <!-- Faces Servlet PATH mapping with the referred URL Pattern --> <servlet-mapping> <servlet-name>FacesServlet</servlet-name> <url-pattern>/faces/*</url-pattern> </servlet-mapping> <!-- Faces Servlet EXTENSION mapping with the referred URL Pattern --> <servlet-mapping> <servlet-name>FacesServlet</servlet-name> <url-pattern>*.jsf</url-pattern> </servlet-mapping> </web-app>
Chandru.
|
- Re: SUNs studio enterprise 8 and web.xml config probl... nimisha sharma
- Re: SUNs studio enterprise 8 and web.xml config ... Chandra Sekhar
- SV: SUNs studio enterprise 8 and web.xml config ... Sköldheimer Fredrik
- Re: SUNs studio enterprise 8 and web.xml con... nimisha sharma
- Re: SUNs studio enterprise 8 and web.xml con... Mike Kienenberger

