hi ted,
Thanks for reply. But my problem still not solved. Well you can add int[] in a vector. But the problem is how to display the values inside the int.
My code is like this :-
<%
Integer p=new Integer(25);
int[] u = {1,2,3,4,5,6,7,8};
String st[]={"ID1 :- ","ID2 :- ","ID3 :- ","ID4 :- ","ID5 :- ","ID6 :- ","ID7 :-","ID8 :-"};
String st1[]={"Abhinav :- ","Bharat :- ", "Shalini:- ", "Abhay:- ", "Deepak :- ", "Farhan :- ","Hanish :- ", "Jacob :- "};
%>
<% for(int i=0;i<st.length;i++){
Vector v=new Vector();
v.addElement(st[i]);
v.addElement(st1[i]);
v.addElement(p);
v.addElement(u[i]);
%>
<%=v.elementAt(0);%>
<%=v.elementAt(1);%>
<%=v.elementAt(2);%>
<%=v.elementsAt(3);%><br>
<%}%>
I have used the same method to display a string value. And it does not shows any error. But when i use the same method for the int to display the values. it gives me the foloowing error.
"Errors reported by compiler
:/jsp/WEB-INF/jsp/jrun__vec_new2ejspc.java:80:1:80:18: Error: No match was found for method "addElement(int)".
".
I can add it in vector but i cannot display it and if i use this to add the values in vecotr "v.addElement(u);". And then if i display the values then it shows me some thing like this "[I@2f1ad8". I hope my problem is more clear to you. Thanks again for taking pains to answer me.
abhinav