A peculiar problem with encode url

Hi,
I have the following code snippet in jsp
<a href="<%=urlencoder.encode("cxc.jsp?P1=RWDS") %">> Rewards</a>
But when this page is requested, the oracle application server responds with response 404 stating requested url not found.we aer using oracle application server 10g release 2.
But without encoding the response is correctly displayed.
has it got to do anything with encoding? or will it be required to change the code.
But the same encoded url works perfectly fine on iplanet application server.
Thanks in advance

I was able to solve this by including the google code in an external PHP file as well. However if my template has a repeating region in it, and my contribute user adds a region from it, it breaks the code again :/
Are there any other suggestions out there??

Similar Messages

  • Problem with image url

    Hello,
    today I have a problem with image url. I wanted Image to change when mouse dragged over it. But nothing happened. Any ideas?
    def maxIco: ImageView = ImageView{
    image: Image{
    url: "{__DIR__}ikony/max.png"
    onMouseDragged: function(event: MouseEvent){
    maxIco.image = Image{
    url: "{__DIR__}ikony/max2.png"
    }

    This is working for me:
    src/main/Main.fx
    src/main/icon/image1.bmp
    src/main/icon/image2.bmp
    //Main.fx
    package main;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.input.MouseEvent;
    var changed = false;
    def imgView: ImageView = ImageView {
        image: Image {
            url: "{__DIR__}icon/image1.bmp"
        onMouseDragged: function (e: MouseEvent): Void {
            if (not changed) {
                imgView.image = Image {
                    url: "{__DIR__}icon/image2.bmp"
                changed = true;
                println(imgView.image.url);
        onMouseReleased: function (e: MouseEvent): Void {
            imgView.image = Image {
                url: "{__DIR__}icon/image1.bmp"
            changed = false;
            println(imgView.image.url);
    Stage {
        title: "ImageTest"
        scene: Scene {
            width: 700
            height: 600
            content: [
                imgView
    }I've changed few things to switch image only one time on mouseDragged event.
    It print the image URL.

  • Problem with entering URL

    Ever since the last update or two I seem to have an irritating problem with entering URLs. If I'm navigating a site and modify the URL manually in the address field and hit enter, the URL reverts back automatically to the previous one instead of accepting the new modified entry.
    For example if I'm on www.site.com/path/path and go to the URL bar and remove the last '/path' and hit enter, the browser seems to 'remember' and take me to the previous URL path, i.e. www.site.com/path/path. It doesn't matter whether the deleted text forms part of the URL path or whether its parameters after the path, or even if I modify the URL to something like www.site.com/path/anotherpath.
    Once it starts 'remembering' there seems to be no way of getting around this except to close the browser down and start again. I've noticed this behavior on FF20.0.1 and also on FF21. It happens on all 3 of the PCs I use (2 at home, one at work). I'n not sure if its being caused directly by FF or the NoScript plugin (the latter seems unlikely).
    Is there a setting somewhere to modify this behavior, or is it a bug?

    i couldn't find any documentation for it either, however after testing it, it appears that when browser.urlbar.autoFill.typed is set to '''true''' it means that only addresses you've once typed into the url-bar manually get autofilled, when browser.urlbar.autoFill.typed is set to '''false''' then all addresses that are stored in your history no matter if you have typed them in once manually or visited them through a link on a website.
    browser.urlbar.autoFill will generally switch the autocomplete feature in the address bar on or off.

  • Problem with opendoc url.

    hi experts,
    i am having a problem with opendoc url in my dashboard.my url is to open a webi report depends on two prompts given by the user.
    i am using the following url and it is working fine.
    http://sysname:port/OpenDocument/opendoc/openDocument.jsp?sType=wid&sRefresh=Y&iDocID=123456&mode=full&nbPrompts=2&lsSEnter Year=Prompt1&lsSEnter Dealer=prompt2.
    when i am entering a value for prompt2 like "krishna distributors" its working fine.but the problem here is whenever i am entering a value for the second prompt with a value like (ex:) "ravi & ravi distributors" its giving an message "NO DATA TO RETRIEVE"  because it is considering the & symbol in my prompt2 as another parameter as shown below.
    http://sysname:port/OpenDocument/opendoc/openDocument.jsp?sType=wid&sRefresh=Y&iDocID=123456&mode=full&nbPrompts=2&lsSEnter Year=Prompt1&lsSEnter Dealer=ravi & ravi distributor
    can anyone help me on this.
    thanks in advance,
    ravi kishore yarramsetti.

    Hi Ravi,
    In Excel , & considers as "Concatenation. So it will not work properly. To make this work, use Dealer Number instead of Dealer name in ur example.
    Eg:
    Dealer Name                           Dealer Number
    ravi & ravi distributors            D10001
    krishna distributors                 D10002
    If you use Dealer Number "D10001" you can get "ravi & ravi distributors " Information. In ur Dashboard Design, if the user clicks "ravi & ravi distributors" then pass "D10001" to the Opendoc and generate the report.
    Try to not use which has special characters as the prompt in Xcelsius.
    Thanks,
    Muthukumar A.S.

  • Problem with an Url

    Hello, I have a problem with the Url in the HTTP Service
    <mx:HTTPService id="userRequest" url="http://ispedd.redios.it/iSchoolPDFManagerPortlet/imagepdf.do?idPdf=1&i dPage=0" useProxy="false" method="GET"/>
    The service should open a PNG image and the error bring back is:  The reference to entity "idPage" must end with the ';' delimiter. 
    Can you help me? Thank you.

    Hi,
    The url is OK, the problem is that properties for MXML cannot have included some characters. So you need to escape entities in your url and it will be ok, for example:
    url="http://ispedd.redios.it/iSchoolPDFManagerPortlet/imagepdf.do?idPdf=1&idPage=0"
    But it would be better if you do not hardcode params in URL. If you need you could hardcode them in Mxml itself like below:
    <mx:HTTPService
         url="http://ispedd.redios.it/iSchoolPDFManagerPortlet/imagepdf.do"
         method="GET"
         id="userRequest">
         <mx:request>
              <idPdf>1</idPdf>
              <idPage>0</idPage>
         </mx:request>
    </mx:HTTPService>
    or (which is more flexible) use parameters as argument when invoking service:
    userRequest.send({idPdf:1, idPage:0});
    You could read more on that in section about data integration in Flex in online or offline documentation:
    http://livedocs.adobe.com/flex/3/html/help.html?content=Part4_data_access_1.html
    hth,
    regards,
    Peter

  • A wierd problem while encoding URLs

    Hi all,
    I'm facing a wierd problem with the java.net.URLEncoder class. The encode function in this class is used for encoding URL based on standards like "UTF-8" etc..
    I need to encode the URLs, because i have to send this information in a XML to another server.. Here's what the URLEncoder is doing if i give it the URL
    http://mydomain.com:80/myServlet?_fileName=filename.mp3&_useStreaming=true
    its encoding this as
    http%3A%2F%2Fmydomain.com%3A80%2FmyServlet%3F_fileName%3Dfilename.mp3%26_useStreaming%3Dtrue
    but, all I wanted is to encode only '&' character ( as XML misinterprets this character with schemes ).
    So, my question is .. is there any way that i can selectively encode the characters in the URL?
    Any help wud be appriciated in this regard. :-)

    I accept what you are saying.. URLEncoder encodes any string that's passed to it..
    I infact have two different problems in hand.. The reason i mentioned only one above is because the solution to the first problem cud as well solve the second.. Anyway, here's the second problem ...
    I'm recieving an XML from a server, where i get the URL info and i have to download the CONTENT from that URL.. Sample xml is given below
    <Music>
    <Singer>Tata Young</Singer>
    <contentURL>http://myMusic.com/sexy naughty.mp3</contentURL>
    </Music>
    if you see the URL in the xml, that infact contains spaces in it.. I have my logic which checks if the given URL is a absolute URL or relative URL
    if( relative URL)
    I append "http://domain name:" stuff to make it absolute
    else
    i connect to the URL directly to get the Content
    I'm using
    URI i = new URI(str);
    i.isAbsolute() method to determine whether its a absolute URL or not..
    but this method doesn't seem to work for URLs that have spaces in them.. So, i encoded the URL and tried passing it to the method.. but it still doesn't work..
    I probed into URI class itself and found out to my amazement that URI class assumes that URL contains only alpha numeric characters and few special characters like '+' , '/' , ':' etc..
    Since the encoded URL has '%' character in it.. its not able to say that its a absolute URL.. Tht's the reason I asked for selective encoding.. ( say, which encodes only [space] character)..

  • Problem with encoding of xml document

    while parsing an xml document with SAX parser, i found that encoding of the xml document received as input stream is "ISO-8859-1" . After parsing certain fields has to be stored in the mysql table where table character set is "utf8" . Now what i found that ceratin characters in the original XML document are stored as question mark (?) in the database.
    1. I am using mysql 4.1.7 with system variable character_set_database as "utf8". So all my tables have charset as "utf8".
    2. I am parsing some xml file as inputsream using SAX parser api (org.apache.xerces.parsers.SAXParser ) with encoding "iso-8859-1". After parsing certain fields have to be stored in mysql database.
    3. Some XML files contain a "iso-8859-1" character with character code 146 which appears like apostrophes but actually it is : - � and the problem is that words like can�t are shown as can?t by database.
    4. I notiicied that parsing is going on well and character code is 146 while parsing. But when i reterive it from the database using jdbc it shows character code as 63.
    5. I am using jdbc to prepared statement to insert parsed xml in the database. It seems that while inserting some problem occurs what is this i don't know.
    6. I tried to convert iso-8859-1 to utf-8 before storing into database, by using
    utfString = new String(isoString.getBytes("ISO-8859-1"),"UTF-8");
    But still when i retreive it from the databse it shows caharcter code as 63.
    7. I also tried to retrieve it using , description = new String(rs.getBytes(1),"UTF-8");
    But it also shows that description contains character with code 63 instead of 146 and it is also showing can�t as can?t
    help me out where is the problem in parsing or while storing and retreiving from database. Sorry for any spelling mistakes if any.

    duggal.ashish wrote:
    3. Some XML files contain a "iso-8859-1" character with character code 146 which appears like apostrophes but actually it is : - &#146; and the problem is that words like can&#146;t are shown as can?t by database.http://en.wikipedia.org/wiki/ISO8859-1
    Scroll down in that page and you'll see that the character code 146 -- which would be 92 in hexadecimal -- is in the "unused" area of ISO8859-1. I don't know where you got the idea that it represents some kind of apostrophe-like character but it doesn't.
    Edit: Actually, I do know where you got that idea. You got it from Windows-1252:
    http://en.wikipedia.org/wiki/Windows-1252
    Not the same charset at all.

  • [CS3 - JS - Mac] Problem with encoding

    Hi,
    I made a script that perform a lot of actions on ID.
    Everytime this script performs an action it writes a line on a global variable and at the end of the script write this var into a text file ( in the Document folder).
    Yes, it's a log file...
    While I was testing this script through the Toolkit everything went right.
    Then I added a menu action inside the script to call the script from the application and something strange happened, in the log file (wich is a text file UTF8 encoding) and also in the alerts ID shows. Both display text from this:
    "È necessario effettuare una selezione" (running the script from the toolkit)
    to this:
    "È necessario effettuare una selezione" (running the script from ID menu)
    So I think it's an encoding problem...
    I just added this code:
    #targetengine "Lele";
    var Lele_menu = app.menus.item("Main").submenus.add("Lele");
    //     Menu
    var main_action = app.scriptMenuActions.add("Update");
    var main_event_listener = main_action.eventListeners.add("onInvoke", function(){main();});
    var main_menu = Lele_menu.menuItems.add(main_action);
    //     Functions
    What's the point?
    Hope you understood.
    Thanks!
    Lele

    I had problems with UTF encoding so I use this function to write the log file:
    var log_file = new File(file_path);
    log_file.encoding = "UTF8";
    log_file.lineFeed = "unix";
    log_file.open("w");
    log_file.write("\uFEFF" + text_var);
    log_file.close();
    Where text_var is the log string.
    When it's written form the ESTK everything is right, when called from the menu it isn't.
    It's strange that it also involves alert text innit?

  • Problem with c:url

    I am having problems with the c:url tag.
    When I load a page with a c:url tag (see end of message for page specification), when I click on the link that references the c:url, the system tries to load the page named $url instead of loading page /somepage.jsp. It looks like the resulting code does not replace the ${url} variable with the value of the variable. If I add the following statement:
    <c:out value="${url}"/>
    after the definition of the c:url tag, I can see that variable url is set to /somepage.jsp.
    Is there some configuration I must do to fix this problem or should I use some more recent libraries? I am using jstl.jar and standard.jar that came with JWSDP 1.3. I am using Tomcat 5.0.19.
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <html><body>
    <c:url var="url" value="/somepage.jsp"/>
    <p>Go to some page.</p>
    </body></html>

    Replace the "<web-app>" tag for this in the your web.xml file,
      <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">

  • Problem with adding url

    Okay to start with I'm not a flash programmer but this guy
    left me in a lurch and I had to add the url's to the links myself,
    the problem is that it messes up the rollover action.
    Here is the original:
    http://www.cecvp.com/header5.swf
    Here is the version with the urls put on the links:
    http://www.cecvp.com/header5_mod.swf
    There are other things I changed but ignore that, just focus
    on the behavious of the navigation links (home, about us, etc). In
    the second version the rollover stopped working.
    The process i used to add the url was to double click until i
    got to symbol 18 at which point i would double click on each link
    the select it then enter the url where the link symbol is in the
    properties window. It should also be noted that i got this error
    when publishing:
    **Error** Symbol=Symbol 18, layer=Layer 1, frame=1:Line 1:
    Wrong number of parameters; getURL requires between 1 and 3.
    getURL();
    Total ActionScript Errors: 1 Reported Errors: 1

    I fixed the geturl error so ignore that.
    This forum is pretty slow....

  • Problem with encodeing

    hi all,
    i have a problem with JNDI pooling
    everything apear to be ok
    but when i insert a UTF String into database the string appear a ??????????
    I know that i must set the charset for the connection to utf
    but i dont know how to set it in JNDI
    i use this code to do it :
    this code is getConnection() method
    Context ctx = new InitialContext();
    if(ctx == null ) {     
          throw new Exception("Boom - No Context");     
    Connection conn = null;
    ds = (DataSource)ctx.lookup("java:comp/env/jdbc/jdbc/myDB");    
    if (ds != null) {          
         conn = ds.getConnection(); // get connection from datasource pool
    return conn;this the web.xml
                      <resource-ref>
                   <description>DBConnection</description>
                   <res-ref-name>jdbc/myDB</res-ref-name>
                   <res-type>javax.sql.DataSource</res-type>
                   <res-auth>Container</res-auth>
                 </resource-ref>and this the server.xml
                     <Context path="/myPath" docBase="myDocBase" debug="5" reloadable="true" crossContext="true" source="org.eclipse.jst.j2ee.server:myDocBase">
                          <Resource name="jdbc/myDB"
                                                     auth="Container"
                                                     type="javax.sql.DataSource"
                                                     maxActive="100"
                                                     maxIdle="30"
                                                     maxWait="10000"
                                                     username="$$$"
                                                     password="$$$"
                                                     driverClassName="com.mysql.jdbc.Driver"
                                                     url="jdbc:mysql://localhost/myTest" />
                     </Context>Edited by: daigoor on Jul 1, 2010 5:49 AM
    Edited by: daigoor on Jul 1, 2010 5:59 AM
    Edited by: daigoor on Jul 1, 2010 7:32 AM

    the solution was to set the characterEncoding in the url in server.xml
    even i try it before but the server was not started
    he tell me that i must insert a ";" after password
    finally i found that the xml file does not understand the char "&" as it so the server was not started
    i search about this char in xml and found that it must be written as "&"
    i try this code and its work fine
    <Context path="/myDB"
                  docBase="myDB"
                  debug="5"
                  reloadable="true"
                  crossContext="true"
                  source="org.eclipse.jst.j2ee.server:myDB">
                     <Resource name="jdbc/MYdbcomhDS"
                                             auth="Container"
                                             type="javax.sql.DataSource"
                                             maxActive="100"
                                             maxIdle="30"
                                             maxWait="10000"
                                             driverClassName="com.mysql.jdbc.Driver"
                                             url="jdbc:mysql://localhost/mydb?user=$$$&password=$$$&characterEncoding=UTF8" />
    </Context>thank you for help
    Edited by: daigoor on Jul 4, 2010 4:25 AM

  • What's the problem with the URL

    Someday when I entered an URL into IE browser, I typed like http://greatsite./greatday. Unfortunately, after that, every time when I enter a URL into IE like http://greatsite/someday, it will change to http://greatsite./someday automatically, then the error page below is followed. What's the problem?
    The web server is IBM HTTP Server or Apache web server. Not just with my box, any other machines have the same problem with http://greatsite. How can I correct this problem?
    Any help would be great!
    The error page:
    11001 Host was not found
    The host specified in your URL could not be found.
    This error could have been caused by:
    Bad / misspelled URL
    Following an invalid link
    Your network connection and/or transient conditions on the Internet

    There are other browsers you could use.

  • Problem with encoding

    Hello,
    My app is reading a file, extracting a part of it to a byte array and, afterwards, the byte array is being converted to a string and later to a file, the problem i'm having is that some characters aren't recognized in the final version, e.g., �, �, �, and are replaced by '?', i guess it's some problem with the encoding, can someone help me with the workaround?
    Thanks in advance for any help you can give me.

    Multi-Post
    http://forum.java.sun.com/thread.jspa?threadID=737681&tstart=0

  • Problem with file:/// URLs in Safari 2

    I am seeing some confusing behaviour with file:/// URLs: a very simple HTML file with that type of link works as expected (opens the nominated folder) when loading it as a local file from my disk, but when I put it on our web server and retrieve it from there, nothing happens when I click on the file:/// link.
    This is happening under Safari 2.0 on OS X 10.4.2 (cross-tested on a brand-new iMac), but by comparison does not happen under Safari 1.2.4 under OS X 10.3.8 on an old eMac.
    The HTML source as viewed in the browser when loading it each way is identical:
    Go here: link
    Has anyone else seen -- and hopefully resolved -- this?
    Thanks,
    Robert

    I tried clicking on the link and nothing whatsoever happened. So I tried a control click and selected "Open Link in new window" and a new window opened, followed by the Utilities folder opening. I made a test.html file with the link in it, put it on my startup drive and it worked as expected, and ditto for putting it on a second internal drive. I then put it on my iDisk and navigated to it thru its web site address of
    http://homepage.mac.com/francines/testlinks.html
    and discovered that the two other "local" operation links (to launch ScriptEditor) both worked, but the open folder link no longer did, except by using control click and choosing either "Open link in new window" or new tab. A new Safari window or tab opens, then the Utilities folder opens.
    I then tried the page in Firefox, and it didn't work AT ALL, not even with new window or tab. I then tried Mozilla and Netscape. Same deal. The ancient Internet Explorer opened the Utilities folder inside a new browser window rather than the Finder. This might be a clue as to why the link doesn't work as expected, but unfortunately I don't know what it means.
    Francine

  • Problem with encoding euro sign in simple select

    select '€' from dual;
    should fulfill the requirements mentioned in
    http://www.oracle.com/technology/products/database/sql_developer/files/relnotes_v121.html#sec4
    But the Euro sign is displayed as a result only when connected to a DB with UTF8 encoding. When connected to a SBCS DB with encoding WE8MSWIN1252, ¬ is displayed instead. chr('€') displays 172, which is equal to the last byte of the UTF8 representation of the Euro sign \u20ac = e2 82 ac.
    The Euro sign is included in WE8MSWIN1252 with code 128, so I would expect the result of "select '€' from dual " to display correctly in both cases.
    I have just downloaded the current version Oracle SQL Developer 1.2.1, java version is 1.6.0_02-b06.

    This is what I am trying to establish. This forum is about Oracle SQL Developer, so the example was for SQL Developer. Yes, you do not need the feedback on command.
    My point is that for a number of my colleagues, all using the database encoding WE8MSWIN1252, we do not see the upside down question mark. In SQL Developer, we see the correct Euro symbol.
    I will continue to investigate this issue.
    I have tested this using NLS Settings for German, France, Ireland, United Kingdom and America, for my database with encoding WE8MSWIN1252. These all display the correct euro symbol and not an upside down question mark, whether I use the data tab in the table definition grid, or by running F9(run statement) or F5 (run script) in the SQL Worksheet in SQL Developer.
    You do not need to send me any configuration files. Just confirm that you are on the latest release , 1.2.1.32.13 and have not replaced any files once you installed this release. I will also work with our internationalization team to track down the issue. Currently the only difference is the Java version you are using.
    Sue

Maybe you are looking for

  • No "Open" optio in IE, "Save" and "Cancel" only

    I have an issue with a machine that does not give me to option to open a pdf when clicking on a link or and email pdf. I have uninstalled/reinstalled the reader and uninstalled IE7 and all the other tricks and tips generally associated with this issu

  • Demantra Workflow Problems

    I am having difficulty getting the workflow for the Engine Manager.exe run properly. The web application is on a Linux server and Demantra apps is on a Windows 2003 server. I use an SSH connection between the two server and can actually launch the en

  • A bug in the JTree(Missing some nodes)

    I have an application which implement a JTree & DnDTree. The left hand side is the original JTee, the right hand size is DnDTree which allows user to Drag and Drop some node from left JTree. The bug is: when I grag some node to right DnDTree, once I

  • Native Queries in Netweaver 7.1

    Hello Forum, how do i convince the EntityManager that a select statement used for a native query is actually a select statement?  I tried to issue an SQL statement starting with the keyword "select", containing a few parameters (i used a bare "?" to

  • How I fixed: You have been signed out problem in 2 minutes!

    Very frustratingly I was having the same problem with Creative Cloud saying you have been signed out all the time, so I was reading through the forum and got some ideas, so this is what I did and finally I can get back to work and hopefully help some