Bookmark Topic Watch Topic
  • New Topic

difference between the servlet life cycle method and jsp lifecycle method

 
devarshi pandya
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Report post to moderator
what is the difference between the servlet life cycle method and jsp life cycle method?

int i=10;
i=i++;
System.out.println(i);

O/P is 10???why ???
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
May I ask why you are asking two completely different things here ?
Maybe you've mistakenly pasted this code here, but please do not crosspost the same question in different forums. Thank you

http://www.coderanch.com/forums/
[ May 25, 2007: Message edited by: Satou kurinosuke ]
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by devarshi pandya:
what is the difference between the servlet life cycle method and jsp life cycle method?


jsp's gets translated to servlet .java file then servlet .java files get converted to .class files then it has the same life cycle of that of a servlet.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!