Hi  Manfred,
     Thank you very much for responding immediately. I ended up multiple  
struts config files successfully. But the thing is when I tried to use separate 
resources for each struts config file using bundle parametre,  It seems not to 
be working.  

Here is my struts configurations

  In my main module struts config file
I included below one
struts-main.xml--->
     <message-resources
    parameter="com.main.examp.ApplicationResources"/>


In my sub module struts config file

I included below one
struts-sub.xml--->
   <message-resources
    parameter="com.sub.examp.SubResources" key="sub">
</message-resources>

SubResources.properties------------>
error.user.user_name.required=UserName is required

Here in my sub module
   
SubEditActionForm.java--->

In validate method I have given like this

public ActionErrors validate(ActionMapping mapping,
                                 HttpServletRequest request) {
       ActionErrors errors = new ActionErrors();

            if (user_name == null || user_name.length() == 0) {
                errors.add("user_name", new  
ActionError("error.user.user_name.required"));
            }
       return errors;
 }
     
But here the error messgae "UserName is required"  is not able to be displyed 
on screen  when I submit the page with out entering user_name

    So I thought of passing buddle  attribute "sub"  which is used 
struts-sub.xml  to ActionError class
(
<message-resources
    parameter="com.sub.examp.SubResources" key="sub">
</message-resources>)

   But there is no option to pass that attribute in ActionError or 
ActionMessage class
  
    SO here where I struck 

Can you please  throw some light on this

Thanks in advace

--Venkat



   





   
-----Original Message-----
From:   Manfred Wolff [mailto:[EMAIL PROTECTED]
Sent:   Mon 6/13/2005 10:00 AM
To:     Struts Users Mailing List
Cc:     
Subject:        Re: Can struts-1.1 support multiple configurations and multiple 
resources

Yes it can with multiple module support.

http://struts.apache.org/userGuide/configuration.html#dd_config_modules

Manfred

Venkat Reddy Valluri wrote:

>Hi
>
>   Can struts-1.1 support multiple configurations and multiple resources. Can 
> some body please throw some light on this. I need it very urgent
>
>Thanks in advance
>
>--Venkat
>
>  
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


-- 
===========================================
Dipl.-Inf. Manfred Wolff
-------------------------------------------
phone neusta  : +49 421 20696-0
fax neusta    : +49 421 20696-99
phone private : +49 421 534522
eFax          : +49 1212 6 62663 96533
-------------------------------------------
____________________________________________________
Diese E-Mail enthält möglicherweise vertrauliche und/oder rechtlich geschützte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorised 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.


---------------------------------------------------------------------
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]

Reply via email to