Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 60910 invoked by uid 500); 8 Apr 2001 03:12:33 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 60903 invoked from network); 8 Apr 2001 03:12:33 -0000 Received: from mail.plumcreek.com (206.252.251.220) by h31.sny.collab.net with SMTP; 8 Apr 2001 03:12:33 -0000 Received: from plumcreek-Message_Server by mail.plumcreek.com with Novell_GroupWise; Sat, 07 Apr 2001 21:12:20 -0600 Message-Id: X-Mailer: Novell GroupWise Internet Agent 5.5.4.1 Date: Sat, 07 Apr 2001 21:12:09 -0600 From: "Larry Meadors" To: Subject: Re: Internal Servlet Error Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Where is the class relative to the jsp?=20 Recheck the docs. I'm not 100% sure, but I think it needs to be in the = Web-inf\classes directory under the web app's document root or in your = system's classpath. Larry >>> Nabanita@ccbc.ca 04/07/01 10:45AM >>> Hello, I am using Tomcat 3.2 with Windows 2000. I was trying to implement a jsp tutorial example using HTML forms and beans. The code is as follows. GetName.html = =20 = =20 = =20
= =20 What's your name?
= =20 What's your e-mail address?
= =20 What's your age? = =20

= =20

= =20 = =20 = =20 = =20 UserData.java = =20 public class UserData { = =20 String username; = =20 String email; = =20 int age; = =20 public void setUsername( String value ) = =20 { = =20 username =3D value; = =20 } = =20 public void setEmail( String value ) = =20 { = =20 email =3D value; = =20 } = =20 public void setAge( int value ) = =20 { = =20 age =3D value; = =20 } = =20 public String getUsername() { return username; } = =20 public String getEmail() { return email; } = =20 public int getAge() { return age; } = =20 } = =20 = =20 SaveName.jsp = =20 = =20 = =20 = =20 = =20 Continue = =20 = =20 = =20 = =20 = =20 NextPage.jsp = =20 = =20 = =20 = =20 You entered
= Name: <%=3D user.getUsername() %>
= =20 Email: <%=3D user.getEmail() %>
= =20 Age: <%=3D user.getAge() %>
= =20 = =20 = =20 = =20 Now when I submit the form , I get the following error. Error 500 Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPC: \Tomcat\work\localhost_8080\_0002fjsp_0002fSaveName_0002ejspSaveName_jsp_0.= java:67: Class jsp.UserData not found. UserData user =3D null; ^ C: \Tomcat\work\localhost_8080\_0002fjsp_0002fSaveName_0002ejspSaveName_jsp_0.= java:70: Class jsp.UserData not found. user=3D (UserData) ^ C: \Tomcat\work\localhost_8080\_0002fjsp_0002fSaveName_0002ejspSaveName_jsp_0.= java:75: Class jsp.UserData not found. user =3D (UserData) Beans.instantiate(this.getClass().getClassLoader(), "UserData"); ^ Can anyone help.