What is the difference between declaring the variables in the scriptlet tags and in the declaration tags?

Questions by Roshini

Showing Answers 1 - 2 of 2 Answers

chandrashekhar

  • Jul 27th, 2006
 

Declaring the variables in the scriptlet is gone into the service method when jsp converted into servlet but in declaration tags goes into the class label variable

  Was this answer useful?  Yes

Abdulaziz

  • Sep 19th, 2006
 

Whatever we insert the java code in the scriplet will be available in the _jspService() method once your jsp is converted to servlet,On the other hand whatever u insert into declaration will not be available in the service method, is available at the class level.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions