hi, I am using JRUN server for processing JSP.I want to know how to use JSP and XML in JRUN server with a small e.g since i dont know XML. Bye, Vasu
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
yesterday someone posted that this is a good article on the subject. you see how it helps sneeking in other peoples' posts. you could also use the search facility. HTH. regds. - satya
It is pretty easy to make JSP and XML work together. All you need to do is include at the top of the jsp page this line: <% response.setContentType("text/xml"); %> From that point forward, everything will be "considered" xml. You can use any jsp code inside of this xml document. Example:
The only thing that you need to make sure of is that the document follows xml rules (well-formed and valid, if a dtd/schema is specified). Note: This is not specifically for JRun, this should work using any JSP container.