Spilt i18n into smaller files according to module

My application is very big so I want to split my resource bundle into small files according to module.
I am using struts 1.0
I have written My own servlet which extends ActionServlet.
and in web.xml I am passing name if my resource bundle as the parameter to my servlet.
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>com.MyActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>MyResourcesbundle</param-value>
</init-param>
</servlet>
In java code I want to get all values against key
eq:
import org.apache.struts.util.MessageResource;
private MessageResources resource = null;
resource = (MessageResources) request.getSession().getServletContext().getAttribute( org.apache.struts.action.Action.MESSAGES_KEY );
Even if I split my .properties file into smaller modula wise files ,how can I get all keys under one message key.?
plz refer above eq code. to clarify this.
So if I want to spilit this one resource bundle into many small files according to module then how can I achieve this?

No technical solution from me, but I think you should reconsider your requirements. Personally I think 1 .properties file/language and /library is enough.
Most of the i18n'ed resources appear to be of "common" nature, like single words ("OK", "CANCEL") etc. For those cases that are specific to a module use the
fully-qualified class name as the key and you should be fine (at least works for me).

Similar Messages

  • How To Divide Source File Into Smaller Files Without Exporting?

    Hello Everyone,
    I'm a beginner with PPro CS4 and to video editing in general. I've done a lot of Googling and searching of these forums to get an answer to this question, but I haven't found a clear answer. Here's my problem:
    I have many hours of HDV footage shot over the past few years with a Canon HV30. This footage is on dozens of DV tape cassettes. I want to capture most of it to disk.
    When I capture a tape to disk, I get a single large mpeg4 file. (PPro captures all HDV footage to mpeg4.) "Scene select" doesn't work with the HV30, so my only other way to make smaller capture files would be to set In/Out points with batch capture. But this would mean hours of fast-forwarding and reversing with the VCR-like controls on the camera to review all the tapes and set the points. I thought it might be FASTER to simply capture an entire tape in one operation, THEN review the captured tape within PPro (it's much faster using the scrubber), and dividing that file into smaller files within PPro, thereby avoiding all the mechanical fast-forwarding and rewinding on the camera itself.
    But the only way I can find to do this seems to involve EXPORTING clips. Am I wrong to think that exporting a clip to a new file involves a degradation of the original mpeg4 source file? Or will there be no loss to the quality if I simply export to mpeg4 format?
    It seems there should be an easy way to simply divide the original capture into smaller source files for later editing, without putting the footage through another generation of processing (exporting), which might entail some loss of quality. Or am I wrong about this?
    (CS4 Master Suite, i7 3630k, 16GB RAM, C: 256GB SSD, D: 1T Setpoint F3, E: 1T Setpoint F3)

    HDV footage is mpeg2 (whats in a number ). CS4 does not do scene detect you need to use HDV split for that.
    http://strony.aster.pl/paviko/hdvsplit.htm.
    You can run your already captured files through hdv split and it will chop the file into clips and off you go.

  • How to convert a large PDF into smaller files

    How does one convert a large PDF file into smaller files and not get odd page breaks.  Need to get the page breaks at the headers.  Just looking for instructions for an end user of Acrobat Pro who reports getting random page breaks and couldn't get help from the Adobe help desk.  I was directed here when I tried to contact support ... Figure this forum may have information. ... thanks.

    You can't. If you split the file into pages it will remain in the same layout the original has. PDF files were not meant to be edited in the way you're describing.

  • How to chunk the XML files into smaller files using peoplecode.

    We are trying to load the Invoices through our XMLDoc PeopleCode that we have written long back.
      Previously the file is not that big and we are able to load them successfully. But now each file is more than 200MB and we are getting the below error when initiated the process..
      Process Request shows status of 'INITIATED' or 'PROCESSING' but no longer running “.
      I tried to chunk the file manually to 50MB it is able to run it properly but chuncking manually is not possible for all the files as it is time taking process..
      Is there any way that we can check on Webserver/Appserver whether whats happening and how to handle this error..
    Or any sample code to divide the big file into smaller files..
      Please let me know your thoughts..

    Good morning Ashok,
    Your data is in a SQL*Loader supported datatype, so basically it should not be a problem.
    Have you checked the Database Utilities guide (for Oracle9i for instance: http://www.lc.leidenuniv.nl/awcourse/oracle/server.920/a96652/toc.htm) on how to handle this?
    I'll also repeat my previous question, have you ever been able to load data into the database using SQL*Loader (either using ASCII values or any other datatype)?
    For the OWB part, have you read "Importing Data Definitions" (typically chapter 4)? More specifically, "Specifying Field Properties" in "About Flat File Sources and Targets"?
    In "SQL*Loader Properties" it says the following:
    Type Describes the data type of the field for the SQL*Loader. You can use the Flat
    File Sample Wizard to import the following data types: CHAR, DATE, DECIMAL
    EXTERNAL, FLOAT EXTERNAL, INTEGER EXTERNAL, ZONED , AND ZONED
    EXTERNAL. For complete information on SQL*Loader field and data types, refer to
    Oracle9i Utilities. Currently, only portable datatypes are supported.
    If you check the database utitlities guide (chapter 6 Field List Reference) and look for "SQL*Loader Datatypes", you'll find (packed) decimal under the Nonportable Datatypes. This implies that OWB does not support it.
    This does not mean you can't use SQL*Loader, you'll only have to define everything separate from OWB and call it separately as well.
    Good luck, Patrick

  • How can I split a pdf file into smaller files using Acrobat XI

    How can I split a pdf file into smaller files using Acrobat XI?

    Hi laforcej
    Open the PDF In Acrobat ...
    Go to Tools -> Pages -> Extract
    Now Select the Page Number you Want to Extract and Save them

  • How To Split Large Excel or CSV Files into Smaller Files

    Does anyone know how to split a large Excel or CSV file into multiple smaller files?  Or, is there an app that will work with Mac to do that?

    split [-a suffix_length] [-b byte_count[k|m]] [-l line_count] [-p pattern] [file [name]]
    is a native Terminal command. Read up more on https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man1/split.1.html
    I prefer to use gSplit which is gnu coreutils.
    You can install gnu coreutils using homebrew.

  • Break large TDMS file into small files

    hello all
    My TDMS file is around 3g, and needs changed into around 10M size files. 
    I ran McRorie's splitFiles.vi ‏15 KB in this page.  and set the number of samples per file as 5000000, however, I cannot get the results I need. every small file is only 1KB, and no data inside. What is the possible problem in this?
    Also, I tried to write a vi based on sample vi(Read TDMS File) by adding one "write to measurement file.vi". However, when I set the small file size as 10M Byte inside the"write to measurement file.vi", the first file could be around 20M, and the next few files may be correct as 10M, and then it just stop splitting, edding with a file even much larger than original file. I uploaded my vi here, maybe someone  can help to find some mistake for me. 
    Thanks very much!
    Wuwei Mao
    Solved!
    Go to Solution.
    Attachments:
    Read TDMS File.vi ‏54 KB

    Hi Wuwei,
    After giving the correct data type to TDMS Read node in splitFiles.vi, it works as expected. ( See the attached two VIs: createFile.vi and the modified splitFiles.vi)
    Because I don't know how you created your TDMS file, I write a new 3G bytes TDMS file, which has one group and one channel. The data type of samples is unsigned 16-bit Integer. The total number of samples is 1610612736. Then I set the number of samples per file to 5000000 as you did. So after splitting, each file size is 5000000*(16/8) bytes (around 10M bytes).
    Please make sure the followed steps have been done before you run the splitFiles.vi:
    1. The TDMS file will be split has been put on the proper path;
    2. The correct group and channel names have been given;
    3. The correct data type to TDMS Read node has been given.
    Because your second option using "write to measurement file.vi" to split TDMS file will lose some information, such as group and channel names. So I suggest using the method used by splitFiles.vi to accomplish your goal.
    Jie Zheng
    NI R&D

  • How to cut up a large video file into smaller files?

    I have a 30 minute video file I recorded on my camera. I need to make it into 6 smaller video so I can work on them separately instead of importing such a large file in final cut. Is there a way I can do this with Final Cut Pro?
    Thanks in advanced!

    No. FCP is a non-destructive editor. Once you ingest a clip it stays there on your drive unchanged until you delete it. FCP is really a dataaaaabase with instructions for playing back clips in order, applying filters, audio adjustments etc. If you want separate clips you have two options: either log and capture in chunks, or set markers on the clip and export smaller pieces, then re-import them.
    But I guess the question in my mind is, if it's already captured, why bother? you'll do your editing of the segments and export the finished pieces anyway...

  • How do I break up a pdf file into smaller files?

    I have a huge pdf file that I am trying to send as an attachment but it is too large to send.  I need to break it up into about 10 different files.  Any help would be appreciated.

    Hi sbills04,
    To split a PDF (or extract pages), you need to use Acrobat. Please see https://acrobatusers.com/tutorials/how-to-break-a-pdf-into-parts
    Please let us know if you have additional questions.
    Best,
    Sara

  • Is there a design pattern for splitting up files into smaller files?

    I am developing a project where I have to load very large files (upto 50 MB). Currently I am loading these files completely into (consecutive) memory. This has the advantage that I can very easily change bytes at certain locations, because I do not know the
    structure of all bytes.
    However, my intention is to also change the structure, e.g. removing/adding 'chunks'. Now I have the idea to remove the 'known' parts out of it, store them in classes with a data chunk only containing those parts and make a sort of reference list to those chunks.
    E.g.:
    Original file:
    Header
    ChunkA 1
    ChunkA 2
    Intermediate
    ChunkB 1
    Footer
    The result will be:
    ChunkA 1 and ChunkA 2 instance. ChunkB 1 instance
    'File' instance and a reference with base offsets + reference to all chunks.
    At the end I have to 'recreate' or write the original file (with changes) back.
    Is this in general a good idea or is there some design pattern helping me in this?

    50MB is not much in the modern era of 6GB+ machines. If you want to optimize memory then consider using a
    memory mapped file.
    But you mentioned making data structure changes. This is generally dangerous as you have to be concerned about things like disaster recovery. What happens if you are in the middle of saving the modified structure when the program dies? You just corrupted
    your file. A better solution is to stream the existing file using BinaryReader to read in the existing file in parts based upon the structure.  Write out the data to a new, temporary file using BinaryWriter. This may be the original data or your modifications
    depending upon need.  Once you've generated the new file replace the old file (with optional backup). So even if something catastrophic happens during saving you don't lose the original file.
    Michael Taylor
    http://blogs.msmvps.com/p3net

  • How to split file dynamically into multiple files according to row result

    Hello, I want to split and create new document after specific data by using BI Publisher. Can anyone help me.
    For e.g. I am running a report and it is giving 5 result rows and it is generating one file with all the 5 result rows but is it possible to generate new document or file for each row. So at last I will have 5 documents/files with me.
    Edited by: user10512424 on Aug 19, 2010 4:11 AM

    Hi ,
    I think bursting of the report will help you.
    Look the link below.
    http://www.strsoftware.com/blogs/oracle/2009/12/how-to-burst-and-deliver-documents-from-bi-publisher-enterprise/
    Thanks.

  • Compressing iMovie Events Into Smaller File Sizes

    Hi
    I've jut finished uploading 7 years of mini-dv video to iMovie and my hard drive is now full. Is there a way to compress all of the video clips to something like mpeg4 in one-process? Perhaps an external software tool? I've looked at Handbrake, but it does not seem to work on the entire library at once...it requires selection of one clip at a time and i have over 5,000 clips.
    Any help or ideas would be greatly appreciated!
    Thanks

    Yarg Cire wrote:
    ... Any help or ideas would be greatly appreciated!
    actual offer in the new this weekend: 1 TB harddrive = 69€ ..
    compression = quality loss and just a few codecs are supported by iMovie.
    the data on your drive are a 'clone' of the bits&bytes on your tape - a 100%, lossless backup. think of future use ...-
    keep the 'raw' data, use an additional drive.
    no fuzz, no time-consuming processes.
    imho...
    and Welcome Yarg Cire to the  iMovie boards ..

  • How to split a file into two small file

    Hi All,
              I want to raed a file from FTP server.Then i have to split a file into two small file.File format look like this.
             R01!service_order!item_guid!resource_guid!assignment_guid
             R02!Service_order!product_id!product_discription!quantity
             R02!Service_order!product_id!product_discription!quantity
             R02!Service_order!product_id!product_discription!quantity
    i want split file into 2 file,according to header and item details.one table containt header information (label R01) and second table containt (label R02).
    can anybody help me for this.how can i split into 2 file.
    Thanks
    Vishwas Sahu

    Create 2 internal tables. sat it_header, it_detail
    Check for 1st 3 characters and if it is R01 then send it into it_header and if it comes out to be R02 then send it to it_detail.
    Once done... You can either attach these tables into mail as two seperate files
    Or you can download each internal table using GUI_DOWNLOAD.
    Hope this helps!!
    Kanchan

  • How to organize into smaller java files?

    I have a class which basically connects to a database and just about all of its methods query the database and return the results. The problem (which isn't actually a problem) is that the java file is getting so big because there are literally hundreds of methods representing different queries to the database.
    Does anyone has any idea how to break this class into smaller files? Is there a "include" statement of some sort that I can use to include these "sub-java" files?

    Does anyone has any idea how to break this class into smaller files? Is there a "include" statement of some sort that I can use to include these "sub-java" files?Different classes would still mean that user code would need to change.
    The problem (which isn't actually a problem) is that the java file is getting so big because there are literally hundreds of methods representing different queries to the database.Depending on how that is organized that isn't necessarily a problem. For instance if it did nothing but manage calls and not extraction then it isn't a terrible problem.
    If not then as previously suggested you break it by functional block. The closes model to what you have would be to break it into a class per each data model entity and then either add support classes for more complex support or add to one of the matching model entities.

  • How to split a big file into several small files using XI

    Hi,
    Is there any way to split a huge file into small files using XI.
    Thanks
    Mukesh

    There is a how to guide for using file adapters, an "sdn search" will get you the document.
    Based on that , read a file into XI, Use strings to store the file content and do the split
    here is some code to get you started
    ===========
    Pseudocode:
    ===========
    // This can be passed in - however many output files to which the source is split
    numOutputFiles = 5;
    // Create the same number of filehandles as numOutputFiles specifies
    open file1, file2, file3, file4, file5;
    // Create an Array to hold the references to those filehandles
    Array[5] fileHandles = {file1, file2, file3, file5, file5};
    // Initialize a loop counter
    int loopCounter = 0;
    // a temporary holder to "point" the output stream to the correct output file
    File currentOutputFile = null;
    // loop through your input file
    while (sourceFile.nextLine != null)
    loopCounter++;
    if (loopCounter == (numOutputFiles +1) // you've reached 5, loop back
    loopCounter = 1;
    currentOutputFile = fileHandles[loopCounter]; // gets the output file at that index of the array
    currentOutputFile.write(sourceFile.nextLine);
    regards
    krishna

Maybe you are looking for

  • I want to upgrade my processor in my HP Pavilion dv4-2162nr Entertainment Notebook

    My computer has an intel I3 Processor and I want to know how can I make it possible to change it for an Intel Core i7 Processor Extreme, I heard that there is a version of this processor for laptops. My computer is the HP Pavilion dv4-2162nr Entertai

  • MacBook - stop going to sleep mode When lid closed

    Hi , I am using handbrake to convert video files on macbook . I want to close the laptop lid and still want the process to run in background . Some one mentioned that if the laptop lid is closed and the system is running it gets heated rapidly . I wa

  • Regarding usage of java script in adobe forms

    Hello experts,                 Please any body help me out with what events i should use in java script / formcalc . send links for java scripting and formcalc. Thanxs, adi.

  • 10.9.2 Mail not working correctly

    I'm the only person in the office to upgrade to 10.9.2 (thankfully!). Since then, Mail has not worked correctly. It is an IMAP account. When I click on an existing message in my inbox, instead of displaying instantly it takes 3-4 seconds. The screen

  • Web content overlay doesn't always open in the in-app browser

    We are using a web content overlay in a small frame to show a series of social media share buttons. It works beautifully most of the time - when the user taps the img, the in-app browser slides up from the bottom and the share page is ready to go. So