aspose file tools
The moose likes Servlets and the fly likes JSP and XML Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "JSP and XML" Watch "JSP and XML" New topic
Author

JSP and XML

Yogesh Deshmukh
Greenhorn

Joined: Dec 26, 2000
Posts: 20
Can we use XML instead of HTML while using JSP?
Scott Stirling
Greenhorn

Joined: Mar 05, 2001
Posts: 24
If you mean can you use XML as the static template data instead of HTML, the answer is yes. If you want to output XML as well, you may want to set the page MIME type to xml (use the charset of your preference, I'm using the default JSP charset below):
<%@ page contentType="text/xml;charset=ISO-8859-1" %>


Scott Stirling<BR>Author of <A HREF="http://www.amazon.com/exec/obidos/ASIN/067231939X/ref=ase_electricporkchop/107-2476442-4883722" TARGET=_blank rel="nofollow">Java Server Pages Application Development</A>
 
 
subject: JSP and XML
 
Threads others viewed
How can I set bean property in JSF page?!
browser returning error
jsp always an xml
parse xml
Well Formed
IntelliJ Java IDE