Careful. My reading of the spec is that JSP 1.0 engines are not required to
accept the <jsp:scriptlet> form of the <% tag. (See the last paragraph of
section 3.1.) This is described as part of the XML format, for which
support is not required. By the same logic, even if they do support XML
format engines need not recognize this tag form in a non-XML format
document.

Because I could be wrong and probably a lot of people are going to make the
assumption you did, I'm copying jsp-comments to invite clarification.

Bob Foster
Symantec Internet Tools  http://www.visualcafe.com/


______________________________ Reply Separator _________________________________
Subject: Re: The importance of processRequest()...
Author:  Scott Ferguson <[EMAIL PROTECTED]> at Internet
Date:    5/5/99 8:16 PM


But you can easily replace the processRequest functionality with the following:

<jsp:useBean id='login' class='com.caucho.login.Login' scope='session'>
  <% login.processRequest() %>
</jsp:useBean>

Or you can use <jsp:scriptlet>login.processRequest()</jsp:scriptlet> if you hate
the special tags.

The old processRequest was a gross hack.  It should remain dead.

Scott Ferguson
Caucho Technology

Eric Lunt wrote:

> I completely agree with John here.  I know that the whole "event processing"
> mechanism (.jsa stuff) is being "figured out" for JSP 1.1, and
processRequest()
> belongs in that family of events, but there are some problems that are
> *much* easier to solve with the processRequest() machinery as it stands
> in JSP 0.92.  The "guarded pages" example John presents is a good one, and
> I have a couple of other beans that require the request to initialize
> their state.  I can get around with with a common include file or scriptlet,
> but it's less than ideal.
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to