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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tomcat setup, java, jsp

Status
Not open for further replies.

marianmarian

Programmer
Jan 17, 2003
40
0
0
CA
hi all,

i have installed apache tomcat 5.5. i have 5 different java classes. and i have a postgresql database.

i am not sure how do i set all of these together to get a simple jsp form running. i know that i need a file.html whose form action calls file.jsp; and i know the file.jsp will call one of the java class file that i want it to call.

my problem is where in tomcat do i put all of these files.

i am able to connect to the local host fine:
so where do these files goes in the tomcat directory?

1. all my java class files
2. all my html files
3. all my jsp files

thanks for all your responses.
 
Place the files in the specified directories under the webapps directory in your local Tomcat directory.

1. Class files: \[user]\WEB-INF\classes\[programName]\
2. Html files: \[user]\pages\
3. Jsp files: \[user]\jsp\

The files will then be accesable through [user]/[directory]/[file]

Remember to set the refrences in your code to the applicable address.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top