RE: How to get catalina_home variable

2003-03-10 Thread Steve Guo
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

Re: How to get catalina_home variable

2003-03-10 Thread Steve Guo
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

Re: web.xml

2003-03-07 Thread Steve Guo
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

Re: New startup

2003-02-27 Thread Steve Guo
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

RE: Manual servlet deployment problems on 4.1.18

2003-02-26 Thread Steve Guo
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

Re: Configure the location of a file to be opened by a java application in Tomcat

2003-02-26 Thread Steve Guo
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

Re: setting the default servlet directory

2003-02-26 Thread Steve Guo
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

Re: Servlet Aliases

2003-02-26 Thread Steve Guo
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

RE: Manual servlet deployment problems on 4.1.18

2003-02-26 Thread Steve Guo
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

RE: running servlet on Tomcat

2003-02-25 Thread Steve Guo
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

RE: Have a jakarta-tomcat version question

2003-02-24 Thread Steve Guo
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

Re: tomcat5.0 build problem

2003-02-24 Thread Steve Guo
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

tomcat5.0 build problem

2003-02-21 Thread Steve Guo
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

RE: How do i get the URL ... ?

2003-02-21 Thread Steve Guo
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-

Re: javax jar

2003-02-21 Thread Steve Guo
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

Re: problem with classpath modification

2003-02-21 Thread Steve Guo
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

Re: tomcat5.0 build problem

2003-02-21 Thread Steve Guo
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

Re: Servlet Mapping...:(

2001-11-17 Thread Steve Guo
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

Re: Beginner Questions

2001-11-17 Thread Steve Guo
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

Re: configuration

2001-11-13 Thread Steve Guo
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

Re: Running Servlets on Tomcat4.0

2001-11-12 Thread Steve Guo
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.