Re: logic:iterate help

2003-11-25 Thread mohan
Hi All
I have tried this

testScoresVector is a vector stored as a session Attribute as
request.getSession().setAttribute("testScoresVector", testScoresVector)
Please let me know what the problem is

--Mohan


> Hi Guys
> The reason i am using the logic:iterate is not to populate the select
> box but to create the select box for the number times the length of the
> testScoresVector and store the option selected in the select box in each
> of the testScoresVector element.
>
> --Mohan
>> Hi All
>> I have a Vector called as testScoresVector (Vector of testScores
>> Objects) stored in the session
>>
>> I am trying this
>> 
>>  
>> SAT-1
>> SAT-2
>> :
>> :
>>
>>   
>> 
>>
>> The idea is to add the selected value into the TestScores Object for
>> each object in the Vector.
>>
>> This gives an error saying :No getter method available for property
>> tsv.testName for bean under name org.apache.struts.taglib.html.BEAN I
>> think the "tsv" holds a TestScoresVector object for each iteration. Am
>> i right or not. Please let me know
>>
>> Thank you
>>
>> --Mohan
>>
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED] For
>> additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> - To
> unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]




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



Re: logic:iterate help

2003-11-25 Thread mohan
Hi Guys
The reason i am using the logic:iterate is not to populate the select box
but to create the select box for the number times the length of the
testScoresVector and store the option selected in the select box in each
of the testScoresVector element.

--Mohan
> Hi All
> I have a Vector called as testScoresVector (Vector of testScores
> Objects) stored in the session
>
> I am trying this
> 
>  
> SAT-1
> SAT-2
> :
> :
>
>   
> 
>
> The idea is to add the selected value into the TestScores Object for
> each object in the Vector.
>
> This gives an error saying :No getter method available for property
> tsv.testName for bean under name org.apache.struts.taglib.html.BEAN I
> think the "tsv" holds a TestScoresVector object for each iteration. Am i
> right or not. Please let me know
>
> Thank you
>
> --Mohan
>
>
>
>
>
>
> - To
> unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]




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



Re: logic:iterate help

2003-11-24 Thread Gurpreet Dhanoa
try this


> 
>  


> :
> :
>
>   
> 



cheers
Gurpreet DHanoa

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 25, 2003 3:24 AM
Subject: logic:iterate help


> Hi All
> I have a Vector called as testScoresVector (Vector of testScores Objects)
> stored in the session
>
> I am trying this
> 
>  
> SAT-1
> SAT-2
> :
> :
>
>   
> 
>
> The idea is to add the selected value into the TestScores Object for each
> object in the Vector.
>
> This gives an error saying :No getter method available for property
> tsv.testName for bean under name org.apache.struts.taglib.html.BEAN
> I think the "tsv" holds a TestScoresVector object for each iteration. Am i
> right or not. Please let me know
>
> Thank you
>
> --Mohan
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: logic:iterate help

2003-11-24 Thread Gurpreet Dhanoa
hi MOhan

Error is coming coz your syntax is not upto the mark. Try with the following


>  

>   
> 

Cheers
gary

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 25, 2003 3:24 AM
Subject: logic:iterate help


> Hi All
> I have a Vector called as testScoresVector (Vector of testScores Objects)
> stored in the session
>
> I am trying this
> 
>  
> SAT-1
> SAT-2
> :
> :
>
>   
> 
>
> The idea is to add the selected value into the TestScores Object for each
> object in the Vector.
>
> This gives an error saying :No getter method available for property
> tsv.testName for bean under name org.apache.struts.taglib.html.BEAN
> I think the "tsv" holds a TestScoresVector object for each iteration. Am i
> right or not. Please let me know
>
> Thank you
>
> --Mohan
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: logic:iterate help

2003-11-24 Thread Mike Duffy
I recommend you drop the Struts logic tags and switch to JSTL combined with the 
Struts-el tags.

"JSTL has support for common, structural tasks such as iteration and conditionals, 
tags for
manipulating XML documents, internationalization and locale-sensitive formatting tags, 
and SQL
tags. It also introduces a new expression language to simplify page development..."

http://java.sun.com/products/jsp/jstl/

Core JSTL: Mastering the JSP Standard Tag Library
by David M. Geary 
http://www.amazon.com/exec/obidos/tg/detail/-/0131001531/qid=1069734758/sr=1-2/ref=sr_1_2/002-2465270-5458431?v=glance&s=books

By combing Struts-el with JSTL a select tag with options can be written as:


  

  


The map of module types is loaded from a data store by a Struts plug-in at system 
start up. 

Mike 


--- [EMAIL PROTECTED] wrote:
> Hi All
> I have a Vector called as testScoresVector (Vector of testScores Objects)
> stored in the session
> 
> I am trying this
> 
>  
> SAT-1
> SAT-2
> :
> :
> 
>   
> 
> 
> The idea is to add the selected value into the TestScores Object for each
> object in the Vector.
> 
> This gives an error saying :No getter method available for property
> tsv.testName for bean under name org.apache.struts.taglib.html.BEAN
> I think the "tsv" holds a TestScoresVector object for each iteration. Am i
> right or not. Please let me know
> 
> Thank you
> 
> --Mohan
> 
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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