• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending and receiving xml data

 
PradeepPillai Pradeep
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Thanks.
 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic