Hi,
You need 3 methods, a getter and a setter for the Vector (or other
arraytype object) and a getter for single object in your arraytype
object, i.e., getObject(int inx){ return myVector.elementAt(inx) }
Just like on the webpage mentioned.
the setters needed should be defined on the object you
page, SaveParameters is called, and the updated parameters
in the Vector are processed.
Would recommend you try sticking the form in session scope, if you are
prefilling it in another action.
Let me know if I can help further.
Cheers,
Dave
(See attached file: indexedexample.zip)
"Torsten Ter
??/
Also the iterate tag should be indexed iterate tag as against the normal
iterate tag as u want to update the data modified by user .
Check the Dave Hey's iterate tag in http://www.husted.com/about/struts/
Suhas
- Original Message -
From: Torsten Terp <[EMAIL PROTEC
Hi,
Although i have followed the example below i still have the problem with saving
the indexed fields. It is driving me nuts so if anybody who have it working would
take the time to see if they can spot the error i will be very very greatfull.
The source below is with a vector instead of an arr
||
> | Tel. +41 1 405 35 12 | Fax +41 1 405 31 13 |
> | ||
> | ||
> | [EMAIL PROTECTED] | Baslerstr. 60 |
> | | 8048 Zürich |
> |-+|
>
t;
> Street:
>
> <% propertyValue = "address[" + addressIndex + "].street"; %>
>
>
>
>
> Zip Code:
>
> <% propertyValue = "address[" + addressI
>
>
>
> Zip Code:
>
> <% propertyValue = "address[" + addressIndex + "].zipCode"; %>
>
>
>
>
>
>
>
>
> /Peter
>
>
>
> -Original Message-
> From: Torsten Terp [mailto:[EMAIL PR
ously in your bean you need setFirstName() and
> setLastName() methods - additionally you need the following getter in your
> ActionForm:
>
> public ContactData getContactDataVector(int index) {
>
> return (ContactData)(contactDataVector.get(index));
>
> }
>
>
Hi,
Sorry if this has been answered before, but i havent been able to find an answer!
Im using iterate to display a vector containg valueobjects, i.e.,
...
...
'form' is my struts form bean, 'contactDataVector' is a vector of 'contactData'
objects each contain
t in form bean you have
> to have property named 'contactId'?
>
> JK
>
> - Original Message -
> From: "Torsten Terp" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 26, 2001 11:05 AM
> Subject: RE: How can I pas
Hi,
I just hit the same problem last night, and did as follows:
...
i.e., the contacts im showing all have an id, which is the one used in the hidden
field,
this enables me to use the correct row in the form processing... You are trying t
Hi,
Im sorry if this has been asked before (i think it has but i cant find it)
Is it possible to set the target of a form, based on the result of the
processing in the Action, i.e., search went well target=bodyCenter,
search was empty target=inputSearch?
Thanks...
^terp
Hi,
If your goal is to have a group of radiobuttons, with one of
them initially checked, you just use the same property, i.e.,
"searchCondition" and initialise it to the value of the 'value tag'
i.e., "strict" :
^terp
> -Original Message-
> From: Kwang-Shi Shu [mailto:[EMAIL PROTEC
Hi,
You should definetely check out EJBDoclet on sourgeforge.
(http://sourceforge.net/projects/ejbdoclet/) It is javaDoc plugin
that creates both valueobjects, remote and home interfaces interfaces,
primary key classes you name it!! It is independent of the appserver
(it is basically an ant task
to a scripting variable and use a scriplet. This isn't
> very nice, as the point of struts it to remove scriplets from our jsps,
> but...
>
>
> paramProperty="donor">
>
>
>
> Jon.
>
> -Original Message-
> From: Torsten Terp [mailto:[EMAIL
ahh of course thats how to play it thank you!!!
Another problem now occurs. If I need to use the bean:message in name
of the link, i.e.,
and this key value should be dynamic too, how do I accomplish this??
^torsten
> -Original Message-
> From: Jon.Ridgway [mailto:[EMAIL PRO
Hi,
Im trying to make a table which design is based on the page
the user is currently visiting. I.e., in jsp it could look
like this:
<%
String[] menuText = {"Customer", "Manufactures", "Machines" };
String[] menuLink = {"index", "ManufacturePage", "MachinePage" };
%>
<% for (int i = 0 ; i
s the result to another JSP for
> display.
>
> [JSP] -> [ACTION] -> [JSP] ...
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 737-3463.
> -- http://www.husted.com/about/struts/
>
> Torsten Terp
Hi,
Im I have just started using Struts and the idea
of the framework seems great!! I could however
use some help getting started the right way!!
I want to do as folows:
A jsp page with an input fields takes as input
a string used to perform a seach in a database.
E.g., a substring of the nam
19 matches
Mail list logo