I would say it depends. It depends on what you really want to do. If, as you said, follow the MVC model strictly then you are right, JSP pages can be used mainly for the "view" part. You see, most of the large-scale enterprise systems use the MVC architecture therefore loads of people use JSP pages just for the "view" of the whole system. Their logic resides mainly on Java Beans, EJBs and Servelts.
On the other hand, if you implement a small-scale system, you could easily put any logic within JSP pages. As you said, writing Servlets require more experience than writing JSP. Add on top of this any time constraints, possible lack of team skills and then you realise that JSP pages can do the trick. 18/12/2001 17:22:55, "Haseltine, Celeste" <[EMAIL PROTECTED]> wrote: >Panagiotis, > >If you follow the MVC architecture to a "T", you are correct in that JSP >should only contain the "view" and not the logic. But lets not forget what >JSP's really are, and what they were initially "marketed" as: a shorthand, >RAD way of creating servlets. Now you can do a lot more "logic" work in a >pure servlet, but coding in pure servlets requires more experience than >writing a JSP. And if you have a team of developers who are relatively new >to Java, JSP and serlvets, and you have a very short development time frame, >what are you going to go with? Pure servlets, or mostly JSP's with a few >critical important servlets for the controller and heavy logic segments of >the product? I would go for the latter, especially if I have a tag library >that helps me encapsulate a large portion of my business logic in the >underlying tag library servlets, and allows my more junior developers to >create JSP's quickly and accurately. Remember, part of the job of being an >architect/senior developer is balancing the theoretical with what is >realistic in your given development time frame, and your development teams >skill level. > >Just my 2 cents worth! > >Celeste > > > > > >-----Original Message----- >From: Panagiotis Konstantinidis [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, December 18, 2001 11:10 AM >To: [EMAIL PROTECTED] >Subject: Re: JSP, J2EE > > >18/12/2001 16:27:32, "Haseltine, Celeste" <[EMAIL PROTECTED]> wrote: > >>Lets see if I can shed some light on this for you. >> >>J2EE - Java 2 Enterprise Edition. The "package" from Sun the you can >>download, which contains all the additional libraries bundled together for >>you, such as the extended JDBC libraries, RMI libraries, etc. Differs from >>J2SE in that the standard edition does NOT include the additional >libraries, >>but they can be downloaded and installed separately. >> >>JSP - Java Server Pages. A Rapid Application Development (RAD) means of >>creating servlets. Servers implementing a particular Servlet standard, as >>defined by Sun, are required to compile the JSP to a servlet, and display >>the resulting HTML in a browser window. > > I would not say that JSP pages are a "cheap" way of creating Servlets. I >would say it is better to look at JSP pages as the "view" of the whole >system. Servlets are something more sophisticated than JSP pages. Arguably, >the business logic >that cannot (or need not) reside in a Java Bean should reside within >Servlets rather than within JSP pages. > >>JRUN - One of many third party JSP/Servlet servers that can be used to >>develop JSP and servlets. JRUN also includes an EJB server if you purchase >>the top tier package. Other JSP/servlet servers include: Orion, >BEAWeblogic, >>IBM Websphere, etc. >> >>Go to the Sun web site and so a search on JSP, servlet, and EJB. You will >>discover that their are standards for each of these, and when you go to >>purchase a JSP server, you definitely want to determine which version of >the >>standard the server is implementing, so that you can set up your >development >>environment with the correct J2EE version. >> >>Hope that this helps! >> >>Celeste >> >>-----Original Message----- >>From: Chad Gray [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday, December 18, 2001 9:22 AM >>To: [EMAIL PROTECTED] >>Subject: JSP, J2EE >> >> >>Im pretty new to JSP, and im wondering what the big difference between JSP, >>and J2EE are? >> >>How different is JRun from JSP/J2EE? If i write code using JRun will it >>work on a JSP or J2EE server? >> >>Thanks! >> >>=========================================================================== >>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >>JSP-INTEREST". >>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST >>DIGEST". >>Some relevant FAQs on JSP/Servlets can be found at: >> >> http://archives.java.sun.com/jsp-interest.html >> http://java.sun.com/products/jsp/faq.html >> http://www.esperanto.org.nz/jsp/jspfaq.jsp >> http://www.jguru.com/faq/index.jsp >> http://www.jspinsider.com >> >>=========================================================================== >>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". >>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST >DIGEST". >>Some relevant FAQs on JSP/Servlets can be found at: >> >> http://archives.java.sun.com/jsp-interest.html >> http://java.sun.com/products/jsp/faq.html >> http://www.esperanto.org.nz/jsp/jspfaq.jsp >> http://www.jguru.com/faq/index.jsp >> http://www.jspinsider.com >> >__________________________________________ >"It can only be attributed to human error" >2001 A Space Odyssey > >=========================================================================== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST >DIGEST". >Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > >=========================================================================== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". >Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > __________________________________________ "It can only be attributed to human error" 2001 A Space Odyssey =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
