Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

content tupe of jsp  RSS feed

 
sharad goswami
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi! i want to develop an application based on jsps which lets the user to dwonload the html and jsp files instead of opening it in the browser .how can i do it?
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sharad goswami:
hi! i want to develop an application based on jsps which lets the user to dwonload the html and jsp files instead of opening it in the browser .how can i do it?

Feel free to set a page's content type using the 'contentType' attribute of the <%@ page %> directive. Note that JSP is a textual medium, so it will typically be more appropriate to set content types that begin with 'text' rather than, say, 'application'.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!