File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60050
    
  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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding drawbacks of JSP
 
Similar Threads
what is defalut value of Custom tag body-content
pop up page
WA #1.....word association
creating a pop up calendar within a form
Struts: No getter method for property name problem