---
title: "path的问题"
author: "newand"
date: "2008-04-02T18:15:58Z"
tags: []
categories: ["非技术"]
slug: "path"
draft: false
lastmod: "2008-04-02T18:15:58Z"
id: 178943
url: "https://newand.iteye.com/blog/178943"
---

工程为：test

struts-config.xml里面有

```
<action-mappings>
<action path="lookupAction" type="wiley.LookupAction" name="LookupForm"
  scope="request"
  validate="true"
  input="/index.jsp">
</action>
</action-mappings> 
```

 

jsp页面：test1.jsp

在jsp页面则有

```
<FORM action="lookupAction" method="post">
    <P>
    <LABEL for="firstname">name </LABEL>
    <INPUT type="submit" value="Send"> <INPUT type="reset">
    </P>
 </FORM>
```

 

再点击了submit后actionservlet是如何找到lookupAction的？

如果写成

```
<FORM action="/layer/lookupAction" method="post">
```

在点击submit可以找到lookupAction吗？

jsp里面指定的action与struts-config里action的path是什么关系？