I am new to JSP and Servlet.Also I am not sure whether I have to post these questions here. If not, my appologies....
I am trying to Run one sample from "WILEY - MASTERING JAKARTA STRUTS". I have two class and the source is attached below. LookupForm class is running fine. I am not able to run the LookupAction class. I am always getting the following error
======================= D:\Tomcat\webapps\wileystruts\wiley\LookupAction.java:26: cannot find symbol symbol : class LookupForm location: class wiley.LookupAction LookupForm lookupForm = (LookupForm)form; ^ D:\Tomcat\webapps\wileystruts\wiley\LookupAction.java:26: cannot find symbol symbol : class LookupForm location: class wiley.LookupAction LookupForm lookupForm = (LookupForm)form; ^ 2 errors
The URL isn't going to work because the classes aren't even compiling. It appears the LookupAction is complaining because it can't find LookupForm. Are you sure you're compiling them both together?
I'll move this over to the Struts forum in the meantime...
A good workman is known by his tools.
Biby Thoms
Ranch Hand
Joined: Jan 10, 2006
Posts: 48
posted
0
Thank you.
I am able to complie "LookupForm.java" without any problem(Compiled using Textpad). But I am not able to compile the second java file. Both are residing in the same package.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35249
7
posted
0
What command are you using to compile the files? In which directory (relative to the one you're issuing the compile command in) are they?
then other directory inside wiley for org... D:\TextPad\wiley\org\apache\struts...action,actions...webapp....
I have the similar setup in the webapps...but I am trying to complie the LookupAction.java from Textpad.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35249
7
posted
0
The directory structure looks wrong to me. If the Java files are in package "wiley", then the "org/apache/..." hierarchy should be inside the "textpad" directory, not inside of "wiley".
Textpad is probably not smart enough to figure out how to access other class files. Open a command prompt in the "Textpad" directory, and type "javac wiley/*.java"