<s:form action="someAction">
<s:form action="someAction">
내 struts.xml에
이 포함되어 있습니다.<action name="someAction"
class="com.test.testaction.getValue"
method="getValuedemo">
<result name="success" type="redirectAction">demo</result>
</action>
내 액션에
이 포함되어 있습니다.
public class getValue extends ActionSupport{
private String userName;
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getValuedemo() {
userName = "tmpUser";
}
}
제 질문은 demo.action에서 사용자 이름 속성을 얻는 방법입니다. 제발 도와주세요