jsp µ÷ÓÃconnection
function editFormSubmit() {
var dataForm = Ext.getDom("dataForm");
var conn = new Ext.data.Connection({url:"edit.action"});
conn.request({
params:{
selectId:Ext.getDom("selectId").value,
selectSwyg:Ext.getDom("selectSwyg").value,
selectJdyg:Ext.getDom("selectJdyg").value,
selectJdwg:Ext.getDom("selectJdwg").value,
// selectPowerFactor:Ext.getDom("selectPowerFactor").value,
selectAgckzz:Ext.getDom("selectAgckzz").value,
selectAgckgzt:Ext.getDom("kgztCombo").value,
selectAgcStatus:Ext.getDom("statusCombo").value
},
success:function () {
dialogArguments.document.getElementById("queryBtn").click();
Ext.MessageBox.alert("Ìáʾ", "Êý¾ÝÐ޸ijɹ¦");
window.close();
}
});
}
Ïà¹ØÎĵµ£º
ServletÈý¸öÒªËØ:
1.±ØÐë¼Ì³Ð×ÔHttpServlet
2.±ØÐëʵÏÖdoGet()»òÕßdoPost()
3.±ØÐëÔÚweb.xmlÖÐÅäÖÃServlet
<servlet>
<servlet-name> </servlet-name>
<servlet-class> </servlet-class>
</servlet>
<servlet-mapping>
<servlet-name> </servlet-nam ......
Õ⼸Ìì×öÁËÒ»¸öÏîÄ¿£¬´óÁ¿Óõ½ÁËJSPÓë servletÖ®¼äµÄ´«Öµ£¬ËùÒÔ×ܽáÁËÒ»ÏÂ
JSPÓë servletÖ®¼äµÄ´«ÖµÓÐÁ½ÖÖÇé¿ö£ºJSP -> servlet£¬ servlet -> JSP¡£
ͨ¹ý¶ÔÏó requestºÍ session (²»¿¼ÂÇ application)Íê³É´«Öµ¡£
Ò»¡¢JSP -> servlet
JSPÒ³ÃæÓÐ3ÖÖ·½·¨Ïò servlet´«Öµ£º form±íµ¥¡¢URL ¡¢ÆäËû
<!--&nbs ......
JavaBeanÊÇSun¹«Ë¾ÃæÏò»ùÓÚ×é¼þµÄ¿ª·¢¶øÖƶ¨µÄÒ»Ì׹淶£¬µ«ÔÚʵ¼ÊµÄJ2EE¿ª·¢ÖУ¬Í¨³£Ö»Ðè·ûºÏÈçÏÂÌØµã£º
(1)Õâ¸öJavaÀà±ØÐë¾ßÓÐÒ»¸öÎ޲εĹ¹Ô캯Êý£»
(2)ÊôÐÔ±ØÐë˽Óл¯£»
(3)˽Óл¯µÄÊôÐÔ±ØÐëͨ¹ýpublicÀàÐ͵ķ½·¨±©Â¶¸øÆäËü³ÌÐò£¬²¢ÇÒ·½·¨µÄÃüÃûÒ²±ØÐë×ñÊØÒ»¶¨µÄÃüÃû¹æ·¶¡£
JavaBeanÔÚJ2EE¿ª·¢ÖУ¬Í¨³£ÓÃÓÚ·â×°Êý¾Ý ......
Ò»¡¢Expression Language
EL±í´ïʽÓÃÓÚ»ñÈ¡²¢ÏÔÊ¾Ò³ÃæÊý¾Ý£¬²¢Ìæ»»JSPÒ³ÃæÖеĽű¾±í´ïʽ¡£ËüÊÇJSP 2.0¹æ·¶ÖеÄÒ»Ãż¼Êõ ¡£Òò´Ë£¬ÈôÏëÕýÈ·½âÎöEL±í´ïʽ£¬ÐèʹÓÃÖ§³ÖServlet2.4/JSP2.0¼¼ÊõµÄWEB·þÎñÆ÷¡£
1¡¢ EL±í´ïʽÒþʽ¶ÔÏó
Òþº¬¶ÔÏóÃû³Æ
Ãè Êö
pageContext
¶ÔÓ¦ÓÚJSPÒ ......