---
title: "Struts 中如何使用重定向 "
author: "llhdf"
date: "2010-03-08T15:03:03Z"
tags: []
categories: ["企业架构"]
slug: "struts"
draft: false
lastmod: "2010-03-08T15:03:03Z"
id: 610366
url: "https://llhdf.iteye.com/blog/610366"
---

使用getRequestDispatcher 的方式，对于绝对路径是可以使用的，struts会自动加上context的。注意红色字体部分，如果没有将显示白页。

request.getRequestDispatcher("/syslog/triger_manage.do?method=findTriger").<span style="color:red">forward(request,response);</span>