[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xml-cocoon-users
Subject:    Can I define an instance-variable at an xsp-page?
From:       Katrin_Seiffert () mn ! man ! de
Date:       2000-11-30 13:08:53
[Download RAW message or body]


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"?
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            



                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            







---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic