Re: is ActionForm thread safe or behaves like Action?

2004-05-11 Thread kimbuba
Thnx a lot! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

ValidatorForm exception handling

2004-05-11 Thread kimbuba
Hello! Here is my problem: On ActionForm validate method i have a BusinessDelagate who access some DAO resources. Because of that, probably my businessdelegate will throw some kind of exceptions i.e. MyDAOException. Is there any kind of solution to handle such exceptions? On Actions i can catch

Re: ValidatorForm exception handling

2004-05-11 Thread kimbuba
Thnx Niall but i don't understand how to set up that. Here's my situation i got one action MyAction. and MyForm. i have a very basic validation MyAction if has parameter="Submit" it will do prevalidation stuff like loading beans to populate fileds otherwise it will let ActionForm validate and exe

Re: ValidatorForm exception handling

2004-05-11 Thread kimbuba
I see what you think: 1) do common validation stuff (required..) 2) if it pass go to action execute 3) do others validation with BusinessDelegate 4) -> success OR go back with errors: return mapping.getInputForward(); the problem is different. If validator finds some errors it will go back to inpu

Re: ValidatorForm exception handling

2004-05-12 Thread kimbuba
handle it using the struts > exception handling. that is what i meen. That did the job! Sorry for my english. Thnx a lot for your time kimbuba. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

is ActionForm thread safe or behaves like Action?

2004-05-11 Thread kimbuba
Hello i can't understand if ActionForm is threadsafe. will all my attribute instance will be safe? On RequestUtils i saw : /** * Create (if necessary) and return an ActionForm instance appropriate * for this request. If no ActionForm instance is required, return * null. **/ public static ActionF

Doubt: how to handle Action threading?

2004-05-13 Thread kimbuba
ecute method it will instantiate a new Object and execute it's own "run" method. Doing that way the new Object will haver no synch issues. I'm interested on what kind of solutions have you adopded. thnx a lot! kimbuba. ---

Re: Doubt: how to handle Action threading?

2004-05-13 Thread kimbuba
Thanx Jason for answering. I saw and i do agree with your design. I have another question. Do you think that there are performance implications? Actions are reused in multithreading. But since in java all objects go into the heap it would no difference between using instance vars and local-method