Is it possible to store "SET" values to Vector ?
hi,
The below is the "ActionClass" from which i am getting values from "FORMBEAN" i am setting those value into the "jsp" page successfully. WHAT I NEED NOW IS, IS IT POSSIBLE TO STORE THOSE VALUES INTO SOME VECTOR OR SOME OTHER TYPE SO THAT I CAN DISPLAY A REPORT FORMAT. Because i have more than one record in my table.The below is my ACTION CLASS.
public void performRim(HttpServletRequest req, X52Form form, ActionErrors errors) {
try{
form.setAgentcd(totaxpath.getValueAsString("/response/text/agentcd/text()"));
form.setAgentName(totaxpath.getValueAsString("/response/text/agentName/text()"));
form.setCurcd(totaxpath.getValueAsString("/response/text/curcd/text()"));
form.setBankActno(totaxpath.getValueAsString("/response/text/bankActno/text()"));
form.setSwiftcd(totaxpath.getValueAsString("/response/text/swiftcd/text()"));
form.setGlno(totaxpath.getValueAsString("/response/text/glno/text()"));
}
catch(Exception ex){
System.out.println("error!"+ex);
}
for example: -------------
Vector v=new Vector();
v.addElement(totaxpath.getValueAsString("/response/text/agentcd/text()"));
HttpSession session = req.getSession();
session.setAttribute("name",testSrring);
thx, Ajay
|