Deepak wrote:
Hi folks

Can I have a vector as a bean property?
If so how can i set the property using <jsp:setProperty>

for example the property "csvorders" is a vector.
How can I pass a vector as the value of this property?

<jsp:setProperty name="compare" property="csvorders" value="?" />
See this tip:

  <http://www.thejspbook.com/faq/details.jsp?id=1000>

Also, if you use JSTL (in a JSP 1.2 container), you can use the
<c:set> action instead of the <jsp:setProperty> action:

  <c:set target="${myBean}" property="csvorders" value="${myVector}" />

Hans
--
Hans Bergsten                                <[EMAIL PROTECTED]>
Gefion Software                       <http://www.gefionsoftware.com/>
Author of O'Reilly's "JavaServer Pages", covering JSP 1.2 and JSTL 1.0
Details at                                    <http://TheJSPBook.com/>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com

Reply via email to