Hi,
i am bit confused related to .do and .faces.
what my question is that when my application is in purely
struts or Struts-jsf i got confused when i found this.
what i did was in my web.xml i did entry for faces and do like this.
<
servlet>
<servlet-name>faces</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Standard Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>faces</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
...
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
now in my Struts-config file if i write like
<action path="/InstructorLogin"
type="InstructorLoginAction"
validate="true"
input="/jsp/instructorLogin.faces"
name="InstructorLoginBean"
scope="request" >
<forward name="student" path="/jsp/studentInformation.faces" />
<forward name="success" path="/jsp/testListing.faces" />
<forward name="failure" path="/jsp/instructorLogin.faces" />
</action>
this will execute perfectly. remember i use faces everywher though my page is .jsp. then why this thing is running fine.
if instead of faces i write .do then it will give error because it tries to find action related to that.
This same thing is why not happening when i write .faces
Thanks in Advance
Nishita
