Odp: Reagrding file size in uploading

2002-04-01 Thread tszacon


Try http://www.jspsmart.com/

Tom


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Odp: Re: Unable to create jar cache

2002-03-21 Thread tszacon


Hi !

I've changed VM from Sun to IBM and now i have exactly the same problem, so
maybe it is not tomcat false.

Any other suggestions ?

Tom


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat and character encoding once again

2001-12-10 Thread TSzacon



Hi again

I develop application using Tomcat 4.0.1 and Sybase Adaptive Server Enterprise.
Database encoding  is set to Windows Cp 1250 (this is necessary) and pages
encoding is iso-8859-2. I tried to use all technics I saw in previous posts to
display polish letters insted of ? but nothing works.
 If I change <%@ page contentType="text/html; iso-8859-2" %> to cp 1250 and set
jdbc connection property "CHARSET" to  "cp1250" everything is fine but I need
iso encoding in my pages.

Any suggestions wnich will help solve this problem ?

Thanks
Olo




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




File downloading problem

2001-08-23 Thread TSzacon



Hi,

I have problem with file downloading using jsp. One page genrates ZIP file an
forward (with parameters filename and path) to other page (download.jsp) wnich
show request window and save file. I tried to use smartUpload wnich works fine
but only when file length is more than 30K. If file is about 2k MSIE shows
message that page doesn't exists and Nescape display something like this:
Error: 500
Location: /pzh/download.jsp
Internal Servlet Error:
java.lang.IllegalStateException: OutputStream is already being used for this
request
at
org.apache.tomcat.facade.HttpServletResponseFacade.getWriter(HttpServletResponseFacade.java:175)
at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:166)
at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:158)
at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:205)
at
_0002fdownload_0002ejspdownload_jsp_11._jspService(_0002fdownload_0002ejspdownload_jsp_11.java:117)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)

I tried to use header command like this below but it doesn't work (empty file is
created)

java.io.File f = new java.io.File(path + filename);

response.setHeader("Content-Encoding","zip");
response.setHeader("Content-Length", String.valueOf(f.length()));
response.setHeader("Content-Location", path + filename);
response.setHeader("Content-Type", "application/zip");
response.setHeader("Content-Disposition","filename=" + filename);

Thanx for your help.
Olo





RE: File upload using jsp

2001-08-07 Thread TSzacon



At http://www.jspsmart.com/ there is simple and free java class with examples
(jspSmartUpload) wnich allows file uploading

Olo