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

📄 albumcontent.jsp

📁 the musiccollection struts 1 application i netbeans implementation (strut for dummies book source)
💻 JSP
字号:
<%@ include file="taglibs.jsp" %>
	<fmt:setBundle basename="ApplicationResources" />
	<table align="center" width = "100%" height="100%">
		<tr align="center"><td >
				<html:form action="album.do" focus="album">
				<html:hidden property="action1" />
				<html:hidden property="userid" />
				<html:hidden property="id" />
 				<table valign="top" align="center" width="80%" style="border:1px solid" >
					<tr>
						<td colspan="2" align="center" style="font-size:18px;font-style:bold;">
						<c:choose>
							<c:when test='${not empty param.id}'>
								<fmt:message key="album.message.edit"/>
							</c:when>
							<c:otherwise>
								<fmt:message key="album.message.new"/>
							</c:otherwise>
						</c:choose>
						</td>
					</tr>
	  				<tr>
	    				<td align="right">
							<fmt:message key="album.album"/>
						</td>
	   					<td align="left">
							<html:text 	property="album" 
								size="25" 
								maxlength="25" />
							<html:errors property="album" />
						</td>
	  				</tr>	
	  				<tr>
	    				<td align="right">
							<fmt:message key="album.artist"/>
						</td>
	   					<td align="left">
							<html:text 	property="artist" 
								size="25" 
								maxlength="25" />
							<html:errors property="artist" />
						</td>
	  				</tr>	
	  				<tr>
	    				<td align="right">
							<fmt:message key="album.year"/>
						</td>
	   					<td align="left">
							<html:select property="year">
							<html:options
								property="years" />
							</html:select>
							<html:errors property="year" />
						</td>
	  				</tr>	
	  				<tr>
	    				<td align="right">
							<fmt:message key="album.type"/>
						</td>
	   					<td align="left">
							<html:select property="type">
							<html:options
								property="types" />
							</html:select>
							<html:errors property="type" />
						</td>
	  				</tr>	
	  				<tr>
	    				<td align="right">
							<fmt:message key="album.category"/>
						</td>
	   					<td align="left">
							<html:select property="category">
							<html:options
								property="categories" />
							</html:select>
							<html:errors property="category" />
						</td>
	  				</tr>	
	  				<tr>
	   					<td align="right">
							<fmt:message key="album.description"/>
						</td>
	   					<td align="left">
							<html:textarea 	property="description" 
									cols="40" rows="10"  />
							<html:errors property="description" />
						</td>
	 				</tr>	
	 				<tr>
						<td align="right">
						<c:choose>
							<c:when test='${not empty param.id}'>
								<html:submit onclick="javascript:document.forms[0].action1.value='update';">
									<fmt:message key="album.button.update"/>
								</html:submit>
							</c:when>
							<c:otherwise>
								<html:submit onclick="javascript:document.forms[0].action1.value='save';">
									<fmt:message key="album.button.save"/>
								</html:submit>
							</c:otherwise>
						</c:choose>
						</td>
						<td align="left">
							<html:submit onclick="javascript:document.forms[0].action1.value='cancel';">
								<fmt:message key="album.button.cancel"/>
							</html:submit>
						</td>
	  				</tr>
  				</table>
				</html:form>
  		</td></tr>
	</table>

⌨️ 快捷键说明

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