Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

jsp scriptlet

Hi,

does declaring jsp code like below creates the corresponding servlet java code where aCount as static variable?



<%!
private int aCount = 0;
%>


How to create it as non static variable.

when we need to create as static, when we need to create as non static.

Please advise.

Any links resources ideas highly appreciated. Thanks in advance
SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

>>does declaring jsp code like below creates the corresponding servlet java code where aCount as static variable?

No, it will create an instance variable.



how to create static variable in the jsp. Please advise
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

Digesting the link