"Data the JSP needs is in special request attributes" refers to information
stored using ServletRequest.setAttribute(String key Object value) right?
So, your using the following coding pattern?
// In your Servlet
BusinessResult x = BusinessObject.doBusinessMethod();
request.setAttribute("X", x);
// In your JSP
Your acccount balance is <%=request.getAttribute("X") %>
This style helps promote the separation between the business logic being
contained in the Servlet with the idea being the Servlet is responsible
(either directly or by delagating to other java classes) for making business
results avaiable to the JSP by calling setAttribute(), whereas the JSP is
only responsible for displaying what the Servlet puts there via
getAttribute().
Tomcat is failing because of the above coding style? If so, you might want
to check for a patch from Apache.
"JSP is making no calls to retreive form variables" refers to not using
ServletRequest.getParameter(String key)?
Using getParameter in your destination Servlet or JSP wouldn't allow you to
read the original query string or post data sent in the request.
You could add query string parameters back into the request by doing the
following:
String path = "/ThankYouPage.jsp?productID=12";
RequestDispatcher rd = getServletContext().getRequestDispatcher(path);
rd.forward(request, response);
"The first time a servlet opens the input stream and reads the POST data,
all subsequent servlets and JSPs are screwed."
Once you've completely read from a java.io.InputStream, it's empty. But,
the data should have been made avaiable to the original Servlet via
ServletRequest.getParameter(), getHeader(), etc. The original servlet could
then execute all the necessary business logic and delagate to the JSP using
ServletRequest.setAttribute(). The setAttribute() method can be seen as
being implemented in the ServletRequest as using a hashtable/hashmap and is
independent from the original input stream.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html