This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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 ]
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.
Joined: Mar 15, 2001
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!