"Kowaleski, Michael" wrote:

> the old jhtml definition contained a tag that would allow the developer to
> alter the target servlet's class definition (<java type=class>...</java>) by
> adding other methods to the class without having them being added to the
> service method.  how would this be accomplished in the new jsp standard?
>

<%!

    private void myMethod() {
        ...
    }

%>

The "<%!" thing says put it ouside the service method.  You can also use this
technique to declare instance variables, rather than local variables, in the
generated servlet.

>
> - michael kowaleski
>

Craig McClanahan

===========================================================================
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