Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If the jsp file below is located at

Status
Not open for further replies.

libaax

Technical User
Jul 22, 2003
38
US
If the jsp file below is located at:
e:\tomcat4.1\webapps\rootand userData.class which is not a package is located at:
e:\tomcat4.1\webapps\root\WEB-INF\classes
shouldn't the <jsp:usebean tag work ?
Please see if you can spot the problem...

<code>
<jsp:useBean id=&quot;user&quot; class=&quot;UserData&quot; scope=&quot;session&quot;/>
<jsp:setProperty name=&quot;user&quot; property=&quot;*&quot;/>
<HTML>
<BODY>
<A HREF=&quot;NextPage.jsp&quot;>Continue</A>
</BODY>
</HTML>
</code>
 
At the moment it is failing throwing this exception..and I dont know why...



type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] E:\Tomcat 4.1\work\Standalone\localhost\_\SaveName_jsp.java:41: cannot resolve symbol
[javac] symbol : class UserData
[javac] location: class org.apache.jsp.SaveName_jsp
[javac] UserData user = null;
[javac] ^
[javac] E:\Tomcat 4.1\work\Standalone\localhost\_\SaveName_jsp.java:43: cannot resolve symbol
[javac] symbol : class UserData
[javac] location: class org.apache.jsp.SaveName_jsp
[javac] user = (UserData) pageContext.getAttribute(&quot;user&quot;, PageContext.SESSION_SCOPE);
[javac] ^
[javac] E:\Tomcat 4.1\work\Standalone\localhost\_\SaveName_jsp.java:46: cannot resolve symbol
[javac] symbol : class UserData
[javac] location: class org.apache.jsp.SaveName_jsp
[javac] user = (UserData) java.beans.Beans.instantiate(this.getClass().getClassLoader(), &quot;UserData&quot;);
[javac] ^
[javac] 3 errors

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top