Using the book El tag

Source: Internet
Author: User

Transformation of enterprise-level Java Development and architecture programmers in practice
J2EE-based Ajax; Electronic Auction System

Struts with Ajax, input validation, struts2 authoritative guide Li Gang

Java utility component set validation component

Java practical component set
Http://www.jrsoft.com.cn/html/download.asp

JSP label usage (jstl)
<% @ Taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "C" %>
C: Out is equivalent to <% = %>.
C: foreach Var = "I" items =$ {mylist} error because request. setattribute ("mylist", mylist) is missing;

 

 

El usage (What should I do if the name is garbled in Chinese and the set has a range)
<% @ Taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "C" %>
<JSP: usebean id = "DBO" class = "com. pp. DB. dboperate"> </jsp: usebean>

<Table width = "780" border = "0" cellspacing = "0" cellpadding = "5">
<%
DBO. setlength (10 );
String hql = "from music order by orders ";
List mylist = DBO. findsqlhibernate (hql, 1 );
// Int n = mylist. Size ();
Request. setattribute ("mylist", mylist); // set the value; otherwise, the value cannot be obtained.
%>

<C: foreach Var = "N" items = "$ {mylist}">
<Tr>
<TD> <C: Out value = "$ {n. ID}"> </C: Out> </TD>
<TD> <C: Out value = "$ {n. name}"/> </TD>
</Tr>
</C: foreach>
</Table>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.