[jboss-cvs] jboss-seam/examples/numberguess/view ...

Gavin King gavin.king at jboss.com
Thu Jul 13 14:08:31 EDT 2006


  User: gavin   
  Date: 06/07/13 14:08:31

  Modified:    examples/numberguess/view    lose.jsp numberGuess.jsp
                        win.jsp
  Log:
  use xml jsp
  
  Revision  Changes    Path
  1.2       +7 -2      jboss-seam/examples/numberguess/view/lose.jsp
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: lose.jsp
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/numberguess/view/lose.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- lose.jsp	19 Jan 2006 13:01:12 -0000	1.1
  +++ lose.jsp	13 Jul 2006 18:08:31 -0000	1.2
  @@ -1,5 +1,9 @@
  -<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
  -<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
  +<?xml version="1.0"?>
  +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
  +          xmlns:f="http://java.sun.com/jsf/core"
  +          xmlns="http://www.w3.org/1999/xhtml"
  +          version="1.2">
  +<jsp:directive.page contentType="text/html;charset=utf-8"/>
   <html>
   <head>
   <title>You lose.</title>
  @@ -13,3 +17,4 @@
     </f:view>
   </body>
   </html>
  +</jsp:root>
  
  
  
  1.3       +10 -4     jboss-seam/examples/numberguess/view/numberGuess.jsp
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: numberGuess.jsp
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/numberguess/view/numberGuess.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- numberGuess.jsp	28 Jun 2006 18:39:32 -0000	1.2
  +++ numberGuess.jsp	13 Jul 2006 18:08:31 -0000	1.3
  @@ -1,5 +1,10 @@
  -<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
  -<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
  +<?xml version="1.0"?>
  +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" 
  +          xmlns:h="http://java.sun.com/jsf/html"
  +          xmlns:f="http://java.sun.com/jsf/core"
  +          xmlns="http://www.w3.org/1999/xhtml"
  +          version="1.2">
  +<jsp:directive.page contentType="text/html;charset=utf-8"/>
   <html>
   <head>
   <title>Guess a number...</title>
  @@ -9,8 +14,8 @@
   <f:view>
   	<h:form>
   	    <h:messages globalOnly="true" />
  -	    <h:outputText value="Higher!" rendered="#{numberGuess.randomNumber>numberGuess.currentGuess}" />
  -	    <h:outputText value="Lower!" rendered="#{numberGuess.randomNumber<numberGuess.currentGuess}" />
  +	    <h:outputText value="Higher!" rendered="#{numberGuess.randomNumber gt numberGuess.currentGuess}" />
  +	    <h:outputText value="Lower!" rendered="#{numberGuess.randomNumber lt numberGuess.currentGuess}" />
   		<br />
           I'm thinking of a number between <h:outputText value="#{numberGuess.smallest}" /> and 
           <h:outputText value="#{numberGuess.biggest}" />. You have 
  @@ -29,3 +34,4 @@
   </f:view>
   </body>
   </html>
  +</jsp:root>
  
  
  
  1.2       +8 -2      jboss-seam/examples/numberguess/view/win.jsp
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: win.jsp
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/numberguess/view/win.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- win.jsp	19 Jan 2006 13:01:12 -0000	1.1
  +++ win.jsp	13 Jul 2006 18:08:31 -0000	1.2
  @@ -1,5 +1,10 @@
  -<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
  -<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
  +<?xml version="1.0"?>
  +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" 
  +          xmlns:h="http://java.sun.com/jsf/html"
  +          xmlns:f="http://java.sun.com/jsf/core"
  +          xmlns="http://www.w3.org/1999/xhtml"
  +          version="1.2">
  +<jsp:directive.page contentType="text/html;charset=utf-8"/>
   <html>
   <head>
   <title>You won!</title>
  @@ -13,3 +18,4 @@
     </f:view>
   </body>
   </html>
  +</jsp:root>
  
  
  



More information about the jboss-cvs-commits mailing list