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_SCOPE);
%>
<logic:iterate id="main" name="v">
// Snippet gives the general picture as of what im looking for..
<% String name = (String)(<bean:write name="main"/>) %>
out.println(name);
</logic:iterate>
Its imperative that i get the bean element into a String since this String
object would be passed into a SQL Query or a method returning a Query
result. This would look Stupid but definitely serves the purpose..
Please Respond.
Raghu..
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com