This is probably dumb, but . . .
I am trying to re-do a "model 1" JSP app to do at least minimal
separation between presentation and scriptlets.
So, I extracted all the java from my JSP and put it into a java class.
Since the work I want to do in the class (doing a parameterized
retrieval into an LDAP directory) depends on lots of values I get from
the jsp request object, I thought I'd pass that object to the class from
within the JSP, like:
<% myjavaclass w = new myjavaclass(request); %>
Problem: I get an Illegalstateexception from the JSP compiler, saying
the "response is already committed."
OK, that sounds like the issues discused with the JSP Forward
directive: can't forward once you start outputting the response object
from a JSP.
So, am I in a blind alley here? Can I not send the request object off
to a java class?
I suppose I could extract all the query parameters I need to pass and
package them into a hashtable, but you recall I was trying to eliminate
scriptlets in the first place . . .
TIA,
Martin
===========================================================================
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