厚积ss薄发的博客
厚积ss薄发 · 共 4 篇文章
struts2和json问题
如果代码如下: public StudentService getStudentService() { return studentService; } 出现问题: Struts Problem Report Struts has detected an unhandled exception: Messages: Positioned Update not supported. java.lang.reflect.InvocationTargetException org.apache.struts2.json.JSONException: java.lang.reflect.Invoca…
2013-06-20 13:10 · struts2 · 评论(0)
android自定标题栏
自定义标题栏 自定义标题栏的xml文件title_bar.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ImageView android:layout_width="wrap_content" android:layout_centerVertical="t…
2013-05-27 16:39 · android · 评论(0)
webkit中的javascript和android交互
第一步: 在项目中的assets目录中新建text.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <script type="text/javascript"> function showInfo(…
2013-05-26 20:15 · android · 评论(0)
第一个struts2例子
第一步:到官网下载struts2jar包 http://struts.apache.org/ 第二步:把jar包导入项目中,我们这个例子只需要要一些基本包 struts2-core-2.3.14.jar,xwork-core-2.3.14.jar,ognl-3.0.6.jar,javassist-3.11.0.GA.jar 第三步:配置一些文件 1.web.xml文件 在文件中加入下面代码: struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter <filter-mapping> <filte…
2013-05-26 19:46 · struts2 · 评论(0)