aspose file tools*
The moose likes JSP and the fly likes jsp errors in syntax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp errors in syntax" Watch "jsp errors in syntax" New topic
Author

jsp errors in syntax

Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1195
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

Joined: Jan 10, 2002
Posts: 61043
    
  66

JSPs that have changed since they were last translated will automatically be re-translated and reloaded. You don't need to do anything special.


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

Joined: Jan 10, 2002
Posts: 61043
    
  66

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

Joined: Mar 15, 2001
Posts: 1195
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

Joined: Jan 10, 2002
Posts: 61043
    
  66

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

Joined: Mar 15, 2001
Posts: 1195
Originally posted by Bear Bibeault:


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


I consider myself forewarned!
 
 
subject: jsp errors in syntax