RE: Help! Iterating through nested hashmap and setting properties

2004-09-30 Thread Boukovska, Danielle
I am trying to edit property "foo" below

-Original Message-
From: Jeff Beal [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 30, 2004 5:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Help! Iterating through nested hashmap and setting properties


boukovska wrote:
> Hi all
> I have a problem with setting the values on a hierarchy of nested 
> properties. I have an ActionForm which has a property A of type 
> HashMap. A is keyed
> on
> Strings, and each value of A is a Collection (ArrayList). This
> collection
> contains objects of type B.
> I am trying to iterate through the keys A, and for each key, iterate
> through
> the corresponding value (which is an ArrayList of B objects). The I
> want to display a property of
> B
> and let the user change it. I am able to display the properties of
> object B
> on the screen. However, for some reason the  tag doesn't
> work -
> the textbox is there, but the input does not populate the form.
> The following is what I am trying to do.
> 
>  
>  
> 
> 
> 
> The problem is that when I enter a new value for foo, nothing happens;
> the
> value of the nested property is not set. Is it possible to iterate
> through a
> HashMap, and let the user update its values?
> I am quite new to Struts, and urgently need
> this to
> work, but no luck. Any help will be really appreciated!
> Thanks
> Danielle
What is the name property on the text box elements (in the client-side 
HTML) you are trying to edit?

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



Help! Iterating through nested hashmap and setting properties

2004-09-30 Thread boukovska
Hi all
I have a problem with setting the values on a hierarchy of nested
properties.
I have an ActionForm which has a property A of type HashMap. A is
keyed
on
Strings, and each value of A is a Collection (ArrayList). This
collection
contains objects of type B.
I am trying to iterate through the keys A, and for each key, iterate
through
the corresponding value (which is an ArrayList of B objects). The I
want to display a property of
B
and let the user change it. I am able to display the properties of
object B
on the screen. However, for some reason the  tag doesn't
work -
the textbox is there, but the input does not populate the form.
The following is what I am trying to do.

 
 



The problem is that when I enter a new value for foo, nothing happens;
the
value of the nested property is not set. Is it possible to iterate
through a
HashMap, and let the user update its values?
I am quite new to Struts, and urgently need
this to
work, but no luck. Any help will be really appreciated!
Thanks
Danielle



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



Repost: Iterate through nested Map and set values

2004-09-30 Thread boukovska
Hi all
I have a problem with setting the values on a hierarchy of nested
properties.
I have an ActionForm which has a property A of type HashMap. A is 
keyed
on
Strings, and each value of A is a Collection (ArrayList). This
collection
contains objects of type B.
I am trying to iterate through the keys A, and for each key, iterate
through
the corresponding value (which is an ArrayList of B objects). The I 
want to display a property of
B
and let the user change it. I am able to display the properties of
object B
on the screen. However, for some reason the  tag doesn't
work -
the textbox is there, but the input does not populate the form.
The following is what I am trying to do.

 
 



The problem is that when I enter a new value for foo, nothing happens;
the
value of the nested property is not set. Is it possible to iterate 
through a
HashMap, and let the user update its values?
I am quite new to Struts, and have spent a lot of time trying to get
this to
work, but no luck. Any help will be appreciated!
Thanks
Danielle



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



Setting values of nested collection

2004-09-29 Thread Danielle Boukovska
Hi all
I have a problem with setting the values on a hierarchy of nested
properties.
I have an ActionForm which has a property A of type HashMap. A is keyed 
on
Strings, and each value of A is a Collection (ArrayList). This 
collection
contains objects of type B.
I am trying to iterate through the keys A, and for each key, iterate 
through
the corresponding value (which is an ArrayList of B objects), i.e. I am
trying to do 2 levels of iteration. The I want to display a property of 
B
and let the user change it. I am able to display the properties of 
object B
on the screen. However, for some reason the  tag doesn't 
work -
the textbox is there, but the input does not populate the form.
The following is what I am trying to do.

  

 


The problem is that when I enter a new value for foo, nothing happens; 
the
value of the nested property is not set. Is it possible to iterate through a HashMap, 
and let the user update its values?
I am quite new to Struts, and have spent a lot of time trying to get 
this to
work, but no luck. Any help will be appreciated!
Thanks
Danielle
 

  
-
 ALL-NEW Yahoo! Messenger - all new features - even more fun!  



-
 ALL-NEW Yahoo! Messenger - all new features - even more fun!  

Unable to post to struts mailing list

2004-09-29 Thread Boukovska, Danielle
Hi Wendy

I really apologise to be sending you mail directly. I have been trying to
post on the Struts list for 2 days, but for some reason I cannot manage to
do it. I am registered, and I receive all the postings but mine just won't
show up. I am sending to [EMAIL PROTECTED] I need to post a question
as I am quite stuck, but am having no luck, and can't find any guidelines on
the site. Am I doing something wrong?

Many thanks!
Danielle

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 28, 2004 10:59 PM
To: Struts Users Mailing List
Subject: Trouble with .jar files in 1.2.4 binary distribution


(Resending from a subscribed address...)

Today I tried to deploy a .war file to my production web server which runs
HP-UX.  When it unpacks the war and tries to deploy the webapp, it
complains:

13:29:34,070 - ERROR org.apache.struts.validator.ValidatorPlugIn - JAR entry
org/apache/commons/validator/resources/validator_1_1_3.dtd not found in
/opt/hpws/tomcat/webapps/benauth-test/WEB-INF/lib/commons-validator.jar
java.io.FileNotFoundException: JAR entry
org/apache/commons/validator/resources/validator_1_1_3.dtd not found in
/opt/hpws/tomcat/webapps/benauth-test/WEB-INF/lib/commons-validator.jar

I can do jar -tvf on that .jar file, and the tld appears to be where it
belongs.  Right where the error says it isn't.

I'm not having any problems on my Windows 2000 development box with the same
code, although I use the Ant install/reload tasks to deploy the "loose"
files, I don't make the .war file until I'm ready to go to the production
server.

However, I can't click on any of the .war files that come with 1.2.4 and
launch WinZip.  It says, "Failed to load Main-Class manifest attribute from
c:\jakarta\jakarta-struts-1.2.4\lib\commons-validator.jar".  Every one of
them does the same thing.

Thinking that maybe I got a corrupted .zip file when I downloaded 1.2.4, I
tried again but that didn't help, I still can't "open" the .jar files with
WinZip.

I don't know enough about jar/zip archives to guess, but something is
preventing java on HP-UX from reading the commons-validator.jar file.

Has anyone seen this before?  What could be wrong?

Thanks,
Wendy Smoak


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



[repost] Accessing nested properties

2004-09-28 Thread Boukovska, Danielle

Hi all

I have a problem with setting the values on a hierarchy of nested
properties.

I have an ActionForm which has a property A of type HashMap. A is keyed on
Strings, and each value of A is a Collection (ArrayList). This collection
contains objects of type B.

I am trying to iterate through the keys A, and for each key, iterate through
the corresponding value (which is an ArrayList of B objects), i.e. I am
trying to do 2 levels of iteration. The I want to display a property of B
and let the user change it. I am able to display the properties of object B
on the screen. However, for some reason the  tag doesn't work -
the textbox is there, but the input does not populate the form.

The following is what I am trying to do.


  

   



The problem is that when I enter a new value for foo, nothing happens; the
value of the nested property is not set.

I am quite new to Struts, and have spent a lot of time trying to get this to
work, but no luck. Any help will be appreciated!

Thanks
Danielle


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



Accessing nested properties

2004-09-28 Thread Boukovska, Danielle
Hi all

I have a problem with getting a hierarchy of nested properties to display.

I have an ActionForm which has a property A of type HashMap. A is keyed on
Strings, and each value of A is a Collection (ArrayList). This collection
contains objects of type B.

I am trying to iterate through the keys A, and for each key, iterate through
the corresponding value (which is an ArrayList of B objects), i.e. I am
trying to do 2 levels of iteration. However, I cannot get this to work using
Struts tags. The following is one attempt to get this to display:


  

   



I am quite new to Struts, and have spent a lot of time trying to get this to
work, but no luck. Any help will be appreciated!

Thanks
Danielle


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



Accessing nested collection

2004-09-28 Thread Boukovska, Danielle
Hi all

I have a problem with getting a hierarchy of nested properties to display.

I have an ActionForm which has a property A of type HashMap. A is keyed on
Strings, and each value of A is a Collection (ArrayList). This collection
contains objects of type B.

I am trying to iterate through the keys A, and for each key, iterate through
the corresponding value (which is an ArrayList of B objects), i.e. I am
trying to do 2 levels of iteration. However, I cannot get this to work using
Struts tags. The following is one attempt to get this to display:


  

   



I am quite new to Struts, and have spent a lot of time trying to get this to
work, but no luck. Any help will be appreciated!

Thanks
Danielle