Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 5th, 2005, 05:57 PM
Authorized User
 
Join Date: Mar 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default tomcat, jsp, java classes

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 which 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: http://localhost:8080/

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.

 
Old March 6th, 2005, 06:37 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can put HTML and JSP files together in the root directory of your site, as you would normal html. You put classes in \WEB-INF\classes\yourPackage

where yourPackage is a package of Java Classes, to reference classes/beans from JSP they need to be in a package.

 
Old February 21st, 2009, 04:44 AM
Authorized User
 
Join Date: May 2007
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default

classes with package or without package ?
__________________
http://studyjava.org/forums/
 
Old April 2nd, 2009, 07:30 AM
Registered User
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Complete directory structure

jakarta-tomcat-5.0.27
webapps
WebApp001
index.html
WebApp001.jsp
WEB-INF
web.xml
classes
demopackage
WebApp001.class


you can get help from this link:

http://www.developer.com/java/web/ar...amed_WebApp001





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed regarding Java classes sadz123 Java Basics 2 February 11th, 2009 08:49 AM
jsp/java tomcat and mysql harshika JSP Basics 1 August 8th, 2005 03:01 PM
Java classes spudgun2005 J2EE 2 June 21st, 2005 03:24 AM
Using Java Classes from C# gettipu General .NET 0 February 7th, 2005 06:59 PM
Compile Java classes to EXE vb_programmer Java GUI 7 December 14th, 2004 08:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.