代码如下:
<td width="52" height="21"><a onclick="javascript: returnMain();" >
<script>
 function returnMain(){
hide_menu();
setTimeout("parent.frames[3].location = 'welcome_frame_curhome.do?      currentPage=1&pageSize=15';","2000");
  }
</script>

解决方案 »

  1.   


    function returnMain(){
    hide_menu();
    setTimeout("window.open( 'welcome_frame_curhome.do? currentPage=1&pageSize=15','_mainframe')","2000");
    }
      

  2.   

    不行,还是那样,这个方法我也试过location.replace("welcome_frame_curhome.do?currentPage=1&pageSize=15");
      

  3.   

    不知你跳转的URL想在哪里打开,是在父框架里的框架中(就象你所写的),还是完全替换父框架所在HTML的URL(如果是这样,用top.location=...)。
      

  4.   

    关键是你welcome_frame_curhome.do这个类action返回的页面,设置这个页面是你想要的页面即可
      

  5.   

    不知你所说的停顿到底是怎么样。
    function returnMain(){
    hide_menu();
    parent.frames[3].location = 'welcome_frame_curhome.do? currentPage=1&pageSize=15';
    }
    取消延时???
      

  6.   

    setTimeout("top.location = 'welcome_frame_curhome.do? currentPage=1&pageSize=15';","2000");
      

  7.   

    lz把你的action方法,粘贴出来,给大家看看啊?
      

  8.   

    setTimeout("top.location = 'welcome_frame_curhome.do?currentPage=1&pageSize=15';",2000);
      

  9.   

    <screen name="welcome_frame_curhome">
    <parameter key="title" value="homepage" direct="true"/>
            <parameter key="screenId" value="BDM01S01" direct="true"/>
            <parameter key="functionId" value="首页" direct="true"/>
            <parameter key="body" value="/homepage/curhome.jsp"/>
        </screen>
    ********************************************
    <url-mapping url="welcome_frame_curhome.do" screen="welcome_frame_curhome.screen">
    <web-action-class>com.app.dibf.controller.web.actions.homepage.AJJC360HtmlAction</web-action-class>
    </url-mapping>
    ********************************************public class AJJC360HtmlAction extends HtmlActionJsrsSupport {
        private static Logger log = Logger.getLogger(AJJC360HtmlAction.class);    public Event perform(HttpServletRequest request) throws HtmlActionException,
                ValidationException {        if (log.isDebugEnabled()) {
                log.debug("AJJC360HtmlAction.perform() Begin.");
            }        AJJC360Event event = new AJJC360Event();
            String currentPage = RequireUtil.getParameterWithUpperCase(request,
                    RequestConstant.CURRENT_PAGE);
            String pageSize = RequireUtil.getParameterWithUpperCase(request,
                    RequestConstant.PAGE_SIZE);
            if (log.isDebugEnabled()) {
                log.debug("********* currentPage **********:" + currentPage);
                log.debug("********** pageSize ************:" + pageSize);
            }
            if (currentPage == null || "".equals(currentPage)) {
                if (log.isErrorEnabled()) {
                    log.error(ErrorCode.CURRENT_PAGE_IS_NULL);
                }
                throw new HtmlActionException(ErrorCode.CURRENT_PAGE_IS_NULL);
            }
            if (pageSize == null || "".equals(pageSize)) {
                if (log.isErrorEnabled()) {
                    log.error(ErrorCode.PAGE_SIZE_IS_NULL);
                }
                throw new HtmlActionException(ErrorCode.PAGE_SIZE_IS_NULL);
            }        //get query Condition
            String qk = request.getParameter("qk");
            String wzbz = request.getParameter("wzbz");
    String jingxing = request.getParameter("jingxing");
            String firstJh = request.getParameter("firstJh");
            String gx = request.getParameter("gx");
            String sj = request.getParameter("sj");
            log.debug("gxandsj=============================================99999999999999999"+gx+sj); //System.out.println("qqqqqqqqqqqqqqqqqqqqkkkkkkkkkkkk         "+qk);
            ArrayList firstJhList = (ArrayList) request.getSession(true).getAttribute("homepage_jhList");
            String tempJh = null;
            if (firstJh != null) {
                if (!firstJh.equals("*")) {
                    tempJh = (String) firstJhList.get(Integer.parseInt(firstJh));
                }
            }
            Ajjc360Value ajjc360Value = new Ajjc360Value();
            ajjc360Value.setQk(qk);
    ajjc360Value.setJingBie(jingxing);
            if (wzbz == null) wzbz = "1";//默认正钻井
            ajjc360Value.setWzbz(wzbz);
            ajjc360Value.setJingHao(tempJh);        if (log.isDebugEnabled()) {
                log.debug("HtmlAction Ajjc360Value ******************:" + ajjc360Value);
            }
            request.getSession(true).removeAttribute("top_condition");
            request.getSession(true).setAttribute("top_condition", ajjc360Value);        UserProfile userProfile = (UserProfile) request.getSession(true).
                                      getAttribute(SessionConstant.USER_PROFILE);
            event.setUserProfile(userProfile);
            event.setCurrentPage(Integer.parseInt(currentPage));
            event.setPageSize(Integer.parseInt(pageSize));
            event.setAjjc360(ajjc360Value);
            event.setGx(gx);
            event.setSj(sj);
            if (log.isDebugEnabled()) {
                log.debug("AJJC360HtmlAction.perform() End.================ssssssssss888888888888888"+gx+sj);
            }
            return event;
        }
      

  10.   

    个人感觉和ACTION没关系,主要是跳转方式的关系吧,哎不知道怎么了,
    <a href="welcome_frame_curhome.do?currentPage=1&pageSize=15" 
    这样也不行,还是有个过渡页面,不过过渡页面停顿几秒,然后自动跳往主页。