aspose file tools*
The moose likes JSP and the fly likes Can't compile result.jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Can Watch "Can New topic
Author

Can't compile result.jsp page

Ankita Varshney
Greenhorn

Joined: Aug 03, 2008
Posts: 1
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

Joined: Jan 10, 2002
Posts: 61216
    
  66

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61216
    
  66

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

Joined: Jun 06, 2007
Posts: 2716
    
    6

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.


SCJP, SCWCD.
|Asking Good Questions|
Shahnawaz Shakil
Ranch Hand

Joined: Aug 04, 2008
Posts: 57
simply remove space between % and @
bibi bibi
Greenhorn

Joined: Aug 04, 2008
Posts: 2
simply remove space between % and @

agree!!
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

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

Joined: Jan 10, 2002
Posts: 61216
    
  66

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

Joined: Jan 10, 2002
Posts: 61216
    
  66

"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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can't compile result.jsp page