This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP and XML  RSS feed

 
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" %>
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!