473,511 Members | 16,110 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

1 New Member
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...
May 15 '07 #1
3 1201
dmjpro
2,476 Top Contributor
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.
May 15 '07 #2
acoder
16,027 Recognized Expert Moderator MVP
Post your javascript code. Does your JSP page work independently without AJAX?
May 15 '07 #3
dmjpro
2,476 Top Contributor
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.
May 16 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3016
by: Dariusz | last post by:
Below is part of a code I have for a database. While the database table is created correctly (if it doesn't exist), and data is input correctly into the database when executed, I have a problem...
1
6009
by: Joe Ray | last post by:
I am interested in passing encrypted HTML form data to a JSP page where it is than decrypted. Can someone suggest a technique to do this and the technology or encryption method I should use. If you...
2
3490
by: UrgeOverkill | last post by:
I'm having a problem sending data from a socket server. The server side reports that it has sent 4845 bytes but the client reports only 1448 bytes received. The kicker is that this ONLY happens...
2
4829
by: RipTide | last post by:
Background: Using an unsupported/abandoned multi-user multi-database program that uses Access 97 and Jet 3.5. Program itself appears to have been built with PowerBuilder 6.5. Databases reside on...
0
1611
by: Mustafa Yesilkaya | last post by:
have a problem with Sql Server. When i insert or update a data ,i cant see turkish characters like ("Þ,Ý,Ð") in tables. But when i write datas myself in table ,i can see with SELECT command with...
1
8363
nmm32
by: nmm32 | last post by:
I am trying to use Ajax with JSP to populate a 2nd drop down list based on the chosen option of the first one. I am getting the error "Object Expected" on the line 13-14 of the HTML: <script...
3
2111
by: ajos | last post by:
Hello friends, In my action class i am getting a resultset data which im storing in a arraylist. In my jsp page im retrieving the arraylist data as-----> <%publicity.PendingReqForm prfObj=null;...
4
2383
abdoelmasry
by: abdoelmasry | last post by:
Hi Prof's im new in ajax i need some help i wanna create active web page linked to mysql database i mean .. i open my page , it will automatically view database contents
6
2132
by: pkchandra999 | last post by:
My Server OS : Centos 64 bit Apache version is Apache v2.2.9 Php Version : 5.2.5 I am providing feeds to my forum through RSS. The feeds are in html and those feeds will be parsed to bbcode...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7353
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7418
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7508
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5662
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
446
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.