DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2004
    Posts
    16

    'class' or 'interface' expected error meesage on jsp

    Hi,

    When loading a page I get the error message below. I know the errors refers to the servlet.jar and I've checked the contents of the jar files and the package is defintely correct and the classes are there. Can anyone explain what else can cause this error??

    ERROR MESSAGE:

    500 Internal Server Error
    Error parsing JSP page /lcr/Page1.jsp

    Syntax error in source/lcr/Page1.jsp.java:8: 'class' or 'interface' expected
    import javax.servlet.*;
    ^
    /lcr/Page1.jsp.java:9: 'class' or 'interface' expected
    import javax.servlet.http.*;
    ^
    /lcr/Page1.jsp.java:10: 'class' or 'interface' expected
    import javax.servlet.jsp.*;
    ^
    /lcr/Page1.jsp.java:11: 'class' or 'interface' expected
    import javax.servlet.jsp.tagext.*;
    ^
    4 errors

  2. #2
    Join Date
    Dec 2004
    Location
    france
    Posts
    35
    "}"
    in jsp.java file
    good luck
    Compil and run!

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