如何将随机查询参数添加到动作的成功响应中

时间:2014-02-10 13:05:54

标签: java apache jsp tomcat struts

  

我已经向struts动作映射区域声明了一个动作。我们想在random.jsp页面上添加随机查询参数。有可能像/home/success.jsp?id=10000

        <action path="/Signup" name="signupForm" type="signup.SignupAction"
            validate="true" input="/home/signup.jsp" scope="request">
            <forward name="login" path="/home/success.jsp" />
            <forward name="error" path="/home/signup.jsp" />
        </action>

1 个答案:

答案 0 :(得分:0)

我要尝试的第一件事是:

<forward name="login" path="/home/success.jsp?id=<%=id%>" />

<forward name="login" path="/home/success.jsp?id=${id}" />