File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Accessing my Servlets/JSP's from home via internet. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Accessing my Servlets/JSP Watch "Accessing my Servlets/JSP New topic
Author

Accessing my Servlets/JSP's from home via internet.

Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Hi guys,
Don't worry, my Apache Tomcat/4.0.6 server is running fine . Well here are some problems.

Problem 1:
I place login.jsp in C:\tomcat4.0\webapps\examples\jsp and called from browser via this URL http://localhost:8001/examples/jsp/login.jsp; login.jsp is opening fine.
Now I create a new folder, MyFolder in C:\tomcat4.0\webapps\examples\jsp and placed login.jsp in
C:\tomcat4.0\webapps\examples\jsp\MyFolder. I called login.jsp from brwoser via this URL: http://localhost:8001/examples/jsp/MyFolder/login.jsp ; got this ERROR on brwoser:

How I can solve problem 1?

Problem 2:
My office network administrator have mapped [i don't know the correct term; he says he has used NAT: Netwrok Address Translation, i.e. translating my privtae IP i.e 192.168.1.8 to internet] my Apache Tomcat/4.0.6 and now I can open login.jsp from my home while Apache Tomcat/4.0.6 is running in my office machine [192.168.1.8]. Now I want to:

1: Start/Stop Apache Tomcat/4.0.6 from my home.
2: Full Rights to my JSP's and Servlets from my home machine so that I can change JSP and Servlets while sitting in home.

Kinldy tell me how I can do this? I am using Win 2000 Advance Server!

Bye,
Viki.


Count the flowers of your garden, NOT the leafs which falls away!
Prepare IBM Exam 340 by joining http://groups.yahoo.com/group/IBM340Exam/
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

question 2:

I haven't used it to do so, but the Tomcat manager application can be used to upload a new WAR file. That is how you'd get new JSP's/Servlets. You can also reload an application, but i'm fairly certain there's no way to restart tomcat from within any tomcat web GUI. For stopping/starting, you accomplish this through a script or through a service, both of which require you to be able to perform OS-specific operations on your box at work. For this I'd use VNC.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing my Servlets/JSP's from home via internet.