Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "complete newbie can Watch "complete newbie can New topic
Author

complete newbie can't set up jsp environment.

Chris Browne
Greenhorn

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.
Thanks
(((az)))
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61106
    
  66

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.
bear


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

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 !
Chris
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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
Greenhorn

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 !
 
jQuery in Action, 2nd edition
 
subject: complete newbie can't set up jsp environment.