第一篇:flex整合Java登陆总结
Flex结合java实现一个登陆功能
1、环境的搭建:
对message-congig.xml配置如下:
Web.xml的配置如下: class=“flex.messaging.services.remoting.adapters.JavaAdapter” default=“true” />
services.configuration.file
/WEB-INF/flex/services-config.xml
这些xml文件基本固定。
2、创建Bean类User和Login类
public class Login {
} 启动tomcat,至此myeclipse里的配置结束。
3、在flah builder里创建一个flex项目。public String login(String name, String psw){
} public String login(User user){
}
public User login(){ } return new User(“wang”,“aaa”,33);if(“sss”.equals(user.getName())&&
} return “good”;return “sorry”;if(“aa”.equals(name)&& “123”.equals(psw)){
} return “ok”;return “error”;} else {
“123”.equals(user.getPwd())){ }else{
应用服务器技术类型选:j2ee BalzeDS 下一步之后配置服务器位置:
点击完成。
4、对index.mxml的编写:
首先要在fx:Decaration中配置destination对应于message-congig.xml中的id Result是回调函数,
endpoint=“/flexApp01/messagebroker/amf”>
Fx:script中的代码如下:
import com.wang.asclass.User;
import mx.controls.Alert;import mx.rpc.events.ResultEvent;protected function huidiao1(event:ResultEvent):void { // TODO Auto-generated method stub
var result:String =event.result as String;
]]> } Alert.show(result,“结果”);protected function huidiao2(event:ResultEvent):void { // TODO Auto-generated method stub
var result:User = event.result as User;Alert.show(result.name);trace(result.name);} protected function senddata(event:MouseEvent):void //按确认按钮时 {
} protected function canceldata(event:MouseEvent):void //按取消按钮时 {
}
protected function showdata(event:MouseEvent):void{ //按查询按钮
} loginClientTag2.login();// TODO Auto-generated method stub
var name:String=this.nametext.text;var psw :String=this.pswtext.text;var user :User = new User();user.name=name;user.pwd=psw;loginClientTag.login(user);
// TODO Auto-generated method stub
this.nametext.text=“";this.pswtext.text=”“;
视图:
可创建一个名为User的as类 package com.wang.asclass {
}
[Bindalbe] [RemoteClass(alias=”com.wangkun.User")] public class User {
} public function User(){ } public var name : String;public var pwd : String;public var age : int;
第二篇:普通员工登陆
1.普通员工登陆
名称 Land
create procedure Land
@yhm float,@mm float,@result char(8)output
AS
if exists
(select * from member where @yhm=yhm and @mm=mm)set @result='success' begin
end
else
begin
set @result='faile'
end
2.管理员登陆
名称 manager_Land
create procedure Land
@yhm varchar(50),@mm varchar(50),@result int output
AS
if exists
(select * from member where @yhm=yhm and @mm=mm)set @result=1 begin
end
else
begin
set @result=0
3.end管理员删除成员
名称manager_del
create procedure manager_del
@id int
as
delete from member WHERE id=@id SELECT *FROM member
4.管理员修改员工信息
名称manager_change
create procedure manager_change
@name char(8),@sex char(4),@age int, @id int,@zhiwu char(8), @yhm float,@mm float
as
update member
set name=@name,sex=@sex,age=@age,id=@id,zhiwu=@zhiwu,yhm=@yhm,mm=@mm
where id=@id select * from member
5.管理员查询员工信息
名称manager_find
create procedure manager_find
@ID int,@name char(8)output,@sex char(4)output,@age int output, @idd int output,@zhiwu char(8)output,@yhm float output,@mm float output,as
select @name=name,@sex=sex,@age=age,@id=id,@zhiwu=zhiwu,@yhm=yhm,@mm=mm from member where @ID=id
6.管理员添加员工信息
名称manager_insert
create procedure manager_insert
@name char(8),@sex char(4),@age int, @id int,@zhiwu char(8), @yhm float,@mm float
as
insert into member values(@name,@sex,@age,@id,@zhiwu,@yhm,@mm);select *
from member
7.员工查询工资情况
名称salary_find
create procedure salary_find
@id int,@jbgz float output,@grsds float output,@jcje float output
as
select @jbgz=jbgz,@grsds=grsds,@jcje=jcje
from salary
where @id=id;
第三篇:诺曼底登陆英文演讲稿
Good afternoon everyone!Before making a speech, I want to ask you a question.Do you know what happened on June 6th of 1944? Who knows it? Please raise your hand.If you can‟t say it in English, speaking Chinese is OK.Yeah, it is the Normandy [nɔrməndi]Landing.I think most of you must have learned it from your history textbook.Am I right?OK, however, there are a lot of interesting and important stories which our textbook doesn‟t tell us.And this is what I am going to talk about.First of all, you may have learned that the Normandy Landing is also called “the opening of the second battlefield”.So what does “the second” mean? Who knows it? Raise your hand, please.Yeah, at that time Soviet[soʊviet] was battling against Germany and Soviet was thrown into dilemma[dɪlɛmə].Lots of troops were ruined and Moscow was almost seized[si:z].So Stalin[stɑ:lin] demanded his allies Britain and America do something to relieve his burden[bɜ:dn].But the Prime Minister Churchill [tʃə:tʃil] had his own thoughts.He wanted to benefit from the battle between the two countries.So he took pains to find the excuses for his delay[dɪleɪ].He said Britain had no ability to open the second battlefield.Why did Churchill say so? Because he attached importance to the Middle East and the Mediterranean[medɪtə‟reɪniən].Britain had plenty of colonies[„kɒləni] at these places and they were likely to be attacked by Axis Powers.Obviously, in his opinion, defending British interests was the most important.Although the opening of the second battlefield was delayed year after year, Allied Powers finally decided to launch the plan in 1944.But is it so easy? Allied Forces thought the vital problem was the landing place.There were two ideal places.One was Calais['kæleɪ], the other was Normandy.Now let us analyze the two places.Calais was the nearest landing point.But German had established many strongholds there.Normandy was far from Britain but the beach was wide, which would help spread huge amounts of troops.If you were the commander in 1944, which place would you choose? Sounds a little difficult.But what is the vital factor of a military action? It is acting abruptly and surprisingly.You may have heard of the famous saying in Sunzi‟s art of war.It is “March where the enemy can‟t imagine and attack what the enemy doesn‟t defend”.Sounds a bit familiar? Because Calais was the nearest landing point, German guessed Allied Forces would land at Calais.Of course they established lots of strongholds so landing would pay a heavy price.The next problem for Allied Forces was how to hide their real purpose.German was not a fool.If German perceived the real purpose, they would transfer their troops from Calais to Normandy.So intelligence was significant.In order to deceive the enemy, Allied Forces did what they could do.They established a strong army called “the First Group Army” and deployed the army near Calais and most importantly, they assigned George Barton to be the commander.Now we know it is fictitious[fɪktɪʃəs].But in 1944 German didn‟t know.George Barton was famous for his outstanding military talent and German was afraid of him.They thought: Oh, Barton became the commander of the First Group Army, it meant the Allied Forces would take a big action.They paid attention to the army and assigned spy planes to Britain to get information about the army.Allied Forces made full use of these German spy planes.They deployed lots of tanks, planes and cannons[kænən] around the base of the First Group Army.But they were all made of rubber.So interesting, right? They were not the real weapons.However, German spy planes couldn‟t distinguish the differences.They returned to Germany and told Hitler the wrong information.However, doing these was not enough to deceive the enemy.In order to prove that the First Group Army truly existed, Allied Forces developed a great number of double agents.Double agent means a spy serve two countries at the same time.The double agents were used by German to get intelligence from Allied Forces.Of course they gave the wrong information to German.They said Allied Forces would land at Calais and the First Group Army was very strong.The most inconceivable thing was that Allied Forces even used actors.They managed to find an actor who resembled[rɪzembl] the Marshal Montgomery[mɑntɡʌməri] very much.The real Montgomery hid and the actor flew to North Africa.German spies in North Africa followed the Marshal secretly and reported all his activities to German Forces.It gave German Forces a wrong impression that Allied Forces would take an action in North Africa so they didn‟t dare to transfer all their troops from North Africa to North France.All in all, a series of intelligence deceptions and other assistant strategies made German believe that Allied Forces would land at Calais.What is worse, when Allied Forces began to land at Normandy, German Forces even believed it was an illusive military action.The chief commander Eisenhower['aɪzən‟haʊər] called the first day of landing “the longest day”.The famous German Marshal Rommel[„rɑməl] called it “the decisive 24 hours”.In the end Allied Forces won the decisive 24 hours.When German reinforcements[ri:ɪn‟fɔ:smənt] arrived, it was too late.That‟s all.Thank you very much!
第四篇:个人企业邮箱登陆方法
向郭宗设(手机短号6758、座机200)申请,并成功开通企业邮箱后,登陆方法为:
1、浏览器访问ym.163.com
2、提示界面
3、输入账号与密码,新用户开通默认密码为123456,示例:手机短号@hj-net.com
4、登陆成功过后,提示界面为修改密码界面(为保障个人隐私安全,密码严禁使用初始密码123456)
同时,勾选下面
我同意,进入邮箱,下次访问企业邮箱,即为此次更改密码。
第五篇:诺曼底登陆英文简介
The Normandy Invasion was a massive battlefield action launched by The Antifascist alliance confederates in western Allies in Europe.The battle took place on June 6, 1944, early at 6:30.The campaign in August 19 ended after the confederates went through Seine-Marne River.The Normandy Invasion is the world’s largest sea in combat by far, involving nearly 3million soldiers crossing the channel in Normandy in France.Tens of thousands of Second World War veterans from all over the world have been gathering in Normandy in northwestern France of the D-Day Landings, the huge military operation, which gave allies forces the foothold they needed to end the Nazi occupation of Europe.From Britain alone, at least 12000 former servicemen and women are making the journey.In an echo of June 1944, many are crossing the English Channel in boats escorted by warships and also in Normandy are 600 American parachutists commemorating an airborne assault there behind enemy lines.Significance of Normandy Campaign: Normandy Landing was a historic campaign in later period of the Second World War.The allies include American, Canada, France, Britain, Poland, Holland and Norway, they open up the second battlefield in Europe, which expedited the downfall of Germany.The campaign with great extent and cruel battles was rare in human history.And this campaign provided the foundation for the world-wide liberation.