📄 petsearch.jsp
字号:
<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="taglibs.jsp"%>
<html>
<head>
<title>JSP for DynaActionForm form</title>
<link rel="stylesheet" type="text/css" href="css/table.css">
<link rel="stylesheet" type="text/css" href="css/default.css">
<script type="text/javascript">
function showAddPetForm()
{
rValue=window.showModalDialog(
'petnew.jsp',
window,"dialogWidth:380px;status:no;dialogHeight:175px;help:no");
}
function showAddOwnerForm()
{
rValue=window.showModalDialog(
'newpetowner.jsp',
window,"dialogWidth:400px;status:no;dialogHeight:310px;help:no");
}
</script>
</head>
<body>
<jsp:include flush="true" page="top.jsp"></jsp:include>
<html:form action="/toPet?method=search">
<table class="list" width="38%" border="0" align="center" bgcolor="#FFFFFF">
<tr>
<td width="30%" align="right">
宠物名称:
</td>
<td width="70%" align="left">
<html:text property="petName" />
<html:errors property="petName" />
</td>
</tr>
<tr>
<td align="right">
所有人名称:
</td>
<td>
<html:text property="ownerName" />
<html:errors property="ownerName" />
</td>
</tr>
<tr align="center">
<td colspan="2">
<input type="submit" name="Submit" value="查询">
</td>
</tr>
<tr align="center">
<td colspan="2">
</td>
</tr>
<tr align="center">
<td colspan="2">
</td>
</tr>
</tr>
<tr align="center">
<td colspan="2">
</td>
</tr>
<tr align="center">
<td colspan="2">
<input type="button" name="button" value="增加新宠物"
onclick="showAddPetForm();">
<input type="button" name="button" value="增加新所有人"
onclick="showAddOwnerForm();">
</td>
</tr>
<tr align="center">
<td colspan="2">
<html:errors />
</td>
</tr>
</table>
</html:form>
<jsp:include flush="true" page="tail.jsp"></jsp:include>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -