在struts中如何使用showModalDialog()

在struts中如何使用showModalDialog()

1、js中

function  content(str){
 
var  url = " logManager.do?action=recordInfo&str= " + str; 
 window.showModalDialog(url,window,'dialogheight:400px;dialogwidth:550px');
}

2、页面

< TD >< 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、配置文件:

   < action  path ="/logManager"  scope ="request"
    type
="gov.cfte.object.struts.action.LogManagerAction"  unknown ="false"
    input
="/common/logList.jsp"
    name
="logForm"
    parameter
="action"
    
>
< forward  name ="recordInfo"  path ="/recordContent.jsp"  redirect ="false"   />


 

你可能感兴趣的:(在struts中如何使用showModalDialog())