script.jsp
来自「webwork source」· JSP 代码 · 共 36 行
JSP
36 行
<%@ taglib uri="webwork" prefix="webwork" %><%@ taglib uri="webwork" prefix="ui" %><link rel="stylesheet" type="text/css" href="../template/xhtml/styles.css" title="Style"><html><head><title>Script test</title></head><body><h1>Script test</h1><i>Note:</i> This page, when submitted, will execute the JavaScript test.js on the server. The two form fields will be concatenated and displayed.Try entering "foo" as value in "bar" field, and the other way round. This will generate error messages.<form method="post" action="<webwork:url page="testscript.action"/>"><table width="350" border="0" cellpadding="3" cellspacing="0"> <ui:textfield label="'Foo'" name="'foo'"/> <ui:textfield label="'Bar'" name="'bar'"/> <tr><td colspan="2" align="center"> <input type=submit value="Update"> </td></tr></table><webwork:if test="results && hasErrors==false"><HR>Xyzzy: <webwork:property value="results['foo']"/>+<webwork:property value="results['bar']"/>=<webwork:property value="results['xyzzy']"/><BR></webwork:if></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?