
struts
文章平均质量分 77
叶威1
这个作者很懒,什么都没留下…
展开
-
struts2与jquery easyui中的easyui-datagrid出现异常ognl.MethodFailedException: Method
jsp页面如下:String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My原创 2012-12-26 21:41:12 · 2556 阅读 · 0 评论 -
Struts2文件下载
一个简单的利用struts2做文件下载的demo……首先配好struts:web.xmlversion="1.0"encoding="UTF-8"?>version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www原创 2013-08-24 14:42:22 · 1772 阅读 · 0 评论 -
ireport ,jasper,jsp 网页显示报表
ArrayList arrayList=new ArrayList(); UserInfo userInfo; Calendar aa = Calendar.getInstance(); for(int i=0;i100;i++){ String date = "";转载 2013-03-28 15:29:51 · 1286 阅读 · 0 评论 -
Struts2教程6:在Action类中获得HttpServletResponse对象的四种方法
在struts1.xAction类的execute方法中,有四个参数,其中两个就是response和request。而在Struts2中,并没有任何参数,因此,就不能简单地从execute方法获得HttpServletResponse或HttpServletRequest对象了。 但在Struts2 Action类中仍然有很多方法可以获得这些对象。下面就列出四种获得这些对象的方法。【原创 2013-03-28 15:29:05 · 1134 阅读 · 0 评论 -
SSH:SSH(Struts1 + Spring + hibernate)整合之配置文件
Web.xml代码 "1.0" encoding="UTF-8"?> "2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.su转载 2013-03-06 16:29:09 · 2400 阅读 · 0 评论 -
hibernate saveOrUpdate抛出异常
环境:spring 1.0.2 hibernate2.1.4代码:类public class Test{ private long id_; ...MAPPING文件 ....使用代码 getHibernateTemplate().saveOr转载 2013-03-05 23:33:06 · 2983 阅读 · 0 评论 -
struts1
1 helloworld(不带form) strutt1.2与1.3在lib上的差别 由于1.2中没有标签库包 ,所以需要相关的tld文件 (struts-bean.tld,struts-html.tld,struts-logic.tld,struts-nested.tld,struts-tiles.tld) (1)导包 拷贝需要相关的tld文件(1.2) (2)写acti原创 2013-01-22 15:19:24 · 1060 阅读 · 0 评论 -
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
用struts2和jquery.ajax进行异步请求的时候在谷歌浏览器的console出现了Failed to load resource: the server responded with a status of 500 (Internal Server Error)而struts2中action中的方法正常执行并且能查询到数据到时这些数据不能返回到页面上,即jquery.ajax中的回调原创 2013-01-07 22:55:34 · 149449 阅读 · 2 评论 -
struts2中的s标签解析
那就从简单的标签说起吧!1.x中常用的标签只有4中html、bean、logic、tiles而struts2.0里的标签却没有分类,只用在jsp头文件加上 就能使用struts2.0的标签库 下面就介绍每个标签的具体应用实例说明:按字母排列A: 1. 2. -----超链接,类似于html里的 3. -----执原创 2012-12-19 21:31:02 · 22517 阅读 · 1 评论 -
<s:action/>及<s:param/>
-----执行一个view里面的一个action-----为其他标签提供参数 struts2的s:param标签主要有两个属性name与value, 若想在value属性中输入直接量,则可以这样写:, 也可以这样写:<s:paramname="some">user。但如果直接赋值,这个值不是由Action动态生成的,而是自己指定的一个字符串,则只能用后者.原创 2012-12-19 21:22:03 · 1088 阅读 · 0 评论 -
启动Tomcat6.x时manager does not exist or is not a readable directory
重: Error in resourceStart()2011-9-19 11:36:28 org.apache.catalina.core.StandardContextstart严重: Error getConfigured2011-9-19 11:36:28 org.apache.catalina.core.StandardContextstart严重: Context [/原创 2014-02-28 10:22:19 · 3188 阅读 · 0 评论