problem lauching mainpage.jsp
junio20 Nov 28, 2011 2:48 AMmainpage.jsp
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib uri="http://richfaces.org/rich" prefix="rich" %>
<f:view>
<html>
<head>
<LINK href="../style/faceStyle.css" rel="stylesheet" type="text/css">
<title>Login eWorkFlow</title>
</head>
<body>
<h:form id="loginForm">
<center>
<h:graphicImage value=""/>
<P/>
<rich:panel style="width:547px;text-align:left;background-color:Black;">
<h:outputLabel value=": : LOGIN (TESTING) : :" style="font-family:Arial Black;font-size:15px;color:FloralWhite;" />
</rich:panel>
<rich:panel style="width:547px;text-align:center">
<p/>
<h:outputLabel value="Please enter your username and password"/>
<rich:panel style="border-style:dotted;">
<h:panelGrid border="0" columns="2">
<h:outputText value="User Name:" styleClass="label_normal"></h:outputText>
<h:inputText id="userid" value="#{loginReq.userId}"/>
<h:outputText value="Password: " styleClass="label_normal"></h:outputText>
<h:inputSecret id="pwd" value="#{loginReq.password}"/>
</h:panelGrid>
<p>
<a4j:commandButton value="Login" type="submit" action="#{loginReq.login}"/>
<br/>
<h:outputLabel value="#{loginReq.message}" rendered="true" id="msg" styleClass="label_bold_red"/></rich:panel>
</rich:panel>
<rich:panel style="width:547px;height:30px;text-align:right;background-color:Black;">
<h:outputLabel value="CTM ScanForm eWorkflow System" style="font-family:Arial Black;font-size:12px;color:FloralWhite;" />
</rich:panel>
<br></center>
<a4j:status onstart="#{rich:component('wait')}.show()"
onstop="#{rich:component('wait')}.hide()" />
<rich:modalPanel id="wait" autosized="true" width="200" height="120"
moveable="false" resizeable="false">
<f:facet name="header">
<h:outputText value="Authentication Processing" />
</f:facet>
<h:panelGroup>
<center><h:outputText value="Wait Please..." /> <br />
<h:graphicImage value="../image/ajax-loader.gif" /></center>
</h:panelGroup>
</rich:modalPanel>
</h:form>
</body>
</html>
</f:view>
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>eWorkFlow</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<context-param>
<description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>resources.application</param-value>
</context-param>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<context-param>
<param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
<param-value>true</param-value>
</context-param>
</web-app>
plz help, im a noob!