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

📄 categorycreate.jsp

📁 Hibernate (著译者: 陈天河等)项目开发宝典本书以Hibernate为核心
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<f:view>
	<f:loadBundle basename="resources.Messages" var="msgs"/>
	<html>
		<head>
			<title>
				<h:outputText value="#{msgs.category_title_inputCategory}"/>
			</title>
			<link rel="stylesheet" type="text/css" 
				href="<%=request.getContextPath()%>/pub/css/stylesheet.css"/>
		</head>
		<body>
			<center>
			<%@ include file="../header.jsp" %>
			<h:outputText value="#{msgs.category_title_inputCategory}" 
				styleClass="headerText"/>
			<h:form id="categoryForm">
				<table>
					<tr>
						<td>
							<h:outputLabel for="name">
								<h:outputText id="categoryNameLabel" 
									value="#{msgs.category_name}"/>
							</h:outputLabel>
						</td>
						<td>
							<h:inputText value="#{categoryBean.name}" id="name" 
								required="true"/>
							<h:message styleClass="errorMessage" for="name"/>							
						</td>
					</tr>
					<tr>
						<td>
							<h:outputLabel for="description">
								<h:outputText id="categoryDescriptionLabel" 
									value="#{msgs.category_description}"/>
							</h:outputLabel>
						</td>
						<td>
							<h:inputText value="#{categoryBean.description}" 
								id="description" required="true"/>
							<h:message styleClass="errorMessage" for="description"/>							
						</td>
					</tr>
              		<tr>
              			<td align="center" colspan="2">
                    		<h:commandButton value="#{msgs.create}" 
                    			action="#{categoryBean.createAction}"/>
                    		<h:commandButton value="#{msgs.cancel}" 
                    			action="cancel" immediate="true"/>
                  		</td>
              		</tr>
              		<tr >
              			<td colspan="2" align="center">
                    		<h:messages errorClass="errorMessage" 
                    			globalOnly="true"/>
                    	</td>
                	</tr>
   				</table>
			</h:form>
			<%@ include file="../footer.jsp" %>
			</center>
		</body>
	</html>
</f:view>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -