can any one plz tell me how to execute jsp in tomcat .i am unable to execute & how to create war files to deploy

Recommended Answers

All 2 Replies

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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.