Or you could let go of the idea of file paths and use a URL from the
ServletContext.getResource() or the corresponding InputStream from
ServletContext.getResourceAsStream(). This also allows you to package the .xsl
up in a .war file without breaking.
-Original Message-
From: Mark Pet
You can put the path in an in the application's web.xml. Then
retrieve it at runtime in your servlet.init() method using
getInitParameter("path").
On 5/15/06, Calvin Deiterich <[EMAIL PROTECTED]> wrote:
I need to place a file(.xsl) in with a tomcat servlet application and
I do not want to har
I need to place a file(.xsl) in with a tomcat servlet application and
I do not want to hard-code the path into the java code. I want the
file to be in the \webapps\\WebContent\xml\xslt\ path.
What is the best way to handle this.
Thanks
Calvin
--
http://mywebpages.comcast.net/tnczoo/
-
"If a
In that case there would be no xml file as you have to put the context
element under the host element in the server.xml.
There is only two ways I know to define the default application
(www.eshipper.com/):
Use ROOT.war as the package name. (Or manually deploy it to a folder called
ROOT and use
So what would my context.xml look like if I did not want to name my app
ROOT.war.
Say I want to name my app under rizapps something like myapplication.war
...what would the settings be for docbase and path in this case? i.e
there would be no ROOT application under rizapps.
Thanks again! :)
Are you wanting to start a servlet or load a class?
You can load a servlet at the application level.
load-on-startup in the servlet class element in the web.xml of the app.
Scored
srm.Scored
1
The number indicates the order that the servlet is loaded.
As for a class you will
URL pattern matching is VERY limited in J2EE standard, it is basically
either prefix matching like
/something/*
or suffix matching like
*.jsp
Patterns like /something/*.jsp are not supported
Dean Searle wrote:
Konstantin,
Thank you very much for replying so quickly.
Is there any way around t
Hi,
I'm trying to run a class in startup of Tomcat. I think that this was
possible in others versions of Tomcat (I just started with Tomcat 5). I
think that it was a property in someone element of server.xml that allowed
this.
Anyone can help me? I hope that yes ;) tx
See ServletContextListener: http://java.sun.com/j2ee/1.4/docs/api/index.html
Tim
-Original Message-
From: kjr_23 [mailto:[EMAIL PROTECTED]
Sent: Monday, May 15, 2006 4:46 PM
To: users@tomcat.apache.org
Subject: Java class as a Tomcat Service
I have a java service which implements Start
Konstantin,
Thank you very much for replying so quickly.
Is there any way around that? I've tried changing the from /* to
/*.jsp but I get 'Invalid /*.jsp in security constraint' in my
catalina log file. I've tried looking for resources to explain the
usage, but have not found much that hel
I have a java service which implements Start() Run() Stop() methods that I
want started everytime Tomcat starts. This class is part of a Tomcat
Webapp. Seems simple but how do I accomplish this? I am using 5.5.17 jdk
1.5.06
KR
--
View this message in context:
http://www.nabble.com/Java-class-
On Mon, 15 May 2006 11:19:42 -0400
MOURANI Gerhard <[EMAIL PROTECTED]> wrote:
>
> > did you verify apxs is in the folder you have specified
> Yes, it's into -> /home/svc_web/webserver/bin/apxs where I've
> compiled and installed Apache.
>
> Gerhard,
>
> -Original Message-
> From: Rick
Ok, I found the problem for those who could be in the same situation.
Problem was that build and include directories have been removed once apache
was installed under -> /home/svc_web/webserver directory. Therefore I've
recompiled Apache and keeped the build and include directory, then
recompiled j
> did you verify apxs is in the folder you have specified
Yes, it's into -> /home/svc_web/webserver/bin/apxs where I've compiled and
installed Apache.
Gerhard,
-Original Message-
From: Rick G [mailto:[EMAIL PROTECTED]
Sent: May 15, 2006 11:15 AM
To: 'Tomcat Users List'
Subject: RE: You
Well, did you verify apxs is in the folder you have specified, apxs is
installed with the httpd-devel package/rpm.
-Original Message-
From: MOURANI Gerhard [mailto:[EMAIL PROTECTED]
Posted At: Monday, May 15, 2006 8:10 AM
Posted To: Tomcat Dev
Conversation: You must specify a valid --wi
Dear All,
I'm trying to install jakarta-tomcat-connectors version 1.2.15 on RH
Enterprise Linux 4 where my apxs is located under ->
/home/svc_web/webserver/bin/apxs and I'me getting the following error
message durring compile time:
need to check for Perl first, apxs depends on it...
checking fo
Hi,
I wrote a web-app which runs on Tomcat. I have to hold a value from a
web-app which runs on Weblogic Webcontainer. I use the following jndi to
connect the weblogic:
...
try
{
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jn
thank you for the replies. but, to learn the whole system properly, i found an
application and to deploy it i need directory structure of "jsp examples" link
(http://localhost:8080/jsp-examples/). when i click on the link i want it to
run successfully. it mustn't be so hard to find it for me.
Ursprungligt meddelande
Från: [EMAIL PROTECTED]
Datum: May 15, 2006 2:11:16 PM
Till: users@tomcat.apache.org
Ärende: jsp-examples!!
I need help. i have just downloaded tomcat 5.5, but there was no jsp-
examples directory in it under webapps. I am a new bee and i want to
test my app. ser
I need help. i have just downloaded tomcat 5.5, but there was no jsp-examples
directory in it under webapps. I am a new bee and i want to test my app.
server. How can i add jsp-examples and servlets examples to my installation.
-
Yahoo! Messenger
Am Montag, den 15.05.2006, 11:56 +0200 schrieb Aust, Christian:
> is it possible to set values in server.xml to something referencing a
> variable? Like in ANT build files, where I could do
>
>
Yes. At least Java properties will be replaced with their value. For
example you could use something
Hi Experts, I have problem with my apache tomcat, the detail of the problem is s below. I have a box with Business Objects 6.5.1 installed with Apache 2.0,Apache tomcat version 5.0.28 and Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01). There is freqent problem with Tomcat. I
Hi,
is it possible to set values in server.xml to something referencing a variable?
Like in ANT build files, where I could do
Kind regards,
Christian Aust
This email has been scanned for all viruses by the MessageLabs S
23 matches
Mail list logo