Init filter and final
I was writing a filter just now and I wanted to set a private final variable inside the init method so it is initialized only once.
basicly it was like this:
publicclass FilterXXXXimplements Filter
{
...
privatefinal String errorPage;
...
publicvoid init( FilterConfig filterConfig)
{
...
this.errorPage = com.project.global.Configuration.getErrorPageLocation();
...
}
...
}
But of course this is not possible, since a final variable can't have a new value assigned to it.
Is there any other way to do this? (and make it final)

