You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ka...@mn.man.de on 2000/11/30 14:08:53 UTC
Can I define an instance-variable at an xsp-page?
In Jave there are instance-variable and local-variables. If I make an new
instance from a class, then is initialized the instance-variable. But how
is that at xsp-pages. Can I also define an instance-variable like:
<xsp:logic>
String test1 = new String("hello"); //instance-variable
public String testMethod1( )
{
test1 = "goodbye";
return test1;
}
public String testMethod2()
{
String test2 = new String("something"); //locale-variable
return test2;
}
</xsp:logic>
Wath make the instance-variable, if diffrent clients use the "testMethod1"?