This tag is used to retrieve the users profile. It loads the users profile into a UserProfileBean (see Constants & JavaBeans section). It binds this bean to the current Session object for use by other pages and makes the bean available on the page as a scripting variable named jeeniusUserProfile. For this bean to work, the user must be logged so the enforceLogin tag should be executed before this tag on the current page.
This tag has the following usage:
<jee:getUserProfile/>
After this tag is executed a scripting variable named jeeniusUserProfile will be available. This scripting variable will be a UserProfileBean holding the details for the current user.
The following code shows an example of using this tag:
<%@ taglib uri="jeenius" prefix="jee" %> <jsp:enforceLogin redirectUrl=”not_logged_in.jsp”/> <jsp:getUserProfile/> <html> <head> <title>Hello</title> <head> <body> <h1>Hello <jsp:getProperty name=”jeeniusUserProfile” property=”fullName”/> </h1> </body> </html>