You never use nonfinal static class variables in servlets/jsp as when there aremultiple users there will be conflicts. Use the "request" object or "session"object.