File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 186
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: 186
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
It's not a secret anymore!