jsp页面
var w1;
function Toselect1(){
var sjyq = document.getElementById("sjyq").value;
$.ajax({
async: false,
cache: false,
type: "get",
url: "<%=request.getContextPath()%>/hbbusiness/describe2.action?bigname="+sjyq,
success : function (remsg, textStatus) {
w1=new Ext.Window({
title:'设计要求标准语句',
width:318,
height:200,
resizable:false,
html:'<iframe src="/hbywxt/manager/hbbusinessManager/need/smalltypename1.jsp?msg='+remsg+'"></iframe>',
});
w1.show();
}
});
}
html中部分代码:
<td align="center" class="tdStyle" ><b>设计要求</b></td>
<td align="center" class="tdStyle" colspan="3">
<textarea id="textmessage1" name="demandlist.demandsj" maxlength="1000" style="width: 100%" rows="4" onkeydown="textmessageLength(this)"></textarea>
</td>
<td align="center" class="tdStyle" colspan="2">
<a href="javascript:void(0);" onclick="Toselect1()">
<b>添加标准语句</b>
<input type="hidden" id="sjyq" value="sjyq" />
</a>
</td>
struts.xml
<!-- 添加标准语句 -->
<action name="describe2" class="needAction" method="describe2">
<result name="success" type="dispatcher">/manager/hbbusiness/need/smalltypename.jsp</result>
</action>
action
//添加标准语句
public String describe2(){
System.out.println("..../////////////////////////.......");
String message = "";
}
action中的输出语句,不能输出,也就是进不来。大神们帮帮忙看看怎么回事!
------解决方案--------------------
前台没提交过去数据吧?
跟踪下你的 js,看看哪里有问题
------解决方案--------------------
firefox的firebug,不知道就google下。可以设置断点