从你的需求来看,就打开发布、查询的页,这样用 window.open() 就行啦

解决方案 »

  1.   

    add.innerHtml=="<jsp:include page='addnews.jsp'/>"里面的"<jsp:include page='addnews.jsp'/>"是字符串了,当然原样显示。
      

  2.   

    可以在div里包 frameset 然后重定向frameset的src
      

  3.   

    使用Ajax实现是可以将jsp页面显示在div里面的。 
        我项目里面做分页就是使用的Ajax包含jsp页面。 <%@taglib prefix="s" uri="/struts-tags"%>
    <table id="showdataTable" width="100%" bgcolor="#FFFFFF">
    <thead>
    <tr>
    <th width="2%">
    &nbsp; &nbsp;
    </th>
    <th>
    id
    </th>
    <th>
    UPC
    </th>
    <th>
    code
    </th>
    <th width=25%">
    product-url
    </th>
    <th>
    family
    </th>
    <th>
    price
    </th>
    <th>
    manufacture-number
    </th>
    <th>
    brand
    </th>
    <th>
    sale-price
    </th>
    <th>
    查看详细
    </th>
    </tr>
    </thead>
    <s:iterator value="productSet" status="status">

     <s:if test="#status.count%2 == 0">
    <tr bgcolor="#B4C6DB">
    </s:if>
    <s:else>
    <tr>
    </s:else>
    <td>
    <input type="checkbox" value="<s:property value="productId"/>" name="temp">   
    </td>
    <td>
    <s:property value="id" />
    </td>
    <td>
    <s:property value="upc" />
    </td>
    <td>
    <s:property value="code" />
    </td>
    <td>
    <s:property value="poductUrl" />
    </td>
    <td>
    <s:property value="family" />
    </td>
    <td>
    <s:property value="price" />
    </td>
    <td>
    <s:property value="manufacturePartNumber" />
    </td>
    <td>
    <s:property value="brand" />
    </td>
    <td>
    <s:property value="salePrice" />
    </td>
    <td>
    <a href="#" onclick="details('<s:property value="productId"/>')" target="rightFrame">详细</a>
    </td>
    </tr>
    </s:iterator>
    </table>Ajax请求时,直接将上面那个jsp response掉。
      

  4.   

    可以用jquery方法来实现代码少容易理解去电驴上搜索下有视频教程