补充下,开发工具是myeclipse + tomcat + mysql;
从前台到后台使用struts + hibernate.
而且我的tomcat总是自动关,我将它的端口从8005改成了8008

解决方案 »

  1.   

    显示的代码是队友写的,action是我写的
      

  2.   

    没有错误日志啊,tomcat下jsp能显示,但是整个表单的内容都没了,用html能显示表
      

  3.   

    <TABLE id="id1" style="BORDER-RIGHT:darkgreen lpx solid;BORDER-TOP: 
    darkgreen lpx solid;BORDER-LEFT:darkgreen lpx solid;WIDTH:100%; 
    BORDER-BOTTM:darkgreen lpx solid;BORDER-COLLAPSE:collapse" 
    borderCorlor="darkgreen"cellspacing="0"border="1"> 
    <logic:notEmpty name="messageList" > 
    <tr> 
    <TD noWrap> <b> 消息 </b> </TD> <br> 
    <TD noWrap> <b> 内容 </b> </TD> <br> 
    <TD noWrap> <b> 作者 </b> </TD> <br> <TD > <b> 动作 </b> </TD> <br> 
    <TD > <b> 时间 </b> </TD> <br> 
    </tr> 
    <logic:iterate indexId="index" id="item" name="messageList" > 
    <tr> 
    <td class="allcapsCcenter"> 
    <bean:write name="item" property="id"/> 
    </td> 
    <td class="allcapsCenter"> 
    <bean:write name="item" property="content"/> </td> 
    <td> <bean:write name="item" property="author"/> </td> 
    <td nowrap class="center"> 
    <html:form method="post" action="/checkeditmessage.do">  
    <html:submit value="修改"> </html:submit>  
    <inpute type="hidden" id="id"name="id"/> 
    <inpute type="hidden" id="author"name="author"/> 
    </html:form> 
    </td> 
    <td class="allcapsCenter"> 
    <bean:write name="item" property="date"/> </td> 
    </tr> 
    </logic:iterate> 
    </logic:notEmpty> 
    </TABLE> 
    <html:form action="/checkeditmessage.do" method="post"> 
    <inpute type="hidden" id="hid"name="hid"/> 
    </html:form> 
    </body> 
    <script language="Javascript"> 
    <!-- 
    function submitSid(form,.hid){ 
    form.hid.value=hid; 
    form.submit(); 

    //--> 
    </script> 
    </html> 
    问题出在这一块上,他显示的代码是在书上看到的一个类似的,拿来改了下