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 you

RE: Long Story short

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

RE: Long Story short

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

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 arr

RE: Problems with iterate

2001-07-04 Thread Torsten Terp
|| > | Tel. +41 1 405 35 12 | Fax +41 1 405 31 13 | > | || > | || > | [EMAIL PROTECTED] | Baslerstr. 60 | > | | 8048 Zürich | > |-+| >

RE: Problems with iterate

2001-07-03 Thread Torsten Terp
t; > Street: > > <% propertyValue = "address[" + addressIndex + "].street"; %> > > > > > Zip Code: > > <% propertyValue = "address[" + addressI

RE: Problems with iterate

2001-07-02 Thread Torsten Terp
> > > > Zip Code: > > <% propertyValue = "address[" + addressIndex + "].zipCode"; %> > > > > > > > > > /Peter > > > > -Original Message- > From: Torsten Terp [mailto:[EMAIL PR

RE: Problems with iterate

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

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., ... ... 'form' is my struts form bean, 'contactDataVector' is a vector of 'contactData' objects each contain

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

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

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: ... 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

Setting target dynamically

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

RE: Help, How to check (initially) a radio button?

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

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 task

RE: dynamic links in struts....

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

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., and this key value should be dynamic too, how do I accomplish this?? ^torsten > -Original Message- > From: Jon.Ridgway [mailto:[EMAIL PRO

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" }; %> <% for (int i = 0 ; i

RE: Newie question

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

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 nam