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

📄 storage_edit.jsp

📁 一个用struts+hibernate做的库存管理系统 适合新手研究学习
💻 JSP
字号:
<%@ page language="java"  pageEncoding="gb2312"%>
<%@ include file="../include/taglibs.jsp" %>

<%@ page import="com.strong.ims.domain.sysmanage.StorageInfo" %>
<% 
    //基本参数设定
    String path=request.getContextPath();
    //out.println(path);
    String title="";
    String directry1="TEST";
    String directry2="T01";
    String method="U";
    String pageName=directry2+method;
    String image=path+"/"+directry1+"/IMAGES/";
    String css=path+"/"+directry1+"/CSS/";
    String js=path+"/"+directry1+"/JS/";
    String mDescription="修改作业";
    
    //取出原始信息
    String state = "";
	String id= "";
	String name ="";
	String memo = "";	
    StorageInfo storage = new StorageInfo();
    if(request.getAttribute("storage") != null){
        storage = (StorageInfo)request.getAttribute("storage");
        id = storage.getF_sid();
        name = storage.getF_storagename();
        memo = storage.getF_memo();
        state = storage.getF_isdelete();
       // System.out.println(empId);
    }
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html >
  <head>
    <html:base />
    
    <title>storage_edit.jsp</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">
	-->

  </head>
  
  <body>
  
    <html:form action="edit_storage.do" method="post" >
   
    <html:hidden property="f_sid" value="<%= id %>" />
      <table border="0">
        <tr>
          <td><bean:message key="storage_chinese_name" />: </td>
          <td><html:text property="f_storagename" value="<%= name %>"/></td>
        </tr>
        <tr>
          <td><bean:message  key="storage_chinese_memo" />:</td>
          <td><html:text property="f_memo" value="<%= memo %>" /></td>
        </tr>
        <tr>
          <td><bean:message   key="storage_chinese_state" />:</td>
          <td> <html:radio property="f_isdelete" value="0" styleId="empSexm"><bean:message  key="storage_chinese_state1"/>
          &nbsp;</html:radio><html:radio property="f_isdelete" value="1" styleId="empSexp"><bean:message  key="storage_chinese_state2"/></html:radio></td>
      	    <%
                        //判断选中情况
                        if("0".equals(state)){
                        %>
                        <script type = "text/javascript">
                            document.getElementById("empSexm").checked = true;
                        </script>
                        <%
                        }
                        else{
                        %>
                        <script type = "text/javascript">
                            document.getElementById("empSexp").checked = true;
                        </script>
                        <%
                            }
           %>
        </tr>
        <tr>
          <td colspan="2" align="center"><html:submit /></td>
        </tr>
      </table>
    </html:form>
  </body>
</html:html>

⌨️ 快捷键说明

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