java xmlÎÄÌâ - Java / Java SE
<?xml version="1.0" encoding="utf-8" ?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@+id/button0" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="·ÇÖÞ²ÝÔµØÍ¼£ºFrameLayoutµÄʹÓÃ" />
<Button android:id="@+id/button1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="¸öÐÔ»¯±íµ¥:RelativeLayoutµÄʹÓÃ" />
<Button android:id="@+id/button2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="LinearLayoutºÍRelativeLayout»¥ÖúʹÓÃ" />
<Button android:id="@+id/button3" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="ÕûÆëµÄ±íµ¥£ºTableLayoutµÄʹÓÃ" />
</LinearLayout>
·ÖÎöÒ»ÏÂÉÏÃæµÄ³ÌÐò Ô½ÏêϸԽºÃ
Button android:id="@+id/button1"
ÆäÖÐ@ÊÇʲô×÷Óà ÓÃÀ´±íʾʲô
@+idºÍ@idµÄÇø±ð
±¾È˵ÚÒ»´Î½Ó´¥xml »¹Çë´ó¼ÒÏêϸ½âÊÍ
Èç¹û¿ÉÒԵϰÁôÏÂÁªÏµ·½Ê½
Íò·Ö¸Ð¼¤
Äã˵µÄ¶¼²»ÊÇXMLµÄÎÊÌ⣬¶øÊÇÕâ¸öxml
Ïà¹ØÎÊ´ð£º
µ±ÖªµÀÒ»¸öÈÕÆÚ£¬ÈçºÎ°ÑÕâ¸öÈÕÆÚËùÔÚÑ®µÄǰºóÁ½¸öÈÕÆÚÈ¡³ö
±ÈÈçÊäÈë20090905£¬¾ÍÊäÈë20090901 20090910
Êä³ö20090901 20090910
È¡µÃÌìÊýºó×÷Ò»ÏÂÅжÏÔÙ°ÑÕâ¸ö·½·¨ÓÃÏÂvoid set(int field, int value)
......
import java.sql.Connection;
import java.sql.Date;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class QueryTest&n ......
ÎÒÏÖÔÚÓÃstruts2¿ò¼Ü,ÐèҪʹÓÃajaxʵÏÖ¾Ö²¿Ë¢Ð£¬µ«ÊÇ´ÓÈÝÆ÷Àï·µ»ØµÄÖµ²»ÖªµÀÔõô´Óstruts.xmlÅäÖÃÎļþÀïÓ³Éäµ½jspÒ³ÃæÀÒÔǰservletÀïдout.orint("xxxxx")¾Í¿ÉÒԵõ½~£¬µ«ÊÇÏÖÔÚÓÃstruts¾Í²»ÖªµÀÔõôР......
DataSetµ¼³öxml Åú´¦Àí(Ñ»·)µÃÔõô´¦Àí
XMLÎļþ
<A>
<B>
<C>
</C>
&nb ......
´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽÎļþ
<folder state="unchecked" label="È«²¿">
¡¡¡¡<folder state="unchecked" isBra ......