Externalizing message strings away from the JSP

Hello,
          I'm just starting to investigate some of WebLogic's
          internationalization features, and I'm trying to decide what the
          benefits would be for using the i18n features instead of straight Java
          resource bundles.
          Basically, I'm looking for a way to externalize all of our error
          messages, exceptions, and UI elements (like text labels). This will
          be a Struts application, using Struts validation.
          Internationalization itself would be nice, but it is not the driving
          factor for externalizing all of our message strings.
          I'm seeing to benefits to using the WebLogic i18n functionality.
          First, all of the "resource strings" are specified in an XML document
          that can be validated and is possibly easier to maintain. Second,
          accessing these strings becomes a call to individual methods of a
          automatically generated TextFormatter class, thereby freeing client
          code from having to directly access resource bundles.
          Are there any other benefits to using this? I'm just wondering if
          these benefits are really worth it, or if it's overkill.
          Thanks for the help.
          - Jeff
          

You do not have to implement the whole Struts framework just for
          internationalization (I18N) because I18N is only smaller part of Struts.
          Instead, you can use only taglibs dedicated for I18N. Look at www.apache.org
          site for I18N taglib as well as for other usefull taglibs. Or you can create
          your own taglib but it's not worth it because you'll reach the same result
          that's already implemented in existig open source taglibs on Internet.
          "Jeff" <[email protected]> wrote in message
          news:[email protected]...
          > Hello,
          >
          > I'm just starting to investigate some of WebLogic's
          > internationalization features, and I'm trying to decide what the
          > benefits would be for using the i18n features instead of straight Java
          > resource bundles.
          >
          > Basically, I'm looking for a way to externalize all of our error
          > messages, exceptions, and UI elements (like text labels). This will
          > be a Struts application, using Struts validation.
          > Internationalization itself would be nice, but it is not the driving
          > factor for externalizing all of our message strings.
          >
          > I'm seeing to benefits to using the WebLogic i18n functionality.
          > First, all of the "resource strings" are specified in an XML document
          > that can be validated and is possibly easier to maintain. Second,
          > accessing these strings becomes a call to individual methods of a
          > automatically generated TextFormatter class, thereby freeing client
          > code from having to directly access resource bundles.
          >
          > Are there any other benefits to using this? I'm just wondering if
          > these benefits are really worth it, or if it's overkill.
          >
          > Thanks for the help.
          >
          > - Jeff
          

Similar Messages

  • URGENT-CREATE A HTML FILE WITH AN STRING INPUT FROM THE RUNNING JSP

    I am designing a web page where the user enters a page after entering his/her login and password.The User should now be provided with a display page containing the servers that he has permissions for access.The servers that he has permissions are maintained in a database(a normal text file in UNIX).
    Till now the program has been complete for displaying the servers that are available to him.
    I need to create a HTML form containing these servers names in a check box so that when the user clicks thcheck box against the server name it should go to the server and get the password for the required server.
    THe intention from me is to create a HTML file that dynamically takes values from the running JSP means the server names as a string value to its input and then i can continue
    Please guide me in creating a HTML form based on the string output from the running JSP
    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
    DataInputStream in1 = new DataInputStream(fs);
    int fl=0;
    while (in1.available() !=0)
    String str1=in1.readLine();
    StringTokenizer st1 = new StringTokenizer(str1);
    String usernam=st1.nextToken();
    if (usernam.equals(uname))
    String ip=st1.nextToken();
    String host=st1.nextToken();
    fl=1;
    out.println("<tr><td>                                                                                              "+ host + "</td><td> " + ip +"</td></tr>");
    if (fl == 0)
    out.println("YOU HAVE NO SEVRER IN YOUR PROFILE !");
    in1.close();
    The host string here is the server name
    the ip is the ip address of the server
    Need to input these values to another HTML page that contains the check box list of the servers .
    once these are clicked i think i can pass on this to another JSP and retreive passwords
    Please guide me in this

    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
                                    DataInputStream in1 = new DataInputStream(fs);
                                    int fl=0;
                                    while (in1.available() !=0)
                                    String str1=in1.readLine();
                                    StringTokenizer st1 = new StringTokenizer(str1);
                                    String usernam=st1.nextToken();
                                    if (usernam.equals(uname))
                                    String ip=st1.nextToken();
                                    String host=st1.nextToken();
                                    fl=1;
                                    out.println("<tr><td>                                                                                              "+ host + "</td><td>          " + ip +"</td></tr>");
                                    if (fl == 0)
                                    out.println("YOU HAVE NO SERVER IN YOUR PROFILE !");
                                    in1.close();I feel sorry for the inconvenience that is caused as i am new to using these forums.
    I have here used a simple program to retreive the names of the servers that the users have acess to..
    I have here read the servername and server ip stored from a file in UNIX in the running JSP.Now i need to pass these string variables to HTML file and display it in a Check box format.the strings host and ip have to be passed to the input of the HTML file so that they can further be processed once they are clicked using another JSP.
    Can anybody please help me in Passing these strings from the running JSP and display it in a check box format

  • Opening a rft file from the jsp

    hi all,
    i want to open an rtf file from the jsp. i need to call a rtf file present in some location and convert the file to bytes thereby writing these bytes to output stream and so.. can anyone suggest me here.
    it should be something like this :
    String sFileName = "/kli/terms&conditions/TermsandConditionsLitigation.rtf";
                  File nameOfFile = new File(sFileName);
                  FileOutputStream fout = new FileOutputStream(nameOfFile);
                  response.setContentType("application/rtf");
                  response.setHeader("Content-disposition","attachment;filename=\"" +sFileName+ "\"");
                  ServletOutputStream outs = response.getOutputStream();
                  outs.write(fout);
                  outs.flush();
                  outs.close();satish.
    Message was edited by:
    bobz
    Message was edited by:
    bobz

    Yes, unlike earlier IE versions, IE10 has only one executable, but it can run in 32-bit or 64-bit mode.
    Some details: http://www.sevenforums.com/tutorials/280434-internet-explorer-10-enable-32-bit-64-bit-ie10 -windows-7-a.html

  • How can I set the new version of firefox so that things I write in journals and other things are remembered in case I accidentally navigate away from the page?

    In Firefov version 3 there is a feature that will remember what I have typed in a journal or note entry before posting it. This is not like an autofill because the test disappears if I navigate too many pages away from it. The usefulness of it was that if I accidentally navigated away from the page before sending my message or posting my journal, I could just press the back button and what I had written previously would still be there. I had to return to version 3.6.19 because version 5 does not seem to have this feature enabled unless you preform a very specific routine. You have to re-enable the ability of firefox to save tabs when exiting. then you have to close down firefox while saving the tab with the page you wish to write a journal on pulled up. Then when you bring firefox back up, you can type on the saved page and if you accidentally navigate away from it, you can hit the back button and it is saved. However, this goes away when you refresh the page or try it on any other page. I would like to know if it would be possible for me to enable this feature on firefox 5, or if I will have to continue using version 3.

    Try using this extension. <br />
    https://addons.mozilla.org/en-US/firefox/addon/textarea-cache/

  • Is there a way to actaully talk to someone at apple whereby it doesn't cost money? I downloaded an app and now the stupid phone says that there is compass interference and to move away from the interference. Well, I am in the middle of a field. Now what?

    Is there actually a way to talk to a service person at Apple where you don't have to shell out money? I downloaded an app that cost $9.99 and when I tried to use it I get a message that says there is compass interference and to move away from the interference or wave the phone in a figure 8 pattern. Well, now I have a sore arm from constant waving out in the middle of a field and it appears that is going to cost $29 to talk to a person. Does anyone have any idea why this is occuring? As a side note, I can use a normal compass with no issues so it is the phone. From a customer perspective, this is poor customer service.

    First of all, an idle threat is one that a person has no intention of carrying out. In the past 16 months that I have had this phone I have become less and less satisfied and found that it is like much of today's technology....over rated and under performing. The one thing that I have never been accused of is not wanting, or not giving help but when a company makes itself unavailable to resolve issues and leaves it to forums run by users helping users, it speaks more about the company than anything else they could do. As I said, I do not make idle threats and I did not threaten you in any way. Guess I'll call this topic done with as it is not and was not the intent to get a war started    

  • Hello, I am running Mac os 10.6.8. It is shutting down without warning when I walk away from the computer for about 5 minutes. It happened twice. It was not asleep, i had to turn the computer back on...Any ideas...

    Hello, I am running Mac os 10.6.8. It is shutting down without warning when I walk away from the computer for about 5 minutes. It happened twice. It was not asleep, i had to turn the computer back on...Any ideas...
    G. Mendel

    Crashes
    The next time the problem happens, note the date and time the problem occurred, then go to Applications/Utilities/Console and copy the log starting at the time of the crash. Paste the log in a reply. Please do not use a screen shot as they can be hard to read. If there are repeated runs of the same messages, please post only one run. Be selective about what you post and don’t  post huge amounts. Make sure there is no personal data visible. Information learned from Linc Davis.

  • Pass the data back from the jsp page to the java code

    Hi,
    I have written an iView that receives an event using EPCF and extracts data from the client data bag.
    I need this iView to pass the data back from the jsp page to the java code.
    I am trying to do this using a hidden input field, but I cannot get the code to work.
    Here is the code on the jsp page.
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId">
    <hbj:inputField id="myInputField" type="string" maxlength="100" value="" jsObjectNeeded="true">
    <% myInputField.setVisible(false);%>
    </hbj:inputField>      
       </hbj:form>
      </hbj:page>
    </hbj:content>
    <script language=JavaScript>
    EPCM.subscribeEvent("urn:com.peter", "namedata", window, "eventReceiver");
    function eventReceiver(eventObj) {
         var url = eventObj.dataObject;
         var funcName = htmlb_formid+"_getHtmlbElementId";
         func = window[funcName];
         var ipField = eval(func("myInputField"));
         ipField.setValue(url);
         var form = document.all(htmlb_formid);
         form.submit();
    </script> 
    Here is my java code
    package com.sap.training.portal;
    import com.sapportals.htmlb.InputField;
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.portal.htmlb.page.JSPDynPage;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    public class ListSalesOrder extends PageProcessorComponent {
      public DynPage getPage(){
        return new ListSalesOrderDynPage();
      public static class ListSalesOrderDynPage extends JSPDynPage{
         private String merong;
        public void doInitialization(){
        public void doProcessAfterInput() throws PageException {
              InputField reportfld = (InputField) getComponentByName("myInputField");
              if (reportfld != null)      merong = reportfld.getValueAsDataType().toString();
        public void doProcessBeforeOutput() throws PageException {
              if ( merong != null ) setJspName("merong.jsp");
              else setJspName("ListSalesOrder.jsp");
    Here is DD
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="SharingReference" value="com.sap.portal.htmlb"/>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="SearchSalesOrder">
          <component-config>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="/pagelet/SearchSalesOrder.jsp"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="ListSalesOrder">
          <component-config>
            <property name="ClassName" value="com.sap.training.portal.ListSalesOrder"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    After receive event, then call java script function "eventReceiver" and call "form.submit()".
    But .. PAI Logic in Java code doesn't called ...
    Where is my problme ?
    Help me ...
    Regards, Arnold.

    Hi Arnold,
    you should not do a form.submit yourself. Instead you can put a component called ExternalSubmit to your page:
    ExternalSubmit exSubmit = new ExternalSubmit("EX_SUBMIT"));
    exSubmit.setServerEventName("MyEvent");
    This results in a java script funtion on the page which is called "_htmlb_external_submit_". If you call this function the the form gets submitted and your event handler is called.
    regards,
    Martin

  • How do i retrieve information from the JSP into my SELECT statements?

    I need to retrieve the information that is being entered into JSP page.. So that i can use them to do an SQL statement.. but im not very sure if my codes are correct.. Following are my codes.. Pls help.. thx
    MyJSPPage.jsp
    <jsp:useBean id="user" class="user.User" scope="session"/>
    <form name="loanItem" method ="POST" action="user">
    <input type="hidden" name="userID" value="<jsp:getProperty name="user" property="userID"/>">
         <tr><td align=left height="34"> <b> <font size="4">Member ID:</font>
    </b> </td>
              <td height="34">
              <jsp:getProperty name="user" property="userID"/></td>
         </tr>     
    ==================================================================================
    MyManager.java --> this file is where all my SQL statements are ..
    [l]String itemType = session.getParameter("itemType");[l] (--->> is how i retrieve info from the JSP page?)
              if (itemType.equals("Book"))
                   String sqlQuery1 = "select loanDuration from ItemPolicy where itemType ='" + itemType+ "'";
                   System.out.println(sqlQuery1);
                   ItemPolicy itempolicy = null;
                   try {
                        db = new Database();
                        rs = db.readRequest(sqlQuery1);
                        if (rs != null && rs.next()) {
                             itempolicy = new ItemPolicy();
                             itempolicy.setLoanDuration(Integer.parseInt(rs.getString("loanDuration")));
                        db.close();
                   } catch (SQLException se) {
                                  se.printStackTrace();
                                  throw (new UserException("Unable to retrieve from Database!"));
                             } catch (Exception e) {
                                  e.printStackTrace();
                                  throw (new UserException("Unknow error encountered!"));
                   String dueDate = util.getDueDate(itempolicy.getLoanDuration());
              else if (itemType.equals("Magazine"))
    ==================================================================================
    Thanks in advance...

    you should change to request.getParameter("itemType").
    or just System.out.print the itemType to see it got the value.
    Hope it helps.

  • How do I disconnect or "eject" my Thunderbolt display when I take my MBA away from the desk?

    How do I disconnect or "eject" my Thunderbolt display when I take my MBA away from the desk?

    Pretty much. You need to eject all external drives that are connected to the TB display from within OS X before you disconnect the TB display otherwise OS X will give you the "drive was not ejected properly" error.
    If you just pull out the TB cable it's like disconnecting the drives USB cable direct from the Mac.

  • On shut down I get a window that says Continue the installation Choose abort if you wish to cancel the installation If I don't press anything or if I press Yes or Abort the message goes away and the computer shuts down.  This has been going on for ov

    I have a 27" iMac mid 2011 2.7 GHz intel core i5 with OS 10.10.1.  For about the last month when I shut down I get a window that says "Continue the installation Choose abort if you wish to cancel the installation  ABORT   YES".   If I don't press anything or if I choose ABORT or Yes the message goes away and the computer shuts down.  But the next time I use the computer and then shut down the message is back.  I have looked to see if there are any downloads pending or if there are any updates trying to download.  I am very puzzled.

    Genieo Adware is installed.  Removing it will help.
    If you have another browser installed, use it.
    If not, launch App store and get another  browser for temporary use.
    Remove it afterwards.
    1. Use  free  AdwareMedic by clicking “Download ” from here
        http://www.adwaremedic.com/index.php
        Install , open,  and run it by clicking “Scan for Adware” button   to remove adware.
        Once done, quit AdwareMedic by clicking AdwareMedic in the menu bar and selecting
        “Quit AdwareMedic”.
                   or
        Remove the adware  manually  by following the “HowTo” from Apple.
        http://support.apple.com/en-us/HT203987
    2. Safari > Preferences > Extensions
         Turn those off and relaunch Safari to test .
         Turn those on one by one and test.

  • Away from the office messge

    Hi,
    I can't seem to find instructions for configuring mail to answer incoming messages with an automatic notice that I'll be away from the office until....
    How do I do that?
    Thanks!

    Hi Leslie,
    The mail application does not offer an auto-responds feature. Who is your email provider? Several email providers will offer a way to enable this via webmail so the responder is created on the server level, versus on the client level. Do you have Gmail, Yahoo! or Mobile Me/.Mac?

  • I have a new iphone5 and would like to have my own itunes list away from the familys itune list

    i have a new iphone5 and would like to have my own itunes list away from the familys itune list?
    i have now got my own apple id account but where do i go from here?
    thanks danny.

    The user data is store in the profile folder. You can copy the data manually by copying the contents of the profile folder, for details see [http://kb.mozillazine.org/Profile_backup Profile backup - MozillaZine Knowledge Base] or [[Backing up your information]].
    There are some add-ons and utilities that can make this process easier. The first one is the [https://addons.mozilla.org/en-US/firefox/addon/2109/ FEBE] add-on which can be used to copy a profile. Another option is the free [http://mozbackup.jasnapaka.com/ MozBackup] utility.

  • I am unable to see any POP3 or IMAP tab when I set up an account in my iphone 4S. Hence by default all my email accounts become IMAP and the messages are deleted from the server when I delete them from the iphone.

    I am unable to see any POP3 or IMAP tab when I set up an account in my iphone 4S. Hence by default all my email accounts become IMAP and the messages are deleted from the server when I delete them from the iphone.

    ok sorry everyone but i solved it myself but the solution is so nuts i've posted it here to help others who have the same problem.
    to setup a comcast imap account on your iphone:
    go to mail, contacts, etc in settings
    under accts, select add account
    select "other"
    new screen, choose "add mail account"
    now on the new acct screen you must enter your name, email address and password for your GMAIL acct ! (yes i said your gmail acct !, or some other acct with a NON comcast address).
    hit next
    then the acct verifies
    when verified a screen will open with all the acct settings for this acct AND @ the top of the screen are the 2 buttons > imap or POP
    select imap and THEN CHANGE ALL THE ACCOUNT information to the comcast account !
    then hit next and the account will take a couple minutes to verify but it will verify and now you have a comcast imap acct set up on your iphone.  The problem must be that when the iphone sends the initial verify acct info to comcast (if you enter that information first) the comcast server is simply not setup yet to signal the iphone that there is an imap option.

  • I have had my iphone 5 stolen and last backed up approx. 2 months ago. I don't think I've ever gone through and set up PhotoStream however it has always appeared on my phone. Is there any way of getting back messages/photos/etc from the past 2 months?

    I have had my iphone 5 stolen/have lost my iphone 5. I haven't backed it up for a while (2 months?!) and I am not sure that I actually set up  Photostream however it's always been on there from what I can tell (icon is there). Is there anyway of getting back contacts/messages/photos/anything from the phone onto my new replacement phone if it hadn't been backed up recently? I've got everything up until the last backup - contacts and messages aren't such an issue for me but the photos mean a lot!!!

    If you are logged in to icloud with your same Apple ID. Go to setting on your phone>Photos & Camera and turn ON my Photo Stream.

  • The screen on my Ipod touch came away from the back.

    The screen on my ipod touch came away from the back and then stuck back down a couple of days later. The battery seems to be weak now but everything else is OK. What could have caused this? Over chargibg in the car cradle?, Heat? Being held too tightly in the cradle?, Getting water inside?
    Has this happend to any of you.
    Dan

    If you have successfully restored the iPod to factory defaults/new iPod you likely have a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

Maybe you are looking for

  • WHILE DELETING A SALE ORDER GETTING A RUNTIME ERROR

    hi to all experts, whenever i try to delete a particular sale order im getting a runtime error stating that Short text     Screen: Illegal message What happened?     The current screen processing action was terminated since a situat     occurred wher

  • Is there a way to configure NTFS file system on an NSS 324 SmartStorage unit. So far I can setup ext 3 or ext 4 but no option for NTFS

    Is there a way to configure NTFS file system on an NSS 324 SmartStorage unit. So far I can setup ext 3 or ext 4 but no option for NTFS. This unit should be joining a Windows Server 2008 R2 network and needs to be shared with all users. This unit will

  • Deleted line item in Purchase Order?

    Dear forumers, I need to display data for PO history from the SAP MM module, but I will also need to exclude deleted line item. Is it right to check for this deleted line item condition in the EKPO-LOEKZ field? But, what do the values ' ' and 'L' mea

  • Cannot find class but its there... Please...

    Hi there, I'm trying to compile my small program that will become a java text editor, it calls in another class file "SyntaxDocument" but at compile time it cannot understand what it is.. The SyntaxDocument file is fine and in the correct directory b

  • T code st03

    Dear All I am in SAP ECC 6.0 implementation project  in my development server in T code st03 under work load i am getting my Hostname and Abap Instance as lsi137_180_19 here actually i have to get the hostname_sid_instanceno but i am getting like  ls