Is it possible to do this in JSTL / JSP - JavaBean with static properties ?

javaBean:

publicclass Util{

privatestatic String s;

publicstaticvoid setS(String s){ this.s = s;}

publicstatic getS(){return s;}

// some other static utilities needed to be called by other classes

}

JSP Page needs to output the value of s (the static value)

Is it okay for the JavaBean used to have static values and static get and set?

[923 byte] By [smiles78a] at [2007-11-26 20:17:40]
# 1
Why not try it and see?If that doesn't work, why not leave s static, but make getS non-static?It's cheeky, but it would work...
DrLaszloJamfa at 2007-7-10 0:40:51 > top of Java-index,Java Essentials,Java Programming...
# 2
By the way, the correct way to write your static setS method (without this!) is:public static void setS(String s) { Util.s = s; }
DrLaszloJamfa at 2007-7-10 0:40:51 > top of Java-index,Java Essentials,Java Programming...