📄 function.jsp
字号:
<%@ taglib prefix="myfun" uri="http://hellking.com/function"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ page contentType="text/html; charset=gb2312" language="java" %>
<%@ page isELIgnored ="false" %>
<html>
<head>
<title>表达式语言的使用</title>
</head>
<body bgcolor="#FFFFFF">
<hr>提交的内容是:
${myfun:trans(param.name)}
<hr>
<form action="function.jsp" method=get name=form1>
<input type=text name="name">
<input type=submit value=提交>
</form>
<hr>
<hr>
另一个函数的使用,结果是:
${myfun:add(param["x"],param["y"])}
<form action="function.jsp" method=get name=form2>
<input type=text name="x">
<input type=text name="y">
<input type=submit value=提交>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -