Response.EncodingURL - how to use with a # sign

I'm trying run this
response.encodeURL("http://somesite.jsp?message=some sort of message with a # sign")
then when i get to somesite.jsp, and I display the message in a html page, it will only display this: "some sort of message with a "
how do I make it so that everything from the # sign on, will be displayed.
thanks for the help in advance

The Response.encodeURL adds the sessionid to the URL. To encode special characters in the url use:
java.net.URLEncoder.encode
http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLEncoder.html

Similar Messages

  • How to use a self-signed certificate

    Hello,
    I am having some troubles understanding how to use a self-signed certificate. I have created one using Keychain Access -> Create Certificate but it never asked me for the private key and it never told me where the certificate is stored. How am I supposed to use it?
    Typically I would like to do two things:
    1) use the certificate to for example sign an email or other document so that the recipient can verify that it was really me. I understand the concept that they have to have my public key and use it to somehow decrypt something that I have encrypted with my private key. But where is my private key? As mentioned, the certificate creation process never at any point asked me to provide a private key.  An example using this process to sign an email would be really appreciated.
    2) I want to be able to decrypt a message that someone sends to me after encrypting it with my public key. Again, I need my private key, where is it? I was never asked to choose one!
    Please note that i am familiar with the whole process using openSSL ssh via command line, I just need to understand how to achieve the same thing using the certificate creation procedure provided via Keychain Access.
    In short, now thta I have created my certificate, how do I use it? Examples for dummies would be really appreciated
    Thanks  in advance
    /Andrea

    Can you import the CA cert under “Your Certificates.”, delete the CA cert, switched to “Authorities”, re-imported the CA cert, and restarted Firefox.

  • HOW TO USE "WITH" STATEMENT IN MESSAGES

    MESSAGE e001 WITH WERKS  SY-REPID
    TELL ME HOW TO USE "WITH" IN MESSAGES SEND SYANTAX AND EXAMPLE CODE

    Messages e001(zz) with Var1 var2 var3.
    For this statement to be valie, the variables var1 var2 var3 should be defined alrteady in the program.
    and in se91, you should define a message class (Say ZZ ).
    In that message class you can create a message with number (Say 001) with place holders (&).
    001: & is a sampele message for & hgh  & hjknkn
    The & will get replaced by the variables var1 var2 var3 in the run time.
    YOu can also create success messages if yo say:
    Messages S001(zz) with Var1 var2 var3.
    Information
    Messages I001(zz) with Var1 var2 var3.
    Warning:
    Messages W001(zz) with Var1 var2 var3.
    Abend:
    Messages a001(zz) with Var1 var2 var3.
    REFER sample programs : DEMO_MESSAGES       
    DEMO_MESSAGES_SIMPLE
    Regards,
    Ravi
    Message was edited by:
            Ravi Kanth Talagana

  • I can´t find how to use the "at" sign

    I can´t find how to use the "at" sign on my new Mac book??

    Go to system preferences/keyboard/input sources and make sure that only US is there.
    http://support.apple.com/kb/PH13835

  • How to use touchpad to sign electronic signature on website form?

    how to use touchpad to sign electronic signature on website form?

    website is related to personal information i am completing for new job (background check). You will not be able to access site they provided user name/password. After completing the form the instructions are to hold left button on mouse in my case trackpad and sign the form ..no luck. I added microsoft mouse as another alternative to trackpad still no luck. Apple support is closed today. Any help is appreciated.

  • How to use Java code signing certificate in oracle 11i

    Hello,
    I am try to configure java code signing certificate in 11.5.10.2 application. we got java sign certificate from verisgin. SA's imported the certificate and created alias XXX_XXX with password and passphrase.
    I am able to see the my certificate. keytool -list -v -keystore xxx_xxxx.jks -storepass Password.
    how do I use it. I am using Enhance Jar Signing for EBS DOC ID 1591073.1.
    could you please give me some advice on it?
    Thanks
    Prince

    Hussien,
    I find out apps keystore keypassword and storepassword, I imported the java code sign certificate. I generated Jar files through adadmin, but I am getting  warning error
    adogif() unable to generate Jar Filers under JAVA_TOP.
    executing /usr/jdk/jdk1.6.0_45/bin/java sun.security.tools.JarSigner keysotre **** -sigfile CUST Signer /apps/......
    Error JarSigner subcommand Exited With status 1.
    No standard output from jarsigner JarSigner error output: Exception in thread "main" java.lang.NoClassDefFoundError: sun/security/tools/JarSigner Caused by: java.lang.ClassNotFoundException: sun.security.tools.JarSigner         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)         at java.security.AccessController.doPrivileged(Native Method)         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)         at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: sun.security.tools.JarSigner.  Program will exit. WARNING: The following path(s), defined in /apps2/property/product/tst/appl/cz/11.5.0/java/make/czjar.dep as elements of the output:   oracle/apps/cz/runtime/tag WARNING: Copying cztag.lst from the old fndlist.jar ...   About to Analyze flmkbn.jar : Fri Nov 22 2013 10:45:51
    Please let me know if you have any idea. Thanks Prince

  • How to use the plus sign (+) in URLs

    I have a procedure that takes a name as a in parameter. When the value of the name got a plus sign in it, the browser can't find the page/procedure. It works for every name without the plus sign.
    Ie. the following is an exsample of an URL with plus sign in the value of a parameter:
    http://svvmetaapp01.vegvesen.no:7778/pls/portal/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=2435397421&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=NODE_ID&p_arg_values=5&p_arg_names=_node_id_cond&p_arg_values=%3D&p_arg_names=NT_ID&p_arg_values=32&p_arg_names=_nt_id_cond&p_arg_values=%3D&p_arg_names=NAVN&p_arg_values=C[b]++&p_arg_names=_navn_cond&p_arg_values=%3D
    Any tip?

    Check the supplied PL/SQL package UTL_URL and you might get idea to solve your problem.
    Thanks
    -Krishnamurthy

  • Please help how to use WITH query in UPDATE

    Hi Experts,
    Please help me.
    Thanks.

    Not sure about your required output. But try using WITH clause query inside SET clause of UPDATE statement.
       UPDATE SALES_REVENUE SR
        SET
                 (SR.TODAY_REV,
                 SR.TODAY_MARGIN,
                 SR.TODAY_UNIT
                 ) =
    (WITH result_sum_temp
    AS(
        SELECT SALE_ID, IN_TEAM, 1 SALE_FLAG, loc, seg,
            SUM(REV * rate) AS sum_rev,
            SUM(MARGIN * rate) AS sum_mar,
            SUM(UNIT) AS SUM_UNIT
        FROM SALES
        WHERE (IGNORED IS NULL OR IGNORED <> 'Y')
        AND SALE_SPOT = 7
        AND SALE_ID = 375
        AND SALE_MODEL = 'D'
        AND IN_TEAM IS NOT NULL AND loc IS NOT NULL
        GROUP BY SALE_ID, IN_TEAM, loc, seg
         UNION ALL
        SELECT SALE_ID, OUT_TEAM, 2 SALE_FLAG, loc, seg,
            SUM(REV * rate) AS sum_rev,
            SUM(MARGIN * rate) AS sum_mar,
            SUM(UNIT) AS SUM_UNIT
        FROM SALES
        WHERE (IGNORED IS NULL OR IGNORED <> 'Y')
        AND SALE_SPOT = 2
        AND SALE_ID = 375
        AND SALE_MODEL = 'D'
        AND OUT_TEAM IS NOT NULL AND loc IS NOT NULL
        GROUP BY SALE_ID, OUT_TEAM, loc, seg)
                    (SELECT   t.sum_rev, t.sum_mar, t.sum_unit
                       FROM   result_sum_temp t
                      WHERE       SR.SALE_ID = t.SALE_ID
                              AND SR.team_id = t.team_id
                              AND SR.SALE_FLAG = t.SALE_FLAG
                              AND SR.SEG = t.seg
                              AND SR.loc = t.loc
                              AND t.SALE_ID = 255)
        WHERE   SR.SALE_SPOT = 890
                AND SR.SALE_ID = 255
                AND (SR.SALE_ID, SR.team_id, SR.sale_flag, SR.SEGMENT, SR.LOB) IN
                          (SELECT   SALE_ID,
                                    team_id,
                                    sale_flag,
                                    seg,
                                    loc
                             FROM   result_sum_temp));

  • [FB4] PHP Data Service - how to use with DB2?

    Hi,
    I've tried to follow the tutorial that wires a datagrid to a PHP service. However I need to get data from DB2 rather than MySQL. I have created the service and populated an array using db2_fetch_object - the service works as I can call it with a simple test PHP script. However if I try to use this in the Data Service dialogs, when I get to the point of creating a return type for my getAllItems() call, it returns an error telling me to look in my server logs. My PHP logs say nothing.... Does this work with DB2? As far as I know the data returned by a db2_fetch_object is pretty close to the mysql version.
    Thanks
    NB my PHP code is as follows:
    public function getAllItems() {
            $rows=Array();
            $query_cust = ".....SQL in here.............";
            $conn = connectLocal();
            if ($conn) {
                //error_log("Got connection");
                $stmt = db2_prepare($conn, $query_cust);
                $thisrow=0;
                db2_execute($stmt,array(0));
                while($row = db2_fetch_object($stmt)){
                    $rows[$thisrow]=$row;
                    //error_log($row->CUSTNUM);
                    //error_log($rows[$thisrow]->CUSTNUM);
                    $thisrow++;
                db2_close($conn);
            return $rows;

    OK, if I remove the customer name field all works OK. So I tried reinstating the customer name field but modifying it in the returned array with a custom PHP function that replaces all the non-printing characters with acceptable ones. This function works ok when I create XML to use with Flex 3 datagrids, or with some javascript apps that use JSON arrays. But I still get the error. This is the function I use:
    function stripcharsnotblanks($input){
    $output = str_replace("&","+",$input);
    $output = str_replace('"',"",$output);
    $output = str_replace("²","+",$output);
    $output = str_replace("ü","ue",$output);
    $output = str_replace("ä","ae",$output);
    $output = str_replace("ö","oe",$output);
    $output = str_replace("Ö","Oe",$output);
    $output = str_replace("\'","'",$output);
    $output = str_replace("€","Eur",$output);
    $output = str_replace("/","",$output);
    $output = str_replace("%","pc",$output);
    $output = str_replace(">","]",$output);
    $output = str_replace("<","[",$output);
    $output = str_replace("@"," at ",$output);
    $output = str_replace(";",":",$output);
    return $output;
    Do you know of any other characters that could cause problems with AMF?
    Thanks

  • Does anyone know how to use a self signed certificate with apple mail??

    Ive read about it in mail's help and tried to set it up according to it. Ive created a self-signed certificate but have no idea how to set it up as it would work with Mail so that i would be able to send signed messages. could anyone help me??

    Hello rado:
    Welcome to Apple discussions.
    I am assuming this is what you read:
    http://docs.info.apple.com/article.html?path=Mac/10.5/en/8916.html
    If you follow the instructions when you set up the certificate, you should be fine.
    Incidentally, most +"ordinary users"+ (like me) do not use this function. I am curious as to why you want to jump through hoops in your Mail application.
    Barry

  • How to use the single sign-on cookie

    I have a web dynpro application that's triggered by a button press in the gui. It was set up to use the 'WDY_EXECUTE_IN_PLACE' function module. However, I recently attended a Web Dynpro course and was told that's not the correct way to do it - I should be just calling the url and passing any parameters in the url string. I set about changing this today and I'm now using cl_gui_frontend_services=>execute to execute the url but now I'm being asked to log on to access the application - previously I didn't have to do this.
    I'm told this is something to do with the single sign-on cookie MYSAPSS02. According to our basis team this is already set but it looks like I need to do something extra - like retrieve it and/or send it to the application somehow. I've had a search around the forum but haven't come up with the answer yet. Can someone point me in the right direction please ?
    thanks,
    Malcolm.

    If you use cl_gui_frontend_services=>execute  you won't get single sign on.  Instead use CL_GUI_HTML_VIEWER. This class has the special logic to generate the SSO ticket (method ENABLE_SSO).  You can place the control in a dummy container object (not actually on the screen) and then use the DETACH_URL_IN_BROWSER method to launch the browser separately from the SAPGUI.

  • How to use with a chromebook​?

    How can I use my printer with a chromebook?

    Robert,
    You might start here:
    Cloud Ready Printers
    Using Google Cloud Print with your HP Printer
    Reminder: You must have the Google Chrome Web Browser installed on your computer to use Google Cloud Print with a Classic Printer.
    From Google: Connect your classic printers with Google Cloud Print
    Speculation:  Setup may require (or at least work best) using the Chrome browser.
    Click the Kudos Thumbs-Up to show you appreciate the help and time from our Experts.
    Although I strive to reflect HP's best practices, I do not work for HP. 
    Click Accept as Solution when the Answer is a good Fix or Workaround!
    Kind Regards,
    Dragon-Fur

  • How to use with the "Extension Manager of Dreamweaver"

    Hi,
    I  use dreamweaverCS6.
    How can I use the flash software 'swishmax4' from 'Swishnone. com' on dreamweaverCS4 through 'extension manager'.
    In case of using another flash program by 'sothink.com', the extension manager created menu folder on the menubar of dreamweaverCS6 on my computer.
    And it is very convenient.
    How can I extend my dreamweaver to 'swishmax4 in my computer' and create a menu folder?
    Please Help Me.
    At any rate, HAVE A GOOD TIME, ANYWHERE, ANYTIME, AND WITH ANYONE!

    Hi Tulrui,
    I am afraid you cannot do it. "swishmax4" is NOT a ZXP or MXP file and it cannot be supported by Extension Manager. It has its own installer, and install the contents to Dreamweaver without Extension Manager, so Extension Manager cannot handle that. You can consult "Swishnone.com" to check if they can provide ZXP extension "swishmax4" for Dreamweaver CS6. Thanks.
    Xiaoyi

  • Where to buy responsive website templates for use with Dreamweaver CS6

    I know you can create responsive designs from scratch easy enough once you get going, but I'm in a hurry to get an existing site changed over to a responsive layout and was wanting recommendations for sites to buy ready done templates from that are designed for using in DWCS6
    Thanks

    This free of charge extension comes complete with starter templates.

  • Time machine questions... how to use with an external drive etc.

    Hi,
    I am about to start using Time Machine. I have a few questions:
    1. Can Time machine be used to restore data and applications / application settings?
    2. I have a CalDigit VR eSATA drive which is 1TB RAID 1 which I was going to use as the Time Machine target drive.
    Does Time machine store all of its data files in one main folder with many sub folders?
    If my TM backup data takes up 600GB on the drive can I safely store other data on the 400GB or is it best to partition the drive HFS+ Journaled 600/400 and leave TM to its own dedicated partition?
    3. Does TM keep adding data until it runs out of disk space and only then delete older BUs?
    4. Is TM a good backup software for total recovery or is something like SuperDuper better? I would almost never use TM to recover a file that was deleted... but I am looking for a way to protect against data lost in the case of HD failure.

    If you haven't found this yet, take a look here: http://www.apple.com/findouthow/mac/#tutorial=leopardtimemachine
    That should give you a rough idea of the "look and feel."
    1. Can Time machine be used to restore data and applications / application settings?
    Yes, unless you tell it not to, it saves everything (except some system caches, temp files, etc.). If your HD fails, you can recover your entire system to a new/repaired HD via your Leopard install disc (it has the restore utility) and your TM backups. OS, apps (Apple and 3rd-party), preferences, settings, data, the whole system.
    Does Time machine store all of its data files in one main folder with many sub folders?
    As you may be able to see in the video, the small Finder window is very much like the main one; you can see your data in the same way. TM presents a "picture" that appears to be a full, separate backup of the way your Mac looked at any time. Of course, that's an illusion. It only actually copies files/folders that have been added or changed since the last backup.
    You can't tell which items are "real" and which are the "multi-links" representing a file that didn't change on that particular backup.
    For more info on the internals: http://www.appleinsider.com/articles/07/10/12/roadto_mac_os_x_leopard_timemachine.html
    3. Does TM keep adding data until it runs out of disk space and only then delete older BUs?
    Sort of. After an initial Full backup, it does incrementals (hourly, if you let it). Then it converts the first of the day to a daily backup, which it keeps for a month, and deletes the other hourlies after they're 24 hours old.
    After a month, it converts one per week into a weekly backup and deletes the dailies.
    It keeps the weeklies until it runs out of room, then begins deleting the oldest. But because of the "multi-links," it doesn't delete it's copy of anything that's still on your internal HD. So it manages it's space and deletions automatically and intelligently.
    4. Is TM a good backup software for total recovery or is something like SuperDuper better?
    They both have their advantages and disadvantages. Many of us use a clone plus TM. The clone advantage is, of course, being bootable. TM isn't. TM's advantages are the very fast incremental backups (it doesn't have to examine every file and folder to see what's changed): the ability to restore old items; and the ability to restore your entire system to a previous state, even if that's a prior version of Leopard!

Maybe you are looking for