哪两个<%%>里面的跑上去了?

解决方案 »

  1.   

    <% 
    ShowConditions sc = new ShowConditions(); 
    sc.ShowTitle(request,response); 
    %> 
    <% 
    sc.Show(request,response); 
    if(response.isCommitted()) return; 
    %> 这两段代码形成的数据跑到<html>上面去了
      

  2.   


    楼主说的是这两个<%%>。没接触过哈。。
      

  3.   

    你这两个都没有在<tr><td></td></tr>里面啊,是会跑到table前面去地说
      

  4.   

    table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> 
    <% 
    ShowConditions sc = new ShowConditions(); 
    sc.ShowTitle(request,response); 
    %> 
    <tr> <td bgcolor="#FFFFFF"> 
    <table id="tb1" align="center" border="0" cellpadding="2" cellspacing="1" bgcolor="#000000"> 
    <tr bgcolor="#66CCFF"> <td height="25" align="center" class="style4" colspan="4">指定条件 </td> 
    </tr> 
    <% 
    sc.Show(request,response); 
    if(response.isCommitted()) return; 
    %> 
    <tr bgcolor="#FFFFFF"> <td colspan="4"> 
    <input type="submit" class="button" name="submit" value="  提交  " onClick="return validate_all();"> </td> 
    </tr> 
    </table> 
    <p>&nbsp; </p> 
    </td> </tr> </table> 这不是在table里面么?并且在resin和weblogic里面没有错误
      

  5.   

    没有放到<%%>生效的位置
    请把<%%>放到<tr> <td> </td> </tr>里面。
      

  6.   

    大哥,我代码里面不是放到<tr><td></td></tr>中了?
      

  7.   


    <%  
    sc.Show(request,response);  
    if(response.isCommitted()) return;  
    %>  
    不明白你在JSP里面return些什么?
      

  8.   

    大哥,建议你——下次请把关键位置用红色标记出来!<table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> 
    <% 
    ShowConditions sc = new ShowConditions(); 
    sc.ShowTitle(request,response); 
    %> 
    <tr> <td bgcolor="#FFFFFF"> 
    你这个跑到table前面那是当然的了!
      

  9.   

    要么放到table定义前,要么放到<td></td>内,你这样其实是破坏了 table定义的结构!
      

  10.   

    我的
    sc.ShowTitle
    函数返回的就是<tr></tr>之类的table的结构
      

  11.   

    lz 先关闭tomcat 然后 到tomcat/work/ 下,删除 work 下的所有东西然后再重新启动tomcat,可能是你的jsp没有完全编译造成的。
      

  12.   

     <table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> 
    <tr><td>
    <% 
    ShowConditions sc = new ShowConditions(); 
    sc.ShowTitle(request,response); 
    %> 
    </td></tr>
    <tr>  <td bgcolor="#FFFFFF">