分类目录归档:struts2框架

struts2接收参数



struts2接收参数

1.action的属性接收参数
showAction.java
package com.ru.action;
import com.opensymphony.xwork2.ActionSupport;
public class ShowAction extend[......]

Read more

struts2解决中文乱码



struts2解决中文乱码

1.配置struts.xml,设置编码类型
<?xml version=”1.0″ encoding=”UTF-8″ ?>
<!DOCTYPE struts PUBLIC
“-//Apache Software Foundation//DTD[......]

Read more

struts2模块包含

struts2模块包含

标签:

struts2

包含模块

分类: 框架

struts2模块包含

可以看到在web应用中有两个struts2的xml文件。使用一个xml包含另一个xml。

1。struts.xml
<?xml version=”1.0″[......]

Read more