• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't compile result.jsp page

 
Ankita Varshney
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any one please help me.....

my jsp code gooes like this..
<% @ page import="java.util.*" %>

<html>
<body>......
.....
.....
</body>
</html>

when i m running the complete application ,it shows error as-----

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 1 in the jsp file: /result.jsp
Syntax error, insert "enum Identifier" to complete EnumHeaderName
1: <% @ page import="java.util.*" %>
2:
3: <html>
4: <body>


An error occurred at line: 1 in the jsp file: /result.jsp
Syntax error, insert "EnumBody" to complete BlockStatement
1: <% @ page import="java.util.*" %>
2:
3: <html>
4: <body>


An error occurred at line: 1 in the jsp file: /result.jsp
page cannot be resolved to a type
1: <% @ page import="java.util.*" %>
2:
3: <html>
4: <body>

please help me out...whr m i wrong???
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two things:

Firstly, please be sure to use UBB code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.

You can go back and change your post to add code tags by clicking the .

And even more importantly:
Originally posted by Ankita Varshney:
whr m i wrong?
Please use real words when posting to the forums. Abbreviations such as "whr" in place of "where" and "m" instead of "am" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As all of the error messages identify line 1 as the culprit, perhaps you should verify that you are using correct syntax?
[ August 03, 2008: Message edited by: Bear Bibeault ]
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ankita Varshney welcome to Javaranch ,
As Bear pointed it out, there is a syntax error just at line 1, now you have to figure it out where

Also take some time to read the ask good questions link below.
 
Shahnawaz Shakil
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
simply remove space between % and @
 
bibi bibi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
simply remove space between % and @

agree!!
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi bibi bibi welcome to Javaranch ,

Your name does not follow the Javaranch naming policy.
Please change it using the My Profile link above.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shahnawaz Shakil and "bibi bibi", when someone is trying to help someone work through a problem on their own, please do not post by just blurting out the answer. It's rude, and it doesn't help the poster as much as finding the problem on their own would. Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"bibi bibi", please check your private messages for an important administrative matter.

Also, please avoid posts that just say "I agree" and add no extra helpful information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic