473,667 Members | 2,577 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.setCon tent-Type("text/xml");
response.setHea der("xml version=\"1.0\" encoding=\"utf-8\"");
%>

<cntsugg>
<cntall><% out.print(cntal l); %></cntall>
<cntrp><% out.print(cntrp ); %></cntrp>
<cntrpp><% out.print(cntrp p); %></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 1212
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
3021
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 when reading out the data into the PHP variables / array. It should be displaying the information out in the following way, using the PHP array: n_date, n_headline, n_summarytext, n_fulltext
1
6021
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 have any web resources I would appreciate that as well. Thanx in advance. Ray
2
3510
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 accross the internet... I've tested this with multiple connections. If I run the same server and client, connect them locally I don't have a problem with byte totals. Is there a timeout that I need to set... I've looked at and change several...
2
4838
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 an NT 4 SP6 file server with opportunistic locking disabled. Workstations are Win98 SE with Access 97, Jet 3.5 SP3, and Network redirector file caching disabled (VREDIR/DiscardCacheOnOpen=1) Network: Local LAN using NETBUEI as Primary Protocol,...
0
1629
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 asp.net page. I have no character problem with asp.net files Only problem with SQL Server.
1
8367
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 language="javascript"> // Global Variable for XmlHttp Request Object var xmlhttp; var yearDDL; function handleOnChangepType(ddl) {
3
2119
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; ArrayList req=(ArrayList) request.getAttribute("req"); for(Iterator it= req.iterator();it.hasNext();){ prfObj=(PendingReqForm) it.next();{ %>
4
2387
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
2143
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 of the forum. In my forum the feeds are not parsed to bbcode and it actually posting the html code into the thread in a strange way. IT is removing the <> tags for each html code and posting it in thread.
0
8457
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8563
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6203
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4200
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1778
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.