which are the main packages to import while writing a strut app?
maggie joseph
Ranch Hand
Joined: Dec 29, 2009
Posts: 185
posted
0
Hi,
i am a newbie in struts ,was trying to execute a HelloWorld example using struts ,i have copied exactly the same example as it is,but it doent have the classes which are to be imported while executing the application..
i wrote a class
kindly tell me what file am i missing and what do i do to import these files
If you're using an IDE this can be done automatically.
maggie joseph
Ranch Hand
Joined: Dec 29, 2009
Posts: 185
posted
0
i am trying to download struts from apache..
i am having all zip files...shall i download all the files and where should i locate them??
i downloaded Struts 2.1.8.1 release...
I'll repeat my question: are you trying to write a Struts 1 app, or a Struts 2 app? It makes a pretty big difference. Your code is for Struts 1.
maggie joseph
Ranch Hand
Joined: Dec 29, 2009
Posts: 185
posted
0
my problem is resolved i used one jar file for compiling called struts-core-1.3.10.jar and it compiled fine.........
now i have another doubt in the same application..i have written 2 classes one is dependent on another...
first is ....
second is
when i compile both the servlets HelloWorldActionForm.java compiles well but HelloWorldAction gives complier error as follows
HelloWorldAction.java:4: cannot find symbol
symbol : class HelloWorldActionForm
location: package myServlets
import myServlets.HelloWorldActionForm;
^
HelloWorldAction.java:19: cannot find symbol
symbol : class HelloWorldActionForm
location: class myServlets.HelloWorldAction
HelloWorldActionForm helloWorldForm = (HelloWorldActionForm) form;
^
HelloWorldAction.java:19: cannot find symbol
symbol : class HelloWorldActionForm
location: class myServlets.HelloWorldAction
HelloWorldActionForm helloWorldForm = (HelloWorldActionForm) form;
^
3 errors
though i have written line 1..
what is my mistake....kindly reply..