Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to implement logic iterate in my jsp?

 
rakshini nithya
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ths is
/*
* Created on Jul 12, 2006
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.cognizant.teamprofile.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.cognizant.teamprofile.dao.SearchMemberTeamProfileData;
import com.cognizant.teamprofile.actionform.SearchMember1TeamProfileForm;
import com.cognizant.teamprofile.actionform.MemberInfo;
/**
* @author 133474
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class SearchMember1TeamProfileAction extends Action{
public ActionForward perform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
{ SearchMember1TeamProfileForm searchmember1teamprofileform=(SearchMember1TeamProfileForm)form;
SearchMemberTeamProfileData searchmemberteamprofiledata=newSearchMemberTeamProfileData();
List member=searchmemberteamprofiledata.Search(searchmember1teamprofileform);
request.setAttribute("Member",member);

if (member != null && member.size() > 0) {
for (int i = 0; i < member.size(); i++) {
MemberInfo memberInfo = (MemberInfo)member.get(i);
System.out.println("FirstName"+memberInfo.getFirstName());
System.out.println("LastName"+memberInfo.getLastName());
System.out.println("EmployeeID"+memberInfo.getEmployeeID());
System.out.println("EmailID"+memberInfo.getEmailID());
System.out.println("Vnet"+memberInfo.getVnet());
System.out.println("Extension"+memberInfo.getExtension());
System.out.println("MobileNumber"+memberInfo.getMobileNumber());
}
}
/*MemberInfo memberinfo=searchmemberteamprofiledata.Search(searchmember1teamprofileform);
request.setAttribute("MemberInfo",memberinfo);

{
System.out.println("FirstName"+memberinfo.getFirstName());
System.out.println("LastName"+memberinfo.getLastName());
System.out.println("EmployeeID"+memberinfo.getEmployeeID());
System.out.println("EmailID"+memberinfo.getEmailID());
System.out.println("Vnet"+memberinfo.getVnet());
System.out.println("Extension"+memberinfo.getExtension());
System.out.println("MobileNumber"+memberinfo.getMobileNumber());

}*/

// Forward control to the specified success target
return (mapping.findForward("success"));


}
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic