日期:2014-05-17 浏览次数:20792 次
<action name="passParam" class="productStroageAction">
<result type="redirectAction">
<param name="actionName">findTopics</param>
<param name="topicName">${topicName}</param>
</result>
</action>
<action name="findTopics" class="productStroageAction" method="findTopics">
<result name="success">/stroage/add.jsp</result>
</action>
public void passParam(){
topicName = request.getParameter("topicName");
}
public String findTopics(){
request.setAttribute("message", topicName);
return "success";
}
private String topicName;
/**
* @return the topicName
*/
public String getTopicName() {
return topicName;
}
/**
* @param topicName the topicName to set
*/
public void setTopicName(String topicName) {
this.topicName = topicName;
}