本人新手,菜鸟.JSP表单要怎么做啊, 类似于一个库存管理系统.写一些信息,直接进入表格显示.怎么搞啊

解决方案 »

  1.   

    就是form,和HTML的没两样。
    <form action="****.jsp" method="post">
    <input type="text" name="" />    //这是单行文本框
    <input type="password" name="" />  //密码输入框
    <input type="hidden" name="" value="" />  //隐藏域
    <input type="radio" name="" value="你的值" />显示的内容   //单选框
    <input type="checkbox" name="" value="你的值" />显示的内容   //复选框
    <select size="1" name="">    //下拉框
    <option value="">显示的内容</option>
    </select>
    </form>
      

  2.   

    头一次听人说JSP表单,,表单就是HTML表单...
         
      

  3.   

    是JSP表单吗?和一般页面的表单一样的呀,就是一楼那样地
      

  4.   

    可以用jsp标签库来写jsp form表单
      

  5.   

    表单一般用HTML写,也可以用jsp自定义标签。jsp入门教程里都有表单的应用,多练练就能掌握了。
      

  6.   

    我用的是S标签 struts2.0的
    前台:<table id="tab" border="0" width="80%" cellpadding=" 3"
    cellspacing="0" class="midTable1" align="center">
    <tr align="center">
    <td class="midTable1Header1" width="40px">
    &nbsp;
    </td>
    <td class="midTable1Header1" width="100px">
    档案名称
    </td>
    <td class="midTable1Header1" width="100px">
    档案编号
    </td>
    <td class="midTable1Header1" width="100px">
    所属机构
    </td>
    <td class="midTable1Header1" width="150px">
    操作
    </td>
    </tr>
                                                <%--j 后台查询出的集合,用request.setA....以dadlist存储 --%>
    <s:iterator value="dadlist">
    <tr align="center" onMouseOver="mover(this);"
    onMouseOut="mout(this);">
    <td class="midTable1td2_center">
    <input type="checkbox" name="dadgs"  value="${recid }" />
    </td>
    <td class="midTable1td2_left">
    <label
    <%-- EL表达式,拿出集合里的实体属性名--%> title="<table><tr><td width='200px'>档案袋名称:${dadmc }<br>档案袋编号:${dadbh }<br>税务机关:<s:if test="dadssjg==42062500">谷城县地方税务局</s:if><s:if test="dadssjg==42062501">谷城县地方税务局稽查局</s:if><s:if test="dadssjg==42062502">谷城县地方税务局1分局</s:if><s:if test="dadssjg==42062503">谷城县地方税务局2分局</s:if><s:if test="dadssjg==42062504">谷城县地方税务局3分局</s:if><s:if test="dadssjg==42062505">谷城县地方税务局4分局</s:if><s:if test="dadssjg==42062506">谷城县地方税务局5分局</s:if><s:if test="dadssjg==42062507">谷城县地方税务局6分局</s:if><s:if test="dadssjg==42062507">谷城县地方税务局7分局</s:if><br>档案类型:<s:if test='dadlx=="tdxx"'>土地信息</s:if><s:if test='dadlx=="jaxx"'>建安信息</s:if><s:if test='dadlx=="bdcxx"'>不动产信息</s:if><s:if test='dadlx=="clf"'>存量房信息</s:if><s:if test='dadlx=="jcxx"'>基础信息</s:if><s:if test='dadlx=="nsrxx"'>纳税人</s:if><br>备注:${dadbz }</td></tr></table>">
    ${dadmc }
    </label>
    &nbsp;
    </td>
    <td class="midTable1td2_center">
    ${dadbh }&nbsp;
    </td>
    <td class="midTable1td2_left">
    <s:if test="dadssjg==42062500">谷城县地方税务局</s:if>
    <s:if test="dadssjg==42062501">谷城县地方税务局稽查局</s:if>
    <s:if test="dadssjg==42062502">谷城县地方税务局1分局</s:if>
    <s:if test="dadssjg==42062503">谷城县地方税务局2分局</s:if>
    <s:if test="dadssjg==42062504">谷城县地方税务局3分局</s:if>
    <s:if test="dadssjg==42062505">谷城县地方税务局4分局</s:if>
    <s:if test="dadssjg==42062506">谷城县地方税务局5分局</s:if>
    <s:if test="dadssjg==42062507">谷城县地方税务局6分局</s:if>
    <s:if test="dadssjg==42062507">谷城县地方税务局7分局</s:if>
    <%-- <s:if test="dadssjg==42062500">谷城县地方税务局</s:if>--%>
    <%-- <s:if test="dadssjg==42062501">谷城县地方税务局稽查局</s:if>--%>
    <%-- <s:if test="dadssjg==42062502">谷城县地方税务局1分局</s:if>--%>
    <%-- <s:if test="dadssjg==42062503">谷城县地方税务局2分局</s:if>--%>
    <%-- <s:if test="dadssjg==42062504">谷城县地方税务局3分局</s:if>--%>
    <%-- <s:if test="dadssjg==42062505">谷城县地方税务局4分局</s:if>--%>
    <%-- <s:if test="dadssjg==42062506">谷城县地方税务局5分局</s:if>--%>
    <%-- <s:if test="dadssjg==42062507">谷城县地方税务局6分局</s:if>--%>
    <%-- <s:if test="dadssjg==42062507">谷城县地方税务局7分局</s:if>--%>
    &nbsp;
    </td>
    <td class="midTable1td2_center">
    <input type="button" class="btn4_mouseout"
    onMouseOver="this.className='btn4_mouseover'"
    onmouseout="this.className='btn4_mouseout'"
    onmousedown="this.className='btn4_mousedown'"
    onmouseup="this.className='btn4_mouseup'" value="目录管理"
    onClick="domlmanage('${recid }','221','323','3');" />
    &nbsp;
    <input type="button" class="btn4_mouseout"
    onMouseOver="this.className='btn4_mouseover'"
    onmouseout="this.className='btn4_mouseout'"
    onmousedown="this.className='btn4_mousedown'"
    onmouseup="this.className='btn4_mouseup'" value="修改"
    onClick="doupdate('${dagcxxone.recid }','${recid }','${dagcxxone.ch }');" />
    &nbsp;
    <input type="button" class="btn4_mouseout"
    onMouseOver="this.className='btn4_mouseover'"
    onmouseout="this.className='btn4_mouseout'"
    onmousedown="this.className='btn4_mousedown'"
    onmouseup="this.className='btn4_mouseup'" value="删除"
    onClick="dodelete(this,'${dagcxxone.recid }','${recid }','${dagcxxone.ch }');" />
    </td>
    </tr>
    </s:iterator>
    </table>
      

  7.   

    <%@ page contentType="text/html;charset=gb2312" %>
    <%@ page import="guestbook.Device" %>
    <html>
    <head>
    <title>Schotry International Business<title>
    <meta http-equiv="Content-Language" content="zh-cn">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    <body>
    <body><font face="Arial"> <p align="center"> <b>Smart Inventory Management System</b><br>
    V1.01 Last Update: 2010.02.03
    </p>
    <b>Recently accessed device</b>
    <table border="1" width="100%" id="PartsList" cellspacing="0" style="border-collapse: collapse" bordercolor="#000000">
    <tr>
    <td bgcolor="#FFCC00"><b>Part</b></td>
    <td bgcolor="#FFCC00"><b>Quantity</b></td>
    <td bgcolor="#FFCC00"><b>Price</b></td>
    <td bgcolor="#FFCC00"><b>Manufacturer</b></td>
                    </tr>
          <td>(device.part)</td>
          <td>(device.quantity)</td>
          <td>(device.price)</td>
          <td>(device.manufacturer)</td>
              <tr>

    </table><p><b>Choose below Button :</b></p>
    <form action="guestbook.jsp" method="post">
      <div><input type="submit" Value="guestbook" style="font-family: Arial; font-size: 10pt; width:120"></div>
    <form action="del.jsp" method="post">
      <div><input type="submit" value="delete" style="font-family: Arial; font-size: 10pt; width:120">
    <br>
    <br>
    <a href="home.jsp">返回
     </font>
     </body>
     </html> 俺写滴