Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP Status 500 - Unable to compile class for JSP

 
Pranit Sonawane
Ranch Hand
Posts: 172
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi below is my code and this exception was thrown in another page so I created a new page and only imported just a single package still its throwing an exception? Any reasons why?



 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you importing classes into a JSP in the first place? You aren't putting Java code in a JSP, are you? :shock: If so, that's a practice that's been obsolete for 14 years!

P.S. Do you need that semi-colon?
 
Pranit Sonawane
Ranch Hand
Posts: 172
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. Do you need that semi-colon?


Sorry a silly mistake I made. I removed semi colon and it worked.! Thanks a ton for your reply sir! Cheers!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But really, if you are using Java scriptlets in a JSP you are writing code that is 14 years obsolete. Consider updating your JSP knowledge.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!