You could try replacing the usebean tag with a scriptlet and see what that
does...
<%
  FormBean Bean=new FormBean();
%>
You would also need an import tag before this to import your package. I
forget that syntax but you can look it up.


Another suggestion... use the jspc compiler to generate an actual java
source file from the jsp, then read that source.

hth



                                                                                       
                                 
                      "eric"                                                           
                                 
                      <edahnke@earthli         To:      "Tomcat Users List" 
<[EMAIL PROTECTED]>            
                      nk.net>                  cc:                                     
                                 
                                               Subject: Re: Cannot use bean from jsp, 
but servlet ok. I'm dying!        
                      07/11/2002 12:55                                                 
                                 
                      PM                                                               
                                 
                      Please respond                                                   
                                 
                      to "Tomcat Users                                                 
                                 
                      List"                                                            
                                 
                                                                                       
                                 
                                                                                       
                                 




Thank you much. I've tried all your suggestions. The problem still
persists.

How does the TC4 jsp know to find my classes/packages at
webapps\project\WEB-INF\classes? It just knows I suppose, but it seems that
this is the problem judging from the error message. The class is there. It
compiles. And I can use this class from a servlet. Just not from JSP pages.

Generated servlet error:
C:\jwsdp-1_0\work\Standard
Engine\localhost\messagesmith\en\users$jsp.java:110: Undefined variable or
class name: Bean
        out.print( Bean.getUserName() );


Regards - Eric

----- Original Message -----
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, July 11, 2002 1:07 PM
Subject: Re: Cannot use bean from jsp, but servlet ok. I'm dying!


> Ah - good eyes.  That's probably the problem.
>
> [EMAIL PROTECTED] wrote:
>
> >seems like a name conflict - both the class and the variable are named
> >FormBean.  i would suggest using
> >  id="myFormBean"
> >and
> >  <%=myFormBean.getUserName()%>
> >
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>






--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to