Herzog Bernhard wrote:
>
> Hi,
>
> I want to include a 3rd part servlet into my JSP
> page. But it looks like the <servlet>-tag is not
> recognized.
>
> At first I had the idea to use <iframe>:
> <iframe src="/servlets/...?<%= parameters %>">
> </iframe>
>
> But the parameter list can get very large
> and I think GET has a limit. Therefore this is not
> a good idea.
>
> Then I had the idea to use the RequestDispatcher.
> But how do I pass parameters to the servlet (
> RequestDispatcher.include(request, response)). I
> would have to create my own HttpServletRequest-
> Class which has a setParameter-function. But this
> is much work (HttpServletRequest has many methods).
>
> Does anyone have a better idea? There must be a
> way to do this real simple.

The replacement for <servlet> in JSP is <jsp:include>. In a JSP 1.0
container you must pass parameters as a query string (I believe), but
in a JSP 1.1 container you can use nested <jsp:param> elements.
See the JSP specs for details.

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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