File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Scriptlets -> Time and Space Complexity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Scriptlets -> Time and Space Complexity" Watch "Scriptlets -> Time and Space Complexity" New topic
Author

Scriptlets -> Time and Space Complexity

Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
is scriptlet in JSP related to Space or Time complexity? or is there some other reason due to which these are not prefered?


Regards
Azrael Noor
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Spacetime, and the related fields of gravity and relativity, have almost nothing to do with JSPs and scriptlets.

It's a maintainability and separation of concerns issue. Presentation versus logic. Java versus markup.
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
so you mean a work which a servlet can do in a one time period same can JSP do in same time period? if presentationm layer is exchanged?

i feel there is moore time to execute JSP then servlet(This is just my feeling, i have even read it somewhere )
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

A JSP *is* a servlet.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Azrael Noor wrote:i feel there is moore time to execute JSP then servlet(This is just my feeling, i have even read it somewhere )


That's true, people are perfectly willing to make up statements about performance and post them on the web as if they were facts.
subhash kumar
Ranch Hand

Joined: Jul 14, 2010
Posts: 63
Without Scriptlets jsp is :
easy to maintain.
it is doing the presentation task only.
you can take the example of legacy applications of any company where whole application is made in jsp only
if it require any minor change also, then it needs great efforts

there is no time issue except if you have not precompiled your jsp even this will give one time pain to application.

Subhash Kumar
Attitude is everything
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Scriptlets -> Time and Space Complexity
 
Similar Threads
Time/Space complexity analysis
Good book to understand the Analysis and Design of Algorithm
Find common elements in 3 int array
How to transpose a matrix?
Program to find if a matrix is subset of another matrix