Hi,
I was wondering if there is any way of passing a populated form over to a
tag library. In brief, i have a couple of jsp pages first of which is a
search page with all the form elements and the second one is the result page
where in the results are displayed using a tag.
I just stick the for
Please UNSUBSCRIBE me.
_
Get your FREE download of MSN Explorer at http://explorer.msn.com
Craig,
I was wondering how your idea would work if I'm setting some properties in a
Class and then adding the object to the vector.
Something like,
Vector v = new Vector();
while(resultset.next())
{
MyClass cls = new MyClass();
cls.setName(resultSet.getString("nameColumn"));
v.addElement(cls);
}
How would the bean element holding a vector of String objects be type casted
to a String Object.
Snippet :
<%
Vector v = new Vector();
v.addElement(new String("John Doe"));
v.addElement(new String("Jane Doe"));
pageContext.setAttribute("v",v, PageContext.PAGE_SCOP
Do something with myCollectionElement
How do i get the Position value of a particular element in say a Vector when
i use the iterate tag.Sample snippet would be like,
Vector v has some String elements..
for(int i =0 ; i < v.size(); i++)
{
out.println(v.elementAt(i));
}
Question is: How