This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 60782
    
  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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: problem sending data from jsp as xml via ajax
 
Similar Threads
Ajax Real Time Example
object required in java script error
web application in eclipse 9
on lost focus of textbox. + JSP + Server side Validation.
ajax not working with jsp