cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject cvs commit: xml-cocoon2/src/webapp/samples/tutorial/docs edit-dept.xsp edit-empl.xsp
Date Thu, 11 Jul 2002 14:13:00 GMT
haul        2002/07/11 07:13:00

  Modified:    src/webapp/samples/tutorial/docs edit-dept.xsp edit-empl.xsp
  Log:
  fixes [Bug 10596] thanks to Bobby Mitchell <bobby@niac.usra.edu>
  
  Revision  Changes    Path
  1.2       +1 -1      xml-cocoon2/src/webapp/samples/tutorial/docs/edit-dept.xsp
  
  Index: edit-dept.xsp
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/tutorial/docs/edit-dept.xsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- edit-dept.xsp	18 Mar 2002 19:23:08 -0000	1.1
  +++ edit-dept.xsp	11 Jul 2002 14:13:00 -0000	1.2
  @@ -24,7 +24,7 @@
               <esql:execute-query>
                 <esql:query>
                   SELECT name FROM department
  -                WHERE id = <esql:parameter><xsp-request:get-parameter name="id"/></esql:parameter>
  +				    WHERE id = <esql:parameter type="int"><xsp:expr>Integer.parseInt(<xsp-request:get-parameter
name="id" default="0"/>)</xsp:expr></esql:parameter>
                 </esql:query>
                 <esql:results>
                   <esql:row-results>
  
  
  
  1.3       +1 -1      xml-cocoon2/src/webapp/samples/tutorial/docs/edit-empl.xsp
  
  Index: edit-empl.xsp
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/tutorial/docs/edit-empl.xsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- edit-empl.xsp	30 Apr 2002 03:44:33 -0000	1.2
  +++ edit-empl.xsp	11 Jul 2002 14:13:00 -0000	1.3
  @@ -23,7 +23,7 @@
             <esql:execute-query>
               <esql:query>
                 SELECT name, department_id FROM employee
  -              WHERE id = <esql:parameter><xsp-request:get-parameter name="id"/></esql:parameter>
  +				  WHERE id = <esql:parameter type="int"><xsp:expr>Integer.parseInt(<xsp-request:get-parameter
name="id" default="0"/>)</xsp:expr></esql:parameter>
               </esql:query>
               <esql:results>
                 <esql:row-results>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message