problem with logic:iterate while displaying an array of beans.

2002-05-20 Thread keerti shrimal
Title: problem with logic:iterate while displaying an array of beans.






Hi All,

 I am facing a problem displaying a table using logic:iterate tag.

I am using two separate beans in my jsp for displaying different values.

 The logic:iterate loop works absolutely fine if I pass just a bean to display the values but when I pass an array of beans, it gives me the following error : 

Root cause of ServletException

javax.servlet.jsp.JspException: No getter method for property Ranges of bean Ranges


I will explain in short what i am doing.

 I have a jsp NPResult.jsp which has a set of records(right now hard-coded).The user selects a row and depending on that i have to display details of that record in another jsp - NPOrderDetails.jsp. I am passing a hidden value for this through my first jsp.

 In order to get the details, i am using 2 separate beans (which is hard-coded right now as this is just a prototype).

 I am attaching the required files for reference.


 <>  <>  <>  <>  <>  <>  <> 

Can anybody please help me out with this problem. I have been trying to figure this out for quite some time.



Thanks and Regards,

Keerti






NPOrderDetails.jsp
Description: NPOrderDetails.jsp


NPResult.jsp
Description: NPResult.jsp


SearchAction.java
Description: SearchAction.java


SearchForm.java
Description: SearchForm.java


Ranges.java
Description: Ranges.java


Search.java
Description: Search.java



http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>





   
   
   
   
   
   
   
   


   


   
	
	
		
   
   
   
   

   
   	
   

   	

	
   

  	
   	
   

  	
   	
   


  






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: Displaying a Vector of vectors in JSP using STRUTS

2002-05-15 Thread keerti shrimal

Hi Jacob
 If i use this code, it gives me the following error : 


javax.servlet.jsp.JspException: Cannot find bean col in scope null
at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:493)
at
org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
at
jsp_servlet._npprototype.__nporderdetails._jspService(__nporderdetail
s.java:335)

This is probably coz there is no method called col in my bean..  Do u
have any solution to this ?

Thanks and Regards
Keerti


-Original Message-
From: Jacob Hookom [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 15, 2002 5:40 PM
To: 'Struts Users Mailing List'
Subject: RE: Displaying a Vector of vectors in JSP using STRUTS


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.




S.No
NumberFrom
NumberTo
ComplexityClass

 




    




-----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.NoNumberFrom  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:

 































 

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  in the
 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]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Displaying a Vector of vectors in JSP using STRUTS

2002-05-15 Thread keerti shrimal

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.NoNumberFrom  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:

 































 

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  in the
 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]>


Displaying a Vector of vectors in JSP using STRUTS

2002-05-15 Thread keerti shrimal
Title: 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  in the  tag  ??

 Any pointers to this problem are welcome.

Please rely back to my id : [EMAIL PROTECTED]


TIA

Keerti




--
To unsubscribe, e-mail:   
For additional commands, e-mail: