GeeCON Prague 2014*
The moose likes Struts and the fly likes How to implement logic iterate in my jsp? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to implement logic iterate in my jsp?" Watch "How to implement logic iterate in my jsp?" New topic
Author

How to implement logic iterate in my jsp?

rakshini nithya
Ranch Hand

Joined: Jun 15, 2006
Posts: 39
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"));


}
}
 
GeeCON Prague 2014
 
subject: How to implement logic iterate in my jsp?