Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scriptlets -> Time and Space Complexity

 
Azrael Noor
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is scriptlet in JSP related to Space or Time complexity? or is there some other reason due to which these are not prefered?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A JSP *is* a servlet.
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic