Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes How do i collect  XML  object on a JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "How do i collect  XML  object on a JSP page" Watch "How do i collect  XML  object on a JSP page" New topic
Author

How do i collect XML object on a JSP page

Rinku Sharma
Greenhorn

Joined: Mar 30, 2001
Posts: 18
Hi friends,
I have a XML object which i am sending thru the url(which is calling the jsp page) and want to collect this object on the JSP page how do i go about doin it.
It doesnt happen thru request.getParameter();
Bye,
amit
Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
Hi,
Its not clear from where you are sending the XML object. I am assuming that b'cos its an object you are trying to send it from another jsp. In that case, all you have to do is.
session.setAttribute("xmlobj",xmlobj)
session.getAttribute("xmlobj")
Hope this helps.
If not, please tell the scenario completely.
Ram Dhan YK


Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
 
GeeCON Prague 2014
 
subject: How do i collect XML object on a JSP page