Hii All,
I have setup the MyFaces+Struts+StrutsFaces in the
following way
--> myfaces jars, struts-faces.jar, jstl.jar,
standard.jar added to lib
--> add facesrequest processor to the
struts-config.xml (without tiles impl.)
<controller nocache="true" >
<set-property property="inputForward" value="true"
/>
<set-property property="processorClass"
value="org.apache.struts.faces.application.FacesRequestProcessor"
/>
</controller>
--> add MyFaces' ContextListener to web.xml with reqd.
context
--> parameters
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<!-- Myfaces implementation listener initialisation
-->
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
--> added JSF Servlet configuration and change the
load-on-startup attribute to load JSF at the start
-->then struts and -->then the application servlet
<!-- JavaServer Faces Servlet Configuration -->
<servlet>
<servlet-name>faces</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
--> adding the servlet mapping too
<!-- JavaServer Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>faces</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
I have a SevletFilter which is configured with a
pattern of *.do (same as my Struts Action Servlet
mappings)
ServletFilter is used as a mode of authentication, for
each page request.
I expect my Struts based application to work as it is,
b'coz i m not using any struts-faces tags or faces tag
at the moment.
But with the first click...i got the following error
from myfaces
could not find pathMapping for servletPath =
/loginCheck.do requestPathInfo = null
at
org.apache.myfaces.application.jsp.JspViewHandlerImpl
Moreover, i m used the latest of everything..myfaces,
struts-faces.
I m trying it hard, b'coz i want to leverage the
benefits of JSF with my existing (quite BIG) struts
based application.
Any feedback will be a big help for me.
Thanks,
fargo
__________________________________
Do you Yahoo!?
All your favorites on one personal page � Try My Yahoo!
http://my.yahoo.com