Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP and XML

 
Yogesh Deshmukh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we use XML instead of HTML while using JSP?
 
Scott Stirling
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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" %>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic