I have some experience with JSP and Servlets. From what I understand, the main advantage of JSP over Servlet is the separation of presentation from content in JSP pages. Does that mean a web developer with no knowledge of Java can use JSP and HTML to develop web pages? I don't see how this can be done. Even if the web developer relies on pre-built beans, some know of Java is required to invoke the bean methods. By the way I am also interested in winning the JSP book. Regards, Arsalan Madjd
A JSP developer does not need to know Java. Bean properties can always be accessed using the XML bean property syntax, and anything more complex can be handled using custom tags provided by a separate Java developer.
The advantage of seperating presentation elements is not that no one has to know java. The advantage is that the Job can be seperated so the presentation people can focus on their job, making stuff look good and the java people can focus on their job, making stuff work properly. This advantage is going to be almost nil if you have the same person designing both aspects. (Although, this seperation should increase readability and help with long term maintainance) The benefit is multiplied on large projects with specialization of duties.
Hi Arsalan, It is basically a question of identifying the role and reponsibilty of the person and get the best out of him in what he is good at.It boils down to the fact that you cannot be a master of all. You may be a excellent(or an expert) Web Developer with elementary knowledge of Java, who can work in co-ordination with an expert Java Developer.This is what JSP is targeting at!! The Java Developer would develop Beans/Taglibs for the Web Developer to use.The Web Developer with his excellent presentation skills would decide the layout of the page. Hence, co-ordination and appreciation of different skill-sets play a vital role in the way JSP is coded and developed. Hope this helps. Regards,