RE: sending 2D string for setting the ActionForm using addRequestParameter

"Konjengbam Singh" <[email protected]>
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
hi,
 
From what i understand this will end up with a new method in ActionForm class to set the String[][] and making m*n addRequestParameter calls .
My requirement is such that without disturbing the existing class, is there any way to populate the Sting[][]?
 
Thanks in advance.
Surjit

________________________________

From: Rahul Akolkar [mailto:[email protected]]
Sent: Fri 3/10/2006 7:14 PM
To: Cactus Users List
Subject: Re: sending 2D string for setting the ActionForm using addRequestParameter



On 3/10/06, Konjengbam Singh <[email protected]> wrote:
> how to send a String[][] using addRequestParameter?
> I m extending CactusStrutsTestCase class.
> I have a ActionForm which have a String[][] as one of the variable. I need to setup this variable for running the test case. How should i go about doing this?
>
<snip/>

You may end up with m*n addRequestParameter calls for a m by n
String[][]. For understanding what the parameter names should be, take
a look at how Struts handles population of indexed properties [1].
Under the hood, its mostly Commons BeanUtils [2] which transitively
works off of the JavaBeans specification [3] to provide bean
utilities, so feel free to browse those as well.

-Rahul

[1] http://struts.apache.org/struts-taglib/indexedprops.html
[2] http://jakarta.apache.org/commons/beanutils/
[3] http://java.sun.com/products/javabeans/docs/spec.html

---------------------------------------------------------------------
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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.