Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSP Where do I put the class file?

Status
Not open for further replies.

AlexGreco

Programmer
Jan 27, 2003
12
IT
I am new to JSP. I have made a tiny Hello World program with JSP that calls a class file. I would like to know where to put the class file so that it can be called by the JSP code.

I am using the Oracle 9iAS server but if someone can tell me how to do it with another server that will be fine. I just want to learn JSP.

Please help!
 
well, for me, I am using Tomcat as the server. I put all my class files under the default tomcat directory, which is e.g
C:\tomcat\webapps\root\web-inf\classes

 
Thank you, I will try that but my Tomcat server doesnt seem to work. When I connect to I get page not found. I am not sure where to start. I have started the server and my Tomcat dir is

C:\Program Files\Apache Group\Tomcat 4.1

I don't understand what is wrong. Please help
 
Please tell me the directory name where you have installed the server and the all the directory names on the first level just below root directory.

I think I can help you

 
I installed the server in

C:\Program Files\Apache Group\Tomcat 4.1


Please help, thanks!
 
The directories under Tomcat4.1 are:

bin
+common
conf
+jtc-src
logs
+server
+shared
+src
temp
+webapps
work
 
In the webapps folder, create a new folder (lets say you call it 'test'). Then you put your programs into there. Then to view it you go to
Once you get started into more development. I would look at getting the "proper" layout for the folder structor. iSeriesCodePoet
IBM iSeries (AS/400) Programmer
[pc2]
 
What is the "proper" layout for the folder structor?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top