JSP中运用useBean标签

<table>
  <tr>
    <td>
       <jsp:useBean id="Sgsn" scope="request"      class="com.sgsn.bean.Bean" />
       <jsp:setProperty property="sgsnName" name="Sgsn" value="sgsn-kk"/>
      <jsp:setProperty property="sgsnId" name="Sgsn" value="1234"/>
      <c:out value="${Sgsn.sgsnName}"></c:out>
      <c:out value="${Sgsn.sgsnId}"></c:out>
    </td>
  </tr>
</table>

你可能感兴趣的:(java,jsp)