Encoding a URL that contains a string Parameter

Hi,
I want to redirect to a servlet and pass it a String parameter. For example:
res.sendRedirect("http://www.someserver.com/servlet/servlet2?msg=hello");
This works fine as the servlet2 will display 'hello'. However, when I try to do this using a language that contains accent characters, the characters are not transmitted properly.
For example:
res.sendRedirect("http://www.someserver.com/servlet/servlet2?msg=�t�");
The second servlet displays the �t� as: ��t��
Is it possible to send a string that contains these characters?
Thanks

Hi
Priya again
The unicode character got translated to the real character.
Please refer to this chart to get the unicode character for e acute accent and substitue in the url .
http://www-user.tu-chemnitz.de/~tki/iso8859-1.html

Similar Messages

  • E4X : How to get elements that contain a string pattern in the node name?

    Is there a way to extract children from an XMLList where the node name of a child contains a string pattern?
    For example :
    <record>
         <XblahX/>
         <cow/>
         <YblahY/>
    </record>
    How to get the elements of record that have a node name that contains the string "blah"?

    var rec:XML = <record>
         <XblahX/>
         <cow/>
         <YblahY/>
    </record>;
    var r:RegExp = /blah/;
    var elems:XMLList = rec.children().(localName().search(r)>-1);
    trace(elems.toXMLString())

  • Search for  a big varchar2 field that contains specific string

    Hi to all,
    I've created a table with VARCHAR2 column and size of 4000 and a CONTEXT index for it. I use this SQL statement to search for a field that contains a specific word:
    SELECT text_body
    FROM my_table
    WHERE CONTAINS(text_body,'my_word')>0;
    this goes so well in SQL plus, so how can I implement this in my form?
    Thanks.

    Dear Craig,
    I installed forms 10g R2 ,besides I corrected a fault in the LOOP syntax.Thanks, The code now is correct with the function CONTAINS. but when I run my form and push the button, my form takes lots of time and return two errors:
    frm-41839 "Disc I/O error on temporary record buffer file%s".
    and frm-40900 "Unable to locate record buffer. Clear form to continue".
    the second error occurs due to memory low space I think.
    Dear Morgan,
    You are totally right with the function INSTR, but I use the function CONTAINS as it has large capabilities in my search. I even use CTXCAT index instead of CONTEXT index ,with function CATSEARCH but the problem still exists. All of the previous ways run better in SQL but not in forms(without cursor). Suppose I'm wrong with this technique. Is there another way to make such a search?!
    This is the new code:
    DECLARE
         CURSOR cc IS
    SELECT *
    FROM my_table
    WHERE CONTAINS(MY_TEXT_FIELD,'first_word AND second_word')>0;
    copy_cc my_table%rowtype;
    BEGIN
         OPEN cc;
         FETCH cc INTO copy_cc;
              LOOP
              :FORM_TEXT_FIELD:=copy_cc.my_text_field;
         EXIT WHEN cc%notfound;
              NEXT_RECORD;
              END LOOP;
              CLOSE cc;
    END;
    Regards.
    Waleed.

  • Windows 7 is truncating url that contains # id tag.

    I am using RH8 generated files.  In java code, I am calling Runtime.getRuntime().exec(command) where command = "rundll32 url.dll,FileProtocolHandler " + url.  The url is a file url (pointing to a local file on my computer) appended with #<id=2187>>newwnd=false.  I have tried using the Desktop command, but java rejects the URI with the # tag.
    The specific help page for id 2187 is not displayed.  The main page toc is displayed, which is the url without the # and Id.
    The url works when typed into the browser address line (Firefox 33 & IE11) , so I do not think the problem is with the browser or RoboHelp generated files.
    This problem is similar to Peter Grainger Snippet 13/8, but the solutions from that snippet that I have tried seem to be geared to a particular browser version.
    Any suggestions would be appreciated.

    Welcome to Apple Support Communities
    To log in iCloud for the first time, you have to do it on an iPhone, iPod touch, iPad or Mac. If you haven't got one of those devices, you can't use iCloud. See > http://www.apple.com/icloud/setup
    You don't need iCloud to download songs, more when you have a iPod nano. You just need to download and install iTunes and put songs on it or purchase them from the iTunes Store. Then, connect the iPod nano and sync it

  • Is there a way to login to Iplanet 5.2 by using a URL that contains the login and password (without using the form) ?

    I would like to be able to login to Iplanet using a URL like this:
    http://server:port/<exec>?user=john&password=doe
    or like http://user:password@server:port/<some_params>
    I knew how to do it with SIMS 4, but with Iplanet 5.2 I just don't have a clue. Do you know how to do that?

    http://server:port/login.msc?user=john&password=doe
    This works for me.
    Regards,
    Niels

  • HTTP Error 404.8 - Not Found The request filtering module is configured to deny a path in the URL that contains a hiddenSegment section.

    hi , 
    when im received file then send to HTTP overas2 , but im getting below error. any one put inputs.
    The adapter failed to transmit message going to send port "sendmsdP" with URL "http://localhost/Fabrikam/BTSHTTPReceive.dll". It will be retransmitted after the retry interval specified for this Send Port. Details:"The remote server
    returned an error: (405) Method Not Allowed.".
    Thanks

    When you deploy SharePoint on the "Default Web Site" it controls all application paths under the "/" (root). So it is the SharePoint handler that is giving you this error.
    Create another physical directory, create another web server instance (use separate port not 80) and deploy your application under that location and you would not face this error.
    Use
    http://social.technet.microsoft.com/Forums/en-US/049fcccd-fcd5-420d-9d11-8fd74a862f70/how-do-i-allow-other-websites-nonsharepoint-to-coexist-with-sharepoint-for-my-intranet?forum=sharepointadminprevious discussion to resolve if you want your application
    to co-exist on the sharepoint site.
    Regards.

  • When I type a URL that contain Capital letters it changes to all small caps and then cannot find the website

    Example
    www.ConferenceMedia.net/113096 changes to
    www.conferencemedia.net/113096

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    See also http://kb.mozillazine.org/Error_loading_websites

  • Page not cached because "URL contains query string"

    I have used JDeveloper to produce a search/display page using ADF where the user enters search criteria and then presses a Search command button. The parameters are POSTed to the webserver, and I need to devise a cache rule to cache pages using the entered search criteria so that another seach for the same values can be served from the cache.
    I have created a rule that will cache GET, GET with Query String and POST.
    I have put .* in the POST body. When I do this, the first query page is retrieved from the origin server and cached and resulting queries with different search criteria are returned the data for that first search (ie. it's not taking into account the search parameters).
    If I switch off that rule and look at what's being received, I see the following:
    /158.234.27.10:8889/BM/faces/physical.jsp POST;;;event=&form1:selectOneChoice1=0&form1:selectOneChoice2=&form1:selectedDate=2004-08-10&form1:table1:rangeStart=0&form1:table2:rangeStart=0&form1:table3:rangeStart=0&form1:table4:rangeStart=0&form1:table5:rangeStart=0&form1:table6:rangeStart=0&oracle.adf.faces.FORM=form1&oracle.adf.faces.STATE_TOKEN=3&source=form1:commandButton1;;
    Now, there are 3 search parameter fields that need to be considered - the others should be ignored:
    form1:selectOneChoice1
    form1:selectOneChoice
    form1:selectedDate
    It's not clear to me where (and how - in what format) I specify parameters to ignore and parameters to consider. I have tried listing these 3 parameters in the URL parameters table for the Rule (I did not specify a value - should I have done?) but when I do this, the page is not cached and shows the reason for this is that "URL Contains Query String".
    Can someone explain how to specify important POST body parameters and unimportant POST body parameters?
    Thanks,
    Andy

    Hi,
    Please go through this:
    http://download-west.oracle.com/docs/cd/B14099_02/caching.1012/b14046/cache.htm#sthref1530
    Hope it helps you. I think you should be able to configure the intended rule in Web Cache.
    Regards,
    Priyanka GES

  • Regex with strings that contain non-latin chars

    I am having difficulty with a regex when testing for words that contain non-latin characters (specifcally Japanese, I haven't tested other scripts).
    My code:
    keyword = StringUtil.trim(keyword);
    //if(keywords.indexOf(keyword) == -1)
    regex = new RegExp("\\b"+keyword+"\\s*;","i");
    if(!regex.test(keywords))
    {Alert.show('"'+keywords+'" does not contain "'+keyword+'"'); keywords += keyword + "; ";}
    Where keyword is
    日本国
    and keywords is
    Chion-in; 知恩院; Lily Pond; Bridge; 納骨堂; Nōkotsu-dō; Asia; Japan; 日本国; Nihon-koku; Kansai region; 関西地方; Kansai-chihō; Kyoto Prefecture; 京都府; Kyōto-fu; Kyoto; Higashiyama-ku; 東山区; Places;
    When the function is run, it will alert that keywords does not contain keyword, even though it does:
    "Chion-in; 知恩院; Lily Pond; Bridge; 納骨堂; Nōkotsu-dō; Asia; Japan; 日本国; Nihon-koku; Kansai region; 関西地方; Kansai-chihō; Kyoto Prefecture; 京都府; Kyōto-fu; Kyoto; Higashiyama-ku; 東山区; Places; " does not contain "日本国"
    Previously I was using indexOf, which doesn't have this problem, but I can't use that since it doesn't match the whole word.
    Is this a problem with my regex, is there a modifier I need to add to enable unicode support or something?
    Thanks
    Dave

    ogre11 wrote:
    > I need to use refind to deal with strings containing
    accented characters like
    > ?itt? l?su, but it doesn't seem to find them. Also when
    using it with cyrillic
    > characters , it won't find individual characters, but if
    I test for [\w] it'll
    > work.
    works fine for me using unicode data:
    <cfprocessingdirective pageencoding="utf-8">
    <cfscript>
    t="Tá mé in ann gloine a ithe;
    Nà chuireann sé isteach nó amach
    orm";
    s="á";
    writeoutput("search:=#t#<br>for:=#s#<br>found
    at:=#reFind(s,t,1,false)#");
    </cfscript>
    what's the encoding for your data?

  • Handling a schema URL that is also a container

    Greetings,
    I have two schema URLs, say "http://schema1" and "http://schema1/schema2". I successfully registered the first in Oracle 10g R2 XMLDB. When I attempt to register the second, I receive the following error:
    ORA-31002 Path name "http://schema1" is not a container
    It would be extremely difficult to change either schema URL. Is this Oracle XMLDB restriction? If so, any suggestions how I might workaround it without changing either URL?

    I would tend to argue that it falls into the category of if it hurts please don't do it... Having a SchemaLocationHint that is also a folder that contains another of the XML Schemas makes little or not sense to me unless I'm missing something. I don't think you could represent this model on most file systems..
    Are you prepared to modify the XML Schemas during registration in order to get past this problem...
    Are you sure you cannot change the schemaLocationHint you are using. This is not the same as changing then nanespace, which would be a real problem. Note that in the following example I changed the schemaURL passed to register schema and the value of the schemaLocation attribute in the import element of the second XML schema. I did not change the namespaces at all..
    SQL> begin
      2   dbms_xmlschema.registerSchema(
      3   'http://sample1.xsd',
      4   '<schema xmlns="http://www.w3.org/2001/XMLSchema"
      5    targetNamespace="http://sample1"
      6    xmlns:samp1="http://sample1"
      7    version="1.0">
      8    <simpleType name="departmentIdType">
      9     <restriction base="integer">
    10      <enumeration value="10"/>
    11      <enumeration value="20"/>
    12      <enumeration value="30"/>
    13      <enumeration value="40"/>
    14     </restriction>
    15    </simpleType>
    16    <element name="company">
    17    <complexType>
    18    <sequence>
    19     <element name="department">
    20      <complexType>
    21       <sequence>
    22        <element name = "id"   type = "samp1:departmentIdType"/>
    23        <element name = "name" type = "string"/>
    24       </sequence>
    25      </complexType>
    26     </element>
    27    </sequence>
    28    </complexType>
    29    </element>
    30  </schema>',
    31   TRUE, TRUE, FALSE, FALSE);
    32  end;
    33  /
    PL/SQL procedure successfully completed.
    SQL> begin
      2   dbms_xmlschema.registerSchema(
      3   'http://sample1/sample2.xsd',
      4   '<schema xmlns="http://www.w3.org/2001/XMLSchema"
      5    targetNamespace="http://sample1/sample2"
      6    xmlns:samp2="http://sample1/sample2"
      7    xmlns:samp1="http://sample1"
      8    version="1.0">
      9    <import namespace="http://sample1" schemaLocation="http://sample1.xsd"/>
    10    <simpleType name="departmentIdType">
    11     <restriction base="integer">
    12      <enumeration value="10"/>
    13      <enumeration value="20"/>
    14      <enumeration value="30"/>
    15      <enumeration value="40"/>
    16     </restriction>
    17    </simpleType>
    18    <element name="company">
    19    <complexType>
    20    <sequence>
    21     <element name="department">
    22      <complexType>
    23       <sequence>
    24        <element name = "id"   type = "samp2:departmentIdType"/>
    25        <element name = "name" type = "string"/>
    26       </sequence>
    27      </complexType>
    28     </element>
    29    </sequence>
    30    </complexType>
    31    </element>
    32  </schema>',
    33   TRUE, TRUE, FALSE, FALSE);
    34  end;
    35  /
    PL/SQL procedure successfully completed.
    SQL>

  • How to search for a pattern string in entire registry and delete all the keys and subkeys that contain the pattern (C# or VB)?

    I want to search for a pattern string in the entire registry and need to delete all the keys and sub-keys that contain the pattern. How can I implement this in VB Script or C#? Appreciate if you can give some sample examples. Now every time, I am manually
    searching for the pattern in registry and deleting one by one.
    Thanks Prasad

    There is no built in way to do this. You'll end up having to enumerate all keys and values in the entire registry and comparing each one for a pattern using Regex or similar.  This is going to be really slow but there isn't much else you can do about
    it (other than parallelize the enumeration).  Also note that you won't have permissions to all keys for read and/or write access so you'll need to skip over those using exception handling.
    Michael Taylor
    http://blogs.msmvps.com/p3net

  • How do Import a csv file that contains strings

    I have a file that contains numbers as US formmated $$$  such as $1,123,123,123  I have a perl script on one of our linux servers that creates the csv file as
    "Total Dollars","$1,123,123,123","some other string","etc"  but when I import the file into numbers
    Unnamed Table
    Average Price'
    $160
    686'
    $222
    482'
    $114
    820'
    $188
    062'
    I cant find a setting anywhere that says to ignore commas inside a string.  This works in most other applications.

    I apologize but you wrote :
    WALTER-MILANO-ITALY wrote:
    You should be now able to import the file using ; as separator or if you prefer you can do again the change  of ; with ,
    It's not a matter of preferences. The OP can't import a file whose values are separated by semi-colons.
    He must replace them by commas.
    With your scheme :
    Original datas
    'Total Dollars','$1,123,123,123','some other string','etc'
    after your step 1
    'Total Dollars';'$1,123,123,123','some other string','etc'
    after your step 2
    'Total Dollars';'$1,123,123,123''some other string''etc'
    and the datas are completly unusable
    A possible scheme would be :
    Original datas
    'Total Dollars','$1,123,123,123','some other string','etc'
    'Totals Dollars','$12,123,123,123’,’blahblah’,’etc'
    after possible step 1 (replace ‘,’ by ",")
    'Total Dollars";"$1,123,123,123";"some other string";"etc'
    'Totals Dollars";"$12,123,123,123";"blahblah";"etc'
    after possible step 2 (replace single ‘ by ")
    "Total Dollars";"$1,123,123,123";"some other string";"etc"
    "Totals Dollars";"$12,123,123,123";"blahblah";"etc"
    after possible step 3 (replace ";" by ",")
    "Total Dollars","$1,123,123,123","some other string","etc"
    "Totals Dollars","$12,123,123,123","blahblah","etc"
    This one may be imported by Numbers on thez OP’s machine.
    I don't know if these changes may be done with Perl but I know that they are easy to do with AppleScript.
    But honestly, if Perl is able to build a TAB separated values file, it would be more efficient.
    Yvan KOENIG (VALLAURIS, France) mercredi 25 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • Parsing a String object that contains the database details in jsp

    Hi All,
    In my project i have a model which is a bean that contains
    a method :-
    UserBean.java
    ....getUserData()
    //the database connection is written here.
    st.executeUpdate("insert ----------");
    In the servlet i am calling the bean,
    ControllerServlet.java
    UserBean ub=new UserBean();
    Object obj=ub.getUserData();
    session.putValue("something",obj); //Here the obj contains all the database datas that is used in insert query
    //By using RequestDispacher i am forwarding this request & the response
    to the jsp page
    ViewJsp.jsp
    String data=(String)session.getValue("something");
    //Here "data" now contains all the database contents that is stored using insert query in the bean
    From here i need to parse the "data" in order to display the contents
    stored in the string "data" in to a html table.
    Plz. do provide a solution for this.It is very Urgent at the moment.
    So that i will be very thankful to u.
    Thanx,
    contactananth

    ok, first of all, in getData, i assume you do a SELECT, not an INSERT,
    so your bean code should look like:
    ResultSet rs = st.executeQuery(...) // or somethig like that
    return rs; // it will contain the data you needand in the jsp you write:
    ResultSet rs = (ResultSet)session.getValue("something");
    instead of
    String data=(String)session.getValue("something");
    i assume you know how to work with a ResultSet

  • Search for a string that contains a '

    I am searching for an email address that contains a ' (o'[email protected]). I think I'd use some sort of ESCAPE character around the tic but I can't seem to get this to work. Appreciate the help.
    select email_addr from customer
    where email_addr = 'o'[email protected]'
    That would be the SQL - should this work?
    select email_addr from customer
    where email_addr = 'o\'[email protected]' ESCAPE ('\'
    This is returning a string not properly terminated error
    Thanks

    A quick search provides this:
    Re: URGENT  update a table with a text that has a single quote in it
    or indeed:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements003.htm#SQLRF00218
    Message was edited by:
    Boneist

  • I never used LabView but need to generate a RS-233 serial output string that contains an IRIG timestamp based on a contact closure. Is LabView an appropriate tool to do this? How much does it cost to get started with the product?

    I never used LabView but need to generate a RS-233 serial output string that contains an IRIG timestamp based on a contact closure. Is LabView an appropriate tool to do this? How much does it cost to get started with the product?

    Labview isn't cheap, but it would certainly allow you to build a program (set of vi's - virtual instruments) that would do what you describe. Where would the timecode information come from? Your vi, or program, would: Start up, initialize the serial port, loop until a trigger happened, read the timecode (from where?), output that timecode out the serial port in a loop until you pressed the stop button. There is a free evaluation of Labview software available from NI - the base product itself runs about $995.
    - Dave

Maybe you are looking for

  • FCP not reading templates correctly from Motion (Urgent)

    Hi all, I am trying to work in FCP (6.06) with templates created in Motion 3.0.2 But FCP seems to be seeing video drop zones as text layers!? If I use a pre-existing template (or one I have created), when I bring it in to FCP I get the correct amount

  • Form objects in email not working

    Hi All, I have designed a JSP which is sending survey form in an email to my clients in which I have put some form objects like radio button, text area, and a submit button. Few of my clients receive email with destorted form, or they are not able to

  • Can't get mouse wheel working

    I'm using a PS/2 wheel mouse, but unfortunately the wheel doesn't seem to get recognized. here is part of my my xorg.conf file. Section "InputDevice" # Identifier and driver Identifier "Mouse1" Driver "mouse" Option "Protocol" "ExplorerPS/2" Option "

  • KE5T no values in Base ledger

    Hi Ajay & Experts, We are implementing ECC 6.0 and Classic PCA All the postings have been updated in table. When i try to execute KE5T to look at the differences, am getting no value in base ledger column and PCA ledger 8A am gettting values. Entire

  • Report painter/writer documentation

    hello, does any one of you have Report painter and writer documentation, i am looking for PPT document to train my client. please email me to [email protected] thank you in advance and points will be given. Bushan