/org_addInput
<constant name="struts.i18n.encoding" value="GB18030"/>
<package name="org" namespace="/" extends="struts-default">
<action name="org_*" class="orgAction" method="{1}" >
<result name="{1}">org/org_{1}.jsp</result>
<result name="{1}_success">org/org_{1}_success.jsp</result>
<result name="{1}_fail">org/org_{1}_fail.jsp</result>
</action>
</package>
function openWin(f,n,w,h,s){
sb = s == "1" ? "1" : "0";
l = (screen.width - w)/2;
t = (screen.height - h)/2;
sFeatures = "left="+ l +",top="+ t +",height="+ h +",width="+ w
+ ",center=1,scrollbars=" + sb + ",status=0,directories=0,channelmode=0";
openwin = window.open(f , n , sFeatures );
if (!openwin.opener)
openwin.opener = self;
openwin.focus();
return openwin;
}
<a href="#" onclick="openWin('org_addInput?parentId=<s:property value="#org.id"/>','addInput',600,200)">添加</a>
点后父页面
type Status report
message There is no Action mapped for namespace [/] and action name [] associated with context path [/oa].
description The requested resource (There is no Action mapped for namespace [/] and action name [] associated with context path [/oa].) is not available.
加上一个/或者org_addInput.action
在不行就直接写绝对路径!话说这种用href来写事件的方式是不被推荐的。
函数不要return试试看。