📄 tomodadmincate.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<jsp:directive.page import="javabean.TypeInfo"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>商品类别信息</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<style type="text/css">
<!--
body {
background-color:lightgrey;
}
-->
</style>
<script type="text/javascript">
function f1(){
var typeName = document.all.typeName.value ;
var typeInfo = document.all.typeInfo.value ;
if(typeName == ""){
window.alert("分类名称不允许为空!");
document.all.typeName.focus();
return false;
}
if(typeInfo == ""){
window.alert("分类描述不能为空!")
document.all.typeInfo.focus();
return false;
}
}
</script>
</head>
<body>
<%
TypeInfo type = (TypeInfo)request.getAttribute("type");
%>
<h3 align="center">商品分类名称</h3>
<form action="servlet/ModSuccessServlet" name="form1" onsubmit="return f1();">
<table align="center">
<tr>商品分类名称:</tr>
<tr>
<input type="text" name="typeName" value="<%=type.getTypeName() %>"></tr><br><br>
<tr>
商品类别描述:
</tr>
<tr>
<textarea cols="30" rows="10" name="typeInfo"><%=type.getTypeInfo() %></textarea><br><br>
</tr>
<tr><input type="submit" value="提交" >
<input type="reset" value="取消"></tr>
<input type="hidden" value="<%=type.getId() %>" name="id">
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -