url完全可以写成struts虚拟路径的,不知你这里出了什么问题

解决方案 »

  1.   

    var url="/teacherform.do"; 
    showModalDialog(url,"status=no","dialogWidth:182px;dialogHeight:215px;status:no;"); 
    注意,在calendar.jsp里的,连接,图片,还有js,css的导入都用绝对路径,要么就相对于根路径引用
      

  2.   

    1、
    function content(str){
    var url="logManager.do?action=recordInfo&str="+str; 
    window.showModalDialog(url,window,'dialogheight:400px;dialogwidth:550px');
    }
    2、
    <TD><a href="#" onClick="javascript:content('<c:out value="${log.recordinfo}"/>')">查看详细内容</a></TD>
    3、
    action中:
    public synchronized ActionForward recordInfo(ActionMapping mapping,
    ActionForm form, HttpServletRequest request,
    HttpServletResponse response) throws Exception
    {
    if(!initParam(request)) return mapping.findForward("errors");
    return mapping.findForward("recordInfo");
    }4、
    配置文件:
    <forward name="recordInfo" path="/recordContent.jsp" redirect="false" />