Re: Help on ApplicationResources

2004-03-04 Thread Niall Pemberton
Struts is designed to do eactly this. You can provide your own
implementations of the MessageResources and MessageResourcesFactory classes
and plug them in. Look at the javadoc for the org.apache.struts.util
package - it has a good section on Message Resources telling you what you
need to know.

http://jakarta.apache.org/struts/api/index.html

Niall

- Original Message - 
From: Prasad, Kamakshya [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 5:22 AM
Subject: Help on ApplicationResources


Hi All,

We are using struts framework for building an application for a client.
In the system, the client wants to have all the error messages, labels
etc in the database instead of having them in a properties file. Please
let me know that how can we extend the necessary packages provided by
struts with a minimal changes and with the ability to continue using the
normal functionalities provided by struts like bean:message, errors,
ActionErrors etc.

Thanks and Regards,
Kamakshya




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help on ApplicationResources

2004-03-04 Thread Niall Pemberton
Struts is designed to do eactly this. You can provide your own
implementations of the MessageResources and MessageResourcesFactory classes
and plug them in. Look at the javadoc for the org.apache.struts.util
package - it has a good section on Message Resources telling you what you
need to know.

http://jakarta.apache.org/struts/api/index.html

Niall

- Original Message - 
From: Prasad, Kamakshya [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 5:22 AM
Subject: Help on ApplicationResources


Hi All,
 
We are using struts framework for building an application for a client.
In the system, the client wants to have all the error messages, labels
etc in the database instead of having them in a properties file. Please
let me know that how can we extend the necessary packages provided by
struts with a minimal changes and with the ability to continue using the
normal functionalities provided by struts like bean:message, errors,
ActionErrors etc.
 
Thanks and Regards,
Kamakshya 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help on ApplicationResources

2004-03-04 Thread Niall Pemberton
Apologies for these - I hadn't noticed that the message I was replying to
had been cross-posted and I didn't check the reply address - I meant to send
to struts-user list

Niall
- Original Message - 
From: Niall Pemberton [EMAIL PROTECTED]
To: Struts Developers List [EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 9:39 AM
Subject: Re: Help on ApplicationResources


 Struts is designed to do eactly this. You can provide your own
 implementations of the MessageResources and MessageResourcesFactory
classes
 and plug them in. Look at the javadoc for the org.apache.struts.util
 package - it has a good section on Message Resources telling you what
you
 need to know.

 http://jakarta.apache.org/struts/api/index.html

 Niall

 - Original Message - 
 From: Prasad, Kamakshya [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Thursday, March 04, 2004 5:22 AM
 Subject: Help on ApplicationResources


 Hi All,

 We are using struts framework for building an application for a client.
 In the system, the client wants to have all the error messages, labels
 etc in the database instead of having them in a properties file. Please
 let me know that how can we extend the necessary packages provided by
 struts with a minimal changes and with the ability to continue using the
 normal functionalities provided by struts like bean:message, errors,
 ActionErrors etc.

 Thanks and Regards,
 Kamakshya




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27439] New: - Form definition inheritance support

2004-03-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27439.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27439

Form definition inheritance support

   Summary: Form definition inheritance support
   Product: Struts
   Version: 1.1 Final
  Platform: All
OS/Version: All
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: Controller
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I've created a simple class derived from FormBeanConfig, which allows to 
inherit form definitions in struts-config.xml files. For example:

struts-config
form-beans
form-bean name=defaultWorkItemForm 
type=com.elster.web_framework.forms.WorkitemDynaValidatorForm
form-property name=workitemId 
type=java.lang.Integer/
/form-bean

form-bean name=nameForm 
type=com.elster.web_framework.forms.WorkitemDynaValidatorForm

className=com.elster.web_framework.forms.AdvancedFormBeanConfig

set-property property=inherits 
value=defaultWorkItemForm/
form-property name=name type=java.lang.String/
/form-bean


In the above example, the forst form defaultWorkItemForm will have  a signle 
Integer property named workitemId. The second form will be defined as 
inheriting from the defaultWorkItemForm, and adds additional property 
String name.

Form definitions can be overriden - if you specify a property with the same 
name that exist in the base form, it's definition will be replaced.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



TranZ NetworkZ - Received Your Mail

2004-03-04 Thread [EMAIL PROTECTED]
Dear Customer,

We Will Get Back To You Shortly.

Regards,
Suresh

(91) 080-23561956
(91) 044-24838112
Bangalore - India


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27439] - Form definition inheritance support

2004-03-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27439.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27439

Form definition inheritance support





--- Additional Comments From [EMAIL PROTECTED]  2004-03-04 15:10 ---
Created an attachment (id=10662)
AdvancedFormBeanConfig class, enabling form definition inheritance in config files.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 25920] - ConcurrentModificationException in IterateTag

2004-03-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25920.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25920

ConcurrentModificationException in IterateTag

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED



--- Additional Comments From [EMAIL PROTECTED]  2004-03-04 18:35 ---
Martin, you are right. The presence of removeAttribite in iterate cycle
was too obvious reason for the ConcurrentModification to me, that I have not 
even noticed, that you DO NOT try to remove smth from the collection. 
Sorry about that. I'll have to look for another reason for the problem.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



TranZ NetworkZ - Received Your Mail

2004-03-04 Thread [EMAIL PROTECTED]
Dear Customer,

We Will Get Back To You Shortly.

Regards,
Suresh

(91) 080-23561956
(91) 044-24838112
Bangalore - India


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help on mapping multiple records with formbean.

2004-03-04 Thread Venkata Aleti
Hi
I have a view that include multiple editable rows , each row represents
Employee information.
Here view contains any number of rows, its dynamic. Now I want map this view
to form bean so that I can 
Validate the user inputs and display error messages if any errors exist . 
Right now I have one solution providing index properties in the view.   

Please can you help me with the examples.



View 



|name | age |empno| deptno |Description |

|scott| 23  |100  | 10 ||

|peter| 33  |200  | 10 ||

|sunny| 34  |300  | 40 ||

|reddy| 24  |400  | 30 ||

|tom  | 56  |500  | 10 ||
-
   
  -
 | Submit  |
  -

Thank you.
Regards
Venkata Aleti
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]