`
文章列表
Caused by: Unable to locate parent package [default-package] - [unknown location] <constant name="struts.convention.default.parent.package" value="default-package" /> 之前把属性设置为自定义的default-package了,设置回去struts-default就可以了<constant name="struts.convention.default.pare ...
Caused by: The Result type [json] which is defined in the Result annotation on the class [class action.MenuAction] or determined by the file extension or is the default result type for the PackageConfig of the action, could not be found as a result-type defined for the Struts/XWork package [action#s ...
系统:Windows 8 IDE:MyEclipse2014 部署环境:JDK1.6.0_38、Tomcat7.0.55   Exception in thread "main" org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (IO 错误: Got minus one from a read call) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSo ...
org.hibernate.hql.ast.QuerySyntaxException: GoodsInfo is not mapped [select count(*) from GoodsInfo where gname like '%%']   有可能是以下的原因导致Exception: 1. HQL语句有错:HQL语言要面向对象 GoodsInfo.java实体类进行操作,不是数据库表名,或者实体类写错; 2.忘了配置GoodsInfo.hbm.xml文件,或者配置有错;
Struts+2权威指南--基于WebWork核心的MVC开发 电子书
<<Struts2权威指南--基于WebWork核心的MVC开发>>源码
深入浅出Hibernate电子书和该书的源码
GOOGLE后,知道产生这问题的原因有:   1.struts2的配置文件没有放在src目录下(其实是没有放在/WEB-INF/classes/目录下),   2.struts2中配置的package标签的namespace属性配置有误   3.页面调用Action的方式有错   但我这次产生这错误都不是上面的原因. 因为我是使用ajax方式提交,所以package扩展于json-default,其它配置(略), 检查配置都没有问题,检查调用方式也没问题,最后想想好像JSON for struts2的插件JAR包还没加上,找到对应STRUTS2相应版本的struts-json ...
今天做基于AJAX的校验的练习时,遇到了如下的exception: 2011-5-11 11:18:08 uk.ltd.getahead.dwr.util.CommonsLoggingOutput warn警告: Error setting class=org.apache.Struts2.validators.DWRValidator on uk.ltd.getahead.dwr.create.NewCreatorjava.lang.IllegalArgumentException: Class not found: org.apache.Struts2.validators.DWRVali ...
在使用struts2的datetimepicker标签时候遇到JS错误:dojo未定义错误        代码: <%@ page language="java" contentType="text/html; charset=gbk" pageEncoding="gbk"%> <%@ taglib uri="/struts-tags" prefix="s"%> & ...
2011-4-29 16:30:44 org.apache.struts2.components.Form evaluateExtraParamsServletRequest警告: No configuration found for the specified action: 'login' in namespace: ''. Form action defaulting to 'action' attribute's literal value.2011-4-29 16:30:45 org.apache.struts2.components.Form evaluateExtraParamsS ...
使用struts2时异常: HTTP Status 404 - There is no Action mapped for namespace / and action name loginaction.   报该异常的原因有:   1). 在struts.xml文件的action配置有误 2). url中的action name与struts.xml文件中的aciotn name不相符,也就是拼写有误 3). struts.xml文件没有在classes目录下
web根目录:109UPload    109UPload             |------Uploadfile             |           |------109.txt             |------WEB-INF       Action类读取文件夹Uploadfile内的文件109.txt的方法有:   方法一: public class SaveAction implements Action{ public static String getRootPath(){ ...
java.text.ParseException: Unparseable date: "11/10/10" at java.text.DateFormat.parse(DateFormat.java:337)     下面是可以运行的代码。         Date date = new Date();        System.out.println(date.toString());                DateFormat df = new SimpleDateFormat ("yyyy-MM-dd");             ...
下面小编要和大家分享的是Struts2中的加载资源文件的方式!对于一个大型的应用而言,可能资源文件非常庞大,因此有必要将它分成多个较小的文件,Struts2可以指定包范围资源文件,类范围资源文件,以及临时指定资源文件。 ...
Global site tag (gtag.js) - Google Analytics