Hi Dave,
I m starting with JSP and i have some difficulties to understand this dispatcher and the setAttribute method... i try this code :
<pre>
<%
String servletUri="/servlet/myServlet";
request.setAttribute(servletUri,"action=admin");
// Get the dispatcher from the page context
RequestDispatcher dispatcher = pageContext.getServletContext().getRequestDispatcher(servletUri) ;
if ( dispatcher == null ) {
throw new Exception ( "Unable to find " + servletUri );
}
dispatcher.include (request, response);
HttpSession session_ = pageContext.getSession();
String returnedValue = (String) session_.getAttribute (servletUri);
out.println(returnedValue);
%>
</pre>
Do you have any ideas ? Is there a better way to include result from a servlet with parameters ?
Thanks
Eric