This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes JSP and the fly likes complete newbie can't set up jsp environment. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "complete newbie can Watch "complete newbie can New topic

complete newbie can't set up jsp environment.

Chris Browne

Joined: Oct 24, 2003
Posts: 3
Hi everyone.
I am pretty new to Java and programming in general. I have managed to set up the sdk and can compile and run standard java programs from the command line using the javac command.
My problem concerns setting up my jsp environment. I have all the required software downloaded, and can access the admin and manager using the localhost 8080 ports. What I need to know is how do I run my own jsp code ?
I have created a basic "helloworld" jsp file but cannot test it, as I have no idea where to save it or how it works with regards to the path variables.
Sorry for such a dumb question, but if someone can help me out I would be very grateful.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63231

Chris, welcome to the Ranch.
I'm going to take a leap and assume that you are using Tomcat. If so, have you checked out the Tomcat forum?
I know that this is the type of question that gets asked there a lot.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Chris Browne

Joined: Oct 24, 2003
Posts: 3
Hi Bear,
yes I am running on Tomcat, windows xp pro. I have looked in the Tomcat forum but still can't seem to figure it all out. I will keep trying though !
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

If you just want to test something real quick, put your hello.jsp file in the TOMCAT\webapps\ROOT\ folder, then access it like http://localhost:8080/hello.jsp.

GenRocket - Experts at Building Test Data
Chris Browne

Joined: Oct 24, 2003
Posts: 3
Yippee !
Thanks you Gregg, your a star, all i needed to do was save my jsp files to the webapps folder, sometimes I tend to make things harder than they actually are ! Thanks a million. I can now destroy my brain actually learning jsp !
Have you checked out Aspose?
subject: complete newbie can't set up jsp environment.
It's not a secret anymore!