wood burning stoves*
The moose likes Servlets and the fly likes Regarding drawbacks of JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Regarding drawbacks of JSP" Watch "Regarding drawbacks of JSP" New topic
Author

Regarding drawbacks of JSP

Raj chiru
Ranch Hand

Joined: Aug 12, 2008
Posts: 141
Hi Friends,

what are the draw backs if i use JSP as a controller for handling the requests and responses and using java code,scriptlets,declarations and expressions in jsp?
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Raj chiru wrote:Hi Friends,

using java code,scriptlets,declarations and expressions in jsp?


There are old technologies and scriplets are hacker meal. Code in JSP are hard to maintain and you will not isolate your code from your view.


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60737
    
  65

Impossible to test and convoluted as well.

Using JSP as anything other than a view is discredited with good reason.

Let's turn the question around. What's the advantage of using a JSP for Java code when it's easier and clearer (and less error prone) to write Java code in a Java class?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Regarding drawbacks of JSP
 
Similar Threads
Struts: No getter method for property name problem
what is defalut value of Custom tag body-content
creating a pop up calendar within a form
pop up page
WA #1.....word association