Hi All,
I have the configuration like below
User---Apache ( mod_ssl)---Apache (mod_ssl)---Weblogic Server
I want to redirect the request sent to one apache to other apache which
in turn sends the request to the Weblogic server.
So please help me out on how can I redirect the user request from
From: Rohit Maheshwari [mailto:[EMAIL PROTECTED]
Subject: How can iredirect a request from one apache to other apache.
I have the configuration like below
User---Apache ( mod_ssl)---Apache (mod_ssl)---Weblogic Server
And what does this have to do with Tomcat?
- Chuck
Can anyone help me how can i change the error page http1.1 500 on tomcat
?
Ebru KAYA
error-page
error-code503/error-code
location/errors/503.html/location
/error-page
in web.xml
Ebru KAYA wrote:
Can anyone help me how can i change the error page http1.1 500 on tomcat
?
Ebru KAYA
Just remember to add it after the /welcome-file-list tag.
error-page
error-code503/error-code
location/errors/503.html/location
/error-page
in web.xml
Ebru KAYA wrote:
Can anyone help me how can i change the error page http1.1 500 on tomcat
?
Ebru KAYA
Ivan, Thanks a lot.
Ivan Rodriguez [EMAIL PROTECTED] escribió:
public void execute(HttpServletRequest request, HttpServletResponse
response)
throws IOException, ServletException {
[.]
[When you end the server tasks, ]
String redirectString = request.getContextPath() +
Hi,
I have a jsp page, and when I click a button it puts disable this button and
calls a servlet. This servlet update a table of a database.
I want to enable the button when the servlet has finished. How can I put
enable this button?
Thanks
Hi,
I have a jsp page, and when I click a button it puts disable this button and
calls a servlet. This servlet update a table of a database.
I want to enable the button when the servlet has finished. How can I put
enable this button?
Thanks
you can enable and disable buttons through javascript
- Original Message -
From: password password [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, July 12, 2005 12:18 PM
Subject: how can I put enable a button when a servlet has finished.
Hi,
I have a jsp page
Subject: how can I put enable a button when a servlet has finished.
Hi,
I have a jsp page, and when I click a button it puts disable this button
and calls a servlet. This servlet update a table of a database.
I want to enable the button when the servlet has finished. How can I put
enable
that the servlet has finish in that jsp page?
Eric J. Pastoor [EMAIL PROTECTED] escribió:
you can enable and disable buttons through javascript
- Original Message -
From: password password
To:
Sent: Tuesday, July 12, 2005 12:18 PM
Subject: how can I put enable a button when a servlet has finished
password
To:
Sent: Tuesday, July 12, 2005 12:18 PM
Subject: how can I put enable a button when a servlet has finished.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
public void execute(HttpServletRequest request, HttpServletResponse
response)
throws IOException, ServletException {
[.]
[When you end the server tasks, ]
String redirectString = request.getContextPath() +
/some/path/to/finished.jsp;
I deleted all my project files by misoperation.
Using the FinalDate+GoogleDesktop makes all java and xml files back. But
some jsp ... ;-(
Thanks In Advance
Hi,
My objective for this topic is to find a way to make my tomcat app able
to handle as many as possible concurrent requests.
My app spec is
-servlet running on Tomcat 5.0
My app is a mobile text messaging app that receives requests via a
single servlet, called InboundRequest. This
Hi,
My objective for this topic is to find a way to make my tomcat app able
to handle as many as possible concurrent requests.
My app spec is
-servlet running on Tomcat 5.0
My app is a mobile text messaging app that receives requests via a
single servlet, called InboundRequest.
Hi,
I create a thread using an init servlet, which is loaded on
start-up. This thread listens on port 3030 and does well.
But after changing ip-address,this thread seems dead and no responses
to any incoming connections.
How can i catch the ip-address chenged event so that i can
re
...
-Mensagem original-
De: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 14 de abril de 2005 00:58
Para: Tomcat Users List
Assunto: Re: RES: How can I create a digest password - digest.bat is the
key!
Dejavu
In a properly configured system
Thank you very much!
Regards,
Lorenzo
-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Martes, 12 de Abril de 2005 06:04 p.m.
To: Tomcat Users List
Subject: Re: How can I access a web app only from 443 in Tomcat 5
On 4/12/05, Lorenzo Jiménez [EMAIL PROTECTED
Hi,
I need help to generate encrypted passwords. Using the Tomcat 5's documentation:
C:\java org.apache.catalina.realm.RealmBase -a MD5 mypassd
And this is the error message:
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/catalina/realm/RealmBase
I also checked the
]
Skickat: den 13 april 2005 18:57
Till: Tomcat Users List
Ämne: How can I create a digest password
Prioritet: Hög
Hi,
I need help to generate encrypted passwords. Using the Tomcat 5's
documentation:
C:\java org.apache.catalina.realm.RealmBase -a MD5 mypassd
And this is the error message
the
realmbase class in the Tomcat source and clone the method.
Jerry
-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 11:57 AM
To: Tomcat Users List
Subject: How can I create a digest password
Importance: High
Hi,
I need help to generate
Abril de 2005 11:07 a.m.
To: 'Tomcat Users List'
Subject: [SPAM2] - RE: How can I create a digest password - Found word(s) list
error in the Text body
The problem you are hiting is due to the location of the jar file in the
default tomcat install. You can move the jar file into the lib\common
:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 15:04
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - another error
Prioridade: Alta
Dear Jerry:
Thanks for the advice.
I follow your advice but did not worked. I use this
C:\java -cp C:\Java\Tomcat5.0.28
PROTECTED]
Sent: Miércoles, 13 de Abril de 2005 02:01 p.m.
To: Tomcat Users List
Subject: [SPAM2] - RES: How can I create a digest password - another error -
Found word(s) list error in the Text body
Hi,
I don't know if it's your objective but is it possible to use MD5 to encode
passwords
PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 17:13
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - digest.bat is the key!
Prioridade: Alta
Dear Paulo:
Thanks for your comments.
What we want is to have minimum exposure to hacking.
We found out
Paulo:
Are you using the DBCP JDBC connection pooling
Yes, but how can I tell tomcat the password is encrypted?
Using the realm?
Thanks again,
Lorenzo
-Original Message-
From: Paulo Alvim [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 13 de Abril de 2005 02:59 p.m.
To: Tomcat Users
-feira, 13 de abril de 2005 17:13
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - digest.bat is the key!
Prioridade: Alta
Dear Paulo:
Thanks for your comments.
What we want is to have minimum exposure to hacking.
We found out that, in the context.xml, we can specify
18:02
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - digest.bat is the key!
- Found word(s) list error in the Text body
Prioridade: Alta
Paulo:
Are you using the DBCP JDBC connection pooling
Yes, but how can I tell tomcat the password is encrypted?
Using the realm
PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 18:16
Para: Tomcat Users List
Assunto: Re: RES: How can I create a digest password - digest.bat is the
key!
Paulo,
I am pretty sure this won't work. Tomcat can't calculate the real
password (required by the database) from the hash. The key
issues.
What exactly do you mean by watch clean passwords?
Doug
- Original Message -
From: Paulo Alvim [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 13, 2005 7:00 PM
Subject: RES: RES: How can I create a digest password - digest.bat
Hi,
I am trying to make my webapp to only be available thru port 443 in Tomcat 5.
Can I do it in context.xml or need a further config on server.xml or web.xml?
Thanks a lot!
Lorenzo
-
Si usted no es el destinatario indicado en este
On 4/12/05, Lorenzo Jiménez [EMAIL PROTECTED] wrote:
Hi,
I am trying to make my webapp to only be available thru port 443 in Tomcat 5.
Can I do it in context.xml or need a further config on server.xml or web.xml?
Well you can either disable the non HTTPS connector in your server.xml
all
Is it possible to see the full stack trace of an exception in the browser?
If yes, how can I enable it?
thank you in advance kostas.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: How can I deploy 2 tomcat and work on both of them at the same
ti me?
Hello,
I have tomcat jakarta-tomcat-5.0.19 installed on my machine under /opt
Now, I have installed another tomcat
Hello,
I have tomcat jakarta-tomcat-5.0.19 installed on my machine under /opt
Now, I have installed another tomcat (same version) under another root
directory.
I need to have two versions working at the same time. Under one, I will have
a client web version and under the other one, my test
you should not have problem to run two or more if they
do not use the port. for your test one, you may not
want to use port 80.
cheng
--- Bachler, Elisabeth (Elisabeth)
[EMAIL PROTECTED] wrote:
Hello,
I have tomcat jakarta-tomcat-5.0.19 installed on my
machine under /opt
Now, I have
Hi
I have tomcat jakarta-tomcat-5.0.19 installed on my machine under /opt
Now, I have installed another tomcat (same version) under another root
directory.
I need to have two versions working at the same time. Under one, I will
have a client web version and under the other one, my test version.
wang [mailto:[EMAIL PROTECTED]
Sent: miércoles, 29 de septiembre de 2004 10:08
To: Tomcat Users List
Subject: Re: How can I deploy 2 tomcat and work on both of them at the
same ti me?
you should not have problem to run two or more if they
do not use the port. for your test one, you may not
want
: Steffen Heil [mailto:[EMAIL PROTECTED]
Sent: miercoles, 29 de septiembre de 2004 11:50
To: 'Tomcat Users List'
Subject: AW: How can I deploy 2 tomcat and work on both of them at the
same time?
Hi
I have tomcat jakarta-tomcat-5.0.19 installed on my machine under /opt
Now, I have installed another
'
Subject: AW: How can I deploy 2 tomcat and work on both of them at the
same time?
Hi
I have tomcat jakarta-tomcat-5.0.19 installed on my machine under /opt
Now, I have installed another tomcat (same version) under another root
directory.
I need to have two versions working at the same time
THank you!!! It works for me too!!!
Elisabeth
-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: miercoles, 29 de septiembre de 2004 12:11
To: Tomcat Users List
Subject: RE: How can I deploy 2 tomcat and work on both of them at the
sam e time?
In server.xml:
Server
1. I have to design an application in which the cluster nodes and LB will be
communicating application specific information other than session info. How
can I do this? Do I need to subclass/implement ReplicationTransmitter and
ReplicationListener like classes? Or is there any other way?
2. I am
Can someone please answer my queriees
Regards,
Srinivas
-Original Message-
From: Srinivas Rao Ch [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 2:28 PM
To: Tomcat Users List
Subject: How can I make cluster nodes communicate info other than
session
1. I have to design
of the night, farm the work
out to some freelancer(s) for a worthy hourly rate.
As for your question:
: 1. I have to design an application in which the cluster nodes and LB will be
: communicating application specific information other than session info. How
: can I do this? Do I need to subclass
: RE: How can I make cluster nodes communicate info other than
session
Can someone please answer my queriees
Regards,
Srinivas
-Original Message-
From: Srinivas Rao Ch [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 2:28 PM
To: Tomcat Users List
Subject: How can I make cluster
Mmmm, I think people is answering more than one question ;-)
If you need to be strict with respect to the timings, that is, you need
exactly the number of requests in the past five seconds counting from
the moment your request is done, you will need the solution proposed by
Tim. Just remember
More academic exercise than recommendation, but...
Write your own implementation of a Map/HashMap
specific to java.util.Date objects.
Identify your smallest time increment (5 seconds in your email).
Identify largest time increment (60 seconds)
Create (60/5)+1 buckets for your hash function
I need to display on a .jsp page the number of requests for Tomcat in the past 5 / 10
/ 15/ 30 / 45 / 60 seconds. I've already implement a Filter will count the total
number of requests. I did this with a static int, which is incremented everytime a
request comes in. But what should I do so
You could use a list of java.util.Dates with the oldest date at the beginning
of the list and the newest at the end of the List. Push new Dates onto the
list and pull (expired) dates from the front of the list accoring to your
threshold.
The number of hits per unit time is the size of each
,
then increment each timer by one every time a request comes in. The JSP
would simply read the counter values.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: tom ly [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 10:11 AM
To: [EMAIL PROTECTED]
Subject: How can I
-Original Message-
From: Tonte Pouncil
I normally just use ant to deploy my stuff by dropping a
.war file into the webapps dir.
Which one please?
In {catalina.home}/webapps/xxx.war ?
Or in
{catalina.home}/webapps/appname/xxx.war
I've never yet got a war file
It is {catalina.home}/webapps/xxx.war
[EMAIL PROTECTED] wrote:
-Original Message-
From: Tonte Pouncil
I normally just use ant to deploy my stuff by dropping a
.war file into the webapps dir.
Which one please?
In {catalina.home}/webapps/xxx.war ?
Or in
Jouikov wrote:
Ive asked this question before but nobody seemed to know the answer.
So, Ill ask again
So, Tomcat has a maanger application, which allows you to dynamically
deploy sutff. Nice.
But how can you deploy your stuff onto a SPECIFIC host?
Thx
Thanks Cristian
regards DaveP
-Original Message-
From: Cristian ANCA
It is {catalina.home}/webapps/xxx.war
[EMAIL PROTECTED] wrote:
Which one please?
In {catalina.home}/webapps/xxx.war ?
Or in
Is it possible to programmatically change the Server header?
[...]
Surely there is a way to alter the Server header of an HTTP
response, if only for security reasons. I can't be the only
person who wishes to do this. I would appreciate any
suggestions as to how this can be
The Server header is hardcoded into the Connectors. You can't remove/change
it without a PATCH/recompile to org.apache.coyote.http11.Constants
-Tim
Ian Stevens wrote:
Is it possible to programmatically change the Server header?
[...]
Surely there is a way to alter the Server header of an HTTP
The Server header is hardcoded into the Connectors. You can't
remove/change it without a PATCH/recompile to
org.apache.coyote.http11.Constants
That's certainly what I saw when looking at the source. There's no way
alter it using a javax.servlet.Filter and a
Unless there is a PATCH in bugzilla, then no.
-Tim
Ian Stevens wrote:
The Server header is hardcoded into the Connectors. You can't
remove/change it without a PATCH/recompile to
org.apache.coyote.http11.Constants
That's certainly what I saw when looking at the source. There's no way
alter it
Unless there is a PATCH in bugzilla, then no.
OK. Thanks for your help, Tim.
Ian.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Ive asked this question
before but nobody seemed to know the answer. So, Ill ask again
So, Tomcat has a maanger
application, which allows you to dynamically deploy sutff. Nice.
But how can you deploy your stuff onto a SPECIFIC host?
Thx.
Best Regards,
Ivan V
I normally just use ant to deploy my stuff by dropping a .war file into the webapps
dir.
-Original Message-
From: Ivan Jouikov [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 07, 2004 4:30 PM
To: 'Tomcat Users List'
Subject: AGAIN: How can you deploy an application onto a specific host
]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: AGAIN: How can you deploy an application onto a specific host?
Date: Wed, 7 Jul 2004 14:30:29 -0700
I’ve asked this question before but nobody seemed to know the answer.
So, I’ll ask again…
So, Tomcat has a maanger application, which allows you
: How can you deploy an application onto a specific host?
I've asked this question before but nobody seemed to know the answer.
So, I'll ask again.
So, Tomcat has a maanger application, which allows you to dynamically
deploy sutff. Nice.
But how can you deploy your stuff onto a SPECIFIC host
Ivan,
This depends a lot on your environment.
I am running 3 virtual hosts on this machine. I have used the following
documentation in setting up a manager application for each virtual host.
http://localhost:8080/tomcat-docs/manager-howto.html
In particular, I use the following solution:
Is it possible to programmatically change the Server header?
Barring that, is it possible to set a Server header for a servlet
within its web.xml file? My least preferred method is to change the
Server
header within Tomcat's server.xml file.
I was thinking that a javax.servlet.Filter
I was wandering how can you
count traffic in Tomcat?
One way that I could think
of, is to write a filter, and have it wrap the response output stream, and
count the bytes. But that wont count
the TCP IP headers size Is there any
way to effectively count traffic for a given application
the tomcat distribution includes a manager webapplication which provides
the functionality of
starting, stopping and reloading specific web applications, take a look
at the source code of
this app to figure out how to achive such a behaviour. you may face some
problems when
the webapp tries to
tomcat doesnt know anything about tcp/ip traffic. go for a network
analyzer or something similar.
art
Ivan Jouikov wrote:
I was wandering how can you count traffic in Tomcat?
One way that I could think of, is to write a filter, and have it wrap
the response output stream, and count the bytes
Hi;
I have created an installation Servlet, which
gathers some information from the administrator upon
first startup after installation of my webapp.
Everything is running fine, but at the end the
Servlet should restart/reload the webapplication
in which it is running.
I haven't found any hint how
to setHeader() in Tomcat source, specifically HttpConnector, be
wrapped with Filter objects? or does that only apply to calls within servlet
source? How can I wrap all calls to setHeader()?
thanks,
Ian.
/**
* The javax.servlet.Filter to set HTTP headers to null.
*/
public class HttpRemoveHeaderFilter
I would like to change the value of the Server HTTP header returned by
Tomcat. Calling HttpServletResponse.setHeader( Server, value ) will
either add a second Server header or will do nothing, depending on whether
it is called before or after the HTTP body is written.
Is it possible to
Hi, yeah thanks - have been doing that this morning!
Regards,
Carl
-Original Message-
From: Ivan Jouikov [mailto:[EMAIL PROTECTED]
Sent: 21 June 2004 09:34 PM
To: 'Tomcat Users List'
Subject: RE: AW: How can I add Host without restarting Tomcat?
Look at tomcat's administration tool
restart!
Is this possible?
Thanks!
Carl
-Original Message-
From: Peter Rossbach [mailto:[EMAIL PROTECTED]
Sent: 18 June 2004 12:49 PM
To: Tomcat Users List
Subject: Re: AW: How can I add Host without restarting Tomcat?
Hey,
you can used the admin application.
Tipp:
Add a user
Look at tomcat's administration tool - it can dynamically add hosts. Looks at its
codes. Go from there.
-Original Message-
From: Carl Olivier [mailto:[EMAIL PROTECTED]
Sent: Monday, June 21, 2004 7:00 AM
To: 'Tomcat Users List'
Subject: RE: AW: How can I add Host without restarting
Thank you very much. The listings parameter does exactly what I wanted to
do!
Elisabeth
-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED]
Sent: jueves, 17 de junio de 2004 15:46
To: [EMAIL PROTECTED]
Subject: RE: How can I inhibit web navegation?
Well, you can stop
Nobody knows the answer to subj?
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004
Non way, because it is written in server.xml file.
You'll need to stop the server, I guess
-Ursprüngliche Nachricht-
Von: Ivan Jouikov [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. Juni 2004 11:33
An: 'Tomcat Users List'
Betreff: How can I add Host without restarting Tomcat
Gunnar Pörschke wrote:
Non way, because it is written in server.xml file.
You'll need to stop the server, I guess
Tomcat has a manager application. It can deploy new contexts
(applications) on-the-fly, but I'm not sure about hosts.
Nix.
Hey,
you can used the admin application.
Tipp:
Add a user with admin role at your conf/tomcat-users.xml!
Before you create the new host, create the webapps directory!
After create your new host, copy the Catalina/localhost/manager.xml to
Catalina/newhost/manager.xml and
you have at usefull new
MatrixOne Tech Support eMail incident submission functionality requires specific
subject line. The following subject lines are recognized.
Request for CustomerLink Access
- This will submit a request for new CustomerLink account
Request for CustomerLink Password Reset
- This will
Hello,
I have a web application that runs under jakarta-tomcat-5.0.19. The root of
my application is: /opt/jakarta-tomcat-5.0.19/webapps/provision/ I can
access the application through:
http://135.88.100.251:8080/provision/web/login.jsp
Now, I don't want the user to be able to navigate through
http://jakarta.apache.org/tomcat/faq/misc.html#listing
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 9:35 AM
To: 'Tomcat Users List'
Subject: How can I inhibit web navegation
that helps!
Frank
From: Bachler, Elisabeth (Elisabeth) [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: How can I inhibit web navegation?
Date: Thu, 17 Jun 2004 15:35:14 +0200
Hello,
I have a web application that runs under jakarta
: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 9:35 AM
To: 'Tomcat Users List'
Subject: How can I inhibit web navegation?
Hello,
I have a web application that runs under jakarta-tomcat-5.0.19. The
root of
my application is: /opt/jakarta-tomcat-5.0.19/webapps
Hi,
I need to access a file located in the directory WEB-INF of my web application.
In fact, in WEB-INF/conf.
How can I open this file in one of my servlet ?
Any advise is welcome.
-
To unsubscribe, e-mail: [EMAIL PROTECTED
u can define path variable into web.xml file and u can call this path variable into ur
servlet file.
Deepak
On Wed, 16 Jun 2004 STOCKHOLM,Raymond wrote :
Hi,
I need to access a file located in the directory WEB-INF of my web application.
In fact, in WEB-INF/conf.
How can I open this file
FAQ
http://jakarta.apache.org/tomcat/faq/misc.html#getResourceAsStream
-Tim
STOCKHOLM, Raymond wrote:
Hi,
I need to access a file located in the directory WEB-INF of my web application.
In fact, in WEB-INF/conf.
How can I open this file in one of my servlet
Thanks
-Message d'origine-
De : Tim Funk [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 16 juin 2004 13:24
À : Tomcat Users List
Objet : Re: How can I access a file located in WEB-INF
FAQ
http://jakarta.apache.org/tomcat/faq/misc.html#getResourceAsStream
-Tim
STOCKHOLM, Raymond wrote
filename = children[i];
}
}
Tom Kochanowicz
-Original Message-
From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 2:15 AM
To: Tomcat Users List
Subject: How can I access a file located in WEB-INF
Hi,
I need to access a file located in the directory
List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: How can I access a file located in WEB-INF
Date: Wed, 16 Jun 2004 13:52:42 -0500
File dir = new File(directoryName);
String[] children = dir.list();
if (children == null) {
// Either dir does not exist
: RE: How can I access a file located in WEB-INF
Further, you will probably want to be able to construct the path to
/WEB-
INF
at runtime rather than hardcoding paths... You can do that as follows:
String fullPath = getServletContext().getRealPath(path);
where path is a context-relative path (can
I suppose you could use a getRelativePath()
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 2:15 PM
To: Tomcat Users List
Subject: RE: How can I access a file located in WEB-INF
Hi,
Just remember getRealPath returns null in a packed WAR
Hi,
I suppose you could use a getRelativePath()
Huh?
Yoav
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 2:15 PM
To: Tomcat Users List
Subject: RE: How can I access a file located in WEB-INF
Hi,
Just remember getRealPath returns null
I didn't know that, thanks for the heads-up!
From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: How can I access a file located in WEB-INF
Date: Wed, 16 Jun 2004 15:14:33 -0400
Hi,
Just remember getRealPath
Hi, all
I need some help to set up an context path.
I'm using apache 2.0 ,JK2, tomcat 5.0.24 on Linux.
I made an application and packed into ABC.war.
Then I put the war file into $TOMCAT_HOME\webapps\ directory.
SO, I can access the top JSP with url http://localhost:8080/ABC/top.jsp
This
Informatics
-Original Message-
From: Masashi Nakane [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 09, 2004 2:08 AM
To: [EMAIL PROTECTED]
Subject: How Can I doDefault Context Path
Hi, all
I need some help to set up an context path.
I'm using apache 2.0 ,JK2, tomcat 5.0.24
In a message I said my problem into migrate a application from windows to a
linux server. I think the problem is about the root directory where the
servlets try to find the files. How can I know the dafault route for my
application and how can I modify it?
Thanks
On Wed, May 26, 2004 at 03:21:43PM +0200, Francisco Jos? Arnau Vives wrote:
: In a message I said my problem into migrate a application from windows to a
: linux server. I think the problem is about the root directory where the
: servlets try to find the files. How can I know the dafault route
In a servlet, you can use
getServletContext().getRealPath(/) to get the root of the web's docBase
- Original Message -
From: Francisco José Arnau Vives [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 9:21 PM
Subject: How can I Know the servlet root directory
1 - 100 of 563 matches
Mail list logo