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.
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.
Joined: Nov 15, 2005
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.