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


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

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

  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!

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center