This article shares the Java Online Book Mall Book Module Code for your reference. The specific content is as follows
Tips 1: Pagination
①PageBean<Book> findByCriteria(List<Expression> exprList, int pc) --- General query method (pc current page number)
②PageBean encapsulation url;//Request path and parameters/BookServlet?method=findXXX&cid=1&bname=2
Tips 2: Hyperlinks are in Chinese
<%-- url tag will automatically url the parameters--%><c:url value="/BookServlet" var="authorUrl"> <c:param name="method" value="findByAuthor"/> <c:param name="author" value="${book.author }"/></c:url><a href="${authorUrl}" name='P_zz' title='${book.author }'>${book.author }</a>The above is all the content of this article. I hope it will be helpful to everyone's learning and I hope everyone will support Wulin.com more.