File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Regarding drawbacks of JSP" Watch "Regarding drawbacks of JSP" New topic

Regarding drawbacks of JSP

Raj chiru
Ranch Hand

Joined: Aug 12, 2008
Posts: 142
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.

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

Joined: Jan 10, 2002
Posts: 63870

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Regarding drawbacks of JSP
It's not a secret anymore!