tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "L Rutker" <>
Subject <jsp:useBean /> Scope Bug in 4.01 !
Date Fri, 01 Feb 2002 17:59:34 GMT
The following is a bug I found using Tomcat 4.01 on NT4
The following code:

<% if (request.getParameter("type")!= null && 
request.getParameter("type").equals("user")) { %>
    <jsp:useBean id="user" class="com.rutker.UsrData" scope="request"/>
<% } else if(request.getParameter("type")!= null && 
request.getParameter("type").equals("group")) { %>
    <jsp:useBean id="group" class="com.rutker.GpData" scope="request"/>
<% } %>

should not be visible to the
<jsp:getProperty name="user" property="firstName" />  tag  farther down the 
page because the useBean tag was declared in the if block, yet the 
jsp:getProperty tag can see it and works in Tomcat. I noticed the bug when I 
tried the above code on WL 6.1 on Linux and it didnt work. I think that WL 
has the proper implementation.
Is this the correct mailing list for this post?
Lou R.

Send and receive Hotmail on your mobile device:

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message