On Wednesday 23 October 2002 13:45, Timofey Korolyov wrote:
>
> here is my code sample. is that ok?
> Sorry for maybe simple question, but there is no code examples
> (expect TestSession) in www (i've searched everything with
> google.com).
>
> public Element getUpdatesList(String branch, String version,
> Element pluginsList) {
>
>
>               Session session =
> MessageContext.getCurrentContext().getSession();
>
>               Integer count = (Integer)session.get("counter");
>               if (count == null) {
>                       count = new Integer(0);
>               }
>               count = new Integer(count.intValue() + 1);
>               session.set("counter", count);
>
>               return null;
>
>       }
>
>
> Nothing here about counter.
> Where can my mistake possibly be?

Well, what exactly do you want? You increment a session variable by 
one, but your function does not return anything. What do you expect 
to get back from the server?
-- 
Matthias Brunner <[EMAIL PROTECTED]>
PGP FP 7862 32B3 3B75 292A F76F  5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc

Reply via email to