Re: Servlet output returned as a file

2002-08-26 Thread J . Schweizer


Helloo Nehemia,

I suggest setting the ContentType of the response to something that fit's
your data.

response.setContentType(text/html);

Otherwise some Browsers (Netscape 6.2 for example) treat  no content as
binary a.f.a.i.k

Hope that helps,

Jan



   
 
Nehemia
 
Litterat To: [EMAIL PROTECTED]
 
nlitterat@yah   cc:   
 
oo.com  Subject: Servlet output returned as a 
file 
   
 
26.08.2002 
 
09:03  
 
Please respond 
 
to Tomcat 
 
Users List
 
   
 
   
 





Hi

The servlet I am writing is working 100% the problem is that the servlet
output which goes to

java.io.PrintWriter out = response.getWriter();

is returned as a file. The browser insted of showing the html is asking me
to save it to disk.

When I am looking at the file everything is fine the html is perfect and if
I am trying to open it from the file system it looks good

any sugestion

Thanks in advance

Nehemia Litterat



-
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: unpacking war files?

2002-08-26 Thread J . Schweizer




Hi Cyrill,

put the .war right into the webapps/ directory (not into a subdirectory)
and I believe it will deploy.

that will be webapps/geonet.war

if it doesn't deploy try deleting the geonet directory first.

Hope that helps,

Jan

   
 
Cyrill Zadra 
 
[EMAIL PROTECTED]   To: [EMAIL PROTECTED]
 
izh.ch  cc:   
 
 Subject: unpacking war files? 
 
26.08.2002 
 
10:34  
 
Please respond 
 
to Tomcat 
 
Users List
 
   
 
   
 




Hi

I'm using tomcat 4.0.4. My ant building Script creates a war file and
put it to the in the subdirectory  geonet of the webapps directory.
But now the Tomcat don't automaticallly unpack this war file.

In the server.xml configuration file I insert a new Context entry

Context path=/geonet docBase=geonet debug=0 reloadable=true/

Is that a bug of tomcat, that it is not going to unpack it or did I
forgot to configure something in my configuration files?

Thanks in advance!!!

Cyrill


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]