This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android this week in the Android 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: 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.


[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: 63053
    
  69

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding drawbacks of JSP
 
It's not a secret anymore!