1、js中
function
?content(str){
?
var
?url
=
"
logManager.do?action=recordInfo&str=
"
+
str;?
?window.showModalDialog(url,window,'dialogheight:400px;dialogwidth:550px');
}
2、頁(yè)面
<
TD
><
a?
href
="#"
?onClick
="javascript:content('<c:out?value="
${log.recordinfo}"
/>
')">查看詳細(xì)內(nèi)容
</
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"
?
/>
?