This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Exception Report Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception Report" Watch "Exception Report" New topic
Author

Exception Report

john von
Ranch Hand

Joined: Apr 13, 2004
Posts: 49
What could be the possible reason of the errors below? I made a very simple jsp application that uses struts own html tag library and it prompts me these errors. While, i copied the part of the code that uses struts to another file, it works ok.

thanks for the help.


HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: /my/index.jsp(164,0) Unterminated <html:form> tag
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:170)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:835)

...more error lines
Kedar Dravid
Ranch Hand

Joined: May 28, 2004
Posts: 333
Well, I think as the error says, your <html:form> tag has not been closed properly.
Is there a </html:form> tag in ur JSP page?
john von
Ranch Hand

Joined: Apr 13, 2004
Posts: 49
Yes, there is. What surprises me is, when i copied the lines(code) that has struts part to another file, save it, the file runs perfectly.

Any idea?
Kedar Dravid
Ranch Hand

Joined: May 28, 2004
Posts: 333
Either u have not copied the necessary tag library descriptor(tld) files, or one of your Struts <html> tags has not been closed properly.
Kedar Dravid
Ranch Hand

Joined: May 28, 2004
Posts: 333
Either u have not copied the necessary tag library descriptor(tld) files, or one of your Struts <html> tags has not been closed properly.
john von
Ranch Hand

Joined: Apr 13, 2004
Posts: 49
I've resolved. I stupidly hide jsp lines using html comment tag.

Thanks for the help!
 
jQuery in Action, 2nd edition
 
subject: Exception Report
 
Similar Threads
Tomcat 5 can not find Tag-Libs
struts application deployment in tomcat server
struts application in tomcat server
Declaring function doesn't work
Error while migrating from SUN One to JBOSS