<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>test</title>
</head>
<frameset frameborder="NO" border="0" framespacing="0">
    <frame src="xxxAction.do?method=listAll" name="main">
</frameset>
<noframes><body>
</body></noframes>
</html>

解决方案 »

  1.   

    直接訪問Action。通過Action組合好需要顯示的資料后再調用相關頁面顯示
      

  2.   

    <script language="JavaScript" type="text/JavaScript">
    location.href = "****.do?todo=***";
    </script>
      

  3.   

    Johnson_Hong 
    用的是frameset,但是如果有很多个框呢,如最新新闻,热门新闻,图片新闻等10个框?那如果全部用frameset组合的话会很麻烦吧?
      

  4.   

    <html>
    <meta http-equiv="Refresh" content=0;url="xxxAction.do?method=listAll" name="main">
    </html>
      

  5.   

    如果是简单系统的话,你就在action的listAll方法把你新闻,热门新闻,图片新闻等需要的数据都查出来,然后再跳转到首页不就行了,只用一个frameset啊
      

  6.   

    如果首页需要经常变换,可定制要求高,请用portal
      

  7.   

    就是说首页要显示数据库查询出来的内容,就要重定向调用一个action,在action中查询好所有内容,再跳转到一个新的页面显示对吗?
      

  8.   

    好谢谢Johnson_Hong 。
    感觉还是有点麻烦哦,不像.net中有个pageload的初始方法,初始好页面所有内容来得方便。