Rob Fahey wrote:

> public void processRequest(HttpServletRequest request) {
>  ... do stuff ...
> }
>

An early version of the JSP specification (I believe it was version 0.92) required
support for calling this method if your bean defined it; however, this has been
removed in the 1.0 and 1.1 specifications, so correct behavior depends on which
version of the JSP specification your server supports.  What you can do is call it
yourself in a scriptlet:

    <jsp:useBean id="registerbean" scope="session"
     class="AMCreg.register"/>
    <%
        registerbean.processRequest(request);
    %>

Also, in a 1.1-compatible JSP system, you can write a custom tag version of the
<jsp:useBean> tag, and make it perform this call if the bean has such a method
defined (you will need to use Java's reflection API to determine this).  There is
an example of just such a custom tag in the JSP 1.1 specification, available at
JavaSoft <http://java.sun.com/products/jsp/download.html>.

> Ja,
> Rob
>

Craig

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to