I'm working on java web application and am using struts2 framework. I need to pass HashMap or LinkedList from Action class to jsp page to displaying all records.
I do not want to use <%@ taglib prefix="s" uri="/struts-tags" %>
library to fetch all records from jsp page.
my code -
public class ViewStatusSHAction extends ActionSupport {
private LinkedList<SBean> humans = null;
private LinkedHashMap<String, String> hashMap =null;
public LinkedHashMap<String, String> getHashMap() {
return hashMap;
}
public void setHashMap(LinkedHashMap<String, String> hashMap) {
this.hashMap = hashMap;
}
public LinkedList<SBean> getHumans() {
return humans;
}
public void setHumans(LinkedList<SBean> humans) {
this.humans = humans;
}
public String execute() {
this.setHumans(new ViewStatusSHModel().getHumanDetails());
return Action.SUCCESS;
}
}
I want to use JSP syntax to display all recoreds fetched from action, but I don't know to how to get all records without <s:iterator></s:iterator>
tags?.