- 浏览: 22930 次
最新评论
-
laoaenna:
该问题已经解决,针对struts2.2。*。*以后版本,
there is no action mapped for namespace/ and action name -
laoaenna:
有没有人给个解决的办法啊,调试了一天了,也换了jdk也换了To ...
there is no action mapped for namespace/ and action name
文章列表
dom4j读取xml 提供了两种方法DOMReader和SAXReader
环境搭建一般就是解压dom4j-1.5.zip,引入dom4j-1.5.jar和jaxen-1.1-beta-4.jar包
1.从文件读取XML,输入文件名,返回XML文档
public Document read(String fileName) throws MalformedURLException, DocumentException {
SAXReader reader = new SAXReader();
Document document = reader.read(new Fi ...
index.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%@page import="read.ReadXml"%><%@page import="read.MenuBeanan"%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%& ...
hibernate Transaction
- 博客分类:
- j2ee
没有使用事务管理模式,myEclipse的反向工程生成的dao的save方法
public void save(Cigarette transientInstance) {log.debug(“saving Cigarette instance”);try {getSession().save(transientInstance);log.debug(“save successful”);} catch (RuntimeException re) {log.error(“save failed”, re);throw re;}}?并不能说这个没有添加事务管理模式,只不过这么写他有的时候灵有的时 ...
对于hibernate反向工程生成的DAO中的方法,getSession().close().
session是轻量级的,每次创建和销毁不是很费时间,
sessionFactory是重量级的,每次创建和销毁很浪费时间,
struts2 commons-logging-1.0.4.jar 主要用于日志处理 freemarker-2.3.8.jar 模板相关操作需要包 ognl-2.6.11.jar ognl表达示所需包, xwork-2.0.7.jar xwork核心包 struts2-core-2.0.14.jar struts2核心包 struts2-spring-plugin-2.0.14.jar struts2整合spring所需要的包
commons-fileupload-1.2.1.jar 文件上传必须用的包commons-io-1.3.2.jar 文件上传必须用的包如果还需要整合其它框架或者插件, ...
struts.xml
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name=" ...
这是struts.xml代码
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="strut ...