What is Declaration

Showing Answers 1 - 5 of 5 Answers

shrinivas.m.b

  • Jun 27th, 2005
 

declaration is used in JSP to declare methods and variables.To add a declaration, you must use the <%! and %> sequences to enclose your declarations.

  Was this answer useful?  Yes

veena

  • Aug 26th, 2005
 

declaration can be written inside <%! %>to declare the variables,it is the another method used with jsp other than<% int i=1%>,but the validation can be allowed with in this(<% %>) ,but the declaration syntax (<%! %>)does not support validations,it should be again written inside<% %>

  Was this answer useful?  Yes

veena

  • Aug 26th, 2005
 

declaration can be written inside <%! %>to declare the variables,it is the another method used with jsp other than<% int i=1%>,but the validation can be allowed with in this(<% %>) ,but the declaration syntax (<%! %>)does not support validations,it should be again written inside<% %>

  Was this answer useful?  Yes

MD.SHAKEEL AHMAD

  • Sep 30th, 2005
 

?        A Declaration is a block of Java code in a JSP that is used to define class-wide variables and methods in the generated class file.

?        They are initialized when the JSP page is initialized and anything defined in a declaration is available throughout the JSP.

?        The syntax is as follows:-<%!          %>

?        E.g:-          <%! private int i=4;

Public void myMethod() {

}

%>

  Was this answer useful?  Yes

shakeel

  • Sep 30th, 2005
 

?        A Declaration is a block of Java code in a JSP that is used to define class-wide variables and methods in the generated class file.

?        They are initialized when the JSP page is initialized and anything defined in a declaration is available throughout the JSP.

?        The syntax is as follows:-<%!          %>

?        E.g:-          <%! private int i=4;

Public void myMethod() {

}

%>

  Was this answer useful?  Yes

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