You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ma...@swisscom.com on 2003/05/28 17:32:14 UTC

XSP : pages auto-refreshes a hunderd time!

I had this problem a while ago, and it comes back. But I don't know why!
My page reloads itself until an error comes. If I take a tracer I can
see that the page comes correctly, but once loaded it is reloaded again
and again!

Why?

Has anybody any idea? Here is the complete XSP-page :


<xsp:page language="java" xmlns:xsp="http://apache.org/xsp"
 xmlns:session="http://apache.org/xsp/session/2.0" 
 xmlns:esql="http://apache.org/cocoon/SQL/v2"
 xmlns:xsp-request="http://apache.org/xsp/request/2.0">   

<xsp:structure>
	<xsp:include>java.text.SimpleDateFormat</xsp:include>
</xsp:structure>

<page>

<tb_titre>Workflow Manager - session from <session:get-attribute
name="user"/></tb_titre>
  
<content>
<topbanner>

<xsp:logic>
	Date now = new Date();
	SimpleDateFormat formatter = new SimpleDateFormat("dd-MMMM-yy
HH:mm:ss");
	String dateform = formatter.format(now);	
</xsp:logic>

<tb_user><session:get-attribute name="user"/></tb_user>
<tb_usertype><session:get-attribute
name="role"/></tb_usertype><tb_address><xsp-request:get-uri/>.print?<xsp
-request:get-query-string/></tb_address>
<tb_date><xsp:expr>dateform</xsp:expr></tb_date>

</topbanner>

 <form action="add-order_add" method="post">
 
 <table>
  <tr>
   <td align="right">Order Name : </td>
   <td align="left"><input type="text" name="myname"/></td>

    <td><input type="submit" value="Add order"/></td>
  </tr>
 
 </table>
 </form>
  
 <menuA>list of all orders:</menuA>
 <esql:connection>
	 <esql:pool>wfmgt</esql:pool>
	 <esql:execute-query>
	 	<esql:query>
	 	  SELECT * 
	 	  FROM Orders 
	 	  WHERE od_archive = 0
		 	  AND od_sector = <session:get-attribute
name="sector"/>
	 	</esql:query>	
	 <esql:results> 	 
		<table border="1"
		 cellspacing="2">
				<linkth>Order ID</linkth>
				<th>Order Name</th>
				<linkth>Edit Order</linkth>
				<linkth>Delete Order</linkth>
				<th>Creation Date</th>

			<esql:row-results>
			
			<tr>
				<linktd><a><xsp:attribute
name="href">view-order?myID=<esql:get-string
column="od_ID"/></xsp:attribute>
  					<esql:get-string
column="od_ID"/></a></linktd>
				<td><esql:get-string
column="od_name"/></td>
				<linktd><a><xsp:attribute
name="href">upd-order?myID=<esql:get-string
column="od_ID"/></xsp:attribute>
					Edit </a></linktd>

				<linktd><a><xsp:attribute
name="href">del-order_del?myID=<esql:get-string
column="od_ID"/></xsp:attribute>
					Delete</a></linktd>

				<td><esql:get-string
column="od_date"/></td>					
			</tr>

			</esql:row-results>
		</table>	
	 </esql:results>
	 </esql:execute-query>	 
	</esql:connection> 
    <h4 align="right"><a><xsp:attribute
name="href">order-archivate_arc</xsp:attribute>View archived
orders</a></h4>
	<br/>
    <center><h4><a><xsp:attribute
name="href">manage-order</xsp:attribute>Back</a></h4></center>

 
</content>
</page>
</xsp:page>

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org