⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tomodadmincate.jsp

📁 这个网上商城系统项目是我之前发过类似的一个大的整合
💻 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>
    	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    	<tr><input type="submit" value="提交" >
    	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    	<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 + -