Hi Jacob I am sending you my java bean class which i have written to get the vector.Please have a look at it and tell me how do i get individual elements of the vector and display them on my JSP.This is just a dummy code as i am right now developing a prototype using STRUTS. Please help out with this problem if possible.
In this java bean class, i have a method called getRanges() which returns a vector(vector of vectors).This vector i have to separate out and display on my JSP.My jsp has a table something like this : S.No NumberFrom NumberTo ComplexityClass This table i have to populate using the vector. Thanks and Regards, Keerti -----Original Message----- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 4:54 PM To: 'Struts Users Mailing List' Subject: RE: Displaying a Vector of vectors in JSP using STRUTS You could try something along these lines, if I understood your question: <table> <tr> <logic:iterate id="data" name="aBean" property="results"> <td> <table> <logic:iterate id="dataItem" name="data"> <tr> <td><bean:write name="dataItem"/></td> </tr> </logic:iterate> </table> </td> </logic:iterate> </tr> </table> This will iterate through all of the vector of vector displaying them in columns. The source vector is gotten by aBean.getResults(). -----Original Message----- From: keerti shrimal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 6:02 AM To: [EMAIL PROTECTED] Subject: Displaying a Vector of vectors in JSP using STRUTS Hi I have two jsp pages.From one page, the user selects a record based on which i have to get the details and display them in another JSP.I have a bean in which i get all the details to be displayed.This bean method returns a vector of vectors (property of the bean). How do i display these records as a table with each element in separate columns without using the server side tags in my JSP ? Is there any other way of doing this rather than getting a vector on the JSP directly by saying <jsp:get property .....> in the <logic:iterate> tag ?? Any pointers to this problem are welcome. Please rely back to my id : [EMAIL PROTECTED] TIA Keerti --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
Search.java
Description: Search.java
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>