Test a JSP page for the struts2 tag __js

Source: Internet
Author: User
<%@ page language= "java" import= "java.util.*" pageencoding= "UTF-8"%>
<%@ taglib uri= "/struts-tags" prefix= "s"%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >
<title>my JSP ' index.jsp ' starting page</title>
<meta http-equiv= "Pragma" content= "No-cache" >
<meta http-equiv= "Cache-control" content= "No-cache" >
<meta http-equiv= "Expires" content= "0" >

<body>
<s:set name= "List" value= "{' zhangming ', ' xiaoi ', ' liming '}"/>
<s:iterator value= "#list" status= "St" >
<font color=<s:if test= "#st. Odd" >red</s:if><s:else>blue</s:else>>
<s:property/></font>/<br>
</s:iterator>
<br/>
<s:set name= "Age" value= "323" scope= "Request"/>
<s:if test= "#request. age==23" >
23
</s:if>
<s:elseif test= "#request. age==21" >
21st
</s:elseif>
<s:else>
are not equal
</s:else>
<br/>
<a href= "<s:url action= helloworld_add" namespace= "/test" ><s:param "name=" PersonID "value=" 233 /s:url> ">
Ssss</a>

<br>
<s:set name= "Myurl" value= "Http://www.foshanshop.net"/>
<s:url value= "%{#myurl}"/><br>
<br/>===================<br/>
<s:checkboxlist name= "List" list= "{' Java ', '. Net ', ' RoR ', ' PHP '} ' value= ' {' Java ', '. Net '} '/><br/>
<s:checkboxlist name= "Map" list= "#{1: ' Yoga supplies ', 2: ' Outdoor Items ', 3: ' Ball ', 4: ' Bike '} '
listkey= "Key" listvalue= "value" value= "{1,2,3}"/>
<br/>
<s:radio name= "Raido1" list= "#{1: ' Yoga supplies ', 2: ' Outdoor Supplies ', 3: ' Ball Games ', 4: ' Bike '} ' listkey= ' key ' listvalue= ' value ' value= ' 1 '/>
<br/>
<s:select name= "se" list= "#{1: ' Yoga supplies ', 2: ' Outdoor Supplies ', 3: ' Ball Games ', 4: ' Bike '} ' listkey= ' key ' listvalue= ' value ' value= ' 1 '/>


</body>
Related Article

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.