File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 1187
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: 60053
    
  65

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: 60053
    
  65

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: 1187
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: 60053
    
  65

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: 1187
Originally posted by Bear Bibeault:


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


I consider myself forewarned!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp errors in syntax
 
Similar Threads
Servlets 4a instructor's solution doesn't work
Servlets-4a
JSP Doubt?
BeeServlet and MVC2... again
Beans in Servlet