在struts-config.xml里做好映射了么?
你程序里有么有Action?
你程序里有么有Action?
解决方案 »
- 怎样把4-6个字缩短成三个字的宽度
- dwr 错误 Failed to find parameter: windowName
- 学习JMS时无法创建InitialContext的问题
- 一个人的困惑
- SSH中调用Spring中定义的Bean失败;请教高手~~~~
- 关于hibernate得联合查询fetch的应用
- hibernate的DetachedCriteria查询怎么判断已经存在某个alias?
- IBM WebSphere 5.0 如何部署一个WEB应用?说细点 谢谢.
- struts1.2.4中如何配置struts-config.xml中的data-source(mssql,tomcat)(急)
- 关于jdbcTemplate.query(sql, args, mapper);
- 为何关闭TOMCAT后SESSION还有效啊?
- 大家帮我看一下这个ejb客户端的问题?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<!-- ========== Data Source Configuration =============================== -->
<data-sources />
<!-- ========== Form Bean Definitions ================================== -->
<form-beans>
<form-bean name="helloForm" type="com.javainthinking.struts.form.HelloForm">
<form-property name="userName" type="java.lang.String" />
</form-bean>
</form-beans>
<!-- ========== Global Exception Definitions ============================== -->
<global-exceptions />
<!-- ========== Global Forward Definitions =============================== -->
<global-forwards>
<forward name="Hello" path="/form/hello.jsp" />
</global-forwards>
<!-- ========== Action Mapping Definitions =============================== -->
<action-mappings>
<action
attribute="helloForm"
input="/form/hello.jsp"
name="helloForm"
path="/hello"
type="com.javainthinking.struts.action.HelloAction" />
</action-mappings>
<!-- ========== Controller Configuration ================================ -->
<controller />
<!-- ========== Message Resources Definitions ============================ -->
<message-resources parameter="com.javainthinking.struts.ApplicationResources" />
<!-- ========== Plug Ins Configuration ================================= -->
</struts-config>