---
title: "重构struts的action"
author: "east_java"
date: "2008-06-28T10:52:21Z"
tags: []
categories: ["企业架构"]
slug: "struts-action"
draft: false
lastmod: "2008-06-28T10:52:21Z"
id: 208908
url: "https://japi.iteye.com/blog/208908"
---

struts的一个action可以集中实现某一个功能单元
但如果这个功能单元的功能很多，那么就会有出现很多的if-else if
这个时候是把action拆成几个小的action，但这样子会出现很多的复制粘贴。
对于这种情况可以更好的解决方法吗？