【发布时间】:2014-01-17 20:46:36
【问题描述】:
我有一个 struts2 动作类,当用户按下链接时执行
public class goToUserProfile {
public String execute(){
System.out.println("An action class has been called!");
return "profile";
}
}
这是标签
<s:a action="goToUserProfile">
为了显示配置文件的特定信息,我需要使用 struts 传递用户 ID
/profile.action?userNo=846258
事情是这样的。我真的不知道如何通过动作类传递值 假设我有一个数组中的所有用户 ID(目前)我如何将其中一个 ID 传递到个人资料页面?
【问题讨论】: