hi,
I am trying to get a ActionClass's vector object my forntEnd(jsp). I
have tried to set to my form bean and get the values to my jsp. But it is
showing error as .
[code]
[javac]
/usr/java/SUNWappserver/domains/domain2/generated/jsp/j2ee-modules/ILICTreasury/org/apache/jsp/banker_002dweb/jsp/XS/X32Iframe_jsp.java:212:
incompatible types
[javac] found : java.lang.String
[javac] required: java.util.Vector
[javac] labels_demo = request.getParameter("Lable_temp");
^
my actionClass is: (HERE MY VECTOR WILL BE POPULATED WITH SOME STRING
VALUES)
------------------
Vector<String> lableGenVect = new Vector<String>();
lableGenVect = (Vector<String>) xParser.xmlLableGen (Comm_vect); // i am
using jdk1.5
form.setLable_temp (lableGenVect);
my FormBean is:
----------------
public Vector<String> getLable_temp(){
return lable_temp;
}
public void setLable_temp(Vector<String> lables){
this.lable_temp = lables;
}
my jsp page is:
---------------
Vector<String> lables_demo = new Vector<String>();
lables_demo = request.getParameter("lable_temp");
out.println("LABELS :"+lables_demo);
[/code]
Is the approach is wrong or is there any other way to access Vector values
to my jsp.
thx in adv.
Ajay.
--
View this message in context:
http://www.nabble.com/how-do-i-get-the-ActionClass%27s-Vector-to-my-JSP-page-for-display-tf4395762.html#a12535038
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]