Sorry for using Abbreviations here.
In my
jsp page i used session.setAttribute()and session.getAttribute() to set and get the current logged in user respectively.
And also i tried to use the following function after using application to set and get the current username.
synchronized(application){SharedObject foo = (SharedObject)application.getAttribute("username");
foo.update("newvalue");
application.setAttribute("username",newvalue);
}
but it is not working,Displaying some illegal start of expression errors
Can anyone tell me how to overcome this error
Thanks a lot