,ch14.9433  Page 467  Monday, February 14, 2005  12:55 PM
Example 14 21. Struts configuration file that uses Struts Faces (continued)
            value="org.apache.struts.faces.application.FacesRequestProcessor"/>
    
    
The first page of the application, shown in Example 14 22 (index.jsp), provides a link
to the  logon  page. This conventional JSP page doesn't contain any JSF or Struts 
Faces components.
Example 14 22. Regular Struts based index page
<%@ page contentType="text/html;charset=UTF 8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags html" %>
  Struts Cookbook   Integrating Struts and JSF
  

Struts Cookbook Integrating Struts and JSF

  Try out Struts and JSF
The second page, logon.jsp shown in Example 14 23, contains the logon form sub 
mitted to the /Logon action.
Example 14 23. Logon page using Struts Faces components
<%@ page contentType="text/html;charset=UTF 8" language="java" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="s" uri="http://struts.apache.org/tags faces" %>
  Struts Cookbook   Integrating Struts and JSF
  

  
     focus="username" styleClass="form">
    
    
           required="true" size="10"/> 

    
Integrating JavaServer Faces with Struts | 467
This is the Title of the Book, eMatter Edition
Copyright   2005 O'Reilly & Associates, Inc. All rights reserved.






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

strutsweb hosting

 

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved