用%{}可取出valueStack中的Action,可直接调用其方法.%{testa('key')} 即可调用到action的testa(String s) 方法但这些都需要结合struts2的标签. 如:key是需要传的参数,后台的testa方法的返回值是String类型的,key是值,例如经过本...
分类:
Web程序 时间:
2014-09-26 21:26:08
阅读次数:
169
php环境配置出错:Couldnotexecutemenuitem(internalerror)[Exception]Couldnotperformserviceaction服务尚未启动。80端口被占用了,找到wamp程序目录“bin\apache\apache2.2.22\conf”下的httpd.conf文件,使用记事本打开,找到“Listen80”将80改成8080(或者其他端口都可以..
分类:
Web程序 时间:
2014-09-26 21:10:49
阅读次数:
171
StrutsProblemReportStrutshasdetectedanunhandledexception:Messages:ThereisnoActionmappedfornamespace/projectInfoandactionnamequery.StacktracesThereisnoAction
mappedfornamespace/projectInfoandactionnamequery.-[unknown
location]com.opensymphony.xwork2.DefaultA..
分类:
其他好文 时间:
2014-09-26 20:40:29
阅读次数:
148
1.在开始的action里将下拉选项加入动态表达式 public ActionResult ArticList() { var articGroupList = articleGroupService.GetList(x => x.IsDeleted == false); //获取分组列表 View...
分类:
Web程序 时间:
2014-09-26 19:50:08
阅读次数:
415
主要有以下功能:
1. 基本的Sprite3D使用,加载静态模型和动态模型,看 Sprite3DBasicTest
2.Sprite3D对象的旋转,缩放等Action操作
3.Sprite3D中使用Shader特效,实现outLine
4.Animate3D来创建3D动画
5.动态增加3D骨骼,实现怪物添加手持武器功能
6,动态修改骨骼皮肤实现换装功能Sprite3DReskinTest
7.通过包围盒实现3D模型碰撞,Sprite3DWithOBBPerfromanceTest
8.实现水平镜像3D模型,...
分类:
其他好文 时间:
2014-09-26 13:23:29
阅读次数:
388
1 Intent.ACTION_MAINString: android.intent.action.MAIN标识Activity为一个程序的开始。比较常用。Input:nothingOutput:nothing2 Intent.Action_CALLStirng: android.intent.ac...
分类:
其他好文 时间:
2014-09-26 01:14:58
阅读次数:
349
1. Struts2 的验证1). 验证分为两种: > 声明式验证* 需要解决的问题如下: >> 确定对哪个 Action 或 Model 的那个字段进行验证 >> 使用什么验证规则 >> 如果验证失败, 转向哪一个页面, 显示是什么错误消息 > 编程式验证 2). 声明式验证...
分类:
其他好文 时间:
2014-09-26 01:12:37
阅读次数:
252
Model绑定是指从URL提取数据,生成对应Action方法的参数这个过程。前面介绍的一系列Descriptor负责提供了控制器,行为方法和参数的元数据,ValueProvieder负责获取数据,剩下的Moder绑定则是利用上述两者的结果来最终达到Model的生成。ParameterDescri.....
分类:
Web程序 时间:
2014-09-26 01:11:37
阅读次数:
257
很简单,通过调用系统的intent,我们可以打开各种文件,不熟悉的朋友可以了解下action、datatype、uri的相关知识。通用方法如下:public static Intent openFile(String filePath){
File file = new File(filePath);
if(!file.exists()) return null;
/* 取得扩展名...
分类:
移动开发 时间:
2014-09-26 00:47:18
阅读次数:
306
这个异常是因为struts.xml配置文件中action的name属性写错了: /thankyou.jspname属性应该和类的名字一样。或者也有可能是配置文件中有重名的action。
分类:
其他好文 时间:
2014-09-25 23:08:47
阅读次数:
213