Hi,
I’ve the following code…
The problem is that when i integrate my code with struts it doesn’t work.
I get errors like invalid xml etc. when actually the xmk is proper.
<%@ page language=“java” import=“java.util.,java.text.,com.crisil.ram.master.,com.crisil.ram.common.,com.crisil.ram.util." %>
<%
SimpleDateFormat sDF = new SimpleDateFormat(“dd MMM yyyy hh:mm a”,Locale.US);
String strDate = sDF.format(new Date(System.currentTimeMillis() - (long)82800000));
response.setHeader(“Expires”,strDate);
%>
CAM 3.2 - Client Master
Add row
Remove Selected Row
Enable Auto Update
Cell based
Row based
Incorrect XML error means that printed data has XML syntax errors, in case of dyn. generation of data, most possible reason
- some script error occurs during data generation and error info corrupt XML
- data was printed in different encoding than XML ( iso-8859-1 vs UTF ) which cause xml syntax error
To check exact reason, you can load the same url ( getGridRecords.asp with parameters ) in separate window or use debug version of dhtmlxcommon.js
dhtmlx.com/docs/products/kb/inde … tmlxcommon