Hi, i could not declare a static variable in my JSp page. Why? I tried : static int test = 0; and get the following error: Statement expected. Could anyone tell me how can i declare a static variable?
$Regards
Wolfgang Stein
Greenhorn
Joined: Mar 26, 2001
Posts: 11
posted
0
I use the following: <%! final static String NL = System.getProperty("line.separator"); %> It also works without the keyword 'final'. Wolfgang Stein