RE: cannot resolve symbol from bean / radio button value iteration problem

2002-08-14 Thread Gopal . Gorthi

Hi

Did you try specifying the type of "cer" (the type of the individual
elements of the collection "cers") on the  tag

some thing like this.



Ship Date: 


I hope this MAY work.

Regards
Gopal

-Original Message-
From: Austin Lowry [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 11:02 AM
To: [EMAIL PROTECTED]
Subject: cannot resolve symbol from bean / radio button value iteration
problem


What I am attempting to accomplish is to display a list of radio buttons
based on entity objects I have stored in a vector. Creating the buttons
and the desired text is not a problem, but assigning a value to each of
the buttons created so that I can determine which of my entities was
selected is.

I decided to use a value from the entities as the key to the selected
radio button, but I am having difficulty setting the value parameter in
the radio tag. Here is my code:



Ship Date: 


The error message I recieve tells me that the variable cer whos
getTrackingNbr I am attempting to execute cannot be resolved.

Is there somthing I need to do to make the variable cer available, or am
I just going about this the wrong way.

Thanks in advance for your time and assistance.

~Austin Lowry




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Re[4]: Space problem

2002-08-14 Thread Gopal . Gorthi

Yes!

You cannot call the getter directly.
But you can use 

here you use your html:ratio and you can call getter on aBean which
is a bean from the lvObjcollection.



Gopal


-Original Message-
From: Tarun Sainanee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 11:07 AM
To: Struts Users Mailing List
Subject: RE: Re[4]: Space problem


No no no
lvObj is a collection and the getter method cannot be call directly on 
that.
Right? ;-)
Regards,
Tarun Sainanee
TCS Delhi

--
Nothing gives one person so much advantage over another as to remain 
always cool and 
unruffled under all circumstances.
-- Thomas Jefferson






[EMAIL PROTECTED]
08/14/2002 08:28 PM
Please respond to "Struts Users Mailing List"

 
To: [EMAIL PROTECTED]
cc: 
Subject:RE: Re[4]: Space problem


Hi Tarun

Sorry there is a mistake in my previous Message it should be like 

 This is a
test
Message 

I think this will work.


Gopal

-Original Message-
From: Tarun Sainanee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 10:33 AM
To: Struts Users Mailing List
Subject: Re: Re[4]: Space problem


tried all this before i posted it on the struts user mailing
Regards,
Tarun Sainanee
TCS Delhi

--
Nothing gives one person so much advantage over another as to remain 
always cool and 
unruffled under all circumstances.
-- Thomas Jefferson






Dariusz Wojtas <[EMAIL PROTECTED]>
08/14/2002 07:55 PM
Please respond to "Struts Users Mailing List"

 
To: "Struts Users Mailing List" 
<[EMAIL PROTECTED]>
cc: 
Subject:Re[4]: Space problem


Try to find what data are sent by the browser.
Set your form method to GET and check what appears
in your url after submit.

Your struts form gets data from there.
After this you should know if it is some misspelling problem
on your side or some deeply hidden problem in struts :-)

Darek

Wednesday, August 14, 2002, 4:24:53 PM, you wrote:
TS> it works fine if i dont use the struts way of displaying data on the 
TS> screen. ts pretty perplexing to me but i have tried this on different 
TS> screens with uncomplicated data..
TS> Regards,
TS> Tarun Sainanee

-- 
Best regards,
 Dariusz Wojtas mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: Re[4]: Space problem

2002-08-14 Thread Gopal . Gorthi

Hi Tarun

Sorry there is a mistake in my previous Message it should be like 

 This is a
test
Message 

I think this will work.


Gopal

-Original Message-
From: Tarun Sainanee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 10:33 AM
To: Struts Users Mailing List
Subject: Re: Re[4]: Space problem


tried all this before i posted it on the struts user mailing
Regards,
Tarun Sainanee
TCS Delhi

--
Nothing gives one person so much advantage over another as to remain 
always cool and 
unruffled under all circumstances.
-- Thomas Jefferson






Dariusz Wojtas <[EMAIL PROTECTED]>
08/14/2002 07:55 PM
Please respond to "Struts Users Mailing List"

 
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc: 
Subject:Re[4]: Space problem


Try to find what data are sent by the browser.
Set your form method to GET and check what appears
in your url after submit.

Your struts form gets data from there.
After this you should know if it is some misspelling problem
on your side or some deeply hidden problem in struts :-)

Darek

Wednesday, August 14, 2002, 4:24:53 PM, you wrote:
TS> it works fine if i dont use the struts way of displaying data on the 
TS> screen. ts pretty perplexing to me but i have tried this on different 
TS> screens with uncomplicated data..
TS> Regards,
TS> Tarun Sainanee

-- 
Best regards,
 Dariusz Wojtas mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: Re[4]: Space problem

2002-08-14 Thread Gopal . Gorthi

Hi Tarun

Have you tried some thing like this.  I think this will work.

 This is a test
Message 

Gopal

-Original Message-
From: Tarun Sainanee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 10:33 AM
To: Struts Users Mailing List
Subject: Re: Re[4]: Space problem


tried all this before i posted it on the struts user mailing
Regards,
Tarun Sainanee
TCS Delhi

--
Nothing gives one person so much advantage over another as to remain 
always cool and 
unruffled under all circumstances.
-- Thomas Jefferson






Dariusz Wojtas <[EMAIL PROTECTED]>
08/14/2002 07:55 PM
Please respond to "Struts Users Mailing List"

 
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc: 
Subject:Re[4]: Space problem


Try to find what data are sent by the browser.
Set your form method to GET and check what appears
in your url after submit.

Your struts form gets data from there.
After this you should know if it is some misspelling problem
on your side or some deeply hidden problem in struts :-)

Darek

Wednesday, August 14, 2002, 4:24:53 PM, you wrote:
TS> it works fine if i dont use the struts way of displaying data on the 
TS> screen. ts pretty perplexing to me but i have tried this on different 
TS> screens with uncomplicated data..
TS> Regards,
TS> Tarun Sainanee

-- 
Best regards,
 Dariusz Wojtas mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: Setting a hidden form field.

2002-06-12 Thread Gopal . Gorthi

Hi Geoge 

I think you need to define the methods getB(index) and setB(index, value) to
use Indexed Reference.

regards
Gopal

-Original Message-
From: geoge m [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 4:33 PM
To: [EMAIL PROTECTED]
Subject: Setting a hidden form field.


I am trying to set a hidden field from one of the
array elements in a bean like:

I have a bean A with String[] B.

I am trying to do 


What method do I need in this form class to have this
value set.

I have created bean methods get/setB().. but it is
giving an error while trying to set this value to the
form bean:

java.lang.IllegalArgumentException: array element type
mismatch
at java.lang.reflect.Array.set(Native Method)
at
org.apache.struts.util.PropertyUtils.setIndexedProperty(PropertyUtils.java:8
51)
at
org.apache.struts.util.PropertyUtils.setIndexedProperty(PropertyUtils.java:7
85)
at
org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:90
2)
at
org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)
at
org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:772)
at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20
61)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Can someone please throw some light on this.

thanks. george

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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