* @param request the HttpServletRequest instance
* @param response the HttpServletResponse instance
* @return the name of the next view
*/
public View process(HttpServletRequest request, HttpServletResponse response) throws ServletException {
Blog blog = (Blog)getModel().get(Constants.BLOG_KEY);
String username = request.getParameter("user");
SecurityRealm realm = PebbleContext.getInstance().getConfiguration().getSecurityRealm();
try {
PebbleUserDetails user = realm.getUser(username);
if (user != null) {
getModel().put(Constants.USER_KEY, user);
getModel().put(Constants.BLOG_ENTRIES, blog.getRecentPublishedBlogEntries(username));
return new AboutAuthorView();
}
} catch (SecurityRealmException e) {
log.error("Exception encountered", e);
}