Connecting Tech Pros Worldwide Forums | Help | Site Map

problem to get more then one data from server ( AJAX + JSP)

Newbie
 
Join Date: May 2007
Posts: 1
#1: May 15 '07
I found the problem the status error 500. when I am trying to get more then one data from the server to client..

I am using the following part of code to use xmlrequest & xmlresponse in jsp from server...
<%
............
.........
response.setContent-Type("text/xml");
response.setHeader("xml version=\"1.0\" encoding=\"utf-8\"");
%>

<cntsugg>
<cntall><% out.print(cntall); %></cntall>
<cntrp><% out.print(cntrp); %></cntrp>
<cntrpp><% out.print(cntrpp); %></cntrpp>
<cntua><% out.print(cntua); %> </cntua>
</cntsugg>


some one tell me abt the error or something wrong in my code...

dmjpro's Avatar
Lives Here
 
Join Date: Jan 2007
Location: India (West-Bengal)
Posts: 2,451
#2: May 15 '07

re: problem to get more then one data from server ( AJAX + JSP)


Welcome to TSDN.

the variables u use in OUT.PRINTLN(var_name) where the values come from?
tell me that.

what do u mean by more than one data from server?
r u retrieving data from database or from anywhere else?

plz tell me in dtls.
kind regards.
dmjpro.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#3: May 15 '07

re: problem to get more then one data from server ( AJAX + JSP)


Post your javascript code. Does your JSP page work independently without AJAX?
dmjpro's Avatar
Lives Here
 
Join Date: Jan 2007
Location: India (West-Bengal)
Posts: 2,451
#4: May 16 '07

re: problem to get more then one data from server ( AJAX + JSP)


This is a good point ACODER.

I think there is no problem with JS code.
The page is most probably wrong or what URL he is trying to send .... the query string is somewhere wrong.


kind regards.
dmjpro.
Reply