Struts2----带参数转发到JSP
struts.xml
?
?user_success.jsp
?
?UserAction.java
?
package com.pegasus.web;import com.opensymphony.xwork2.ActionSupport;public class UserAction extends ActionSupport {private int type;public int getType() {return type;}public void setType(int type) {this.type = type;}public String execute() throws Exception {return "success";}}