File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes How to run JSP file in tomcat server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply locked New topic

How to run JSP file in tomcat server

Mr.Satheesh Pandian

Joined: May 30, 2006
Posts: 2
Hi, This is Satheesh.I am new to JSP technology and learning myself.So I need help from you people.I have a simple .jsp file.When I am running this file on tomcat server, where I can place this file?Is there any path setting to run .jsp file?.Please help me to find out the solution.

Thanks .


Satheesh Pandian.J

Satheesh Pandian.J
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

If you want to access it directly, put it under your root.
For example, [TOMCAT]/webapps/myapp/hello.jsp

You can access it via http://localhost:8080/myapp/hello.jsp

[My Blog]
All roads lead to JavaRanch
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

The Tomcat site has a very nice tutorial.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: How to run JSP file in tomcat server
It's not a secret anymore!