Shahed Ali wrote:
> Hi,
>
> Where can I find documentation that acctually explains how the jsp:useBean
> tag works ?
>
The best place to start is the specifications that actually define what JSP
pages and servlets actually do. For example, the discussion of what
<jsp:useBean> actually does is on pages 61-64 of the JavaServer Pages
Specification, version 1.1, available at:
http://java.sun.com/products/jsp/download.html
Because JSPs and servlets are intimately related, you will also want to get the
Servlet Specification, version 2.2, at:
http://java.sun.com/products/servlet/download.html
>
> The Servlet API / JSP api are very complex. The JSP tag refrence does not
> explain
> the scope of the bean.
>
If the specs are too brief for you (which is quite likely -- they are aimed
primarily at developers of servlet containers), there are a growing number of
books available that cover these types of issues in much more depth.
>
> For example I know that if I have a bean residing in the session and I use
> the usebean tag with
> the scope set to session, jsp will check first if the bean lives in the
> session and only then will it
> try to create it.
>
> What about page/ request and application scope ?
>
This particular rule is true for all of the scopes. See the spec reference
above for the details.
> I know that some books explain how all this works, or I can look the
> generated servlet code and
> understand, but what my point is where can I find the docs on the Web ?
> java.sun.com does not seem to have the docs explaning what I am looking for.
>
> Thanks
> Shahed.
>
> PS : I found the answer to my questions by look at the book "Professional
> JSP", but I hoped to
> find them online !!
>
Craig McClanahan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]