I have a JSP with the following lines of code:

<jsp:useBean id="layout" class=foo.bar.Layout" scope="session">
         <%
                 File someFile = new File("some/path");
                 layout.loadFile(someFile);
         %>
</jsp:useBean>

The objective is pretty simple.  When a user loads the JSP, if the bean is 
not already in the session context, it is created and then the code in the 
body of the useBean tag is execute.  The problem is that this doesn't 
work.  The JSP simply spits out the body of the useBean tag as HTML, though 
according to the log messages it does actually create a new bean.  I am 
currently using Tomcat 3.2.1 embedded in Netscape Enterprise Server.  Has 
anyone else run into this, is this is a bug, or does any one have any info 
on this?  Thanks.

Chad La Joie                           "Only a man who can not conquer
IT Specialist                             his deficiencies feels the need to
IS&C - WARD                             convince the world he has none"


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to