> Hi all,
> when i use like this it works fine..
> <jsp:include page="Test.jsp" fluch="true"/>
> but when i use TestServlet.java in place of Test.jsp, it is not
> working....

Since you use .java it is possible you are "missing everything". You
have to compile the Java sourcefile into a class file which goes into
your WEB-INF\classes dir. Also map the servlet in your web.xml
(By the way: Tomcat is not easy to get started with)

> (dont say go use JSP..bcoz..I need to connect to DB and do some
> processing..thats why i         dont want to use JSPs...i want go for
> Servlets...

Actually you CAN do DB inside the JSP, thought it is definitley not
recommende. Maybe you should go for a Bean instead.

If this was new to you, try reading some tutorials on the web first.
A little about using Beans in JSP:
http://www.jspinsider.com/tutorials/jsp/Ray/JSPB_11.view
http://java.sun.com/j2ee/tutorial/doc/JSPBeans.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to