aspose file tools
The moose likes Servlets and the fly likes Regarding drawbacks of JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply 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: 140
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: 56232
    
  13

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?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Regarding drawbacks of JSP
 
Similar Threads
pop up page
what is defalut value of Custom tag body-content
creating a pop up calendar within a form
WA #1.....word association
Struts: No getter method for property name problem