June 11th, 2003, 11:09 AM
I've written a couple of enquiry facilties using files ending with ".jsp" and containg HTML and <% ...... %> code.
June 11th, 2003, 01:30 PM
June 11th, 2003, 01:57 PM
You wrote a JSP page,
There are to main differences:
The difference betwen JSP & Servlets is basically that servlet are pre-compiled. As you request a JSP for the first time since the server's startup it takes a while until became a Servlet, so there's a little bit lack of speed.
If you use tomcat just list the /work directory and you'll see your JSP pages that have became a servlet
Last edited by guillermog; June 11th, 2003 at 02:00 PM.
June 12th, 2003, 04:25 AM
(To be honest, I'm only asking so that I can put things right in my mind. But I have found that some people get VERY uptight about what is referred to by a prticular name. Some people seem to think that using the correct words gives them a right to be elitist whereas I am simply interested in the end results and getting a job done. Sorry, slipped into rant mode there.)
June 12th, 2003, 09:28 AM
June 13th, 2003, 11:13 PM
hmm basically JSP is a file with <name>.jsp while servlet is <name>.java
JSP is java codes embedded in html codes while sevrlet is html embedded in java codes
JSP is excellent for form n field generation and servlet is excellent for being the controller ...
when u edit a JSP file, u just need to refreash the browser n u will see the amended file.. while servlet u have to shutdown n run the tomcat server again ....
*hope not too crappy but i guess it's the main difference*
June 15th, 2003, 11:43 AM
you need to restart the webserver? oh well, one more advantage about .NET