|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
C++编译的是本地码,优点是启动快,而且可以精确控制资源因此可以开发很高效的程序.缺点是编程麻烦,而且容易留下安全隐患.跨平台靠源代码在各个平台间分别编译(一处编写到处编译)
这是第二个类action
packagetester.business.maitain;
importorg.apache.struts.action.*;
importjavax.servlet.http.*;
importorg.apache.struts.upload.*;
publicclassMaintainForm
extendsActionForm{
/**privateStringp_title;
privateintpost_index;
privateStringissue_time;
privateStringissue;
privateStringp_content;
privateStringp_accessory;
privateintp_id;
privatejava.util.ArrayListpost_indexOpts;
*/
privateTrainplantrainPlan=newTrainplan();
privateorg.apache.struts.upload.FormFiletheFile1;
privateorg.apache.struts.upload.FormFiletheFile2;
privateorg.apache.struts.upload.FormFiletheFile3;
publicStringgetP_title(){
returntrainPlan.getP_title();
}
publicvoidsetP_title(Stringp_title){
trainPlan.setP_title(p_title);
}
publicvoidsetTrainPlan(TrainplantrainP){
this.trainPlan=trainP;
}
publicTrainplangetTrainPlan(){
returnthis.trainPlan;
}
publicvoidsetTheFile1(org.apache.struts.upload.FormFiletheFile1){
this.theFile1=theFile1;
}
publicorg.apache.struts.upload.FormFilegetTheFile2(){
returntheFile2;
}
publicvoidsetTheFile2(org.apache.struts.upload.FormFiletheFile2){
this.theFile2=theFile2;
}
publicorg.apache.struts.upload.FormFilegetTheFile3(){
returntheFile3;
}
publicvoidsetTheFile3(org.apache.struts.upload.FormFiletheFile3){
this.theFile3=theFile3;
}
publicorg.apache.struts.upload.FormFilegetTheFile1(){
returntheFile1;
}
publicActionErrorsvalidate(ActionMappingactionMapping,
HttpServletRequesthttpServletRequest){
/**@todo:finishthismethod,thisisjusttheskeleton.*/
returnnull;
}
publicvoidreset(ActionMappingactionMapping,
HttpServletRequesthttpServletRequest){
}
}
再说第三点:我并没有提到服务器也要整合,然后是IDE,一个好的IDE能够200%提高开发的速度,就说图形方面:你是经过简单托拽和点击就能实现功能好那。 |
|