How to get request.getParameter in Shift_JIS character set.

Hi all
I have done the following step.
I have passed "name" in query string of the http request.
Then in next jsp i have written request.getParameter("name") but it gives me some different value means not encoded by Shift_JIS. It shows correct valu in the query string of address bar.
Pleas help me if any one have any idea.
Thanks in advance

Try :
request.getParameterValues("toBox");

Similar Messages

  • OIM 11g R2 - How to get requester key in validator

    Hi All,
    I am writing a small validator code which throws an exception,if the request is trying to submitted by xelsysadm.May I know how I can get the requester details (like key) in the validator code.
    The validator API takes RequestData as a parameter but there is no way to get the requester details from RequesData object.Thanks in advance.

    I got the solution using the below discussion
    How to get Requester Login information into the request dataset validator
    Thanks.

  • How to get Request object and LDAP user

    Hi All,
    How to get Request object, coz i want to see the out put of this code
    IUser myUser = request.getUser();
    String uid=myUser.getUid();
    I want to get only LDAP user from the server, for that i am having  code but i think this code is returning me all user from the server.
    com.sap.security.api.IUser user = null;
    try {
          IUserFactory userFactory = UMFactory.getUserFactory();
         IUserSearchFilter searchFilter = userFactory.getUserSearchFilter();
    ISearchResult searchResult = userFactory.searchUsers(searchFilter);
       int count = 0;
        List list = new ArrayList();
         while (searchResult.hasNext()) {
                      count++;
                       String uniqueid = (String) searchResult.next();
                        user = userFactory.getUser(uniqueid);
                        list.add(user.getUniqueName());
    This code is giving me all user from the server LDAP and as well as portal user.
    But i want only LDAP.
    Please help me out. It's urgent.
    Regards,
    Deepak

    Hi
    use the following code
    //Request
    IWDRequest = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
    //User
    IWDClientUser = WDClientUser.getCurrentUser();
    Regards
    Ayyapparaj

  • How to get Requester Login information into the request dataset validator

    Friends,
    I need to check whether the requester is part of a group or not before submitting the request. If not I need to throw an error.
    Can you please let me know how to get Requester information.login into the request validator?

    Hi Thiago,
    I am getting the requester id from the requestData in the request data validator. Here is my full code for your reference.
    Bikash - I even tried with RoleManager service but still same error.
    public void validate(RequestData requestData)
    throws InvalidRequestDataException {
    tcUserOperationsIntf UserOppsIntf =Platform.getService(tcUserOperationsIntf.class);
    try
    tcResultSet result=UserOppsIntf.getSelfProfile();
    result.goToRow(0);
    String requesterID = result.getStringValue("Users.User ID");
    String userKey=result.getStringValue("Users.Key");
    System.out.println("Request Login:"+requesterID);
    if (isMemeber(getOIMGroupKey("testGroup"),userKey))
    System.out.println(requesterID+" is a Member");
    else
    System.out.println(requesterID+" is not a Member");
    String reason = "Note[REQUEST_SUBMISSION_ERROR].text:You are not authorized to submit this request.";
    throw new InvalidRequestDataException(reason);
    catch(Exception e) {
    e.printStackTrace();
    private String getOIMGroupKey(String GroupName) throws Exception
    String groupKey="";
    tcGroupOperationsIntf groupInstanceOps = Platform.getService(tcGroupOperationsIntf.class);
    HashMap searchFor = new HashMap();
    searchFor.put("Groups.Group Name", GroupName);
    tcResultSet results = groupInstanceOps.findGroups(searchFor);
    for (int i = 0; i < results.getRowCount(); i++) {
    results.goToRow(i);
    groupKey = Long.toString(results.getLongValue("Groups.Key"));
    System.out.println("GroupKey:"+groupKey);
    return groupKey;
    private boolean isMemeber(String groupKey,String userKey) throws Exception
    boolean member=false;
    try
    tcGroupOperationsIntf groupInstanceOps = Platform.getService(tcGroupOperationsIntf.class);
    long grpLong = Long.parseLong(groupKey.trim());
    tcResultSet grpResultSet = groupInstanceOps.getAllMembers(grpLong);
    for(int i=0;i<grpResultSet.getRowCount();i++)
    grpResultSet.goToRow(i);
    long usrKeygrp = grpResultSet.getLongValue("Users.Key");
    if (usrKeygrp==Long.valueOf(userKey))
    member=true;
    break;
    catch(Exception e) {
    e.printStackTrace();
    member=false;
    return member;
    }

  • How to get  response.getParameter in array type ?

    i have email page in JSP. (page1.jsp)
    contains
    ==========================================
    TO : < having multiple email address so its array of string >
    From : < String >
    Subject : < string >
    Message : <String msg>
    =========================================
    i want array field in another JSP page. (page2.jsp)
    page 1.jsp having :
    HTML data to input ( email Interface )
    page2.jsp having :
    JSP page to retrieve data by request.getParameter( )
    i want to get
    String toMSG[ ] = request.getParameter("toBox");
    this giving me error when i pass it
    SendMailUsingAuthentication sendit =new SendMailUsingAuthentication();
    sendit.sendMail(toMSG,subjectMSG,mainMSG,"[email protected]");
    What is the solution ????

    Try :
    request.getParameterValues("toBox");

  • How to get request throughput, requests waiting data ?

    i'm trying to get the request throughput and requests waiting data real-time data
    through management mbeans... but i couldn't find any mbean that has methods relate
    to requests data... if you know how to get these data, please help...thanks a
    lot in advance.
    -Kieu

    the requests that are processed by the server. What I'm trying to do is to get
    the same data as I saw on the "Performance" tab under "Monitoring" of a server
    in the console.
    On that tab, it has the real-time data displayed as a graphic:
    Request throughput
    Requests waiting
    Memory usage
    Hope you can help...
    -Kieu
    Viresh Garg <[email protected]> wrote:
    What kind of requests are you referring to? What do u mean by requests
    waiting data?
    Viresh Garg
    BEA Systems
    Kieu Tram wrote:
    i'm trying to get the request throughput and requests waiting datareal-time data
    through management mbeans... but i couldn't find any mbean that hasmethods relate
    to requests data... if you know how to get these data, please help...thanksa
    lot in advance.
    -Kieu

  • How to get requested (target) URL from login page jsp.

    Hi,
    How can I get requested (target) URL from within login jsp page where unauthenticated user was redirected.
    IN other words I need to get target URL that user requested before he was redirected to login page.
    In Weblogic there is "j_target_url" session attribute for this purpose.
    Does NetWeaver have analogue?
    Thanks in advance.

    hi Alex,
    NWDS provides Authentication through Pre defined properties,
    We can trap unauthorised user.
    To know more about this,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4ecd6eb1-0301-0010-61bd-a3d6bee102c0
    thank you

  • How to get Request Offering from given Service Offering using Service Manager SDK?

    Recently, I am working on application where I have to fetch all Request Offering from given Service Offering. 
    I can retrieve all Request Offering using following method of SM SDK : 
    var requestOfferings = group.Extensions.Retrieve<RequestOffering>();// group is Management Group
    But I am unable to get request Offering from given Service Offering as I am new to this platform. I have searched in web but can not find solution to this problem.
    It would be great if someone guide for this problem or give me any suggestion related to this problem.
    Thanks in advance.

    RequestOfferings are handled a little differently in the SDK, but fortunately, they're still backed by standard EnterpriseManagementObjects..it just takes a little work to get them.
    There are a few ways you can go about getting a request offering's related service offerings. I'm going to show you the relationship route, but you could also use a type projection to achieve the same goal.
    In your original post, you're simply retrieving _all_ request offerings..that's fine. If you wanted to retrieve a single request offering (as I do in my example) you need to find the request offering's identifier. This identifier is a pipe delimited string
    of various values. The quickest way to find it, in my opinion, is to query the MT_System$RequestOffering table in the database, but you can also find it by looping through all the RequestOfferings returned by group.Extensions.Retrieve<RequestOffering>();
    Anyway, for the following example to work, you only need your request offering's Identifier and your management server name. (Again, you could simply loop through all of your request offerings and retrieve the service offerings for all of them)
    The comments inline with this example should guide you through the steps.
    //Connect to the management group and prepare the class and relationship types that we'll need.
    String strMySCSMServer = "your server";
    EnterpriseManagementGroup emg = new EnterpriseManagementGroup(strMySCSMServer);
    ManagementPackClass mpcRO = emg.EntityTypes.GetClass(new Guid("8FC1CD4A-B39E-2879-2BA8-B7036F9D8EE7")); //System.RequestOffering
    ManagementPackRelationship relSORelatesToRO = emg.EntityTypes.GetRelationshipClass(new Guid("BE417A55-6622-0FC3-FCEA-90CD23E0FC23")); //System.ServiceOfferingRelatesToRequestOffering
    //An example of an extension identifier looks like this:
    //1|My.RO.MP|1.0.0.0|Offeringc921c4feujhoi8cdsjloiz352d7gf3k0|3|RequestOffering
    String strRequestOfferingIdentifier = "your request offering identifier";
    //Retrieve the request offering using an Extension Identifier.
    ExtensionIdentifier ei = null;
    ExtensionIdentifier.TryParse(strRequestOfferingIdentifier, out ei);
    RequestOffering ro = emg.Extensions.Retrieve<RequestOffering>(ei);
    //Using the request offering's Identifier, retrieve the enterprise management object that it represents
    EnterpriseManagementObjectCriteria emocRO = new EnterpriseManagementObjectCriteria("ID = '" + ro.Identifier + "'", mpcRO);
    IObjectReader<EnterpriseManagementObject> orROs = emg.EntityObjects.GetObjectReader<EnterpriseManagementObject>(emocRO, ObjectQueryOptions.Default);
    //Since we queried for only a single Request Offering, the object reader should contain 0 or 1 elements.
    EnterpriseManagementObject emoRO = null;
    if (orROs.Count > 0)
    emoRO = orROs.ElementAt(0);
    else
    Console.WriteLine("No Request Offering found");
    //Now, using the relationship type "System.ServiceOfferingRelatesToRequestOffering", get all Service Offering's related to our request offering
    IList<EnterpriseManagementRelationshipObject<EnterpriseManagementObject>> lstEMROs = emg.EntityObjects.GetRelationshipObjectsWhereTarget<EnterpriseManagementObject>(emoRO.Id, relSORelatesToRO, DerivedClassTraversalDepth.None, TraversalDepth.OneLevel, ObjectQueryOptions.Default);
    //The GetRelationshipObjectsWhereTarget method returns a list of EnterpriseManagementObjectRelationships..These objects represent that relationship between two objects.
    //Thus, these relationship objects have two properties of interest; TargetObject and SourceObject. In this case, service offerings are the source of this relationship type and
    //so, you can access the service offering object itself by using the relationship object's SourceObject property (which is nothing more than an EnterpriseManagementObject)
    foreach (EnterpriseManagementRelationshipObject<EnterpriseManagementObject> emro in lstEMROs)
    //emro.SourceObject is your Service Offering object. You can use it for whatever you need from here on out. In this example, i'm just writing out the DisplayName
    EnterpriseManagementObject emoServiceOffering = emro.SourceObject;
    Console.WriteLine(emoServiceOffering[null, "DisplayName"].Value);
    Give it a try, let me know if you have any questions :)

  • How to get Request message routed to ESB (Mediator)?

    Hi All,
    We are using Oracle Fusion 10.1.3.4 . We are using ESB (Mediator). Is there any way to get request message, that were routed through ESB?
    Thanks in Advance.
    Edited by: vikky123 on Feb 14, 2011 4:54 PM

    Hi
    In your code the NullPointerException is expected as the message context is null and not initialized before you call getMessage method on it.
    You can use soap handlers (client/server side handlers) to add the headers to the message before it is sent to the server.
    Soap handler has methods like below in which you can add the headers.
    * Handles incoming web service requests and outgoing callback requests
    public boolean handleRequest(MessageContext mc)
    System.out.println("Soap message is: \n " +
    ((SOAPMessageContext)mc).getMessage() + "\n");
    return true;
    More docs at http://e-docs.bea.com/wls/docs100/webserv_adv/handlers.html
    Vimala-

  • HOW can I enter text using Japanese character sets?

    The "Text, Plates, Insets" section of the LOOKOUT(6.01) Help files states:
    "Click the » button to the right of the Text field to expand the field for multiple line entries. You can enter text using international character sets such as Chinese, Korean, and Japanese."
    Can someone please explain HOW to do this? Note, I have NO problem inputting Hirigana, Katakana, and Kanji into MS WORD; the keyboard emulates the Japanese layout and characters (Romaji is default) and the IME works fine converting Romaji, and I can also select charcters directly from the IME Pad. I have tried several different fonts with success and am currently using MS UI Gothic.ttf as default. Again, everything is normal and working in a predictable manner within Word.
    I cannot get these texts into Lookout. I can't cut/paste from HTML pages or from text editors, even though both display properly. Within Lookout with JP selected as language/keyboard, when trying to type directly into the text field, the IME CORRECTLY displays Hirigana until <enter> is pressed, at which point all text reverts to question marks (?? ???? ? ?????). If I use the IME Pad, it does pretty much the same. I managed to get the "Yen" symbol to display, though, if that's relevant. As I said, font selected (in text/plate font options) is MS UI Gothic with Japanese as the selected script. Oddly enough, at this point the "sample" window is showing me the exact Hirigana character I want displayed in Lookout, but it won't. I've also tried staying in English and copying unicode characters from the Windows Character Map. Same results (Yen sign works, Hirigana WON'T).
    Help me!
    JW_Tech

    JW_Tech,
    Have you changed the regional setting to Japanese?
    Doug M
    Applications Engineer
    National Instruments
    For those unfamiliar with NBC's The Office, my icon is NOT a picture of me
    Attachments:
    language.JPG ‏50 KB

  • Ive reinstalled firefox and cant figure out how to get to the search enging to set as my homepage help pls

    it all started with my missus daughter setting yahoo as the homepage when i had firefox as my hompage now i cant remember how to get it back to normal

    See this KB article. <br />
    http://support.mozilla.com/en-US/kb/How+to+set+the+home+page

  • How to find Database, APPL_TOP and IANA character set on 11i?

    Hi,
    Could you please tell How to find out Database character set, APPL_TOP character set and IANA character set on existing 11i environment?
    This is required to pass the input during R12 upgrade.
    Regards,
    AV

    Database:
    SQL> select value
    from V$NLS_PARAMETERS
    where parameters='NLS_CHARACTERSET';
    Application:
    $ echo $NLS_LANG
    IANA:
    Check the value of "s_iana_cset" context variable in the context file or check the value of "ICX:Client IANA Encoding" profile option.
    NLS Frequently Asked Questions [ID 399789.1]
    Oracle Applications 11i Internationalization Guide [ID 333785.1]
    How autconfig determines the value for Iana Charsets s_iana_cset value set in XML context file [ID 1380683.1]
    Thanks,
    Hussein

  • How to know the existing NLS_LANG and Character Set

    Dear all
    How can I know about the existing NLS_LANG and Character set setting for Oracle 8 (Unix platform)
    Thank you
    Kwan

    You can see this from the following
    NLS_DATABASE_PARAMETERS (i think it is how database was created)
    NLS_INSTANCE_PARAMETERS (this instance)
    NLS_SESSION_PARAMETERS (this you can set just for your login session).
    HTH
    Srinivasa Medam

  • How to get Request/Session objects in a Webdynpro application

    Hi
    I am working in Enterprise Portal 7.0.
    in one of the iViews which displays a JSP page, i have set a parameter in request and session objects.
    How can i get it in my Webdynpro ABAP Application?
    Thanks & Regards
    Abhimanyu L

    hi Abhimanyu
    I believe originally access to session was deliberately not made available inside WDA.
    Growing security concerns due to misuse of session information and
    perhaps other reasons as well.
    X.509  is considered a better approach.
    This may not help you in your problem.
    But you may see a trend in WDA pushing more robust and client independent
    approaches.
    Full x.509 access should remove the need for session fiddling.
    Also when developers access such session info directly, there is a possiblity
    when they dont understand the technology exactly that they create a security hole.
    You may know how to do safely, it is however discouraged.
    Im not aware of a way to get at the session info inside the WDA framework.
    Well not without a mod to the framework.
    It may be possible without a mod, but I dont know the trick.
    If someone has a little trick... please post.
    You may need to use BSP, if your only solution requires access to the session info.
    regards
    Phil

  • How to get "Request Body" in Direct Entitlement API ?

    According to the API version 2 (http://download.macromedia.com/pub/developer/dps/entitlement/direct-entitlement-api.pdf), it said the Request Body contain the following xml document specifiying the user credentials
    <credentials>
         <emailAddress>[email protected]</emailAddress>
         <password>stupid</password>
    </credentials>
    How can I get this xml in PHP? e.g. $_POST['credentials']  or somthing else?

    And also this xml inside "/entitlements":
    Request Body: The request should contain the following xml document.
    <folios>
         <folio>
              <productId>com.bonnier.flying.10.01.2010</productId>
              <coverDate>2011-10-11T20:49:40Z</coverDate>
         </folio>
         <folio>
              <productId>com.bonnier.flying.11.01.2010</productId>
              <coverDate>2011-11-11T20:49:40Z</coverDate>
         </folio>
    </folios>
    Or how can I get testing requests from Adobe for the API development?

Maybe you are looking for