1、js中
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、配置文件:
<
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"
/>
posted on 2006-04-03 17:57
★yesjoy★ 阅读(1028)
评论(0) 编辑 收藏 所属分类:
Struts学习总结