RE: what setters do i implement in an indexed tag ?

2001-07-24 Thread Torsten Terp
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

Re: Long Story short

2001-07-19 Thread Torsten Terp
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

RE: Long Story short

2001-07-19 Thread Torsten Terp
, 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

RE: Problems with iterate

2001-07-04 Thread Torsten Terp
| | || | || | [EMAIL PROTECTED] | Baslerstr. 60 | | | 8048 Zürich | |-+| Torsten Terp torsten@terps. To: [EMAIL PROTECTED

RE: Problems with iterate

2001-07-03 Thread Torsten Terp
; % 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

RE: Problems with iterate

2001-07-02 Thread Torsten Terp
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

RE: Problems with iterate

2001-07-02 Thread Torsten Terp
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

Problems with iterate

2001-07-01 Thread Torsten Terp
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

RE: How can I pass extra information on Submit button?

2001-06-26 Thread Torsten Terp
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

RE: How can I pass extra information on Submit button?

2001-06-26 Thread Torsten Terp
'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

RE: [EJB] java report article says bye-bye struts

2001-06-19 Thread Torsten Terp
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

dynamic links in struts....

2001-06-18 Thread Torsten Terp
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

RE: dynamic links in struts....

2001-06-18 Thread Torsten Terp
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

RE: dynamic links in struts....

2001-06-18 Thread Torsten Terp
- 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

Newie question

2001-06-05 Thread 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

RE: Newie question

2001-06-05 Thread Torsten Terp
] ... -- 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