Abstract:Java Server Page(JSP) is an excellent architecture for delivering Web applications.JSP1.1 introduces a new useful technology--Custom Tag Library:adding the ability for developer to define and use his own tags.It can help us to make the separation of presentation from logic,reuse the code and maintain easily.The question of magnanimous database query is often occurred in the web-based system,so in the paper the custom tag technology to implement an database pagination tag.