?? edittaketicketaddress.jsp
字號:
<%@ page language="java" contentType="text/html; charset=gbk"
pageEncoding="gbk"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>Insert title here</title>
<style type="text/css">
<!--
.STYLE1 {font-size: 16px}
-->
</style>
<script type="text/javascript" language="javascript">
function isEmpty(){
if(document.getElementById("address").value.length == 0 ){
document.getElementById("addressDiv").innerHTML="詳細地址不能為空";
return false;
}
document.getElementById("addressDiv").innerHTML="";
return true;
}
</script>
</head>
<body>
<html:form action="/editTakeTicketAddressAction.do?act=edit&id=${address.id}" method="post" onsubmit="return isEmpty();">
<p> </p>
<table width="742" height="106" border="1" align="center">
<tr>
<th scope="col"><div align="left" class="STYLE1">編輯取票地點</div></th>
</tr>
<tr>
<td><label>${address.city }市
<input name="address" id="address" type="text" size="50" maxlength="100" value="${address.address }" onblur="isEmpty()"/>
</label></td>
<td><div id="addressDiv" style="display:block;color:red"/></td>
</tr>
<tr>
<td><label>
<input type="submit" name="Submit" value="修改" />
</label></td>
</tr>
<tr><td><html:hidden property="id" value="${address.id}"/><html:hidden property="city" value="${address.city}"/></td></tr>
</table>
</html:form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -