How to store japanese values in cookies

Hi,
How to store japanese character stored/reterive in cookies..
I am using Windows XP..
Kindly help me if you know..
When i run the progrem the following exception will coming...
javax.servlet.ServletException: P�e���r���c�V�X�e��
     org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
     org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
     org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
     org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
     org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
����
java.lang.IllegalArgumentException: P�e���r���c�V�X�e��
     org.apache.tomcat.util.http.ServerCookie.maybeQuote(ServerCookie.java:276)
     org.apache.tomcat.util.http.ServerCookie.appendCookieValue(ServerCookie.java:209)
     org.apache.coyote.tomcat5.CoyoteResponse.addCookie(CoyoteResponse.java:949)
     org.apache.coyote.tomcat5.CoyoteResponseFacade.addCookie(CoyoteResponseFacade.java:290)
     ims.co.jp.common.login.LoginAction.execute(LoginAction.java:242)
     org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
     org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
     org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
     org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/Cookie.html#setValue(java.lang.String)
Assigns a new value to a cookie after the cookie is created. If you use a binary value, you may want to use BASE64 encoding.
With Version 0 cookies, values should not contain white space, brackets, parentheses, equals signs, commas, double quotes, slashes, question marks, at signs, colons, and semicolons. Empty values may not behave the same way on all browsers.
I didn't know that either... I guess you don't have much of a chance, you need to apply some sort of encoding.

Similar Messages

  • How to store this value in date variable?

    Hi sir,
    i am having one query which is
    select to_char(date '1900-01-01' + 1439/(24*60),'DD/MM/YYYY HH24:MI:ss')from dual;
    when i am running this query i am getting this value: 01/01/1900 23:59:00
    and this value i am inserting in one variable which has date datatype.
    here i am storing like this:
    v_nshiftmax := to_char(date '1900-01-01' + 1439/(24*60),'DD/MM/YYYY HH24:MI:SS');
    while storing getting error: not a valid month
    how to store it in this variable?
    thanks

    964430 wrote:
    why using TO_DATE (), to improve performance avoid function calling if you can do without it, just use v_nshiftmax := date '1900-01-01' + 1439/(24*60); remove TO_CHAR() function only, as you already converted it to date.Please prove to us that TO_DATE(...) is slower that using DATE '...'
    Both are internal functions that take a string and turn it into a date.

  • How to store the value to variable?

    hi
    plz c the below code...
    my prblm is i want to store the value of wa_final-preis into new_xeipa-preis if there is only one ebeln...
    if there are more procss orders then i want to save the first value to new_xeipa-preis wn second record comes then new_xeipa-preis should be replaced by new value and old_xeipa-preis replaced by old value....
    how to do this?
    LOOP AT xeipa INTO wa_xeipa.
      idx = sy-tabix.
      CLEAR: wa_xeina.
        READ TABLE xeina INTO wa_xeina WITH KEY infnr = wa_xeipa-infnr.
        IF sy-subrc is INITIAL.
        wa_final-infnr = wa_xeipa-infnr.
        wa_final-ebeln = wa_xeipa-ebeln.
        wa_final-bedat = wa_xeipa-bedat.
        wa_final-matnr = wa_xeina-matnr.
        wa_final-lifnr = wa_xeina-lifnr.
        wa_final-peinh = wa_xeipa-peinh.
        wa_final-preis = wa_xeipa-preis.        "net price
        wa_final-bprme = wa_xeipa-bprme.
        wa_final-bwaer = wa_xeipa-bwaer.
        IF ( wa_final-infnr is NOT INITIAL ) AND ( wa_final-ebeln is NOT INITIAL ) .
        ABWEICHUNG = ( new_xeipa-preis / old_xeipa-preis ) * 100 .
        ENDIF.
        append wa_final to it_final.
        ENDIF.

    Hi Smitha,
    Check the below given code.
    LOOP AT xeipa INTO wa_xeipa.
      idx = sy-tabix.
      CLEAR: wa_xeina.
        READ TABLE xeina INTO wa_xeina WITH KEY infnr = wa_xeipa-infnr.
        IF sy-subrc is INITIAL.
        wa_final-infnr = wa_xeipa-infnr.
        wa_final-ebeln = wa_xeipa-ebeln.
        wa_final-bedat = wa_xeipa-bedat.
        wa_final-matnr = wa_xeina-matnr.
        wa_final-lifnr = wa_xeina-lifnr.
        wa_final-peinh = wa_xeipa-peinh.
        wa_final-preis = wa_xeipa-preis.        "net price
        wa_final-bprme = wa_xeipa-bprme.
        wa_final-bwaer = wa_xeipa-bwaer.
    " First time this value is not populated. When the second value comes in,
    " New value gets populated in OLD variable and New value is replaced with the latest.
        *IF idx NE 1.*
          *old_xeipa-preis = new_xeipa-preis.*
        *ENDIF.*
        *new_xeipa-preis = wa_xeipa-preis.*
      IF ( wa_final-infnr is NOT INITIAL ) AND ( wa_final-ebeln is NOT INITIAL ) .
        ABWEICHUNG = ( new_xeipa-preis / old_xeipa-preis ) * 100 .
        ENDIF.
        append wa_final to it_final.
        ENDIF.
    ENDLOOP.
    I hope this is what you were looking for.
    Thanks & Regards,
    Ram.
    Edited by: ram Kumar on Jun 12, 2009 5:16 PM

  • How to store the value in table

    Hi All,
    I ve a requirement where im adding a check box on a seeded supplier_create page via personalization. The seeded page contains only a root AM and a root controller.The table which stores the supplier details does not have a dff.so i have to store a yes or no value and a foreign key ref into a custom table to map both the tables. the rootAM is actually calling the underlying seededVO to create a row in the database.Now how can I insert the yes/no and the foreign key values into my custom table??
    Thanks.

    Isn't there any other column in the table which you can use?
    Anyway you can call a PLSQL API (to create a row in the Custom Table and store the value and also to make a foreign key join therein). This PLSQL can be called from the Controller (extend the standard Controller).
    Now when you come to the Page, either you substitute the standard VO, or easier still (since I assume checkbox is on the Page and not in the table), you can call a PLSQL function and get the value of the checkbox. May be you can also create a dymanic VO and get the value from the Custom table for the current standard table row.
    Please do a compete thinking on the idea above and do let me know where you forsee issues. The above solution focusses more on PLSQL API invocations and thus decreases the need for Substitutions.
    Thanks
    Sumit

  • How to store japanese characters in mysql 5.0

    I want to store japanese characters in mysql 5.0 database through java program and then to retrive the same characters through the program only.Java program means a form containing first name ,last name and address. I am entering corresponding translations in japanese to this fields while inserting to database. In another form i am retrieving those japanese characters.those should display
    in this form.

    How to handle the unicode sir for japanese characters..Pls give me more hints and any reference links to get the answer.

  • How to store the value of sum of group in Crystal Report at the runtime!

    Hello all,
    I creates a Formula Field that hold the value of Sum of Group in Crystal Report. I would like to know how to store it in a variable and pass it to store procedure. Is it an option in Crystal report to do it. I knew that Crystal Report can cache the report for sharing. My detailed issue as following:
    - Created a Formula Field named TOTAL AMOUNT that calculated the complex expression. This TOTAL AMOUNT is dynamic based on group and variables.
    - I would like to store that value from TOTAL AMOUNT and pass it to the stored procedure parameter IN.
    Any helps are much appreciated. Thanks.

    I doubt that this is possible since it would only calculate this value once the report has data.  This sounds more like a report design question that should be asked over [here|SAP Crystal Reports;

  • How to store global values for the whole application to use ?

    Hi,
    In our application, we have global values that is store in a parameter table, I want only to query it once, and it will be used every where from the whole application.
    e.g :
    I have general parameter tables that store :
    % Tax
    Current Period
    etc..
    Then these values will be used in our business rules in the whole application.
    How can I do that in ADF BC ?
    Thank you,
    xtanto

    I would go ahead and create a transient VO with an attribute called "userLanguage" and store the value at the initialization step.
    We generally call this type of VO as PVO which is a transient VO and contains only 1 record at any point of time. Keep this VO inside the RootAM and you can write a static util method as below..
    public static String getUserLanguageFromPVO()
    PVOImpl pvo = (PVOImpl)am.findViewObject("MyPVO");
    if(pvo != null)
    Row row = pvo.first(); //Always returns the one record
    return (row == null ? null :
    (String)row.getAttribute("UserLanguage"));
    return null;
    }

  • How to store Multiple values with restriction in Oracle 9i

    Hi,
    I am using oracle 9i R2 and i would like to know that how can i store multiple values and restrict some of values into oracle table?
    ex.
    I need to create table or inserting into existing table like below:
    ID will be Primary/Unique key and each ID has multiple dept but each ID to have only 1 “X” dept, only 1 “Y” dept and only 1 “Z” dept… but, can have multiple “W” dept
    What will be the best option to create/store data like this?
    Like Table level Constraint (Unique or Check), Triggers or pl/sql?
    ID     DEPT
    1     X
    1     Y
    1     Z
    1     W
    2     X
    2     Y
    2     Z
    2     W
    2     W
    2     W

    Hi,
    Other solution:
    Function:
    CREATE OR REPLACE FUNCTION my_unique_function(p_dep IN VARCHAR2) RETURN VARCHAR2
       DETERMINISTIC AS
    BEGIN
       IF (p_dep = 'X' OR p_dep = 'Y' OR p_dep = 'Z') THEN
          RETURN p_dep;
       ELSE
          RETURN NULL;
       END IF;
    END;
    /Test:
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL> create table emp(id number, dept varchar2(30));
    Table created
    SQL>
    Function created
    SQL> CREATE unique index ix_emp on emp(my_unique_function(dept));
    Index created
    SQL> insert into emp(id,dept) values (1, 'X');
    1 row inserted
    SQL> insert into emp(id,dept) values (2, 'X');
    insert into emp(id,dept) values (2, 'X')
    ORA-00001: unique constraint (HR.IX_EMP) violated
    SQL> insert into emp(id,dept) values (3, 'Y');
    1 row inserted
    SQL> insert into emp(id,dept) values (4, 'Y');
    insert into emp(id,dept) values (4, 'Y')
    ORA-00001: unique constraint (HR.IX_EMP) violated
    SQL> insert into emp(id,dept) values (5, 'Z');
    1 row inserted
    SQL> insert into emp(id,dept) values (6, 'Z');
    insert into emp(id,dept) values (6, 'Z')
    ORA-00001: unique constraint (HR.IX_EMP) violated
    SQL> insert into emp(id,dept) values (7, 'W');
    1 row inserted
    SQL> insert into emp(id,dept) values (8, 'W');
    1 row inserted
    SQL> Regards,

  • How to store three values in a suitable data structure?

    Hi Friends!
    Usually, if we want to store a single value we choose vector/set data structure.
    And for two values we prefer map<int, vector<int>> or multimap<int, vector<int>>.
    If I want to store three values like;
    1=>3=>2  4  5
    1=>5=>7
    2=>3=>10  12
    Then, which data structure is suitable for it?
    And how to insert entry into it?
    Could anyone help me?

    You could try   
         typedef vector<int> INTVEC;
         typedef map<int, INTVEC> INTMAP;
         typedef multimap<int, INTMAP> INTMULT;
    You should convince yourself that the above is equivalent to (but hopefully easier to understand)
         typedef multimap<int, map<int, vector<int>>> INTMULT;
    When you try to store values in an object of this type, remember to build it from the inside out:
         Build an INTVEC with the values you want (such as 2 4 5 per your first example).
         Assign that INVEC to an INTMAP with a suitable key (3 in your example).
         Insert that INTMAP into an INTMULT with its appropriate key (1 per your example).
         Repeat these three steps using 7, 5, 1, respectively.
         Repeat again using 10 12, 3, 2, respectively.
    Alternately, you could define a structure like
         struct INTSTRUCT{
              int key;
              vector<int> vec;};
    and then define your multimap as <int, INSTSTRUC>.   This allows you to assign values to both members of a structure object directly and then insert the structure into the multimap with the appropriate key.
    On the other hand, if you change your concept by removing the second => and always put the "second" int as the first element of the vector, as in
         1 => 3 2 4 5
         1 => 5 7
         2 => 3 10 12
    you could simplify things to a multimap<int, vector<int>> you are already familiar with.
    A slightly different concept change to
         1 => 3 => 2 4 5
                  5 => 7
         2 => 3 => 10
    would allow you to use map<int, map<int, vector<int>>> where element [1] of this object contains a map with two elements and element [2] contains a map with a single element.
    Or you could tell us how you intend to use the data and maybe somebody can suggest a more practical approach.
    Yes, I could understand the way you explained as
     typedef multimap<int, map<int, vector<int>>> INTMULT;
    and I used typedef
    multimap<int, map<int, set<int>>> INTMULT;
    but, when I used it, I get,
    1=>3=>2
    1=>3=>4
    1=>3=>5
    1=>5=>7
    2=>3=>10
    2=>3=>12

  • How to store multiple values associated to one key

    hello all
    In my program I need to store "multiple values associated to one key".
    for example : key would be ="T"
                             Values are    = 2,4,5,1,2Plz tell me which data structure I can use for this purpose.
    I have tried Hashtable for it, unfortunately it does not support duplicate keys in one Hashtable.
    Thanx.
    Rakesh

    The easiest thing to do, is store another data structure as your value for a
    particular key. So "T" being your your key, you would associate the value
    to be an int[] (if you know the number of sub values) or create a new Vector
    for each key, then you don't have to worry about the number of values at
    compile time. All the while still using the Hashtable for constant time
    look up. So like this:
    public void storeMultValues(int[] arr)
      Vector v = new Vector();
      v.add(new Integer(1));
      v.add(new Integer(2));
      v.add(new Integer(3));
      this.hashtable.put("T", v);
    }See if you can work with that.
    -Cludge

  • How to store multifiled values using extjs?

    Hi Team,
       I've a requirement where I need to add one more multifield to the startworkflow Dialog. I've written piece of code in js to add the multifield in in dialog.
    "faqsList" : {
    "jcr:primaryType":"cq:Widget",
    "fieldLabel":"Multifield Demo",
    "name":"faqsList",
    "xtype":"multifield",                     
    layout:"anchor",                     
    "fieldConfig":{
    "xtype":"textfield"
         and I could see the multifiled in the dialog and able to get textfield when I click on Add Item button in the multifiled.
        Example: I've added three textfield values
                      Robert
                      Dennis
                      King
         But the problem i'm facing is, all the multifiled values are not stored. It is storing only 'Robert' as string instead of Storing all the multifield values.
       So, what is the wrong in my js code. So that I can store multifield values in String Array.
    Thanks
    Siva

    Hi Team,     Finally I got it by adding multifield values to the Hidden filed before submitting the dialog.  Eg:     dialog.on("beforesubmit", function(){    var tt=this.findByType("multifield")[0].getValue();    dialog.addHidden({"store":tt});    admin.mask();});

  • How to store the value of request message and use it in Response mapping

    Hi All,
    We have an requirement where we need to store the data coming in Request Mapping and use the stored value in Response Mapping. Can anybody help us in how to proceed?
    Thanks
    Sujata

    Hi!
    In Mapping you may use the RFC Lookup function to store values in database table during request mapping and to read values from database table during response mapping.
    You can also use an ABAP or Java Mapping "in front of your" message mapping to store/read the values.
    You can also use an Adapter Module (if applicable for the adapter type you use) and/or a UDF to store the data e.g. in Dynmaic Configuration Header of Request Message and to read these data from Dynamic Configuration Header of Response Message. But this works only for synchronous scenarios (and it means overhead in your message traffic).
    Hope these thinkings help you o find the most suitable way for your concrete scenario!
    Regards,
    Volker
    Note:
    These techniques help you to avoid using BPM.
    Edited by: Volker Kolberg on Aug 27, 2009 11:18 AM

  • Commit not allowed in Trigger  then how to store the values in table

    Hi,
    Database trigger not allowed to COMMIT in it (directly) or in procedure which is calling from the Trigger. it gives error.
    so my question is:-
    1)How Database internally store the INSERT AND UPDATE value in table which is written in procedure without COMMIT?
    2) Is it necessary to write COMMIT in procedure using PRAGAMA AUTONOMOUS TRANSACTION to store inserted or updated value in table?
    Thanks in advance.

    Hi,
    A trigger is designed to be a part of a transaction, not it's end.
    It is like following these steps (not really accurate, but should give an idea):
    1. programA issues INSERT statement on tableA
    2. 'control' goes over to the database
    3. constraint checks happen
    4. the associated triggers on tableA do their work (e.g. fetching a sequence value for a primary key)
    5. 'control' goes back to programA
    6. programA decides if a commit (no error occurred) or a rollback (error case) has to be issued.
    Did this help? Probably not, I'm not happy with what I wrote, but anyway... :)

  • How to store multiple values in a coloum for a particaular row?

    By mistake i posted this in abap general forum but i think this question should belong to Data Dictionary section
    I want to design a table where we can store a table where we can save multiple values of  column for a particular row. how to achieve this ? thanks in advance.
    Example
    id      name  val1    val2
    001  abc        1          a
                           2          b
                           3          d
                           4          e

    you can use deep structures to achieve this.
    or may be a simpilar approach based on the example that you have mentioned will be to create a table with all the primary keys that you want with an additional key field which will behave as a counter. some standard table do you this technique eg: PLMK where zaehl is a counter field which part of the kley fields.
    cheers, Prabhakaran

  • How to store resultset value to  Some other variable

    ResultSet rset1=stmt1.executeQuery("SELECT count(*) FROM
    user_details_table" );
    while(rset1.next())
    System.out.println("No.of Connected Users In UserDetails Table: " + rset1.getInt(1));
    int x=rset1.getInt(1);
    to store tht resultset value into integer variable.Bt tht statement is giving error. Pls help me.
    Thanks....

    try
    ResultSet rset1=stmt1.executeQuery("SELECT count(*) FROM
    user_details_table" );
    while(rset1.next())
    int x=rset1.getInt(1);
    System.out.println("No.of Connected Users In UserDetails Table: " + x);
    }

Maybe you are looking for

  • Performance tuning related issues

    hi experts   i am new to performance tuning application. can any one share some stuff(bw3.5& bi7)related to the concern area.send any relavent docs to my id: [email protected] .   thanks in advance regards gavaskar [email protected]

  • Office 365 OWA, mail via Safari is marked as spam

    Hi, HTML email send via the web based Outlook Web App (Office 365) in Safari (7.0.6) is marked as spam and so for bounced by external mailservers. Plain text email via Safari or email send via Firefox or Chrome (HTML or plain text) isn't marked as sp

  • Saving videos with QuickTime

    How can I save a video clip?

  • When starting J2EE server .....

    I have installed j2sdk 1.4 & j2sdkee1.3 on Windows XP. I have set Environment variables. When I start j2ee server COMMAN PROMPT SAYS C:\>j2ee Warning: This J2EE SDK release has only been tested on J2SE v1.3 J2EE server listen port: 1050 Redirecting t

  • Version Management-Output Type

    Hi Gurus, Is there anyway Version Management in PO, related with output type of PO. I mean is there config to be done in message determination for Version PO?. Thanks in Advance.