Given that the order of the sub-vectors is concrete (meaning that S.No always is first, followed by NumberFrom, etc), I would try something like this:
I don't believe the Search class is to 'bean standards' to be used with Struts. The method "setstrGroupId" should be declared as "setStrGroupId", I believe the current method name will have problems with some struts tags since it is presumed that proceeding the set, there is a capital letter starting the variable name. That method has no effect on the following code snippet, but if you want to use the struts set methods, it would be advantageous to possible change the above method. <!-- Presumption that there is 4 Elements of the vector "row" and Search.setStrGroupId(id) was called to set the Search class's state Based on the passed request parameters. --> <table> <tr> <!-- table header --> <td nowrap>S.No</td> <td nowrap>NumberFrom</td> <td nowrap>NumberTo</td> <td nowrap>ComplexityClass</td> </tr> <logic:iterate id="row" name="search" property="orderRanges"> <tr> <logic:iterate id="col" name="row"> <td> <bean:write name="col"/> </td> </logic:iterate> </tr> </logic:iterate> </table> -----Original Message----- From: keerti shrimal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 6:45 AM To: Struts Users Mailing List Subject: RE: Displaying a Vector of vectors in JSP using STRUTS 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 --- 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 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>