File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Import statement problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Import statement problems" Watch "Import statement problems" New topic

Import statement problems

shaf maff
Ranch Hand

Joined: Sep 07, 2008
Posts: 180
Hi Guys
I am trying to compile my action class and it keeps giving me this error:

Here is the code:

shaf maff
Ranch Hand

Joined: Sep 07, 2008
Posts: 180
I have fixed it. I simply need to add each bean in its own line (i.e. bean.bean1; bean.bean2;) etc
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46412
An import statement must have a package name in. import package_name.ClassName; or import package_name.*; or import static package_name.ClassName.*; or import static package_name.ClassName.member;
I agree. Here's the link:
subject: Import statement problems
It's not a secret anymore!