File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 60978
    
  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