This is variation of my previous problem.
Create a servlet that reads request parameter from the user, creates a prime umber of the specified size, and forwards the request to a JSP page that displays the result. If no size if specified, display a 30-digit prime. Use MVC to display it. Only administrators should see primes of 40 digits or more. If ordinary users ask for primes of 40 or more digits, they should get 20-digit primes instead.
My question is how can I detect role-name in java bean? Another words, after users login, I want to detect whether administrator login or not.
(form-based authenticaiton was used.)