Professional Documents
Culture Documents
Contents Q: What is the life-cycle of JSP? Q: What is the jspInit() method? Q: What is the _jspService() method? Q: What is the jsp estroy() method? Q: !an "e override JSP lifecycle method? Q: #o" to override init() and destroy() method? Q: What is Implicit o$ject in JSP? Q: What are the scopes availa$le forJSP? Q: #o" can "e disa$le scriptin%? Q: ifference $et"een pa%e and pa%econte&t? Q: !an "e implement an interface in a JSP? Q: What is the difference $et"een Servlet!onte&t and Pa%e!onte&t? Q: ifference $et"een Servlet!onte&t and Servlet!onfi%? Q: What is the difference in 'sin% re('est)%et*e('est ispatcher() and conte&t)%et*e('est ispatcher()? Q: #o" to pass information from JSP to incl'ded JSP? Q: What is the difference $et"een directive incl'de and jsp incl'de? Q: #o" does JSP handle r'ntime e&ceptions? Q: #o" do yo' delete a !oo+ie "ithin a JSP? Q: ifference $et"een for"ard and send*edirect()? Q: What are different stmt availa$le and synta& and 'se of all? Q: #o" can "e create class level varia$le,method in JSP? Q: #o" to prevent cachin% for JSP pa%e? Q: IS JSP thread safe? Q: #o" to implement Sin%le -hread .odel? Q: ifferent "ay of Session trac+in%? Q: ifferent JSP /ction availa$le? Q: Scopes availa$le for JSP 'se $ean? Q: ifferent type of JSP comment availa$le? Q: Ifference $et"een Session0ean and 1ntity0ean?
Servlet,%ntext 3ne ServletContext $ill #e created per $e# application. Can #e &sed to access $e# app parameter. Can #e &sed to get server Info.
Q: What are different stmt available and syntax and use of all?
Ans: S! elements are Scriptlet:):;< ;= &irective:):;> ;= 4xpressi%n:):;4 ;=