Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp errors in syntax

 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was working on a cattle drive assignment, and in the process of changing a line of code from a scriptet to an expression, I forgot to take out the ; which then caused the page to show the jsp syntax error message instead of the page. I corrected the copy of the jsp in orion, without restarting, and was a little surprised to see the page display because I was thinking I would have to recompile the original code, since calling the jsp creates a servlet. Exactly when does the servlet file get made, and if you change the code in the jsp, do those changes always show up the next time the jsp is accessed? I guess I was thinking there's only one copy of the compiled file, and any changes would need recompiling and restarting Orion, (like with the java source code) but my thinking was wrong!
[ June 16, 2006: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSPs that have changed since they were last translated will automatically be re-translated and reloaded. You don't need to do anything special.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. I think this may be one of the reasons that beginners (wrongly) use JSPs as surrogate servlets. The automatic re-translation makes it compelling, but using a JSP for anything other than composing a view is not a good practice.
 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
P.S. I think this may be one of the reasons that beginners (wrongly) use JSPs as surrogate servlets. The automatic re-translation makes it compelling, but using a JSP for anything other than composing a view is not a good practice.


Doh! That would have been my next move! Not having to restart orion every time I change something is very appealing!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Carol Murphy:


Doh! That would have been my next move! Not having to restart orion every time I change something is very appealing!


Resist the siren's song... it will only dash you against the rocks!
 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:


Resist the siren's song... it will only dash you against the rocks!


I consider myself forewarned!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic