quxiuer
quxiuer
2009-09-04 14:45

struts2有关action路径的配置

  • struts

我的项目结构是附件图片中的样子

index.jsp页面提交后错误提示,找不到action

哪位告诉我哪个地方配置有误?

struts.xml
[code="java"]
<?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">



home.jsp



[/code]

index.jsp
[code="java"]
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


Say Hello


Say "Hello" to:



Name:

/s:form


[/code]
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答

为你推荐

换一换