JSP Tags
来源:互联网 发布:淘宝一钻店铺值多少钱 编辑:程序博客网 时间:2024/05/22 04:46
<%-- --%> //comment${1 + 2} //add${3 div 4} //divide${10%4} //mode${10 mod 4}${(1==2) ? 3 : 4} //judge${'a' < 'b'} //boolean//implicate function<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>${fn:escapeXml(param["foo"])} 提取url参数 foo 并用taglib fn中的 escapeXml进行escape${fn:escapeXml(header["host"])} 提取http header 中的 host字段${fn:escapeXml(header["user-agent"])} 提取user agent字段
反转字符串
public static String reverse( String text ) { return new StringBuilder( text ).reverse().toString(); }元音字母个数
public static int numVowels( String text ) { String vowels = "aeiouAEIOU"; int result = 0; for( int i = 0; i < text.length(); i++ ) { if( vowels.indexOf( text.charAt( i ) ) != -1 ) { result++; } } return result; }
大写化
public static String caps( String text ) { return text.toUpperCase(Locale.ENGLISH); }
- JSP Tags
- Domino JSP Tags -deletedoc
- JSP - Custom Tags
- JSP Custom Tags Example
- JSP里的自定义Tags(4)
- struts2 jsp File "/struts-tags" not found
- JSP 自定义标签 (custom tags) 入门介绍
- tags
- JSP Custom tags with example – JSP Tutorial
- How to access body of Custom tags in JSP tutorial
- jsp 无法加载“http://jsptags.com/tags/navigation/pager”解决办法
- 通过JSP自定义标签创建丰富多彩的超链接(Creating Richer Hyperlinks with JSP Custom Tags)
- Struts2 : Cannot find the tag library descriptor for /struts-tags in JSP 错误的可能原因
- j2ee中,url直接进入jsp页面,提示File "/struts-tags" not found
- AJAX Tags
- 关于tags
- 什么是Tags?
- 什么是Tags?
- 南京三星面试准备2--链表
- NEFU—OJ 454 美丽的数
- c语言创建单链表
- HDU 4497 GCD and LCM(数学)
- Andrew Ng 如何重拾梦想
- JSP Tags
- C语言中的运算符号优先级和运算顺序
- HDU2072-map
- exit和_exit的区别
- Eclipse的maven插件最新地址
- HDU1006---Tick and Tick HDU(135)
- C语言笔试题记录
- 最长上升子序列(LIS) 两种复杂度算法
- Android中notification的使用 【基于Mars-droid的MP3项目的notification使用】