3
Contributors
2
Replies
3
Views
4 Years
Discussion Span
Last Post by ruchi18
0

depends ... do you want to use java code?
if you are using javacode in snippets:

<%
String b = "a small snippet";
%>

in your jsp's, then my recommendation: YES, unless you'll only be working with small, personal pages that won't need to be very secure, nor easy to maintain.

if you want to improve a (decent) recruiter with your jsp skills and you show him code as above, with snippets in it .... mission failed.
if you ever have to maintain a large application which contains a lot of such snippets .... welcome in hell.

0

It is recommented to use servlet.If we talk about logic and large set of code then write in java(servlet) file rather in JSP. However to just display data in jsp is fine enough.
Let an example
JSP servlet are used for webapplication and we have to show the content dynamically so based on logic hows you retreice the data let by using database write that code in servlet and to display use JSP.
However in real scenariao neither purly JSP used nor servlet combination of both used.

Edited by ruchi18

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.