您好,欢迎来电子发烧友网! ,新用户?[免费注册]

您的位置:电子发烧友网 > 源码下载 > Symbian编程 >

Struts编程源代码

大小:3446 人气: 2010-03-31 需要积分:0
$北方$的空间

用户级别:注册会员

贡献文章:

贡献资料:

Struts编程源代码

部分代码如下:

%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<html>
  <head>
    <title><bean:message key="app.title" /></title>
  </head>
  <body>

    <table width="650"
      border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="7">&nbsp;</td>
      </tr>
      <tr>
 <td height="68" width="48%">
          <div align="left">
            <img src="images/wxmainlogowhitespace.gif">
          </div>
        </td>
      </tr>
      <tr>
        <td colspan="7">&nbsp;</td>
      </tr>
    </table>

    <html:errors />

    <table width="700"
      border="0" cellspacing="0" cellpadding="0">
      <tr align="left">
        <th><bean:message key="app.username" /></th>
        <th><bean:message key="app.name" /></th>
        <th><bean:message key="app.phone" /></th>
        <th><bean:message key="app.email" /></th>
        <th><bean:message key="app.department" /></th>
        <th><bean:message key="app.role" /></th>
      </tr>
      <!-- iterate over the results of the query -->
      <logic:iterate id="employee" name="employees">
 <tr align="left">
   <td>
            <bean:write name="employee" property="username" />
   </td>
   <td>
            <bean:write name="employee" property="name" />
   </td>
   <td>
            <bean:write name="employee" property="phone" />
   </td>
   <td>
            <bean:write name="employee" property="email" />
   </td>
   <td>
            <bean:write name="employee" property="department" />
   </td>
   <td>
            <bean:write name="employee" property="rolename" />
   </td>
   <td>
        <a href="Edit.do?username=<bean:write name="employee"
       property="username" />">Edit</a>
     <a href="Delete.do?username=<bean:write name="employee"
       property="username" />">Delete</a>
   </td>
 </tr>
      </logic:iterate>
      <tr>
        <td colspan="7">
   <hr>
 </td>
      </tr>
    </table>
    <font size="-1" face="arial">
      <a href="addemployee.jsp">Add New Employee</a>
    </font>

  </body>
</html>

非常好我支持^.^

(0) 0%

不好我反对

(0) 0%

      发表评论

      用户评论
      评价:好评中评差评

      发表评论,获取积分! 请遵守相关规定!