×¢½âÓëXMLµÄÑ¡Ôñ - Java / Java EE
ÏÖÔÚÔÚÍøÉÏ¿´µ½ºÃ¶àÈËÓÃ×¢½âÀ´ÅäÖÃHIBERNATEµÈ£¬¶ø²»ÊÇXML¡£
¸öÈ˾õµÄ×¢½âûÓÐXML·½±ã£¬¸Ä¶¯ÆðÀ´Ò²Ã»XML·½±ã¡£
ΪʲôÓÐÄÇôµÄÈËÑ¡Ôñ×¢½â¡£
ÄѵÀÓÃ×¢½â´¿´âµÄΪÁ˼õÉÙÎļþÊýÁ¿ £¿
Äã¿´µ½µÄ×¢½â·½Ê½ÄÇÒѾ²»ÊÇ Hibernate µÄÁË£¬ÄÇÊÇ Java EE ¹æ·¶ÖÐµÄ JPA£¬¶ø Hibernate ½ö×÷Ϊ JPA µÄÒ»¸ö Provider ¶øÒÑ¡£
ÎÒ¸öÈËÈÏΪע½â±È½ÏÊʺϣ¬±Ï¾¹Ã»È˻ᾳ£È¥¸ü¸ÄÕâÖÖÓ³ÉäÅäÖðɣ¿¶øÇÒÈç¹ûʹÓà XML µÄ»°£¬»áµ¼ÖÂÅäÖúʹúÂëÈËΪµØ¸ô¿ªÁË£¬²é¿´Ô´´úÂëÁ˽âÓ³Éä¹ØÏµ½«»áºÜ²»·½±ã¡£
×¢½âÓëXML£¬¿´ÏîÄ¿×鹿·¶°É
×¢½âÓе㲻ϰ¹ß¡£¡£¡£
×¢½â»¹Õæ²»»á£¬¿´À´µÄѧѧÁË
·¹ý£¬²»Á˽â×¢½â
×¢½âÖªµÀÒ»µãµã£¬¿´À´ÒªÖØÐÂÈ¥¿´¿´ÁË
ÎÒÊÇÆ«ÏòÓÚ×¢½â£¬±È½Ï·½±ã
ÏÖÔÚ¾ø´ó²¿·Ö¹«Ë¾¶¼ÊÇxmlºÍ×¢½âºÏ²¢Ê¹ÓÃ,×¢½âÔÚÊÂÎñ¿ØÖÆÉϺÍbean×¢ÈëÉ϶¼±È½Ï·½±ã,¿ÉÒÔ¼õÉÙÅäÖÃÎļþµÄÓ·Ö×ÎÊÌâ,»¹ÓÐÈËÓÃ×Ô¶¨ÒåµÄ×¢½âÓëspringµÄaop½áºÏ,¹¹³ÉÒ»Ì×ȨÏÞ¿ØÖÆÏµÍ³,ÉøÍ¸µ½¸÷¸öactionÖÐ,ʵÏÖÁË×¢½â¿ØÖÆÈ¨ÏÞ,×¢½âµÄÒâÒåÒѾ²»ÔÙÊǵ¥´¿µÄ°ïÖúºÍÌáʾ,Ëü»¹»áÔÚÎÒÃǵĿªÔ´¼Ü¹¹Öз¢»Ó¸ü¶àµÄ×÷ÓÃ,¶øÔçǰµÄxmlÅäÖÃÒ²ÓÐËü¹ÌÓеÄÓŵã,ÎÒÃÇ¿ÉÒÔ¼ÓÒÔ±£Áô.
¸öÈË»¹ÊDZȽÏÇãÏòʹÓÃxmlµÄ
ÎÒÑ¡xml¡£
±ðÒÔΪÕâЩÅäÖÃÐÅÏ¢½ö½öд¸ø¿ò¼ÜÓõÄ(ÀýÈçÈÃHibernateÖªµÀÈçºÎÓ³Éä)£¬ÆäʵÎÒÃǾ³£
Ïà¹ØÎÊ´ð£º
±¾ÈËÕýÔÚÓÃJava×öÒ»¸öC/S¼Ü¹¹µÄÏîÄ¿£¬
¿ÉÊÇÓÉÓÚÏîÄ¿±È½Ï´ó£¬Ç°ÆÚ¶Ô¼Ü¹¹µÄÉè¼ÆÓÈÆäÖØÒª£¬ÒòΪºóÆÚ¿ÉÄÜËæÊ±»á¼Ó¸ö¹¦ÄÜ»òÕßÈ¥µôijЩ¹¦ÄÜ¡£
ËùÒÔÌØµØÑ°ÇóÈçºÎÉè¼ÆC/SµÄ¼Ü¹¹Ê¹³ÌÐò¸ü¼ÓÃæÏò¶ÔÏó¸ü¼ÓÒ×ÓÚά ......
ÎÒJSPµÄÒ³ÃæÊÇ£º
<%@ page language="java" contentType="text/html; charset=gb2312"
%>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......
¸÷·´óÏÀ¸ø¸ö˼·£¬²»ÊÇÔÚÏßµÄÄÇÖÖ£¬¾ÍÊÇÒ»¸ö×öÆÕͨµÄÓ¦ÓóÌÐò¡£
´Ê¿âÔõôÉú³ÉÄØ£¿
²»»á¡£
ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
ÕÒ±¾×Öµä
ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
Êý¾Ý¿â ºÇºÇ
ÓÃmap ¼üÖµ¶ÔÓ¦
Èç¹ûÓÃÊý¾Ý¿ ......
ΪʲôHTMLÒÔ¼°Ò»Ð©ÆäËü±êÇ©»áÏÔÊ¾Ò»Ð©ÌØ¶¨±íÏÖÐÎÊ½ÄØ£¿ÈçHTMLÖеĻ»ÐбêÇ©<BR/>ÔڵײãÊÇÔõÑùʵÏÖµÄÄØ£¿ÏÖʵµÄÔÀíÊÇÊ²Ã´ÄØ
È¥W3C¹Ù·½ÍøÕ¾ÉÏ£¬¿´¿´°É£¡ÎÒÏëÒ»¿´Äã¾ÍÃ÷°×ÁË
ÎҲºͱàÒëÔÀíÓйأ¬ä¯ÀÀÆ÷Àï¿É ......
³ÌÐòÈçÏÂ:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page language="java" %>
<%@ page import="com.mysql.jdbc.Driver" %>
<%@ page import ......