This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes text/plain & text/html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "text/plain & text/html" Watch "text/plain & text/html" New topic
Author

text/plain & text/html

Grace Lo
Greenhorn

Joined: May 03, 2001
Posts: 12
Hi,
I am using XML and XSL with xalan to show a DOM tree from a browser.
I would allow users to pick eith HTML or plain format at run time.
By using response.setContentType("text/plain" );
or response.setContentType("text/html" );
seems look the same from my browser.
Do I need to write different XSL files like taking out all html tags?
Thanks,
Grace

Grace
 
wood burning stoves
 
subject: text/plain & text/html
 
Similar Threads
Reading a text file on Linux machine
Using response.setcontenttype
Doubts regarding request and response objects.
problem with download dialog box
text/html & text/plain