hi there,
im facing problem in tomcat serving a file with unicode name.
pls help in this regard
thanks in advance,
arun
to client: Can't override
file name
123049 by: Mark Leone
Its an HTTP header you are looking for, try this:
response.setHeader(Content-Disposition, attachment;
filename= + theFile.getName());
Chris
-
To unsubscribe, e-mail: [EMAIL
Servlet Streaming file to client: Can't override
file name
123049 by: Mark Leone
Its an HTTP header you are looking for, try this:
response.setHeader(Content-Disposition, attachment;
filename= + theFile.getName());
Chris
Thanks. That's exactly what I needed, and it did the trick. Firefox browser just
grabs the first non-whitespace part of the name, but in IE the entire name shows
up. Thanks again.
-Mark
Chris Hyzer wrote:
Servlet Streaming file to client: Can't override
file name
123049 by: Mark Leone
.
The HttpServletResponse object that Tomcat passes to the servlet
provides access to an OutputStream object, and I see no way to set the
filename with an object of that class. If Tomcat passed a
FileOutputStream object (child of OutputStream), I could call a
constructor that sets the file name or file
();
}
ostr.close();
}
%
This works but when the user clicks the link, the save
file dialog's default file name is audio_download.jsp.
I want it to be a dynamically generated zip file name
(something like 087_latest_audio.zip). How do I do
that? Or is this the wrong approach
);
ostr.putNextEntry( new ZipEntry(file_name)
);
CFunctions.copyStream(istr, ostr);
istr.close();
}
ostr.close();
}
%
This works but when the user clicks the link, the save
file dialog's default file name is audio_download.jsp.
I want
();
}
%
This works but when the user clicks the link, the
save
file dialog's default file name is
audio_download.jsp.
I want it to be a dynamically generated zip file
name
(something like 087_latest_audio.zip). How do I do
that? Or is this the wrong approach?
thanks in advance,
Eugene
List
Cc: [EMAIL PROTECTED]
Subject: RE: Tomcat 5.5.4 - Using a Context.xml File With a Path Different
Than The File Name
Try naming the second context file myapp#savedfiles.xml; that should result
in startup deployment to the correct context path.
Benjamin J. Armintor
Operations Systems
Hi all,
Using Tomcat 5.0.30, I had two Contexts for webapps set up as follows.
Context 1, loaded from file: Tomcat Home/conf/Catalina/localhost/myapp.xml
:
Context path=/myapp docBase=myapp cookies=true debug=0
reloadable=false /
Context 2, loaded from file: Tomcat
%20Deployment
Someone slap me if I am wrong here.
Doug
- Original Message -
From: Matt Mejaski [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, January 11, 2005 10:30 AM
Subject: Tomcat 5.5.4 - Using a Context.xml File With a Path Different Than
The File Name
Hi all,
Using
needed?
By using the Tomcat manager?
Matt
-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 11:37 AM
To: Tomcat Users List
Subject: Re: Tomcat 5.5.4 - Using a Context.xml File With a Path Different
Than The File Name
If you
Users List' tomcat-user@jakarta.apache.org
Sent: Tuesday, January 11, 2005 3:00 PM
Subject: RE: Tomcat 5.5.4 - Using a Context.xml File With a Path Different
Than The File Name
I still need some type of auto-deployment, though.
The app won't be deployed twice because Tomcat only knows about
]
-Original Message-
From: Matt Mejaski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 9:31 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.5.4 - Using a Context.xml File With a Path Different
Than The File Name
Hi all,
Using Tomcat 5.0.30, I had two Contexts for webapps set up
only if the .war name resp. the webapps dir name match the
deployment descriptor's path. Can anyone confirm this or explain this behaviour
to me?
---
Moreover wouldn't it be a good idea to have the context's path attribute
optional when using META-INF/context.xml and use the war file name
is, and this is not a significant use-case.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Michael Echerer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 10, 2004 8:43 AM
To: Tomcat Users List
Subject: Why JNDI ResourceLink not resolved, if .war file name doesn't
match
Hi
I am using Tomcat 4.1.29 + Apache 1.3.31. In one of my webapp i have a file named
test+.gif
When i try to access this gif file, tomcat throws resource not available message.
All other gif files in the same
dir are accessible. Even the directory listing shows the file is available.
On 31 August 2004, Surendra Kumar said:
Hi
I am using Tomcat 4.1.29 + Apache 1.3.31. In one of my webapp i have a file
named test+.gif
Probably a URL encoding problem -- if a web page includes
a href=test+.gif
then the browser will ask for test .gif, because test+.gif is one of
the
]
Sent: Tuesday, August 31, 2004 8:02 PM
Subject: Re: Tomcat 4.1.29 - Special chars in a file name
On 31 August 2004, Surendra Kumar said:
Hi
I am using Tomcat 4.1.29 + Apache 1.3.31. In one of my webapp i have
a file named test+.gif
Probably a URL encoding problem -- if a web page includes
Howdy,
You can't.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Erlandsson Martin [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 1:58 AM
To: Tomcat Users List
Subject: Reading war file name from servlet?
Hi list.
I have a bunch of similar servlets
Hi list.
I have a bunch of similar servlets for which I would like to set up configuration
directories. These paths should ideally be based on the names of the different war
files.
How can I retreive the war file name or the context path (or docBase) of a servlet
from _within_ that servlet
Hi
We are useing jk2 with tomcat 4.1 and it works fine when we use
filenames with ext. .jsp
But it does not work with servlers or a directories. Apache servs the
request and not tomcat.
We have looked at the manuals but we can only find how to set it up to
work with mod_jk and not jk2.
So how
in the logfile get a
timestamp, not the file name itself.
Thank you in advance!
James C. MontzRHCE
Hosting Services Engineer
James Tower
Phone: (507)-344-5435
E-Mail: mailto:[EMAIL PROTECTED]
http://www.jamestower.com
Hosting Services: [EMAIL PROTECTED]
-Original
such as logrotate
useless.
Note: Timestamp=true defines whether messages in the logfile get a
timestamp, not the file name itself.
Thank you in advance!
James C. MontzRHCE
Hosting Services Engineer
James Tower
Phone: (507)-344-5435
E-Mail: mailto:[EMAIL PROTECTED]
http
I have a servlet that generates pdf files on the fly
but when the browser opens the save as... dialog, the suggested
default filename is my servlet's URL... I would like it to suggest
another file name, how can i do that?
--
Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51
);
String origfile = DLBean.getColumn(origfilename);
String mimetype = DLBean.getColumn(mimetype);
//read the file name.
savepath+=file;
File f = new File (savepath);
//set the content type(can be excel/word/powerpoint etc..)
response.setContentType
response.setHeader(Content-Disposition, attachment;
filename=SuggestedFileName.pdf);
- Original Message -
From: Felipe Schnack [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 14, 2003 10:37 AM
Subject: file name
I have a servlet that generates pdf
Users List [EMAIL PROTECTED]
Sent: Tuesday, January 14, 2003 11:37 AM
Subject: file name
I have a servlet that generates pdf files on the fly
but when the browser opens the save as... dialog, the suggested
default filename is my servlet's URL... I would like it to suggest
another file name
ago on this list.
Regards,
Cédric
- Original Message -
From: Felipe Schnack [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 14, 2003 11:37 AM
Subject: file name
I have a servlet that generates pdf files on the fly
but when
From: Andoni [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: file name
Date: Tue, 14 Jan 2003 10:56:54 -
response.setHeader(Content-Disposition, attachment;
filename=SuggestedFileName.pdf);
- Original Message
they are using is well-behaved enough
to understand that it should only reply to each new thread with one message
instead of one message for the thread itself and every reply in that thread.
John
-Original Message-
From: Raj
To: Tomcat Users List
Sent: 1/6/03 12:38 AM
Subject: Re: Changed file name
Turner, John wrote:
We're just lucky the tech support app they are using is well-behaved enough
to understand that it should only reply to each new thread with one message
instead of one message for the thread itself and every reply in that thread.
Is there not someone with some kind of
info on form is correct it is still
calling Retry.jsp and I get stuck in a never ending loop in Retry.jsp - even
though there are no error messages...
Could changing the file name be the cause of this? Its as thought the if
(formBean.validate) always fails... but I don't think the problem is my
bean
Denise,
The front end is/was FormValidate.jsp/CCProcess.jsp, which forwards to
Verify.jsp or Retry.jsp?
You renamed it, and now when you submit the form you never get to
Verify.jsp? You are saying that when Retry.jsp submits the form, the form
action is CCProcess.jsp? Have you put any log code
Ahoy there!
This is an automated response, to let you know
that we have received your query and will answer
your email as soon as possible.
We know you'd like to get back to playing our
state-of-the-art online games. We'd therefore like
to assure you that we are determined to keep our
service at
after the
rename I never get to Verify.jsp. The action of Retry.jsp is
CCProcess.jsp. What is completely boggling my mind is that it was working
perfectly before I changed the file name :( Well I guess its true what they
say, if its not broke...
And I feel pretty dumb saying this, but I do not know
Mangano [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 21:31
To: 'Noel J. Bergman '; 'Tomcat Users List '
Subject: RE: Changed file name now webapp not working right
Noel,
I even tried changing everything back to FormValidate.jsp and it still
doesn't work...
Yes, your scenario
-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 21:31
To: 'Noel J. Bergman '; 'Tomcat Users List '
Subject: RE: Changed file name now webapp not working right
Noel,
I even tried changing everything back to FormValidate.jsp and it still
doesn't
Thanks.
Denise
-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 11:51 PM
To: 'Tomcat Users List'
Subject: RE: Changed file name now webapp not working right
Noel,
I did as you suggested, and the strangest things are happening
will be in transit all day tomorrow, but if I get
them before I leave, I can run on my laptop.
--- Noel
-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 0:05
To: 'Tomcat Users List'
Subject: RE: Changed file name now webapp not working
Ahoy there!
This is an automated response, to let you know
that we have received your query and will answer
your email as soon as possible.
We know you'd like to get back to playing our
state-of-the-art online games. We'd therefore like
to assure you that we are determined to keep our
service at
Is this some kind of spam? Do we ever get any responses from these people?
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 06, 2003 11:07 AM
Subject: RE: Changed file name now webapp not working right
[RBS200301062295]
Ahoy
-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 23:51
To: 'Tomcat Users List'
Subject: RE: Changed file name now webapp not working right
Noel,
I did as you suggested, and the strangest things are happening!! This is my
CCProcess.jsp:
%@ page import=java.util
Subject: RE: Changed file name now webapp not working right
Denise,
That almost looks like either Verify is forwarding to Retry or both
forward
actions are being invoked. Neither should be the case.
For kicks, I tried my own version (didn't write a fake bean or form):
CCProcess.jsp:
%@ page
Denise,
As long as it works. :-) No worries.
--- Noel
-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 1:40
To: 'Noel J. Bergman '; 'Tomcat Users List '
Subject: RE: Changed file name now webapp not working right
Wow I think I
tell the
people not to use special characters in their file name.
Thanks
Arcadius.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi,
(BI am using Tomcat 4.0.1 .I am getting problem while trying to open a
(Bdocument with Japanese characters in the file name. The server is showing
(B"404-Resource not found exception".
(BDo I need to change any server configuration so as to support URL with
(BJapanese character
:19
To: Tomcat Mailing List
Subject: Way to remove index page file name from URL?
I have a web app with a few servlets. One of these servlets I'd like to be
the default servlet - basically it should handle any request that the
other servlets don't handle, or that isn't for an image file or other
I have a web app with a few servlets. One of these servlets I'd like to be
the default servlet - basically it should handle any request that the
other servlets don't handle, or that isn't for an image file or other
resource. So far, I've set this up by mapping a special index/welcome page
name
Hi,
Explanation (make understanding easier):
User X want to servlet greated image. Servlet name is GreateImage. Prorammer wants
picture name to be created.png but browser supposes it to be GreatImage ( not more
not less ) because servlet name is it. So how to make it to created.png??
It
, the generated file names are very short !!!
But thanks anyway,
cheers,
Xav
-Original Message-
From: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 6:26 PM
To: [EMAIL PROTECTED]
Subject: RE: *** Generated Tomcat Temporary Class File Name Seem Too
Long... Yes
PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 12:54 PM
To: [EMAIL PROTECTED]
Subject: WinNT file name too long - JSP File naming algorithm
I am trying to bypass the problem Tomcat 3.2.1 has when it attempts to
create file names under the 'work' directory that contain too
Thanks for your answer but anyway it does not work
When I try to copy the .java file to the place in which I expect the .class
file Windows NT refuses to copy the file because the file name is too long.
That is really bad... I know that it is a problem of NT but that is really
crap that we
Tomcat Temporary Class File Name Seem Too
Long... Yes ***
Thanks for your answer but anyway it does not work
When I try to copy the .java file to the place in which I expect the .class
file Windows NT refuses to copy the file because the file name is too long.
That is really bad... I know
the source code,
modify it,
and compile your own copy of Tomcat! What's the deal?
-Original Message-
From: Xavier [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 1:45 AM
To: [EMAIL PROTECTED]
Subject: RE: *** Generated Tomcat Temporary Class File Name Seem Too
Long... Yes
Don't worry, I've read it. Here is the copy for you, if you didn't.
There is clearly written that you can modify the source code, and
redistribute or use it. Just like I said in previus email, that it's
legal to modify the source code, (file name generation) and compile it back.
While it's
read it. Here is the copy for you, if you didn't.
There is clearly written that you can modify the source code, and
redistribute or use it. Just like I said in previus email, that it's
legal to modify the source code, (file name generation) and compile it back.
While it's still true, i don't know
: *** Generated Tomcat Temporary Class File Name Seem Too Long...
Yes ***
Hi Everybody,
Please Help Help Help...
Yes, the class file names generated by Tomcat seem to be too long to be
written on the disk.
In fact I have got this error message:
Context log: path="" Error in jsp service(
9:10 AM
To: [EMAIL PROTECTED]
Subject: Re: *** Generated Tomcat Temporary Class File Name SeemTooLong.
.. Yes ***
John, don't get jumpy. This is not one of your flame wars.
GNU's Not Unix. Apache's not GNU. The Apache Group is not GNU. And the GPL
(Gnu Public License) is not the Apache License
Message-
From: Alex Fernndez [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 9:10 AM
To: [EMAIL PROTECTED]
Subject: Re: *** Generated Tomcat Temporary Class File Name SeemTooLong.
.. Yes ***
John, don't get jumpy. This is not one of your flame wars.
GNU's Not Unix. Apache's
f behavior ?
How can I change the way Tomcat generate the file name ?
Any idea are welcome !!!
Thanks a lot.
Xavier
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
Class File Name Seem Too
Long... Yes ***
Hi Everybody,
Please Help Help Help...
Yes, the class file names generated by Tomcat seem to be too long to be
written on the disk.
In fact I have got this error message:
Context log: path="" Error in jsp service() : Unable to com
Shahed Ali typed the following on 04:41 PM 1/31/2001 -0600
I have a MVC framework in which all jsp pages post
data to a controller servlet.
In this servlet, I need to findout which jsp page invoked it.
Currently I am passing a hidden variable with value="/callingpage.jsp"
...
I want to replace
Sorry for the confusion.
I have a MVC framework in which all jsp pages post
data to a controller servlet.
In this servlet, I need to findout which jsp page invoked it.
Currently I am passing a hidden variable with value="/callingpage.jsp"
i.e in calling.jsp I have the code fragment
Hi there,
I am doing a servlet that presents the output in two flawors. The first
one is a html page, I use a jsp.
The second one is a downloable file which I generate throught a jsp.
Changing the content-type is easy. But I would like to give the file a
download name. I mean, when the
Hello,
Contact this 2 mailto:[EMAIL PROTECTED] He, has done this.
- Original Message -
From: cga [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 18, 2001 10:13 AM
Subject: default file name in download
Hi there,
I am doing a servlet that presents the output
uot;,
"filename=MyFilename.rtf");
...
}
}
Regards,
Tnu
-Original Message-
From: cga [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 6:44 AM
To: [EMAIL PROTECTED]
Subject: default file name in download
Hi there,
I am doing a servlet that presents the
Hi,
I can't seem to get a file of the server if it's name contains spaces. Is
there a work-around for this?
Regards,
Craig May
Enth Dimension
http://www.enthdimension.com.au
Hi,
U must encode the filenames.EncodeUrl etc functions
will support.Pl check
Bye,
Ravi
Dynacom
--- Craig May [EMAIL PROTECTED]
wrote:
Hi,
I can't seem to get a file of the server if it's
name contains spaces. Is
there a work-around for this?
Regards,
Craig May
Enth Dimension
69 matches
Mail list logo