You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nicolas De Loof <ni...@cgey.com> on 2002/04/03 15:09:42 UTC

Don't anderstand jsp:usebean mecanism

On tomcat 3.3.1 I tried the following JSP code:

<jsp:usebean id="logonForm" class="java.lang.String"/>

<%
 Object toto = pageContext.getAttribute("logonForm");
 Object titi = pageContext.getRequest().getAttribute("logonForm");
 Object tutu = pageContext.getSession().getAttribute("logonForm");
%>
<%= toto %>
<%= titi %>
<%= tutu %>

JSP 1.1 spec says this jsp:usebean syntax would instanciate a new bean (here
a simple String). Where is it ?


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Don't anderstand jsp:usebean mecanism :sory, I'm realy stupid

Posted by Nicolas De Loof <ni...@cgey.com>.
Sorry, I found I've to use jsp:useBean (with uppercase "B") !




----- Original Message -----
From: "Nicolas De Loof" <ni...@cgey.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Wednesday, April 03, 2002 3:09 PM
Subject: Don't anderstand jsp:usebean mecanism


> On tomcat 3.3.1 I tried the following JSP code:
>
> <jsp:usebean id="logonForm" class="java.lang.String"/>
>
> <%
>  Object toto = pageContext.getAttribute("logonForm");
>  Object titi = pageContext.getRequest().getAttribute("logonForm");
>  Object tutu = pageContext.getSession().getAttribute("logonForm");
> %>
> <%= toto %>
> <%= titi %>
> <%= tutu %>
>
> JSP 1.1 spec says this jsp:usebean syntax would instanciate a new bean
(here
> a simple String). Where is it ?
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>