masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
hi
open:
1 tomcat5.5
2.webapps folder
3.in webapps copy "web inf" and "lib" folder make sure that the lib folder contains all jar files reqrd.(asp.,jsp,servlet)
4. make ur own program folder in webapps itself.
and write ur jsp program with .jsp extensio.
then define the class path thru the my comp advace feature
try............. and enjoy
You just provided badly written answer to something that was answered with link to appropriate well written documentation
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
You don't have to "write a classpath" for web apps.
You place any jar you need in the web-apps WEB-INF/lib directory, except JDBC libs may need to be placed in the "shared/lib" directory of tomcat.
Your own classes are to be placed in the WEB-INF/classes directory (with each package being a directory, as normal).
And give your class a package, that is a must. You should never write a class without a package. And classnames should be capitalised (not needed but it is standard, and, from most programmers, expected).
So, now assume you change valid to give it a package of authentication , and change the name from valid to Validator , the servlet-class would then be, of course, authentication.Validator , and that class will be located in WEB-INF/classes/authentication/Validator.class
All of this (except the need for a package and classnames which arebasic java) is explained in the linked to Manual.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494