you can use context.getRealPath(/) to get the root folder of your web app, then use
relative path to get to other folder.
Raja Sekhar [EMAIL PROTECTED] wrote:Hi Shaipra,
I have done the way you said. I get the output as ..
I think the reason is in catalina.bat its set that way. But some how
Tim is right - I am learning something new too.
Interestingly, System.getProperty('java.home') gives 'c:\j2sdk1.4.1_01\jre' on my PC.
Tim Funk [EMAIL PROTECTED] wrote:System.getProperty(catalina.home) should give
you the CATALINA_HOME
environment variable without doing anything extra
Chapter 5 of 'More servlets and JSP' describes web.xml, you can download from
http://www.moreservlets.com/
Tim Funk [EMAIL PROTECTED] wrote:http://java.sun.com/products/servlet/download.html
Look for Servlet specification 2.3. It describes webapps and web.xml.
-Tim
Jake Robb wrote:
Where
what URL are you using to access the file?
Tim Laly Huffman [EMAIL PROTECTED] wrote:I have Tomcat installed, along with
JDK1.3.1. As far as I know, all
variables are set. When I start up Tomcat, I am able to see the default
index page from Apache. I can maneuver through all pages using port
3. I've tried referring to the servlet using the URI's:
localhost:8080/simple
localhost:8080/servlet/simple
You tried to make it simple, but actually made it complicated.
Your webapp is simple, so you should invoke the servlet by:
localhost:8080/simple/simple
I think you can use context.getRealPath(/) to get root folder of current webapp,
then append your filename/relative path to this path. Never tried, but think it works.
C. L. Chen [EMAIL PROTECTED] wrote:Hi,
I am trying to create a jsp which invokes a Java application connecting to
a database
map to the new folder in conf\servlet.xml.
Context path=/test docBase=yourfolder debug=1 reloadable=true /
Charles A Jordan [EMAIL PROTECTED] wrote:How do I change the
${catalina_home}/webapps to something
like /usr/web/servlets
Thanks
Charles (Allen) Jordan
System Administrator
Your servlet is abc.Hello,
alias is hi
if you type URL /servlet/hi, or /welcomeme.xxx, it will invoke the servlet
web-app
servlet
servlet-namehi/servlet-name
servlet-classabc.Hello/servlet-class
/servlet
servlet-mapping
servlet-namehi/servlet-name
Steve Hole [EMAIL PROTECTED] wrote:
This implies that the element defines the name of the
web application?
-- what do you mean? the webapp is defined by the name of the folder (test)
So what does the web.xml look like for the above? Something like:
servlet
I do not fully understand why they disable the servlet invoker by default. In general,
Tomcat is used for learning purpose. Having to modify web.xml for each webapp seems a
lot of work.
You refered to FAQ, but when I tried to get it from the list server, I got,
FAQ - Frequently asked questions
The link you provided has Running The Tomcat 4.0 Servlet/JSP Container under
Install and Run - Just a little wrinkle on documentation.
Shapira, Yoav [EMAIL PROTECTED] wrote:
Howdy,
Use either the docs on the tomcat site
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html) or the ones
Tim Funk [EMAIL PROTECTED] wrote:There is a good chance CVS is blocked by your
firewall. It was for me.
You can test this by:
telnet cvs.apache.org 2401
If your connection times out - then your blocked by your firewall.
-Tim
Steve Guo wrote:
Actually I am using Ant 1.5.1.Although my company
Hi, this is the first time I tried to build tomcat from source, ran into the following
problems. If you can provide your comment or point me to resource, I would appreciate
it. Thanks. Steve
1. I followed the instructions in BUILDING.TXT, almost exactly - the Xerces2.2.1 I am
using does not
request.getRequestURL() - gives you the string without the host and protocol
request.getRequestURI() - gives you the whole and complete string, but excluding
parameters.
Raible, Matt [EMAIL PROTECTED] wrote:request.getRequestURL() if you're using
Servlet 2.3.
-Original Message-
I use the api doc in the SUN.COM j2ee download.
Jacques Capesius [EMAIL PROTECTED] wrote:Hi folks,
I have a somewhat bizarre question: do you know which of the tomcat jars
contains the javax.* classes?
The reason I ask is that I'm trying to get a JSP page that imports
javax.xml.parsers.* and a
U must be using UNIX, although I have no experience with UNIX, but let me throw out my
thoughts at it. I use Tomcat 4.1.18 under Win200, no problem.
In general I do not modify .sh or.bat file, when I need to put something .jar into the
classpath of many webapps, I just do it using system
download
ant checkout
ant dist
Filip
-Original Message-
From: Steve Guo [mailto:[EMAIL PROTECTED]
Sent: Friday, February 21, 2003 1:54 PM
To: tomcatuser
Subject: tomcat5.0 build problem
Hi, this is the first time I tried to build tomcat from source, ran into the
following problems. If you can
I assume you are using Tomcat (4.0?).
1. Does servlet in the webapps\examples folder work?
2. If so, is your servlet in the
examples\web-inf\classes folder? if so, you need to
invoke it by:
http://localhost:8080/examples/servlet/ActionServlet
3. You may also want to try to put it to
1. Apache and Tomcat: no idea
2. aliases are set in web-inf\classes\web.xml (I do
not know how yet), all the servlet class files need to
be in examples\web-inf\classes, or
root\web-inf\classes, you need to modify
conf\server.xml if you have other folders under
webapps\
3.html and jsp files can be
I think catalina_home should not be set to
value=c:\jakarta-tomcat=4.0\bin\startup
as you said,
it should be the tomcat root folder such as
c:\jarkata-tomcat-4.0, or whatever you call it
Steve
--- Madock Chiwenda [EMAIL PROTECTED] wrote:
Use MS-DOS shell console to run the tomcat startup
I have been running servlets without modifying the
web.xml file on win nt.
--- LIM TIENAIK [EMAIL PROTECTED] wrote:
Can anyone give me some guidelines on how to run
the servlets on tomcat. I
just can't figure out how the web.xml works.
21 matches
Mail list logo