日期:2014-05-17 浏览次数:20919 次
public class ManageAllInfoAction extends ActionSupport {
private ManageAllInfoService manageAllInfoService;
private IntroduceInfo introduceInfo;
private PersonalInfo personalInfo;
private PrizeInfo prizeInfo;
private ThesesInfo thesesInfo;
private TUser tuser;
private List<Object> allInfos;
public String viewAllInfo(Integer no)
{
allInfos = manageAllInfoService.getAllByNo(personalInfo.getNo());
introduceInfo = (IntroduceInfo) allInfos.get(0);
personalInfo = (PersonalInfo) allInfos.get(1);
prizeInfo = (PrizeInfo) allInfos.get(2);
thesesInfo = (ThesesInfo) allInfos.get(3);
return SUCCESS;
}
<!--显示个人 详细信息 -->
<action name="allInfos" class="com.hr.action.ManageAllInfoAction"
method="viewAllInfo">
<result name="success">/viewPerson.jsp</result>
<result name="input">/welcome.jsp</result>
</action>
<td bgcolor="#eff4fa" class="tdd">
<a
href="allInfos.action?allInfos.no=<s:property value="no"/>">详细信息</a>
</tr>