DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2006
    Posts
    1

    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

  2. #2
    Join Date
    Aug 2006
    Posts
    1

    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

  1. Objects disposed incorrectly
    By Osiris43 in forum .NET
    Replies: 1
    Last Post: 08-04-2006, 12:15 PM
  2. JDOM Classpath Help Required
    By kpandya in forum Java
    Replies: 5
    Last Post: 01-15-2006, 07:10 PM
  3. Help with class/applet
    By none_none in forum Java
    Replies: 17
    Last Post: 04-28-2005, 03:00 PM
  4. Replies: 5
    Last Post: 10-17-2002, 01:58 PM
  5. Assembly class
    By Shailesh C.Rathod in forum .NET
    Replies: 2
    Last Post: 03-13-2002, 07:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links