ÈýÌìÁË»¹ÊÇʵÏÖ²»ÁË£¬¼±Çó JSP±íµ¥ÉÏ´«½ø¶ÈÌõ Ext+JS
Çë¸ßÊÖ°ï°ï棬ÈýÌìÁË»¹ÊÇʵÏÖ²»ÁË£¬Ã»Á³¼ûÀÏ°åÁ˶¼¡£¡£¡£¡£
ÎÒҪʵÏÖµÄÊÇÓÃJSPÒ³ÃæÉÏ´«EXCELÎļþ£¬Ò»¸öAPI¶ÁÈ¡Õâ¸öÎļþ²¢´¦ÀíÈ»ºóдÈëÊý¾Ý¿â£¬´¦ÀíÒª¾¹ýºÜ³¤Ê±¼ä£¬ËùÒÔÐèÒªÒ»¸ö½ø¶ÈÌõ¡£ÔÚÍøÉÏËÑÁ˺ܶà×ÊÁÏ£¬ºóÀ´¾ö¶¨ÓÃext+JS ʵÏÖ£¬ÊDzο¼Õâ¸öÍøÖ·£ºhttp://www.java2000.net/p1457
ÏÖÔڵ㼤¡°Ìá½»¡±ÒÑ¿ÉÒÔµ¯³öext.messageboxµÄ½ø¶ÈÌõÁË£¬µ«Êǽø¶ÈÌõû·¨¸ù¾ÝÉÏ´«½ø¶È¸Ä±ä¡£Äѵã¾ÍÊÇÈçºÎ¼àÌýÉÏ´«Îļþ£¬È»ºó·´À¡Ë¢Ð½ø¶ÈÌõ¡£
ÎÒµÄ±íµ¥Ò³ÃæuploadFileToTemis.jsp
<script>
function checkForm(){
Ext.MessageBox.show({
title: 'Please wait...',
msg: 'Processing...',
width:240,
progress:true,
closable:false,
buttons:{cancel:'Cancel'}
});
document.uploadFileToTemisForm.submit();
return false;
}
</script>
<body>
<html:form action="/uploadFileToTemis" enctype="multipart/form-data">
<input type="button" value="Submit1" onclick="checkForm()">
</html:form>
</body>
Èç¹û²Î¿¼ÄǸöÍøÒ³µÄÄÚÈÝÔÚ function checkForm()ÀïÃæ¼ÓÉÏ$("SHOW_FRAME").src="link.jsp"; ¾Íû·¨Õý³£ÏÔʾ£¨ÎÒÓÃÁËͬÑùµÄlink.jsp£©
ÄǸöAction µÄjavaÎļþÓ¦¸ÃÔõÃ
Ïà¹ØÎÊ´ð£º
ÎÒÔÚʹÓÿªÔ´µÄJXL ³öEXCEL±¨±íʱÓöµ½ÕâÑùµÄÎÊÌâ¡£
ÎÒÏë³öµÄÎļþÃû³ÆÊÇÕâÑùµÄ£ºÀý£ºtest_ÀîÇ¿.xls
´úÂëÊÇ ....test_+"UserID"+".xls";
µ«ÊÇ¿ØÖÆ̨ÎÒ¿´µ½µÄÊä³öÃû³ÆЧ¹ûÊÇ£ºtest_µ ......
include.jspÖÐ
<jsp:include page="divide.jsp?value1=2&value2=3 flush="true">
value1 , value2 µÄÖµ¿ÉÒÔ´ÓÉÏÒ»¸ö´«¸øinclude.jspµÄdata.jspÖÐÈ¡Âð£¿
Èç¹û¿ÉÒÔÕâôд° ......
ÎÒÊÇÓÃSTRUTS £¬×öÁËÒ»¸öJSPÒ³Ã棬Ìá½»ºóûÓдæÈëÊý¾Ý¿â¡£
JSP´úÂëÈçÏ£º
aa.jsp´úÂë
<%@ page contentType="text/html;charset=gb2312" language="java"%>
<%@ taglib uri=" ......
ÎÒÓÃSqlServer½¨Á¢ÁËÒ»¸ö±í¡£ÀïÃæÓУ¬Îļþ±àºÅ: ÎļþÃû³Æ: ³§¼ÒÃû³Æ: ¹éµµ²¿ÃÅ: µÈµÈ£»
ÏÖÔÚÎÒÏë´ÓÕâ¸ö±íÖвéÎļþ±àºÅ£¬´úÂëÔõôд°¡£¬
ÀýÈ磬±íÃ÷dengjibiao Îļþ±à ......
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......