Reusing jsp

Hi, i don磘 know how to resolve the next issue.I have to verify username and password in diferents pages of my website, so, i wish to use the same "code" or "page" or "control" to do this, cause this maybe changes in the future. How can i do this?Regards
[281 byte] By [rrecobaa] at [2007-10-2 15:38:10]
# 1
Would including the jsp page (that verifies the user) in your website's other jsp pages solve your problem?If yes just include the following code in the jsp pages that need validation :<%@include file="VerifyUser.jsp"%>
joel_savioa at 2007-7-13 15:18:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
This could easily be handles in a filter that would be called before JSP pages. Check the J2EE tutorial for how to do filters.
tolmanka at 2007-7-13 15:18:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...