Not knowing how it's set up now, or how you're compiling, or your directory structure, or anything else, it's hard to know how to fix it. In any case, it isn't a Struts issue, it's a compilation/classpath issue.
shaf maff
Ranch Hand
Joined: Sep 07, 2008
Posts: 180
posted
0
Well thats the thing, I have another project on the same server which isnt using struts and it works perfectly fine using the exact same method. I dont know what possibly could be wrong, unless I need to specify something in the struts.xml file.
Except that it's not complaining about anything related to Struts: it's complaining that it can't find *your* package.
shaf maff
Ranch Hand
Joined: Sep 07, 2008
Posts: 180
posted
0
I know - That is why I am baffled. The bean is located in classes/beans/testBean.java - It is set as package beans;
So if I want to include it in my action class then I would use import beans.*; or import beans.testBean; none of which work. Like I said I have the exact some bean setup with my other projects and they work perfectly fine.
It's not complaining when you compile the bean class. It's complaining when you compile the *action* class. It'd be more helpful to tell me about *that*, although I'm not convinced the Struts forum is the best place for basic Java compilation issues.