---
title: "stucts后台如何拿前台传过来的参数"
author: "zhou_wu"
date: "2010-10-15T09:00:48Z"
tags: []
categories: ["企业架构"]
slug: "stucts"
draft: false
lastmod: "2010-10-15T09:04:39Z"
id: 785409
url: "https://leesmart.iteye.com/blog/785409"
---

```java

<a href='editPayment.do?paymentId="5"/>

String svcPaymentId = ((StrutsCommandContext)input).getRequest().getParameter("paymentId");
```


或者

strust配置文件里配置paymentId,然后input.get("paymentId")；