Re: [s2] design problem

2009-12-07 Thread Wes Wannemacher
On Mon, Dec 7, 2009 at 3:03 AM, Tudor Andrei Raneti wrote: > i load up dataParams.jsp from main.jsp: > [code]  > executeResult="true">  [/code] > i map it in struts.xml: > [code]  class="loto.action.DataParams"> >    /jsp/main.jsp >    /jsp/dataParams.jsp >     [/code] > and set up a DataPa

[s2] design problem

2009-12-07 Thread Tudor Andrei Raneti
i load up dataParams.jsp from main.jsp: [code]    [/code] i map it in struts.xml: [code]     /jsp/main.jsp    /jsp/dataParams.jsp     [/code] and set up a DataParams-validator.xml. The problem starts when i submit dataParams.jsp 's form: [code] [/code] because it's supposed to validate while

Re: newbie action,form,validation design problem

2006-10-05 Thread Laurie Harper
Strachan, Paul wrote: Hi All, (Struts 1.2.4, Validator 1.1.3) I have a DispatchAction which forwards to 3 possible Jsps (populated by a single DynaForm) Next, I added validations for each of the 3 JSP pages but now each validation is different, it seems I need to clone the forms ??? But, also

newbie action,form,validation design problem

2006-10-04 Thread Strachan, Paul
Hi All, (Struts 1.2.4, Validator 1.1.3) I have a DispatchAction which forwards to 3 possible Jsps (populated by a single DynaForm) Next, I added validations for each of the 3 JSP pages but now each validation is different, it seems I need to clone the forms ??? But, also it doesn't

Re: Design problem

2005-05-21 Thread Dakota Jack
> if ("show".equals(action)) > >// check employeId is set > > else if ("update".equals(action)) > >// check employee datas > > > > > > Nico. > > > > Gaet a écrit : > > > > >Thanks nicolas, > > > > > >I know the

Re: Design problem

2005-05-21 Thread Erik Weber
t;/showEmployeeDetail" and "/updateEmployeeDetail" will know the method to execute in my dispatch action? Thank you very much! - Original Message - From: "Nicolas De Loof" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesda

Re: Design problem

2005-05-21 Thread K Rajesh
// check employee datas > > > Nico. > > Gaet a écrit : > > >Thanks nicolas, > > > >I know the dispatch action but I don't see how to use it with 2 mappings: > >how the mappings "/showEmployeeDetail" and "/updateEmployeeDetail" wi

Re: Design problem

2005-03-09 Thread Gaet
That's exactly my problem now Rick! I will have a look ! Thanks! - Original Message - From: "Rick Reumann" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, March 09, 2005 6:01 PM Subject: Re: Design problem > Gaet wrote the follo

Re: Design problem

2005-03-09 Thread Rick Reumann
Gaet wrote the following on 3/9/2005 11:04 AM: I have defined the /EmployeeDetail action-mapping with validate equal to false to be able to display the employee detail page without any checkbut if the user made any changes on the employee information in the detailled page, the same action is ca

Re: Design problem

2005-03-09 Thread Nicolas De Loof
of EmployeeDetail.jsp like this : Like this I don't need to change my actual Action class... Is it well-designed like this? Thanks - Original Message - From: "Nicolas De Loof" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, March 09, 2

Re: Design problem

2005-03-09 Thread Nicolas De Loof
- Original Message - From: "Nicolas De Loof" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, March 09, 2005 5:09 PM Subject: Re: Design problem You should define 2 mappings for detail : a "/showEmployeeDetail" without validation (or a u

Re: Design problem

2005-03-09 Thread Gaet
hanks - Original Message - From: "Nicolas De Loof" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, March 09, 2005 5:09 PM Subject: Re: Design problem > > You should define 2 mappings for detail : > > a "/showEmployeeDetail&

Re: Design problem

2005-03-09 Thread Gaet
"Nicolas De Loof" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, March 09, 2005 5:09 PM Subject: Re: Design problem > > You should define 2 mappings for detail : > > a "/showEmployeeDetail" without validation (or a uniqu

Re: Design problem

2005-03-09 Thread Woodchuck
another alternative, if you want to keep your action definition the same (ie. not define any new action) set your action validate to "true" in struts-config.xml define a hidden input value on your form update this value when the save/update button is clicked (simple javascript) in your action f

Re: Design problem

2005-03-09 Thread Nicolas De Loof
You should define 2 mappings for detail : a "/showEmployeeDetail" without validation (or a unique rule employeeId required) a "/updateEmployeeDetail" with validation. Your action can be a dispatch action if you don't want to have 2 classes. Nico. Gaet a écrit : Hi, I have page with a list of empl

Design problem

2005-03-09 Thread Gaet
Hi, I have page with a list of employees. On that list, if you click on an employee name, I want to redirect to an edit page...easy no? but how to define the complete process into struts-config? Below you will find my actual struts-config but here is my problem : I have defined the /EmployeeDetai

Re: Struts design problem, any help?

2004-07-12 Thread Koon Yue Lam
ok then , I try to figure out myself thanks a lot, ^^ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts design problem, any help?

2004-07-12 Thread Marco Mistroni
To: Struts Users Mailing List Subject: Re: Struts design problem, any help? thanks for your kind reply For example, for a classic online shop, 1 BD for customer (for check-in, check-out, list product etc...) 1 BD for admin (for update product price, stock etc...) 1 BD for normal user (for web foru

Re: Struts design problem, any help?

2004-07-12 Thread Koon Yue Lam
thanks for your kind reply For example, for a classic online shop, 1 BD for customer (for check-in, check-out, list product etc...) 1 BD for admin (for update product price, stock etc...) 1 BD for normal user (for web forum, enquiry, feeback etc...) does it looks good? so if my BD doesn't map t

RE: Struts design problem, any help?

2004-07-12 Thread Marco Mistroni
>I want to know if I implement business delagate as POJO singleton, can >u give me some advice on how to multi-thread this business delagate to >various request ??? >and how about caching ?? How to cache the handler of a business service ?? I don't consider myself so expert on multithreading :-( P

Re: Struts design problem, any help?

2004-07-12 Thread Koon Yue Lam
Hi, me again, ^^ I want to know if I implement business delagate as POJO singleton, can u give me some advice on how to multi-thread this business delagate to various request ??? and how about caching ?? How to cache the handler of a business service ??

RE: Struts design problem, any help?

2004-07-12 Thread Marco Mistroni
Hello, >Do the system has only one business delagate to control the mapping of >request to business service it depends on how many business delegate you need in your application... it's up to you on how many business delegate you need. For small applications (like mine at home), usually 1 or 2 i

Re: Struts design problem, any help?

2004-07-12 Thread Koon Yue Lam
sorry, one more question.. I have read the business delagate pattern a while but still have little confuse Do the system has only one business delagate to control the mapping of request to business service OR the system has the same number of business delagate and business service?? so one service

RE: Struts design problem, any help?

2004-07-12 Thread Marco Mistroni
Hello, >Thanks for the reply and I want to know more... ^^ >I know what means by Business delegate Factory, but what is "a plugIn >for your factory" ?? by plugIn I meant Struts PlugIn (check struts docs, http://jakarta.apache.orgs/struts) a Struts PlugIn allows you to configure components that ha

Re: Struts design problem, any help?

2004-07-12 Thread Koon Yue Lam
Thanks for the reply and I want to know more... ^^ I know what means by Business delegate Factory, but what is "a plugIn for your factory" ?? Do I need to implement Business delegate Factory by myself? Will Struts help me in some way?? Regards

RE: Struts design problem, any help?

2004-07-12 Thread Marco Mistroni
July 2004 09:19 To: [EMAIL PROTECTED] Subject: Struts design problem, any help? Hi, I am very new in Struts. Can anyone give me some suggestion on the design of a Service Locator ?? I use ActionServlet as a front controller, and dispatch request to various Action, then I want all the Actions access

Struts design problem, any help?

2004-07-12 Thread Koon Yue Lam
Hi, I am very new in Struts. Can anyone give me some suggestion on the design of a Service Locator ?? I use ActionServlet as a front controller, and dispatch request to various Action, then I want all the Actions access my business tier only by the Service Locator, which return an interface of the

RE: Design Problem

2004-07-08 Thread Viral_Thakkar
What your putting in Application resources file..??? If u r displaying error messages then use in model. -Original Message- From: nikhil walvekar [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 4:29 PM To: Struts Users Mailing List Subject: Re: Design Problem Hi, Now my

Re: Design Problem

2004-07-08 Thread nikhil walvekar
Hi, Now my problem is that how to generate contents from Application resources in model , i am using two resources, one with default key and other with "abc" as bundle name. Messages are there in resource with "abc" as resource key. Nikhil Navjot Singh <[EMAIL PROTECTED]> wrote: nikhil wa

Re: Design Problem

2004-07-08 Thread Navjot Singh
nikhil walvekar wrote: hi all, I have got one problem in design i.e. i am not getting where should i place this part in my project. I have function to send mails, whom to send depends on some conditions, but my requirement is that message contents are taken from resources. So should it be Mo

Design Problem

2004-07-08 Thread nikhil walvekar
hi all, I have got one problem in design i.e. i am not getting where should i place this part in my project. I have function to send mails, whom to send depends on some conditions, but my requirement is that message contents are taken from resources. So should it be Model part or controller