A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
Web Component Certification (SCWCD/OCPJWCD)
JavaBeans JSP and import
Joined: Apr 30, 2003
Oct 24, 2003 11:56:00
In the SCWCD study kit almost all Javabean examples don't use packaged structure
<%@ page import="AddressBean" %>
But when I use it this way I get the following error:
[javac] Compiling 1 source file [javac] C:\jakarta-tomcat-4.1.27\work\Standalone\localhost\chapter14\this_jsp.java:7: '.' expected [javac] import AddressBean; [javac] ^ [javac] 1 error
It works only when I put it in a package.
So do I missed something in configuration or web.xml?
Thanks in advance
[ October 24, 2003: Message edited by: Alexan Kahkejian ]
Alexan Kahkejian<br />SCJP<br />SCWCD<br /><a href="http://www.javaemployer.com" target="_blank" rel="nofollow">http://www.javaemployer.com</a>
Joined: Oct 24, 2003
Oct 24, 2003 17:26:00
The code was written for
4.0.*. Since Tomcat 4.1, Javabean could only be in a package. Please download the new sample code at,
I agree. Here's the link:
subject: JavaBeans JSP and import
Jasper compile error
What's wrong with my import declaration?
SCWCDExamStudyKit - Somebody Explain this...Please
Compilation error on importing class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014