Skip to main content

Tomcat and web applications

2 replies [Last post]
Joined: 2007-02-21

I'm new to Tomcat, I installed and configured Tomcat on my desktop and placed a web appliction in Tomcat's webapps directory. I wrote a serlvet and got it to compile via the command. How can I pass the results of the servlet to a jsp.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-13

You can store the servlet results in Page Context/Session/Context of the servlet.
Then you JSP will be able pick those results and display.
Make Sure you have configured you web application to use this Servlet & JSP.

Joined: 2007-04-15

hai...ok. now u will get one class file. put that class file inside ur webapps/yourappname/WEB-INF/classes. And configure web.xml under WEB-INF. in the web.xml , write element and and . then, give in the . now put ur url in the browser. and it will get the output of servlet class. this may help ur. how about???