> can you please give me code for it ?
Why don't you do it by your own instead of asking others to do your work ?
Nobody here knows if you are using the standard taglib or frameworks like struts or jsf nor does anybody here know how to retrieve the user details.
Post your code and tell us what's exactly your problem with the jsp and somebody will help you.
Please use the code tags as described in [url=http://forum.java.sun.com/help.jspa?sec=formatting]Formatting tips[/url] when you post code and please ask your jsp questions within the [url=http://forum.java.sun.com/forum.jspa?forumID=45]Java Server Pages (JSP) and JSTL[/url] forum.