2/27/02 10:00:37 PM, Andrew Rodwell <[EMAIL PROTECTED]> wrote:
>Hi,
>I am trying to use a bean in my jsp.
><jsp:useBean id='lineB' scope='page' class='fwLine' type="fwLine" />
>when it is run I get the following.
>org.apache.jasper.JasperException: Unable to compile class for JSP
>An error occurred at line: 9 in the jsp file: /fwView.jsp
>Generated servlet error:
>C:\tomcat\work\localhost\_\fwView$jsp.java:61: Class org.apache.jsp.fwLine
>not found.
fwLine lineB = null;
^
>An error occurred at line: 9 in the jsp file: /fwView.jsp
>Generated servlet error:
>C:\tomcat\work\localhost\_\fwView$jsp.java:64: Class org.apache.jsp.fwLine
>not found.
> lineB= (fwLine)
> ^
>An error occurred at line: 9 in the jsp file: /fwView.jsp
>Generated servlet error:
>C:\tomcat\work\localhost\_\fwView$jsp.java:69: Class org.apache.jsp.fwLine
>not found.
> lineB = (fwLine)
>java.beans.Beans.instantiate(this.getClass().getClassLoader(), "fwLine");
>it seems to expect my bean to be in org.apache.jsp.
>have I missed something on the setup, like in web.xml
I've not tried this ever,
but place your class in a package, and use that package instead.
You should then have:
<jsp:useBean id='lineB' scope='page' class='foo.bar.fwLine' type="fwLine" />
Also, make sure that you keep this package and the class in your app's WEB-INF/classes
folder
>Thank you for any help.
>Andrew
Sriram
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>