wood burning stoves 2.0*
The moose likes JSP and the fly likes JSP error again Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP error again" Watch "JSP error again" New topic
Author

JSP error again

Agnit Chatterjee
Greenhorn

Joined: Mar 04, 2011
Posts: 24
userpass.jsp




UserpassCheck.java





And there are three other html files........

I was getting the correct values in the morning and now this:


init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Compiling 2 source files to C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\classes
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\UserpassCheck_jsp.java:129: 'catch' without 'try'
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\UserpassCheck_jsp.java:129: ')' expected
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\UserpassCheck_jsp.java:129: not a statement
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\UserpassCheck_jsp.java:129: ';' expected
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\UserpassCheck_jsp.java:136: 'finally' without 'try'
} finally {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\UserpassCheck_jsp.java:35: 'try' without 'catch' or 'finally'
try {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\UserpassCheck_jsp.java:140: reached end of file while parsing
}
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\userpass_jsp.java:129: 'catch' without 'try'
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\userpass_jsp.java:129: ')' expected
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\userpass_jsp.java:129: not a statement
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\userpass_jsp.java:129: ';' expected
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\userpass_jsp.java:136: 'finally' without 'try'
} finally {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\userpass_jsp.java:35: 'try' without 'catch' or 'finally'
try {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\userpass_jsp.java:140: reached end of file while parsing
}
14 errors
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\nbproject\build-impl.xml:589: The following error occurred while executing this line:
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\nbproject\build-impl.xml:285: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61764
    
  67

As has been said many times, the 1st step to solving all such problems is to stop writing JSP like it's 2001 and to move Java code into a Java class where it belongs.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Aniruddh Joshi
Ranch Hand

Joined: Jul 29, 2008
Posts: 275

You can go to the generated servlet ( present in the work directory of tomcat installation ) and find out what is written on those lines.

Since its your code, you'll find the error quickly. This seems to be something with basic syntax.

You can even open the generated servlet in netBeans as a java Class, and it will assist you in fixing those missing parenthesis' and braces.

But best of all, try to visually find those errors in the JSP.
Better still, follow what Bear said.


Anrd
"One of the best things you could do is to simplify a larger application into a smaller one by reducing its process and complexity - Fowler"
sudhir nim
Ranch Hand

Joined: Aug 29, 2007
Posts: 212

From the error, it seems that you have a jsp with name UserpassCheck also, and the error seems to be related to that. can you confirm this


[Servlet tutorial] [Servlet 3.0 Cook Book]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP error again