Skip to main content

data loading error in

1 reply [Last post]
muneer123
Offline
Joined: 2008-09-22
Points: 0

i am trying to get data from database and filling into dojo.table but i got an errorData format error loading data from data.jsp

my data.jsp is under
<%@ page import="java.util.*" %>
<%@ page import="data.*"%>

<%
out.println( "data.jsp");
DataAccess da = new DataAccess();
ArrayList list = da.RunQuery();

out.println("{columns : [" +
"{ label : 'Company Name', id : 'companyName'}," +
"{ label :'Price', id : 'price'}," +
"{ label :'Change', id : 'change'}," +
"{ label :'% Change', id : 'pctChange'}," +
"{ label :'Last Updated', id : 'lastUpdated'}" +
"],");

out.println("rows: [");
for (int i=0; i

index.jsp

i include a Jmaki tag in index.jsp
also i create JAVA class for connect and get data form data base

how i remove this error

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sloanb
Offline
Joined: 2003-09-14
Points: 0

Have you attempted to debug the result being returned from the data.jsp. Looking at it I don't see anything wrong but my guess is its got a invalid character somewhere in there. What about your bean is it returning valid data?