• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can't compile result.jsp page

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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???
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
simply remove space between % and @
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
simply remove space between % and @

agree!!
 
Amit Ghorpade
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Could you hold this puppy for a sec? I need to adjust this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic