DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   JSP (http://www.daniweb.com/forums/forum24.html)
-   -   execute jsp in tomcat (http://www.daniweb.com/forums/thread69955.html)

aruna_k_2006 Feb 14th, 2007 2:03 am
execute jsp in tomcat
 
can any one plz tell me how to execute jsp in tomcat .i am unable to execute & how to create war files to deploy

vasudha k Feb 14th, 2007 2:34 am
Re: execute jsp in tomcat
 
hi Aruna.....
you need not create any war files to execute jsp pages.
1.first save all you filesin your folder with .jsp extension
2.start tomcat
3.type http://localhost:8080 in the browser
4. select your folder from the directory listings
5. select your file name..... i.e if it is a login page, click on it

if your jsp page is displayed ..... it is successfully executed without any errors.
If any errors are displayed, correct them and again log on to the localhost via browser

the speciality of jsp is that it creates the servletpage . you need not write any xml code.

jwenting Feb 14th, 2007 4:44 pm
Re: execute jsp in tomcat
 
you do however need to deploy them as part of a valid web application which DOES require at least a basic web.xml and the correct directory structure.
Tomcat comes with quite good documentation and examples.


All times are GMT -4. The time now is 11:27 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC