aspose file tools*
The moose likes XML and Related Technologies and the fly likes Sending and receiving xml data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Sending and receiving xml data" Watch "Sending and receiving xml data" New topic

Sending and receiving xml data

PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 184
I have some information in a struts action. I want to send data into a servlet where the data I send (xml data) get unmarshalled and send the result back. I have developed the servlet where the data get unmarshalled. I am not really sure how to send it to the servlet from struts action and how to get the data back from the servlet. Here I am validating a user in the servlet and I want the result of validation back in the struts action to proceed.
Can somebody please help me? I am new to xml.
Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

Define a action and map your action class for that action and put your servlet code in the execute method of the action class. And based on success or failure redirect to another action or another page.

You will find plenty of material for working with Struts on net.
PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 184
I already have the action. I want find out a way to translate all the data I collected from the jsp/form into xml and send it (request data) to another servlet from where I get the response data back.
I agree. Here's the link:
subject: Sending and receiving xml data
Similar Threads
How to send Key/Value pair bak to Servlet from Struts??
How to get data back on result page from struts
Using struts pagination logic with Spring MVC
Reloading a table using Ajax, Servlets and JSP
XML data send to servlet