-
Struts:Action Class
Hi All,
When the below ActionClass is compiled it produces the following error.
public final class LookupAction extends Action {
protected Double getQuote(String symbol) {......... }
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws IOException,ServletException{
LookupForm lookupForm = (LookupForm) form; //Error occurs here
lookupForm.getxxx();
}
LookupAction.java: cannot resolve symbol
symbol : class LookupForm
location: class StrutsSamples.LookupAction
LookupForm lookupForm = (LookupForm) form;
^
LookupAction.java: cannot resolve symbol
symbol : class LookupForm
location: class StrutsSamples.LookupAction
LookupForm lookupForm = (LookupForm) form;
^
LookupForm is the JavaBean class which has getter and setter methods.When i tried to access that class in LookupAction,it couldnt identify the LookupForm.
I also tried to import the class(LookupForm) along with the package name in LookupAction class.Then too it produces the same error.
Pls.help me out to compile this java file.
Thanks a lot in advance,
Vidhya S
-
re:LookupAction.java: cannot resolve symbol
the answer is here
go to:
http://www.discussjava.com/wforum/index.php
in Struts > re:LookupAction.java: cannot resolve symbol
Similar Threads
-
By Osiris43 in forum .NET
Replies: 1
Last Post: 08-04-2006, 12:15 PM
-
Replies: 5
Last Post: 01-15-2006, 07:10 PM
-
By none_none in forum Java
Replies: 17
Last Post: 04-28-2005, 03:00 PM
-
Replies: 5
Last Post: 10-17-2002, 01:58 PM
-
By Shailesh C.Rathod in forum .NET
Replies: 2
Last Post: 03-13-2002, 07:53 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks