Re: Content type for jsp/html files

2004-02-24 Thread Parsons Technical Services
- From: "Johan Wallinder" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, February 24, 2004 5:54 PM Subject: RE: Content type for jsp/html files > > I've already done that. But than I was thinking. Isn't there

RE: Content type for jsp/html files

2004-02-24 Thread Johan Wallinder
004 23:28 To: Tomcat Users List Subject: Re: Content type for jsp/html files Johan, If the purpose is just to see the code, then you can parse the stream and replace each of the <> symbols with a substitute. This will cause the browser to see everything as plain text. Parse the stream. If chara

Re: Content type for jsp/html files

2004-02-24 Thread Parsons Technical Services
Johan, If the purpose is just to see the code, then you can parse the stream and replace each of the <> symbols with a substitute. This will cause the browser to see everything as plain text. Parse the stream. If character equals < then replace with < If character equals > then replace with > Wit

RE: Content type for jsp/html files

2004-02-24 Thread Yansheng Lin
typo: context type should be context type. -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 3:15 PM To: 'Tomcat Users List' Subject: RE: Content type for jsp/html files Totally! With context type set to text/plain is not going

RE: Content type for jsp/html files

2004-02-24 Thread Yansheng Lin
1 PM To: Tomcat Users List Subject: Re: Content type for jsp/html files Johan Wallinder wrote: >Hi. > >I've want to make a servlet that can display the source of any jsp/html >file (not the rendered one). > >Basically my code is like this: > >*set content type to text/

Re: Content type for jsp/html files

2004-02-24 Thread Antonio Fiol BonnĂ­n
Johan Wallinder wrote: Hi. I've want to make a servlet that can display the source of any jsp/html file (not the rendered one). Basically my code is like this: *set content type to text/plain *get PrintWriter object out *get the fileobject as an inputstream *write to the out object *flush/clo