permaculture playing cards*
The moose likes JSP and the fly likes problem sending data from jsp as xml via ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "problem sending data from jsp as xml via ajax" Watch "problem sending data from jsp as xml via ajax" New topic
Author

problem sending data from jsp as xml via ajax

Anand Shrivastava
Ranch Hand

Joined: Jul 22, 2007
Posts: 125
Dear friends,

I am not able to read the data sent from a jsp as xml. The jsp which sends the data as xml is as under:



And the relevant function of the receiving jsp which has to read this sent data is as under:



However, I am not able to read the firstname and after giving the alert of editing, the script stops. Please help.


Anand Shrivastava
SCJA
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

Step 1: move the code from a JSP to a servlet. Java code should never be placed in a JSP.

Then we can debug from there.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem sending data from jsp as xml via ajax
 
Similar Threads
web application in eclipse 9
Ajax Real Time Example
object required in java script error
on lost focus of textbox. + JSP + Server side Validation.
ajax not working with jsp