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
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
, 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 Terp [EMAIL
|
| ||
| ||
| [EMAIL PROTECTED] | Baslerstr. 60 |
| | 8048 Zürich |
|-+|
Torsten Terp
torsten@terps. To: [EMAIL PROTECTED
; %
html:text property=%=propertyValue%/
/td
/tr
/table
/td
/tr
/logic:iterate
/Peter
-Original Message-
From: Torsten Terp [mailto:[EMAIL PROTECTED]]
Sent: den 1 juli 2001 20:01
To: Struts user list
Subject: Problems with iterate
ContactData getContactDataVector(int index) {
return (ContactData)(contactDataVector.get(index));
}
Hope this helps.
Niall
-Original Message-
From: Torsten Terp [mailto:[EMAIL PROTECTED]]
Sent: 01 July 2001 19:01
To: Struts user list
Subject: Problems
td
% propertyValue = address[ + addressIndex + ].zipCode; %
html:text property=%=propertyValue%/
/td
/tr
/table
/td
/tr
/logic:iterate
/Peter
-Original Message-
From: Torsten Terp [mailto:[EMAIL PROTECTED]]
Sent: den 1 juli 2001
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.,
html:form action=showContacts
logic:iterate id=contacts name=form property=contactDataVector
html:hidden name=contacts property=contactId/
tr
Hi,
I just hit the same problem last night, and did as follows:
logic:iterate id=contacts name=actor property=contactDataVector
html:form action=showContacts
html:hidden name=contacts property=contactId/
tr
td width=150
html:submit property=submitbean:message
'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 pass extra information on Submit button?
Hi,
I just hit the same problem last night, and did as follows
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
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 };
%
TABLE WIDTH=100% HEIGHT=30 BORDER=0
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.,
html:link page=/donor/Select.do paramName=row paramId=key paramProperty=donor
bean:message key=whatever/
/html:link
and this key value should be
-
From: Torsten Terp [mailto:[EMAIL PROTECTED]]
Sent: 18 June 2001 10:47
To: [EMAIL PROTECTED]
Subject: RE: dynamic links in struts
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
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
] ...
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/
Torsten Terp wrote:
Hi,
Im I have just started using Struts and the idea
of the framework seems great!! I could however
16 matches
Mail list logo