flex µÇ½ÎÊÌâ - Java / Java EE
ÎÒÔÚjavaÀàдÁËÒ»¸öµÇ½·½·¨£º
//Óû§ÃûºÍÃÜÂëµÇ½
public boolean loginDemo(String name,String password){
Login login = new Login();//id,name,password 3¸ö²ÎÊý
boolean resultLogin=false;
String sql = "select * from test_users where name='" + name
+ "' and password='" + password + "'";
try {
stm=getconn().createStatement();
rs=stm.executeQuery(sql);
while(rs.next()){
login.setName(rs.getString(1));
login.setPassword(rs.getString(2));
resultLogin = true;
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return resultLogin;
}
ÔÚflex¶ËÔõôµ÷ÓÃ
<s:Label x="86" y="147" text="Óû§Ãû£º" width="84" height="32"/>
<s:Label x="86" y="207" text="ÃÜÂ룺" width="53" height="22"/>
<s:TextInput x="178" y="147"/>
<s:TextInput x="178" y="207"/>
<s:Button x="157" y="313" label="怫"/>
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="l
Ïà¹ØÎÊ´ð£º
µ±ÖªµÀÒ»¸öÈÕÆÚ£¬ÈçºÎ°ÑÕâ¸öÈÕÆÚËùÔÚÑ®µÄÇ°ºóÁ½¸öÈÕÆÚÈ¡³ö
±ÈÈçÊäÈë20090905£¬¾ÍÊäÈë20090901 20090910
Êä³ö20090901 20090910
È¡µÃÌìÊýºó×÷Ò»ÏÂÅжÏÔÙ°ÑÕâ¸ö·½·¨ÓÃÏÂvoid set(int field, int value)
......
ÔÚaspÀïÔõôµ÷ÓÃjavaдµÄwebservice·½·¨£¬Óкܶ෽·¨
- <message name="RtPnrIn">
<part name="bstrPnrNO" type="s:string" />
<part name ......
JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
JSPÒ³Ã潫²ÎÊýPOST¸øservlet
ÒªÇóÈçÏÂ;
1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......
´úÂëÈçÏ £¬ÎÒÏëͨ¹ý´úÀí·ÃÎÊһЩÍøÖ·£¬µ«ÊDz»ÖªµÀÈçºÎ²âÊÔ´úÀí³É¹¦£¬ÎÒÏëͨ¹ý·ÃÎÊ¡°http://www.blogger.com/¡±À´¿´¿´ÊÇ·ñ´úÀí³É¹¦£¬µ«ÊÇÒ²²»ÄÜ·ÃÎÊ£¬³öÏÖÒì³£¡°Unexpected end of file from server¡±£¬µ«ÊÇÈç¹û²»Õâ ......
String sqlCount="select count(*) from usertable where username='"+
userName+"'";Õâ¾ä»° ʲôÒâ˼°¡£¡
Õâ¾ä»°Êä³ö³öÀ´¾ÍÊÇ
select count(*) from usertable where username='ÄãµÄ±äÁ¿ ......