The example of this article for you to share the Java Online Book Mall books module code for your reference, the specific contents are as follows
Tip One: pagination
①pagebean<book> Findbycriteria (list<expression> exprlist, int pc)---Common Query method (PC current page number)
②pagebean Encapsulation url;//request path and Parameters/bookservlet?method=findxxx&cid=1&bname=2
Tips Two: Hyperlinks have Chinese
The <%--URL tag automatically urls 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 the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.