I am going to design front end using JSP containing Start date, End date etc.. Finally i have to read these into Java object and write it as XML file. How could i accomplish this.. Please Help me on this requirement.
Thanks,
Narayan
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to get the input in JSP and pass it to the Servlet. Then you can use XStream to write to the XML.( I assume that you write the XML on the server, if you need to write the XML on the client computer – just import the xstream package iito your JSP header and put the servlet code snippet in your JSP)
in the servlet code :