日期:2014-05-18  浏览次数:20750 次

Form Post 测试
<form   action= "userrolelist.jsp "   method= "post "   >
<tr> <td> <%=flabel.getProperty( "userrolelist_userid ")   %> :   <span   id= 'ruid '   > <%=uid   %> </span> &nbsp;&nbsp;&nbsp;
<input   type= "button "   name= "chkid "   value= " <%=flabel.getProperty( "userrolelist_checkid ")   %> "   onclick= "window.open( 'useroptlist.jsp?usrtype=allusr&fspan=ruid&fvalue=uid ', 'popuppage ', 'width=100,height=300,top=100,left=100,   scrollbars=yes,   resizable=yes '); "   >
<input   type= "submit "   name= "B1 "   value= " <%=   flabel.getProperty( "userrolelist_retrieve ")%> "   > <br> <br> <br>
  </td> </tr>
</form>  

在userrolelist.jsp中有这样一段代码!  

当点击submit按钮的时候重新转到本页面  

String   uid   =   request.getParameter( "uid ");
LinkList   rlst   =   new   LinkList();

if(uid   !=   null   &&   uid.trim().length()   !=0   ){
rlst   =   theSecurity.getUserRoleHistory(uid);
}
else{
uid   =   new   String();
}  

这一段的作用是:当post到本页面时,读取request.getParameter( "uid ")的值,如果uid不为null,则执行rlst   =   theSecurity.getUserRoleHistory(uid);

 

问题是:   在IE下执行正常,而在FireFox中却没有反应,这个是什么原因呢!  

我查了一下tomcat控制台的返回讯息  

如果是IE:
Inside   jspFunction.jsp   ....
fname   is   :C:\\Documents   and   Settings\\ns00001\\workspace\\mwapp\\properties\\MWrole_zh_CN.xml
UserSecurity.getUserRoleHistory:org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement@788a7b
如果是FireFox:
Inside   jspFunction.jsp   ....
fname   is   :C:\\Documents   and   Settings\\ns00001\\workspace\\mwapp\\properties\\MWrole_zh_CN.xml
 

也就是没有执行
UserSecurity.getUserRoleHistory:org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement@788a7b
(rlst   =   theSecurity.getUserRoleHistory(uid);)

我的表述清楚了吗?  
 


------解决方案--------------------
本人求教问题: 本人新建了一个工程在TOMCAT的WEBAPPS目录下名为TEST。在TEST中写了一个简单的TEST。JSP文件。为什么在浏览器中找不到这个文件,无法打开,提示404错误。(TOMCAT 配置正确能打开其主页)。后将TEST。JSP放到TOMCAT的ROOT目录下,提示不能找到JAVA编译器,提示500错误。(JDK环境变量配置正确,能在命令行下执行JAVA程序)。 恳请哪为大虾指教!!!