How to select the right JSP for a locale

This may be a very stupid question but someone please help me out. I've
looked at the JSP spec and the Weblogic documentation and even browsed the
newsgroup and I still can't figure this out. Perhaps I'm just being dense
(more than likely).
What we want to do is support multiple locals from one server. My idea is
that we'd write the JSP in English then hire translation companies to
convert the JSP to French,German, Japanese, etc.(We've moved all the java
code out of the JSPs using taglibs/java beans to make this easier). What
we'd like to do is have all the languages on the server at once and based on
the local of the client select the right JSP. We'd still like the URL to
remain constant. What I can't seem to figure out is how to have one URL
(like http:/www.myserver.com/example.JSP) and have the server select the
right real JSP for the local (like example-en.JSP, example-fr.JSP, etc).
I had hoped I could find a deployment descriptor (J2EE or Weblogic specific)
directive that mapped a URL to a set of JSP based on locale but I don't see
one.
How does one make this happen or is the wrong way to do it". If it the
"wrong way" what is the right way? Any links or example someone can point
me to would be great.
Kent

We use a Servlet "filter" (not the Servlet 2.3 sense, but a 2.2 servlet that
does a RequestDispatch.forward())
This filter selects the most appropriate JSP page (using a similar naming
convention to the one you indicate), then server-side forwards to it. Works
quite well.
j
"Kent Mitchell" <[email protected]> wrote in message
news:[email protected]...
So has anybody come up with other solutions that work better. I was
thinking about having a "main" jsp that all it did was check the local and
then forward the request to the right internationalized jsp. So forexample
I'd have the three files:
someMain.jsp
someMain-EN.jsp
someMain-FR.jsp
The main check the local and forwards to EN for English and FRfor French.
etc.. Has anyone done anything like this? Is so what were the pros and
cons?
Kent
"Mettu Kumar" <[email protected]> wrote in message
news:[email protected]...
Completely Agree. Once you start using TAG's get Internationalized
Strings
tools
are less useful.
Kumar.
Kent Mitchell wrote:
O.K. but doesn't this sort of make JSP editing tools like dreamweaver
pretty
much useless because of all the embedded Java code or and I missing
something.
"Mettu Kumar" <[email protected]> wrote in message
news:[email protected]...
Kent,
Most common way of doing this is having one jsp where All the
Textual
messages in the page are read from properties file based on Locale.
Kumar.
Kent Mitchell wrote:
This may be a very stupid question but someone please help me out.
I've
looked at the JSP spec and the Weblogic documentation and evenbrowsed
the
newsgroup and I still can't figure this out. Perhaps I'm just
being
dense
(more than likely).
What we want to do is support multiple locals from one server. My
idea
is
that we'd write the JSP in English then hire translation companies
to
convert the JSP to French,German, Japanese, etc.(We've moved all
the
java
code out of the JSPs using taglibs/java beans to make this
easier).
What
we'd like to do is have all the languages on the server at once
and
based on
the local of the client select the right JSP. We'd still like the
URL
to
remain constant. What I can't seem to figure out is how to have
one
URL
(like http:/www.myserver.com/example.JSP) and have the server
select
the
right real JSP for the local (like example-en.JSP, example-fr.JSP,etc).
I had hoped I could find a deployment descriptor (J2EE or Weblogicspecific)
directive that mapped a URL to a set of JSP based on locale but I
don't
see
one.
How does one make this happen or is the wrong way to do it". If
it
the
"wrong way" what is the right way? Any links or example someone
can
point
me to would be great.
Kent

Similar Messages

  • How to know the right value for SHMMAX and SHMALL for ia64 memory 32Gb

    Dear all,
    I want to install Oracle database 10g R2 on RHEL 5 ia64.
    Here the server specification :
    Proc : itanium64 ( montecito )
    Mem : 32Gb
    # getconf PAGE_SIZE = 16384
    Metalink says, that SHMMAX should be half of physical memory and SHMALL = SHMMAX / PAGE_SIZE.
    kernel.shmmax = 17179869184
    kernel.shmall = 1048576
    My Question is this is right value for SHMMAX and SHMALL on my server..??
    Thank you

    if shmmax is half the ram then what should be sga
    sga size should anyhow should be less then shmmax ,means we cannot increase sga size more than half the ram
    then how ROT for SGA that should be 70% of RAM hold good

  • How to select the production versions for MTO?

    Hi PP Experts,
    In our scenario we have two production versions and also we are in MTO strategy. While creating the sales order is there any option to select the production version (i.e.) before planning for that corresponding sales order I have to choose the production versions.
    Example:
    Material u2013 A  -
    sale order u2013 666001 u2013Prod version - 0001
    Material u2013 A --- sale order u2013 666002 u2013 prod version - 0002
    How to map the above scenario?
    Thanks in advance.
    Regards,
    Vimal

    In our scenario we have two production versions and also we are in MTO strategy. While creating the sales order is there any option to select the production version (i.e.) before planning for that corresponding sales order I have to choose the production versions.
    If the Production version selection is based on Lot size means No problem.
    If both the Production version is same lot size, system will select the first PV only in MRP
    In STD SAP, we can't Give Production Version  in sale order level,
    If you want after MRP run , U can assign Production version in plan order or in production order Manually

  • I was wondering how I pick the right model for my s10 on the lenovo site/

    Hi all
    I have an S10 model number 4231 but when I go to the lenovo driver page AFTER I select 4231 it asked for a futher sub model like 2AU or 32U
    my problem is that I don't know where to find this about my computer. I checked the system screen and this is all there is
    model 4231 
    s/n ********
    mo:  r3py38911906
    factory id  S
    ideapad S10
    the bios is lenovo 14cn34ww 08/20/2008 
    the seriel is FN1083625eodnnn
    any help would be excellent. 
    Moderator note: serial number removed for member's protection.
    Solved!
    Go to Solution.

    hey bdesigns
    certainly not under warranty are they ever :-) 
    everything backed up to google drive so all good there :-) 
    real bummer is that I can't get into the bios despite the fact that ALL passwords are clear on this S10 I get the message 
    "All items on this menu cannot be modified in user mode.
    If any items require changes, please consult your system supervisor"
    There is no hard drive detected and I'm pretty sure that it's ok.  It's a WD5000bpvt  and "was" working like a champ. Ho hum ce la vie  I long for the days when I used Tandem computers and dos. Life seemed to be so understandable then... 
    have a great evening 
    Mk

  • How to select the correct routing for production order?

    In table PLPO i have 4 different group numbers for a particular routing. I'm wondering how a production order, created in CO01, selects which one to use. Our base quantity is dz/hr. When I create an order for a particular material, it shows up as 290 as the base quantity. The group 1 is 400dz/hr, not 200. Why does the order choose this group number and not the group number 1.
       Here is a screen from PLPO table.
       Here is a screen showing the material master.
       This is an image of the order details within the created order.

    PLPO contains operations
    The planselection would be based on PLKO entries.
    Please check online help to first get a better understanding on how routings are selected.
    Routing Selection - Production Orders (PP-SFC) - SAP Library   
    Automatically Selecting a Routing - Production Orders (PP-SFC) - SAP Library
    Definition of Base Quantity for Operation:
    "Quantity of the material to be produced to which the standard values of the
    operation refer"

  • Please help me with selecting the right institute for me

    HI All,
    Please help me which institute I should select for my SAP SD training?
    ONE INSTITUTE COVERING THE FOLLOWING TOPICS:
    Sales overview
    Enterprise structure related to SD
    Master data, like Customer master data, material master data, condition master data and Output master data.
    Partner determination
    Sales document types
    Item categories
    Schedule line categories
    Pricing: Condition table, access sequence, Condition type, pricing procedure
    Stock Posting
    Free goods
    Bills of Material
    Material determination
    Material Listing and Exclusion
    Incompletion logs
    Revenue account determination
    Credit management
    Outline agreements like quantity contract, value contract and scheduling agreements
    Shipping process like Shipping point determination, Route determination, Shipping conditions picking ,PGI
    Delivery types
    Delivery item categories
    Invoice process
    Billing types
    Special sales processes like cash sales, rush orders ,consignment process and Third party process
    Return sales process
    Credit memo process
    Debit memo process
    Availability check
    Rebate processing
    Intercompany sales
    Output determination
    Copy control
    Integration with MM,FI
    Technical topics like ABAP tables, user exits and IDOC’s
    Real time scenario’s
                   OR
    OTHER INSTITUTE COVERING THE FOLLOWING TOPICS:
    1. Introduction to Supply chain management
    2. Introduction to SAP ERP package
    3. Introduction to ASAP implementation methodology
    4. Lecture Demo on Basic navigation skills in SAP R/3
    5. SAP landscape. Tips and tricks
    6. Introduction to Enterprise structure in SD
    7. Overview of Material master records
    8. Demo on ROH, HAL and FERT creation
    9. Hands on exercise on creation of material mastesr records in SAP
    10. Introduction to SD master data (Business partners, conditions and outputs)
    11. Introduction to order processing and Demo
    12. Hands on exercises on sales order processing
    13. Introduction to delivery process, picking and post goods issue process
    14. Introduction to stock transport orders and inter-company stock transport Orders
    15. Exercises on delivery with respect to sales orders
    16. Introduction to billing process (Customer billing, Inter-company, Proforma, Credit memo and Debit memo)
    17. Introduction pricing procedure, condition records, condition tables and access sequence.
    18. Configuration on SD sales order types, delivery and billing
    19. Warehouse management overview
    20. Introduction to SAP WM configuration
    21. Demo by instructor on configuration
    22. Develop configuration scripts
    23. Introduction to develop BPP
    24. Hands on exercises to students
    25. Introduction to WM master data
    26. Introduction to transaction data in WM
    27. Hands on exercises on creation of master data elements in WM
    28. Hands on exercises to students on WM transaction data
    29. Introduction to CTS process (SE10, SCC1)
    30. Demo on WM business scenarios and integration points
    31. Introduction to develop integration test scenarios. Develop test scripts
    32. Introduction to OSS notes and SAP Help
    33. Introduction to EAI tools, FID, RF Gun, MDE, SAP console and hand held devices
    34. Introduction to SAP bold on tools (SRM, CRM, BW, SEM, GTS, CIC, FSCM, DP, SNP, PP/DS, GATP, CIF and Plug in)
    35. Introduction to quick reference guides, cheat sheet, FAQ, work instructions, job aides, transaction aides, work instructions and change management
    36.Interface between SD & FI
    37.C forms, H forms
    38.Excise Related Invoices
    39.CIN configuration (taxes)
    40. Debugging with help of ABAP Tool
    41.Excise Returns Process with pricing details
    42.Order, Delivery, Billing, exicise, Output types configuration

    You should talk to various institute.

  • How to select the first row for each pair of values ?

    Hi guys, am hoping someone can help me here.
    If I have 4 tables - Building, Dept, Emp, Text
    B D E T
    A 1 Z blah1
    A 1 X blah2
    A 1 W blah3
    A 2 V blah4
    A 2 G blah5
    A 2 H blah6
    B 1 K blah7
    B 1 L blah8
    B 2 E blah9
    B 2 F blah0
    I need a query that will bring back the first bit of text for each pair of building and dept records.
    So the results I would get would be
    A 1 blah1
    A 2 blah4
    B 1 blah7
    B 2 blah9
    blah2 wouldnt be returned, because we have already had a record from the Building A, dept 1 pairing.
    Likewise we wouldnt get blah5 because we have already had a record from the Building A, dept 2 pairing.
    Can this be done in 1 query??
    Thanks all.
    Message was edited by:
    Scott Hillier

    here you go
    SQL> drop table t;
    Table dropped.
    SQL> create table t(B char(1), D integer, E char(1), T varchar2(5));
    Table created.
    SQL> insert into t values('A', 1, 'Z', 'blah1');
    1 row created.
    SQL> insert into t values('A', 1, 'X', 'blah2');
    1 row created.
    SQL> insert into t values('A', 1, 'W', 'blah3');
    1 row created.
    SQL> insert into t values('A', 2, 'V', 'blah4');
    1 row created.
    SQL> insert into t values('A', 2, 'G', 'blah5');
    1 row created.
    SQL> insert into t values('A', 2, 'H', 'blah6');
    1 row created.
    SQL> insert into t values('B', 1, 'K', 'blah7');
    1 row created.
    SQL> insert into t values('B', 1, 'L', 'blah8');
    1 row created.
    SQL> insert into t values('B', 2, 'E', 'blah9');
    1 row created.
    SQL> insert into t values('B', 2, 'F', 'blah0');
    1 row created.
    SQL> select b,d,t
      2    from (
      3  select row_number() over(partition by b, d order by b,d) rno,b,d,t
      4    from t)
      5   where rno = 1;
    B          D T
    A          1 blah1
    A          2 blah4
    B          1 blah7
    B          2 blah9karthick
    http://karthickarp.blogspot.com/

  • Need help selecting the right MBP for me, just bought a pc with Windows 8 and I already regret it..

    Ok, so I'm an engineering student and I am in need of a good laptop to run programming and design type software. I have an older iMac which I love but I need the portability of a laptop for school. I was thinking I would be fine with a pc since most of the software I would be using for school is windows based. So last night, after shopping around for quite a bit, I decided to go with a Sony Vaio E series laptop with Windows 8, 8gb ram, i7 processor, dedicated graphics card, 1tb hard drive, and touch screen. It was the best performance laptop (on paper) Best Buy had in the store for just under $1000. I would have loved to get an upper end MBP but they are over twice the price as the Sony.. So I get it home with the Vaio and it feels laggy and glitchy, it takes 2 seconds for the window to pop up after 'right clicking', I can see lines in the screen, the resolution seems far from HD when on the normal looking windows side (as opposed to the tablet look, forgive my poor terminology) and the web browser, and the touch pad seems to be hit or miss in that it doesn't always register the touch pad commands. I checked all of the visual and performance settings, made the resolution as high as possible, changed some of the settings to the high performance settings, made sure all of my drivers were updated, and the only effect was a very loud fan that runs constantly.
    So in short, I am going to take this back and start looking at the macbook pros. Here's my dilemna, I don't know which specs I will definitely need in a Macbook Pro. I need to be able to run windows on it either in parallel or as a partition for my programs necessary for school. Can the MBP run windows smoothly enough to run 3D design types of programs? If so, which one should I get? I love the size of the 13" MBP but it only has a dual core processor, instead of the quad core like the 15" MBP, I'm not sure if I definitely need the quad over the dual core. I would love a solid state MBP but they are out of my price range and not enough space if I end up partitioning it.
    Sorry for the book, but school starts Monday and I need some direction to find out which one I need to get fairly quickly. Any help would be greatly appreciated.

    Take a look at this MBP, a refurbished unit.  Don't let the late 2011 release date put you off.  For about  $500 less than an equivalent 'new' one with similar specifications you get a quad core CPU and excellent graphics.  As Steve359 mentioned, this can be upgraded if the need arises and has the same warranty as a 'new' one
    I would not be surprised that these may actually be 'new' MBPs due to the length of time that they have been replaced by the current generation.  I purchased a 17" model about 5 weeks ago, and a serial number check suggests that it is 9 weeks old.
    http://store.apple.com/us/product/G0NM5LL/A
    Ciao.

  • How to select the latest date for a field in CR?

    Dear all expert.
    I need to develop a report where it only show the latest date. For example, I had a report, it contain a customer description and bussiness transaction posting date.
    Customer description           BT posting Date
    A                                          03/10/2010
    A                                          15/10/2010
    A                                          23/11/2010
    A                                          24/12/2010
    A                                          30/12/2010
    A                                          15/02/2011
    A                                           20/03/2011
    B                                           20/03/2011
    B                                           02/04/2011
    B                                           08/04/2011
    B                                           11/04/2011
    But in CR, i Just wan it to show me:
    Customer description          BT posting Date
    A                                         20/03/2011
    B                                         11/04/2011
    I just want to show customer with the latest BT posting Date, How can I do that?
    Thank You.

    Hi Alex,
    If you want to show the data only in Detail other than group then you may follow the following :
    --Create a group on Curstomer Descripton
    --Createa fromula : Maximum(,)
    --Go in Section Expert -- suppress condition -- then give a condition like :
      <>  Maximum(,)  //  'not equal'
    This will suppress other dates and give you the latest date on your detail.
    Thanks,
    Sastry

  • Is JSP the right technology for this project?

    I'm heavy into core java, but haven't used JSP before. The project manager suggested JSP for this project, but since I'm writing the spec and the code, I need to determine if it's suitable for the task before committing to it.
    Overly-simplified summary:
    web-based application
    simple form interface, fill in the blanks
    user inputs a filename, and a piece of data or two to find within the file
    application finds the (binary) file on the server, parses it into a known data structure, and finds the data element that contains the specified information.
    application formats the data element and displays it in a web page.
    user has the option to save the data in text format or as a binary file on the local machine
    That's pretty much it. There are a few things that I'm concerned about, and am not sure whether JSPs are capable of handling:
    1. searching the local hard drive (in known directories) for a specific file and opening it
    2. creating, for instance, a MappedByteBuffer of a portion of the file and accessing data within it
    3. saving data in text or binary format on the user's hard drive
    If the JSP can run core java style code on the server, that answers 1 and 2 easily. 3 seems like it should be possible, but like I said, I've never used JSP.
    Of course I'll look up the specifics myself, but perhaps someone who has been using this technology for a while can answer my simple question:
    Is JSP a suitable tool for this job?

    So this project looks like one that could be handled not no roughly using a combination of Servlets and JSP.
    web-based application
    simple form interface, fill in the blanksUse JSP for the displays. Forms, and such...
    user inputs a filename, and a piece of data or two to
    find within the file
    application finds the (binary) file on the server,The file is on the server right? Good. Then use a Servlet to find the file. Better, actually, to use a Servlet to call some other PlainOldJavaObject that finds the file for you. That way you can test and code outside of the web environment then just integrate into Servlets/JSPs when needed...
    parses it into a known data structure, and finds the
    data element that contains the specified
    information.Again, use Servlet, or a POJO object the Servlet calls to do this stuff.
    application formats the data element and displays it
    in a web page.Good thing for JSP to do. Just let the Servlet get the results back from the POJO doing the work, then store them such that the JSP can read results and format an HTML page around them.
    user has the option to save the data in text format
    or as a binary file on the local machineOn the client's local machine? That is doable, I think. Again, use a Servlet to pass what and how to save to a POJO that that does the work. Then the servlet streams the data to the client (using a content type that will ensure the download rather than display...)
    That's pretty much it. There are a few things that
    I'm concerned about, and am not sure whether JSPs are
    capable of handling:
    1. searching the local hard drive (in known
    directories) for a specific file and opening itLocal meaning Server? Yes, best for Servlet/Data Access Object rather than a JSP though. Local as in Client machine: No.
    2. creating, for instance, a MappedByteBuffer of a
    portion of the file and accessing data within itServlets have full access to the normal Java API, but they run on the Server, so again, as long as the file is on the server... no problem.
    3. saving data in text or binary format on the user's
    hard driveYeah, easy. Just a quick download servlet. I believe there are a couple examples here in the forums. Other sites may have better ones...
    If the JSP can run core java style code on the
    server, that answers 1 and 2 easily.It can, but a little repetition here... this is best to do in Servlets rather than JSP. JSPs should be kept to display only.
    3 seems like it
    should be possible, but like I said, I've never used
    JSP.
    Of course I'll look up the specifics myself, but
    perhaps someone who has been using this technology
    for a while can answer my simple question:
    Is JSP a suitable tool for this job?

  • I downloaded the 64 bit version of itunes and plugged in my ipod touch but a sign pops up and says i need the right software for the ipod to connect which is 64 bit.  Does anyone know how to fix this problem?

    I downloaded the 64 bit version of itunes and plugged in my ipod touch but a sign pops up and says i need the right software for the ipod to connect which is 64 bit.  Does anyone know how to fix this problem?

    Hi alexanderfrommilton,
    First try reinstalling itunes.

  • How to set the Default values for Info Objects in Data Selection of InfoPac

    Hi All,
    Flat file Extracion:
    How to set the Default values for Info Objects in Data Selection Tab  for Info Package
    ex: Fiscal Year Variant  Info Object having values 'K4' 'Y2' etc  in Flat file
    Initially  default value(not constant)  for this info Object value should be 'K4'  in Info Package
    If I set data selection value for this info object K4 it will retreive records with this selection only? how to handle
    Rgds,
    CV

    Hi,
    suppose as your ex. if you are having fiscalyear variant in the dataselection tab then specify K4 in the from column, again the ficalyearvariant row and click on insert duplicate row at the bottom . you will get another row . In that enter Y2 in the from column. now you can extract K4, y2 values .
    haritha

  • Are not the right ones for the icloud account. How can I find out what these are?

    I have downloaded icloud onto my PC. When I try to access my account I am told that although my Apple ID and password are correct they are not the right ones for the icloud account.How can I find out what these are?

    Christine Helen wrote:
    I can't find any way of creating an icloud ID. I only have a PC. no Mac product except an iPod classic.
    Oh, then you can't unless you know someone with a Mac you could use for a moment or 2. (Like at the Apple Store)

  • How to select the printer and select the ICC profile for printing with VBScript?

    I try to automate my printing procedure in photoshop. The problem is that I don't know how to select the printer and select the icc profile for printing with vbscript like I manually do in the print-menu in photoshop?
    Anyone has done this before?
    Thanx!
    jus

    Client/Server version:
    - D2KWUTIL.PLL library provides a 'Select Printer' dialog box to be used in Forms: WIN_API_DIALOG.SELECT_PRINTER
    http://guenter-huerkamp.dyndns.org/oracle-doc/docs/html/d2kwutil.html
    I suggest you to create a form to invoke the report, allowing user to select the printer and then pass it as parameter DESNAME

  • I accidentally clicked add to dictionary on a misspelled word when I was trying to click the right spelling for it. How can I undo that so it will catch the misspelled word?

    I accidentally clicked add to dictionary on a misspelled word when I was trying to click the right spelling for it. How can I undo that so it will catch the misspelled word?

    You need to edit a file in your profile folder, for details see [[using the spell checker]].

Maybe you are looking for

  • Assigning values to database types

    Hi I've created some types like the ones below but I can see how to assign a value to the fred_complex_obj using pl/sql. Does anyone know? Thanks, create or replace type fred_phone_obj AS OBJECT (telephone_number varchar2(20) , telephone_type VARCHAR

  • How to simplify this query into simple sql select stmt

    Hi, Please simplify this query I want to convert this query into single select statement. Is it possible? If uarserq_choice_ind is not null then Select ubbwbst_cust_code From ubbwbst,utrchoi Where utrchoi_prop_code=ubbwbst_cancel_prod Else Select max

  • Administrator Error in iTunes 10

    I have two computers both are dell, both are running on Windows 7 and both I have access to as an administrator. On the other computer I have installed iTunes 10 with administrator privileges without any problems. However on the other computer I have

  • Fill free space with specific playlist

    Hi Guys, Had a search but couldn't see the answer. How do I fill the free space on my iPhone with songs from a specific playlist on iTunes then force iTunes to re-randomize on each sync? Thanks! Max

  • Error during OWB10gR2 Installation

    Hi, I am facing following error during Oracle Warehouse Builder Installation on Solaris x86. During installation Universal Installer prompt following messege: Error in invoking target 'isqlldr' of make file '/u01/app/oracle/product/owb10.2.0/rdbms/li