UTF-8 support in Web AS Java 6.40

Hi, All,
Our web application running on Web AS 6.40 with SQL Server 2000 needs to support multiple languages. We create the tables with column type NVARCHAR, set encoding scheme to UTF-8 for JDBC driver, add '<%@ page language="java" contentType="text/html;charset=UTF-8" %>' header in every JSP file and execute request.setCharacterEncoding("UTF-8") before every request is posted to the server. Everything is fine when running the same application on Tomcat with the same database & JDBC driver, enter Chinese charater in web page, store them in table, display result back... But the application deployed in Web AS Java cannot save and show Chinese character correctly.
I think I must miss some points here because UME actually supports to create user and role in Chinese...
Any help is deeply appreciated.
John

I found what causes the problem.
I use resource bundle to handle i18n and one of bundle is myapp_zh.properties for Chinese locale. In browser I add  Chinese [zh] in Language Preference then the web page should display Chinese character.
What puzzles me is that encoding of the page with Chinese characters is Chinese Simplified (GB2312) rather than UTF-8. Tomcat correctly sets page Encoding to UTF-8 since I specify <%@ page language="java" contentType="text/html;charset=UTF-8" %> in each JSP file. Why Web AS ignores this and returns Chinese character in GB2312?
Thanks a lot
John

Similar Messages

  • SOAP with Attachment Support in Web AS Java

    Hello,
    I want to write an extension to an existing Java application running on Web AS to take a PDF (which is a binary object in the context) and submit it using a Web Service call to a  Web Service running on a WebSphere App Server. My idea is to use SOAP with attachments to do this. I know how to create a simple Web Service call with the NWDS, but I am not so sure about a Web Service call with an attachment.
    1) Is SOAP with attachments supported in Web Java/NWDS?
    2) Does it require a specific Web AS 6.40 SP Stack?
    3) Has anyone used this before? Is there anything I need to consider (e.g. encoding of the attachment)?
    4) Is there a maximum file size for the attachment?
    You help is appreciated. And if I get it running I can show it at TechEd
    Cheers!
    Matthias

    I found what causes the problem.
    I use resource bundle to handle i18n and one of bundle is myapp_zh.properties for Chinese locale. In browser I add  Chinese [zh] in Language Preference then the web page should display Chinese character.
    What puzzles me is that encoding of the page with Chinese characters is Chinese Simplified (GB2312) rather than UTF-8. Tomcat correctly sets page Encoding to UTF-8 since I specify <%@ page language="java" contentType="text/html;charset=UTF-8" %> in each JSP file. Why Web AS ignores this and returns Chinese character in GB2312?
    Thanks a lot
    John

  • ALV table in Web dynpro java

    Hello Experts,
    I have a task to migrate the usage of UI element IWDtable to ALV Table in my application for some features like Sorting and filtering supported in ALV table.
    I searched in Google and SDN about the ALV table, could not find any document about ALV table in Java (Found docs only with ABAP).
    Is ALV table supported in Web dynpro java ? If yes, please pass me the URL for the basics of ALV table.
    Thanks in Advance,
    Regards,
    Harish

    Hello,
    I understand from previous posts in this thread, that the ALV is not yet available for use within WebDynpro. Although it is already documented in the NWDS documentation under:
    SAP NetWeaver CE Developer Studio Documentation > Developer's Guide > Developing and Composing Applications > Developing User Interfaces with Web Dynpro for Java > Reference > UI Element Guide > Tables and Lists > Displaying Lists with SAP List Viewer > Integrating SAP List Viewer into Applications
    Since it is listed under "Developing User Interfaces with Web Dynpro for Java" I would assume that is should be possible. We are on NW CE 7.1 SP5.
    I tried to get a test application running based on the documentation, but the documentation is too thin and I run into an Null-Pointer exception in a SAP class called:
    at com.sap.ip.bi.alv.rendering.ALVGraphicsRenderer.init(ALVGraphicsRenderer.java:117)
    If it is not yet released for use then I wonder why it is already part of the documentation ?
    Take care
       Ingo

  • Unsupported Content-Type: text/html;charset=utf-8 Supported ones are: [text

    Hi I am in trouble with JAX-WS 2.1.2M1
    I try to call my Webservice like this:
    Service service = Service.create(serviceName);
            service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, "http://spblue.liberty:8084/SPBlue/GlobalLogoutService");
    Dispatch<SOAPMessage> disp = service.createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE);
            SOAPMessage message = XmlUtil.getSOAPMessageFromString(request);
            SOAPMessage response = disp.invoke(message);when my disp invokes I get following Exception which seems to as a little Problem, anyway I don�t know how to get rid of this Exception.
    com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html;charset=utf-8 Supported ones are: [text/xml]
    at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:116)
    at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:280)
    at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:158)
    at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:74)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
    at com.sun.xml.ws.client.Stub.process(Stub.java:234)
    at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:166)
    at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:192)
    at test.service.Logout.requestLogout(Logout.java:115)
    at test.service.Logout.main(Logout.java:149)
    ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
    JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]
    my ServiceClass is:
    @ServiceMode(value=Service.Mode.MESSAGE)
    @WebServiceProvider( targetNamespace="http://spblue.liberty:8084/wsdl/globalLogout")
    public class GlobalLogoutServiceImpl implements Provider<SOAPMessage> {
         * Web service operation
        public SOAPMessage invoke( SOAPMessage logoutRequest ){
            return logoutRequest;
    }So how can I set the Charachter set before invokikng the service.
    Or how can I change the Service to accept UTF-8.
    Well, I don�t know.
    Any help is welcome.

    Hi,
    I don't know if this can help you, but I had a similar problem while invoking a web service. Eventually, I found out that the server was returning an html error page, and not the expected xml answer.
    That's why the client code raises such an error... It means that the MIME type of the anser is text/html (for the html page) and not the text/xml type of the 'nominal' web service answer.
    You can verify this by using a proxy to intercept the http request and answer involved in this web service invocation (use Fiddler for instance). Then, you will see that the server responds by sending an html page saying that something is wrong.
    Hope this helps...
    Sam

  • Error Your browser/program is not supported by Web Dynpro

    Hi,
    1. I am getting error "Your browser/program is not supported by Web Dynpro" while executing Web dynpro java application
    2. Portal is EP 7.0 with SP15
    3. Browser is IE 8.0
    4. Which browser(s) (& sp level)  are supported by web dynpro?
    5. Is it possible to customize this error message?
    6. If so, from where (Web dynpro java application or Visual Admin) 
    7. My web dynpro application supports multiple languages.
    8. Is it possible to maintain this message in messagecomponent.xlf file
    Thanks & regards,
    Nilesh

    Hi Nilesh
    IE8 and IE7 is not supported.
    For browser/program is not supported by Web Dynpro----
    check this forums link
    /message/6416540#6416540 [original link is broken]
    /message/2842083#2842083 [original link is broken]
    Re: browser/program is not supported by Web Dynpro!
    Hope this link information will help you
    Regards
    Ruturaj

  • Web AS Java 6.40 sp11

    Hi All, any help you can give would be greatly appreciated, or indeed point me to the right place if this is not the correct forum, Thanks!
    I was installing sp11 from sp0 on an XI 6.40 system, following the sp11 install pdf documentation. I patched the kernel, imported the SAP BASIS 6.40 sp, changed relevant configuration (including updating the jdk from 1.4.2_05 to 1.4.2_07) but when I got to the section on SAP Web AS Java 6.40 support package I ran into an issue. I downloaded the relevent patches and unpacked with SAPCAR, ran SAPInst from the unpacked folders and all was working until it reached the phase "Deploy File System" directly following the phase "SDM Installation/Upgrade". I got an error dialog (Retry/View Log/Stop/Reset) and the log showed the following error:
    ERROR 2005-04-04 14:34:51
    MUT-02041  SDM call of j2eeenginestartstop mode=manual ends with returncode 16
    I also get this error if I run the above call on the command line, together with a java stack, which also appears in the logs:
    WARNING 2005-04-04 14:34:51
    Execution of the command "C:\j2sdk1.4.2/bin/java.exe '-Xmx256M' '-Djava.ext.dirs=C:\usr\sap/XI1/DVEBMGS00/SDM/program/lib;C:\j2sdk1.4.2/jre/lib/ext' '-jar' 'C:\usr\sap/XI1/DVEBMGS00/SDM/program/bin/SDM.jar' 'j2eeenginestartstop' 'mode=manual' 'sdmhome=C:\usr\sap/XI1/DVEBMGS00/SDM/program' 'logfile=C:\Program Files\sapinst_instdir\PATCH\MSS/callSdmViaSapinst.log'" finished with return code 16. Output:
    Starting SDM - Software Deployment Manager...
    tc/SL/SDM/SDM/sap.com/SAP AG/6.4011.00.0000.20050207154237.0000
    Initializing Network Manager (50017)
    Checking if another SDM is running on port 50018
    Caught Exception: java.lang.NullPointerException
    java.lang.NullPointerException
         at com.sap.sl.util.cvers.impl.TableDescriptionFactory.getTableDescription(TableDescriptionFactory.java:73)
         at com.sap.sl.util.cvers.impl.CVersManager.loadTable(CVersManager.java:47)
         at com.sap.sl.util.cvers.impl.CVersManager.loadDBStructure(CVersManager.java:62)
         at com.sap.sl.util.cvers.impl.CVersManager.openDBSource(CVersManager.java:87)
         at com.sap.sl.util.cvers.impl.CVersManager.<init>(CVersManager.java:114)
         at com.sap.sl.util.cvers.impl.CVersFactory.createCVersManager(CVersFactory.java:46)
         at com.sap.sdm.app.cvers.wrapper.CVersFactory.createCVersManager(CVersFactory.java:69)
         at com.sap.sdm.app.cvers.deplobs.impl.CVersProxyImpl.updateCVers(CVersProxyImpl.java:133)
         at com.sap.sdm.persistency.RepositoryPersistor.persistRepository(RepositoryPersistor.java:54)
         at com.sap.sdm.control.command.decorator.RepositoryPersistor.execute(RepositoryPersistor.java:39)
         at com.sap.sdm.control.command.decorator.AssureStandaloneMode.execute(AssureStandaloneMode.java:53)
         at com.sap.sdm.control.command.decorator.AssureOneRunningSDMOnly.execute(AssureOneRunningSDMOnly.java:61)
         at com.sap.sdm.control.command.decorator.SDMInitializer.execute(SDMInitializer.java:52)
         at com.sap.sdm.control.command.decorator.GlobalParamEvaluator.execute(GlobalParamEvaluator.java:60)
         at com.sap.sdm.control.command.decorator.AbstractLibDirSetter.execute(AbstractLibDirSetter.java:46)
         at com.sap.sdm.control.command.decorator.ExitPostProcessor.execute(ExitPostProcessor.java:48)
         at com.sap.sdm.control.command.decorator.CommandNameLogger.execute(CommandNameLogger.java:49)
         at com.sap.sdm.control.command.decorator.AdditionalLogFileSetter.execute(AdditionalLogFileSetter.java:65)
         at com.sap.sdm.control.command.decorator.AbstractLogDirSetter.execute(AbstractLogDirSetter.java:54)
         at com.sap.sdm.control.command.decorator.SyntaxChecker.execute(SyntaxChecker.java:37)
         at com.sap.sdm.control.command.Command.exec(Command.java:42)
         at SDM.main(SDM.java:21)
    Severe (internal) error. Return code: 16
    I can't find anything in the sap notes about this, or in the other documentation, and am really stuck. I have tried checking if there is another sdm server running and there is not (if I start one I get a different error saying that there is already an SDM server running)
    If I really can't work out what to do I will have to go back to the last system backup I did because at the moment the J2EE engine won't even start and I can't get the SAPInst to go forward or backward to where I was before I ran it (e.g under j2ee/os_libs I have a folder "moved_by_sapinst" which remains even when I do a "reset" after the error and the Jlaunch exe has been moved there, and I think this may be why my j2ee server is not starting??)
    Many thanks for any help you can give,
    Cheers,
    Chris

    Hi all,
    Does anyone else have any suggections as to what I might try? I am still having this issue and have tried everything I can think of, I will keep trying but am running out of ideas.. The fact that the stack trace mentions CVERS table leads me to believe that the Web AS Java sp11 install is maybe looking for a component in my system that is not there, the only 4 things listed in my CVERS table are:
    PI_BASIS  2004_1_640 0008 X
    SAP_ABA   640        0011 S
    SAP_BASIS 640        0011 S
    SAP_BW    350        0011 W
    Could I be missing something vital or is this a red herring?!
    Thanks for any help you can provide,
    Chris

  • Display sapscript form in Web Dynpro Java

    Hi,
    Is it possible to print an existing sapscript form i.e. PO from ECC to my Web Dynpro application? I have successfully created a Web Dynpro Java application to create POs but now have a requirement to display or print the PO?
    Can someone provide me with a sample code? I'm hoping to be able to do this without using Adobe.
    Again, thanks for all your help.
    Best regards,
    Jaypee

    Hi mark,
    Without Adobe also u can display PO order.
    Below is the code to open a HTML window from WDJava, with data from WDJava...
    Inside DoInit()
    IWDAttributeInfo attr1 =
    wdContext.getNodeInfo().getAttribute("htmlfile");
    ISimpleTypeModifiable mtype1 = attr1.getModifiableSimpleType();
    IWDModifiableBinaryType btype1 = (IWDModifiableBinaryType) mtype1;
    btype.setFileName(attr.getName() + ".html");
    btype.setMimeType(WDWebResourceType.HTML);
    _contentType = mtype;
    Where htmlfile is a context attribute of type binary... and do a global declaration like this
    ISimpleTypeModifiable _contentType = null; (This declaration can be done at the end of your view's coding between Begin Others and End Others)
    Now,
    inside on action print
    public void onActionPrintData(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String videoName )
    //@@begin onActiondisplayVideo(ServerEvent)
    byte[] content = new byte4028;
    try {
    content = this.displayPrint().getBytes("UTF-8");
    wdContext.currentContextElement().setHtmlfile(content);
    wdContext.currentPrintElement().setAttrUrl(
    _contentType.format(content));
    //Where content is loaded with data from displayPrint() method, which is holding the HTML *page to be displayed to the user *
    IWDWindow win =
    wdThis
    .wdGetAPI()
    .getComponent()
    .getWindowManager()
    .createNonModalExternalWindow(WDWebResource
    .getWebResource(content, WDWebResourceType.HTML)
    .getURL(),"ShowVideo");
    win.setWindowSize(445,460);
    win.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    win.removeWindowFeature(WDWindowFeature.TOOL_BAR);
    win.removeWindowFeature(WDWindowFeature.MENU_BAR);
    //win.open();
    win.show();
    // wdComponentAPI.getMessageManager().reportSuccess("444444444444");
    } catch (Exception e) {
    wdComponentAPI.getMessageManager().reportException ("Unable to open window"+e,false);
    //@@end
    Now finally, design your HTML Page inside the method displayPrint() like this
    public java.lang.String displayPrint( java.lang.String strVideoName )
    //@@begin displayPrint()
    String htmlcontent=null;
    htmlcontent="content what you want to show in print window";
    use script inside the html content to do a print... like window.print();
    return htmlcontent;
    //@@end
    Regards,
    Sunaina Reddy T

  • BSP / Web-Dynpro (Java / Abap)  what to use in this case ?

    Hi all,
    i have some questions about all this BSP/Web-Dynpro stuff. We have an application (for health care written in Visual Studio) out there at our customers. Some of these customers are using SAP as their backend system. So we've writte some backend functionality (a cash processing, additional reports, a special invoice system etc.etc.) in Abap and Abap-Objects. Actually we are planing a new release for this backend stuff which is using the normal SAP Gui.
    Maybe we plan for the next release to convert our app to a Web based app and we discuss what SAP technology we should use for that.
    Here are my questions :
    - When and why should we use Web-Dynpro (Java) ?
    - Can't we use BSP ?
    - Is there any future for BSP ?
    - When will Web-Dynpro for ABAP be released (actually we are not a Java Shop so Abap is prefered)?
    Hope someone can answer my question.
    Greetings
    Henning

    If you don't mind, I am going to terminate discussion of Web Dynpro ABAP here. It is not that I want to, but we are in a difficult position with this development, and can not really discuss it too much.
    But, let me first make a few (last) comments:
    (*) BSP is available since WebAS 610 (which is now nearly at the end of its lifetime). WebAS 620 is the main platform out there, with NW04 (WebAS 640) now shipping, and the next product is inevitably coming. If you keep in mind that SAP supports each release at least 7 years, and we will be shipping BSP in an upcoming release, you can see that with BSP you are not going to left stranded for many years to come.
    (*) Web Dynpro Java is out and shipping. A very nice development environment. You can build nice things with it.
    (*) Web Dynpro ABAP: it will become a very nice product as well. We should know :). But, it will definitely not ship on NW04 platform. Which unfortunately means the next great NW shipment (both naming and date is not available).
    From our experience, most people seem to make their decisions based on the available Java versus ABAP skills in the shop. However, the other factor to look at is also "pixel perfect" rendering. Only with BSP can you influence the rendering. Web Dynpro is more a development platform for business applications, and as such they must conform to the designated model/concepts, etc.
    brian

  • UTF-16 support

    I'd like to determine what non-Latin characters can be displayed on my handset. Using the encoding UTF-16BE does not throw an exception and I can create Latin characters and basic symbols. However when I try Greek, Hebrew, and such the generated strings are blank.
    I understand that full UTF-16 support is the manufacturer's preference, however these characters are displayed elsewhere in the UI (e.g. if I change languages). What's more, I've been told the phone UI is written in Java, though I can't confirm.
    I imagine the problem could be a one of several levels:
    1. The extended characters are accessible through some other encoding, just not UTF-16.
    2. My code uses LWUIT, perhaps it cannot render these characters.
    3. Extended characters aren't supported on the phone's JVM even though the native UI uses them.

    Dude,
    UTF-8: I'm looking to represent Asian symbols so unless I'm horribly wrong those aren't in UTF-8.Please have a look at [this UTF8 table|http://www.atm.ox.ac.uk/user/iwi/charmap.html] At my work place we have software that uses Traditional and Simplified Chinese, Thai, Vietnamese, Greek, Russian and few more and all are achieved using UTF8.
    Source values: I've dumbed it down as much as possible, by creating hard coded strings with various byte values. I can be confident in the syntax, endianness, and signed byte issues because a the Latin portion of UTF-16BE works fine. Does it mean that your string has value similar to: u023f,u002d,... and you do parsing of that to a byte array and then creating the String object by using this byte array and correct encoding identifier? Or do you hardcode the string you want to display using the actual characters? In second approach you have to make absolutely sure that your code editor or IDE (Eclipse, Netbeans, ...) use exactly the encoding that you are trying to achieve. Even when the text is correctly displayed on the computer screen does not guarantee that it will be saved and read using the same encoding, which you can appreciate is essential here.
    Again I urge to use the UTF8 encoding in order to be sure about the font support. It is the simplest to implement of all Unicodes and for that reason vendors would choose it over any UTF-16.
    Java native UI: This is just hearsay I've picked up. If this is the case, it's plausible that Samsung is running a JVM for the UI and another for client games and apps. It certainly makes sense from a mfg cost standpoint. It's sorta immaterial, other than being definite proof that the extended encoding exists in the Java libraries.JVM is a quite sizeable thing to run in order to get the UI. What would be the scenario if your Java UI threw an exception? I am not native app/UI expert, but unless Java is a integral part of the core system (like in Android), UI stays native. Again, I might be wrong here at it really does not matter in the context of your problem.

  • Web Dynpro JAVA VS. Web Dynpro ABAP

    Hi,
    I'm interested in advantages and disadvantages of WD JAVA & WD ABAP. Could anybody give me some "detailed" information about it?
    We need any information you can give us.
    regards,
    Sharam

    Hi,
    <b>Web Dynpro for ABAP:</b>
    Web Dynpro for ABAP or Web Dynpro for ABAP (WD4A, WDA) is the SAP standard UI technology for developing Web applications in the ABAP environment. It consists of a runtime environment and a graphical development environment with special Web Dynpro tools that are integrated in the ABAP Workbench (SE80).
      The use of declarative and graphical tools significantly reduces the implementation effort
    1)    Web Dynpro supports a structured design process
    2)      Strict separation between layout and business data
    3)     Reuse and better maintainability by using components
    4)     Automatic operation of the Web Dynpro application using the keyboard
    5)     User interface accessibility is supported
    6)     Full integration in the reliable ABAP development environment
    for more see:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
    <b>Web Dynpro for Java:</b>
    Web Dynpro is a client-independent programming model of the SAP NetWeaver technology platform for developing user interfaces for professional business applications. It is based on the model view controller paradim which ensures that the business logic is separated from the presentation logic. This architecture is visible in the Web Dynpro perspective of the SAP NetWeaver Developer Studio (NWDS).
    Web Dynpro helps you with the development of Web applications by:
    1)       Ensuring platform-independence with the meta model approach
    2)       Minimizing the implementation effort through declarative programming
    3)      Supporting a structured design process by applying the model view controller paradigm
    4)        Providing reuse and better maintainability by using components
    5)       Providing graphical support with tools in the Web Dynpro perspective
    6)       Providing the SAP NetWeaver Java Development Infrastructure (NWDI) which supports team work with different services such as source code versioning and the Central Build Service.
    for more see:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/content.htm
    <i>The concept of Web Dynpro ABAP is identical with Web Dynpro Java and offers more or less the same functions</i>
    hope it helps
    regards

  • Browser for Web Dnypro Java Applications?

    Hi All,
    is there any documentation which is recommending a browser for Web Dynpro Java Applications?
    Is there any other Information about browser compatibility of Web Dnypro Applications available?
    Best, Johannes

    Check the Product Availability Matrix (PAM) at [http://service.sap.com/pam|http://service.sap.com/pam].
    For SAP NetWeaver PI 7.1, these are the requirements (in short):
    IE 6 or 7 on Windows XP SP2
    Firefox 2.0 on Windows XP SP2, Linux or Mac OS X
    I really hope they will add support for Safari/Google Chrome in the future.
    -martin

  • How call key Function in WEB Dynpro Java?

    Hi,
    Somebody know how to call key Function(F1, F2, ... F12) in WEB Dynpro Java to launch and Event?
    Thanks in advance.

    Hi,
    You can WDHotKey property to define the different keyboard shortcuts to enable the user to trigger events with key combinations.
    When the user presses the key board shortcut defined as the hotkey then onAction event is triggered.
    The keys F2, F3, F4, F5, F6, F7, F8 and F9 are not supported, they call predefined functions provided by the Web Dynpro Framework.
    The complete list of supported shortcuts is here:
    http://help.sap.com/saphelp_nwce711/helpdata/en/48/1f1d65deaf733fe10000000a42189b/frameset.htm
    http://help.sap.com/saphelp_nwce711/helpdata/en/62/832cf3cd35004aa4ea8a2378c8a2be/content.htm
    If your question is answered then mark it so.

  • Web Dynpro Java Internationalization and backend ABAP function modules

    Friends,
    I have a requirement where I want my Web Dynpro Java application to support BRAZIL and CHINESE.
    I have been through the sample programs and tutorials and I understand how to support my application in these 2 languages. The challenge I am facing is how to communicate the language to the backend code (ABAP function modules) so that the function modules can written language specific error messages and texts.
    I searched SDN but could not find anything. Your help is appreciated.

    Prashant,
    When you are configuring JCo connection in WebDynpro Content Administrator, just left language settings blank for metadata connection (you may do the same for data connection). Now WD will supply language of currently logged-in user when obtaining connection settings from system landscape and you'll get necessary functionality.
    By default locale of user determined by parameter sap-locale (sap-locale=de_DE for example), settings of user's browser and lastly preferences of user stored in UME.
    Btw, BRAZIL (or Portugees for this matter) is not fully supported language by SAP, so R/3 side may be not  translated or partly translated.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • Set Security Question & Answer using UME API in Web dynpro Java

    Hi Experts,
    I;ve developed a Web Dynpro java application to create a user in UME.
    I am able to set all the user account related attributes but I am not able to set the security question and answer as I do not see any attribute for the same.
    Can anyone please suggest how to set the Security question and answer in UME?
    This is required so that if the user wishes to reset his password / forgets password, we can ask him the security question which he selected at the time of registration.
    Please let me know if it can be achieved at the code level and whether UME API supports security question and answer or any such attribute.
    Also, if no such attribute is present by default in UME at the moment; can we create/configure some custom attributes in UME and store the security question and answer into those attributes. This would serve our purpose.
    Kindly assist.
    Regards,
    Anurag

    Hi,
    Thanks a lot for the reply!!!
    I have one doubt here:
    You've mentioned the below code to fetch the security questions in your reply:
    IUser user = WDClientUser.getCurrentUser().getSAPUser();
    String CUSTOMER_NAMESPACE = "com.sap.security.core.usermanagement";
    String attmotname [] = user.getAttribute(CUSTOMER_NAMESPACE,"MotherName");
    String attlucknum [] = user.getAttribute(CUSTOMER_NAMESPACE,"LuckyNumber");
    String attmobnum [] = user.getAttribute(CUSTOMER_NAMESPACE,"MobileNumber");.
    But this would be only applicable when the user has already logged on to the portal as it uses "WDClientUser.getCurrentUser().getSAPUser();" code.
    On the contrary, I want the security questions and answer to be accessed even when the user is not logged on to Portal so that based on the question & answer, the user can reset his password.
    Please suggest, how can we achieve this and where and how to set the custom attributes for the same?
    Do we have to set the Publicly Viewable Custom Attributes present at location you mentioned in your reply?
    Also, if yes; please let me know how to set the custom attributes?
    Thanks & Regards,
    Anurag

  • Web-page java/javascript problems

    I am having trouble with my java installation. Some work related web pages do not operate as they should, so I started looking into my java version. I first downloaded the latest java updater from Apple "Java 2Platform Standard Edition (J2SE) 5.0 Release 4 (PPC)" from "http://www.apple.com/support/downloads/j2se50release4ppc.html". I installed that and restarted. If I open a terminal window and enter "java -version", I get the following:
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
    Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
    So it looks like I have the latest version that Apple offers and the OS knows about it.
    But when I go to Java.com (http://www.java.com/en/download/help/testvm.xml) and try to test my java using Safari or Camino, I get the following:
    You are using an older version of Java
    Your Java configuration is:
    Vendor: Apple Computer, Inc.
    Version: 1.5.0_06
    Operating System: Mac OS X
    OS Version: 10.4.7
    Also, the animation on the page does not work. I do have java and javascript enabled in Safari and Camino. I also tried changing the order of java versions using the "Java Preferences.app" and it does not fix the problem with either order of "J2SE 5.0" or "J2SE 1.4.2" coming first.
    So, some questions:
    1. Is this the latest java for OSX?
    2. Is there some other configuration step I have missed?
    3. What is the best URL to try for testing web-page-java and javascripts?
    4. What should I try next to get java working correctly in Safari and Camino?
    Thanks
    Paul
      Mac OS X (10.4.7)  

    Paul, I think you have the latest. You can also test your Java and JavaScript here. As far as the "You are using an older version of Java" comment, that has always said that whenever I tested Java on that page you linked no matter what version so I wouldn't put too much stock in that.

Maybe you are looking for

  • I keep getting Kernel Panic when I try to install Panther

    Hello! I bought a used iMac from eBay. It's a 500mhz Indigo model with CDRW. It has Jaguar and OS9 installed on it and I want to install Panther. When I try to do the install the computer reboots and I get the Kernel Panic. I just want to wipe out wh

  • Webpages won't load & seem to be redirected to Yahoo Search keep getting Yahoo 404 message. Works better on IE but some similar problems. I have Windows Vista

    Webpages won't load correctly all the time. Sometimes I am entering the web address in the browser 4 or 5 times before it will go to the correct page. It seems to be redirecting to a Yahoo Search that gives a Yahoo 404 in the tab. (I don't know what

  • No excise duty for exports

    Just so that I don't violate forum rules. I searched this forum for the keywords "Exports Excise Invoice". Did not find a question in the first three pages. So, I am posting mine. Hello, I'm working on a export scenario, I want the excise invoice NOT

  • Financial statement consolidation

    Hi, Is there a sap standard report for financial statement consolidation for the following format (that would show the head office and subsidiaries in the column)?                                    HO             Subsidiary1            Subsidiary2  

  • Please help with assignement

    ok so i have this assignment and im nearly 80 % done. here's what i have to do: Play a number guessing game. This game is to have the computer pick a number between 1 and 30. Take this number, and pass it into a method that allows for the user to gue