Alexey,
Are you outputting anything in your JSP file?  If not, you could forward
the request to the servlet using the servlet context
getRequestDispatcher.forward() method.  Otherwise, you should redesign your
servlet / JSP page to do the calclulation in a JavaBean or some other
helper class.  You can't just call a servlet from the middle of a JSP page
if you have sent some output to the browser because the servlet response is
going to be a complete HTML page, not just the result of the calculation.

-Richard

At 01:45 PM 9/20/01 +0200, you wrote:
>Hey guys,
>
>how do I access the servlet from the jsp page? What's the syntax? My servlet
>performs the calculation and I need to show the results on the JSP page.
>Thank much
>
>A.
>
>===========================================================================
>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

===========================================================================
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