Ampersands in URLs for redirect

I ran my website address through the W3C Markup Validation process and got errors stating that url variables such as http://www.test.com?var1=one&var2=two is incorrect. You are supposed to use the & instead of the & symbol. This works great for all of my HTML links however it doesn't work for JSP response.sendredirect("") so I still get a few W3C errors. The only way I can get the response.sendredirect("") to work is by using the & symbol.
Thank you for any suggestions

You don't need to change it in the sendRedirect() method. It is part of serverside code and I really don't see how the W3C validator sees serverside code.

Similar Messages

  • Using a variable to insert into a URL for redirecting clients

    I got a good one, can anyone help on this?
    Using RoboHelp Version 8.02.208.
    My company uses MicroStrategy to deploy several web-based data analysis products.
    Each of these data products (there are 5) are deployed on different servers.
    I have set up a single source WebHelp project and use build tags for product specific help output.
    (I also have to modify the Start Page, TOC and Default Topic settings prior to generating each product help)
    Everything on this works fine and is not a problem.
    We have just implemented an Excel add-in for one of the products.
    That add-in uses a locally installed CHM file for its help.
    In order to provide customized help that can be updated without forcing the clients to reinstall the CHM help file locally, the source for the CHM file has one dummy topic. In that topic, I have used HTML code to redirect the client to the WebHelp for the product and have integrated the Excel add-in help to that product’s customized help. The result is that the CHM file is opened locally in the HTML help viewer. Inside the HTML help viewer window, I open the WebHelp.
    The redirect HARD CODES the URL with the product specific server name and Start Page help topic.
    That works fine and is not a problem for ONE PRODUCT.
    We are in the process of adding this Excel add-in to other products.
    Now here is where I cannot get this to work with my implementation.
    The URL for each product is different and to make matters worse, the Start Page is different for each product as well.
    So, I am working on options for implementation of multiple products and here is my question:
    (1)    The following is an example of the redirect in the single topic of the CHM file:
    <meta http-equiv="refresh" content="0;URL=https://server.com/ProductName/WebHelp/StartPage.htm#mergedProjects/ExcelPlugIn/ Overview.htm" />
    (2)    The red portion of the URL above will need to be modified to support each individual product with a custom server, product name and start page HTM file name.
    Is there a way to:
    (1)    Add a variable in this HTML code
    (2)    Once the product is identified, update the variable with the product specific URL content
    (3)    Integrate the variable into the target URL of the HTML code that does the redirect
    I think this is either not possible or more work than needed. My other option is to provide standalone Excel add-in help on a server and just have the Excel plug-in go to that (right now it is integrated into the product specific help and the client has access to the plug-in help AND the application help all at the same place).
    Thanks to all in advance for any help/suggestions.
    Michael F Weart
    [email protected]

    Thanks for the feedback - here is more informtion on the challenges of this implementation:
    I can only distribute one CHM file to cover all 5 web-based products that can be accessed through the Excel plug-in.
    Regardless of which of our 5 products is used to install the plug-in on the client's local hard drive, the same installer is used.
    That one CHM file is installed locally on the client's hard drive.
    (The out of the box CHM file for the plug-in only has general plug-in help content the locl install causes problems for updating the content).
    We needed to be able to easily update the help without inconveniencing the clients.
    So, I am not creating 5 different CHM files for each installer, since there is only one installer regardless of how many of the 5 products they have.
    The plug-in has a server setting and web service setting for each product and the client must choose which they are accessing when they fire up the plug-in.
    They may be accessing the plug-in for any of our 5 web-based products they have subscriptions for.
    Which means, the one CHM file must be able to:
    (1) determine the product they are accessing
    (2) direct to one of the 5 servers with the online help.
    Each of the 5 online helps are deployed on separate servers with different URL links (and the helps have all different URL links as well).
    These online webhelp outputs have some identical content but also some customized content for the specific product they are actually accessing.
    My original approach was pretty much the same as William's above. Have a variable in the CHM help, determine the server they are accessing from the plug-in and insert the customized portion of the URL to access the appropriate webhelp.
    Keep the ideas/suggestions coming.
    I also have a development person looking into how to update a variable on the CHM side to populate the URL.
    Michael F Weart
    [email protected]

  • Escape special characters in url for redirection

    In my web page, I want all the characters of the URL to be lower case. For that I created the following method:
    private bool UrlFormatoCorrecto(string url)
    bool formatoCorrecto = true;
    bool upperCa = url.Any(c => char.IsUpper(c));
    if (url.Any(c => char.IsUpper(c)))
    formatoCorrecto = false;
    if (url.Contains(" ") || url.Contains("+"))
    formatoCorrecto = false;
    return formatoCorrecto;
    This works like a charm until a special character appears. The url that I get then will be the following:
    http://localhost/web/coches/proven%C3%A7a-aribau,-08036-barcelona,-barcelona
    So I have upper case characters. When I redirect it using the following code:
    if (!UrlFormatoCorrecto(urlActual))
    Response.RedirectPermanent(urlActual.Replace(" ", "-").Replace("+", "-").ToLower());
    I get the code again with the same URL with upper case. How can I escape the special characters so they won't bother me anytime I want to make the redirection?

    hello,
    you could escape special caracters with :
    Regex.Escape Method
    Regards
    Cédric

  • URL for Redirecting to a Desktop AIR Application

    Hi,
    I'm developing a Flex Project that runs on ADOBE AIR. This
    project contains two Flex desktop applications that runs in ADOBE
    AIR.Now i need to redirect to one Flex desktop application from
    another Flex desktop application.Can anyone please tell me how the
    URL should look like in the new UrlRequest( ). Thanks in advance
    for any help....................

    You can launch an AIR application from the browser if a few
    requirements are met.
    *Use must have the application already installed.
    *The application must have "allowBrowserInvocation" set to
    true in the application descriptor.
    *Must have AIR installed
    *Application must be launched by some sort of user
    interaction, ie, a mouse click (can't be launch
    automatically)

  • Cma and target URIs for redirect

    Using CMA with a server that has multiple applications deployed. If I browse to a protected resource in the application where my login actions live, I am able to access the target URL for redirect upon successful authentication via ServietAutentication.getTargetURLForFormAuthentication(HttpSession). However, if I browse to a protected resource in any of the other applications I successfully authenticate, but HttpSession is missing the weblogic.formauth.targeturl internal attribute and therefore null is returned from ServietAutentication.getTargetURLForFormAuthentication(HttpSession). Im not sure if I have a problem with the container configurations of my webapps or if I dont have weblogic server configured properly. I am deploying all my applications exploded. Any ideas or direction would be appriciated.

    Hej Lars,
    I've tried using SimpleTimer on T610 and it works fine.
    I tried the following:
    <SimpleResult>
    <SimpleTimer timer="3000" target="../../utils/dummyLink.xml"/>
    <SimpleContainer>
    <SimpleText wrapmode="wrap">
    <SimpleTextItem>You should be redirected to a new site in 3 seconds.</SimpleTextItem>
    </SimpleText>
    </SimpleContainer>
    </SimpleResult>
    Can you see if the above works for you? If not, then it could be related to the mapping of transformers. Which transformer have you mapped to, and which version/patchset are you using?
    Also, in the Webtool Service Designer you can use the "Debug" feature to print out the returned device markup.

  • Substitution strings not working in URLs for web service references (bug?)

    We have an environment where the url for our BPEL server is read from a variable. I've created an application item and a corresponding application-level computation. I'm using the ampersand-followed-by-dot (&BPEL_SERVER.) syntax as well as the hashmark syntax (#BPEL_SERVER#) and am unable to get this working.
    Is there a way for me to debug web service reference calls other than whether a call was successful? Is this a bug?
    edit:
    Here is the error message I get when I try to use a substitution:
    ORA-20001: The webservice was unreachable because either the URL you supplied was invalid, your environment requires a valid proxy server address for HTTP requests, or a wallet needs to be configured for HTTPS requests.

    No problem - let me try to lay this out a little differently, perhaps I'm just missing something.
    problem:
    * we have separate development, test, and production servers for our database and bpel servers.
    * The hostnames for these servers are stored in a table of key/value pairs
    * This means that (by policy) the hostnames in URLs calling BPEL web services should be the value corresponding to BPEL_SERVER so that the appropriate bpel server is used to call the web service
    attempted solution:
    1) I created an application item named BPEL_SERVER
    2) I have a before-header computation that sets BPEL_SERVER to 'http://bpeldev' using a static value assignment
    3) I have a web service reference whose URL is either &BPEL_SERVER./orabpel/default/callNotification/1.0 or #BPEL_SERVER#/orabpel/default/callNotification/1.0
    4) The web service reference is called in an after-submit process.
    5) An invalid URL exception is thrown for this process.when submitting on the page containing this process
    observations:
    * for (3) - I can set the URL to http://bpeldev/orabpel/default/callNotification/1.0 and everything occurs successfully
    * for (3) - If I use http://bpeldev/&BPEL_SERVER. then when I execute (4), I see a request for the exact string http://bpeldev/&BPEL_SERVER. in bpeldev's access logs
    * for (3) - If I use http://bpeldev/#BPEL_SERVER# then when I execute (4), I see a request for the exact string http://bpeldev/#BPEL_SERVER# in bpeldev's access logs
    * for (2) I've also used a function call RETURN get_const_value('BPEL_SERVER'); - same results for (5)
    * the item value has ben verified before (5)
    * for (1) and (2) I've tried defining substitution strings in the application definition instead - same results for (5)

  • Url for a page group

    I can get the groups that a current member belongs to like the following:
    User user = new User(ctx, Util.IDTYPE_DN, userDn, mysub, false);
    String [] groupAttrs = {"displayName","owner"};
    Group [] groups = user.getGroupMembership(ctx, groupAttrs, false);
    String[] groupsList=new String[groups.length];
    for(int i=0;i<groups.length;i++){
    PropertySetCollection properties = groups.getProperties(ctx,groupAttrs);
    PropertySet set = properties.getPropertySet(0);
    Property name = set.getProperty("displayName");
    groupsList[i]=(String)name.getValue(0);
    return groupsList;
    This will return the result to a jsp page and then the jsp will render the result like:
    <table width="100%" border="0">
    <%
    for(int i=0;i<groups.length;i++){%>
    <%="<tr><td><a href=\"/portal/page/portal/\""+groups[i]+">"+groups[i]+"</a></td></tr>"%>
    <%
    %>
    </table>
    all this is within a portlet to display the groups a user belong to. The user should be able to click on the links and then redirected to that particular page. The question is how to get the url or the part of the url for the group. I read many posts about using undocumented procedures/tables like wwpob_page_util and page$. Is there a supported way to do this with the java apis and maybe with a plsql packages. Thank You

    Tom this is fantastic - thank you. I took your advice and purchased a domain name from godaddy.com ($9) and it is already forwarding to may .mac web page.
    The only question I have is that I masked my domain name so that the browser always shows my group name (vs showing my .mac user name on the url). The only problem with that is that the same domain name 'jpmensgroup.com' shows up on every page of that site. Is there a way to include the names for the various pages so each one has its own address. such as jpmensgroup.com/events or jpmensgroup.com/photos etc?
    Thanks again. I bet you have to answer this question quite alot! But I am thankful that you do!
    Best,
    Bob

  • Invalid URL for Web Content Overlay, ERROR!!!!!!

    Hello All,
    I'm hoping someone can help me with this error, I was working on my indesign file and was testing it out locally, then I went on to upload my file and I got prompt to install a new version of the Folio panel which I did, now every time I try to upload my file I get this "ERROR: Invalid URL for Web Content Overlay", I've searched around and have not come up with an answer. Not sure if its a bug on the new update or what. I tried some troubleshooting which this is what i did. I copied my first page of my document onto a different file and tried to upload one page and then i got the error but then I deleted the images and just left one text box and it uploaded my file without any issues, strange huh. Any ideas????

    I was having the same problem with both hyperlinks and buttons in one particular file -- "Invalid URL for Web Content Overlay." It seems to only be a problem in files where I had a link or button previously, and then deleted the object. When I create a new object and create a link or button, it's as though the old link is still lingering somewhere in the file! However, none of the old links is listed in the hyperlinks panel before I create a new one.
    This occurred while I was teaching a DPS class, using the Adobe courseware (sight unseen by any proofreader, I believe). In one of the exercise files, the steps for the student to create hyperlinks and buttons had already been done, so I deleted the hyperlinks. (I think I deleted the text frames that contained them, but I'm not sure.) I never had a problem with it UNTIL I downloaded the Overlay Creator/Folio Builder dated June 19 (v21, I think).
    In the same file, I also had problems with a NAVTO link, . I don't think there were any NAVTO links in any earlier version of the file, at least none that I ever created or deleted.
    I've coded HTML since the days when the only available tool was Notepad, so I'm sure that I used correct URLs (and none redirected). Even the URLs in the deleted objects were correct; I only deleted them so the exercise could be done again.

  • Ignoring request not on consumer URL or redirect URL

    Hello,
    I have configured SAML for SSO for the destination site and it works fine for the page configured as Source Site Redirect URI. Attempt to access any other resource in the web application gives an error as : SAMLServletAuthenticationFilter: Ignoring request not on consumer URL or redirect URL.
    Relevant entries in web.xml and weblogic.xml are as below.
    Thanks for your time and help.
    Hiren
    web.xml*_
    <login-config>
              <auth-method>CLIENT-CERT</auth-method>
         </login-config>
    <!-- SAML SSO Start -->
    <security-constraint>
              <web-resource-collection>
                   <web-resource-name>Advisor</web-resource-name>
                   <description>These pages are only accessible by authorized users.</description>
    <url-pattern>*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
              </web-resource-collection>
              <auth-constraint>
                   <description>These are the roles who have access.</description>
                   <role-name>ssorole</role-name>
              </auth-constraint>
         </security-constraint>
         <security-role>
              <description>These are the roles who have access.</description>
              <role-name>ssorole</role-name>
         </security-role>
    weblogic.xml+_
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <security-role-assignment>
              <role-name>ssorole</role-name>     
              <externally-defined/>
         </security-role-assignment>
         <context-root>Advisor</context-root>
    </weblogic-web-app>

    Hi David,
    I am currently not passing any group information in the SAML Assertion. I haven't tried SAML 2. I found this in one of the FAQs for UCM SSO 'only SAML v1.1 based SSO solution is certified to work with UCM 11.1.1.4'. Using SAML v1.1 if you want to use the groups information you have to configure the 'Enable Virtual users' option in the SAML Destination Site. Also, you need to configure the SAML Authentication Provider along with the SAML Identity Assertion Provider.
    Section 5.7 in the below link will give you some information about it.
    http://docs.oracle.com/cd/E14571_01/web.1111/e13707.pdf
    HTH,
    Shyam

  • Create a Alias URL for Intranet

    Hi
    How do I create an Alias URL for our Intranet on the Enterprise Portal.
    The requirement is it should link directly to the intranet content under: portal Content
    Thanks
    Naziem Mahomed

    Use any reverse proxy in achieving this.
    Reverse proxy stands infront of the portal server where you can define your url which will redirect to the portal url.
    Check the below wiki for more information
    https://wiki.sdn.sap.com/wiki/display/EP/ChangePortalURL
    also check the below help link
    http://help.sap.com/saphelp_nw04s/helpdata/en/42/5cfd3b0e59774ee10000000a114084/frameset.htm
    Raghu

  • What is the right Call Back url for twitter OAuth in BlackBerry eclipse plugin 9550 simulator

    Hi friendz
    Being optimistic to get the proper help regarding the "Call Back" Url for twitter, I'm here. Actually I'm implementing 
    "TwitterAPIME-RIM-OAuthSample" for twitter. Here I am feeling helpless when callback url has been asked.
    I read somewhere that call back url is not required for java me. But here after putting my credentials in web view, I can't return back to my app as I'm passing "" in callback url param(as I think).
    How to handle this thing... please suggest me??

    CallBack URL is the url where the twitter redirects after successful authentication. The callback url can be a webpage that builds in any web tech like php etc. for the application. Then the mobile app moves to that redirected page after successful authentication. We can set www.google.com as Callback Url. In that case we need to check the url in the onPageStarted method of the WebViewClient as to finish the webview otherwise it redirects it to www.google.com.
    if (uri != null && uri.toString().startsWith(TwitterConnector.CALLBAC​K_URL)) {
     finish();

  • Recordset pageing and unencoded ampersands in URLs

    Hi
    In DW8 the code written by the record set paging object fails w3c validation because of unencoded ampersands in URLs
    ie
    page.php?pageNum_portfolio=1&totalRows_portfolio=52
    rather than
    page.php?pageNum_portfolio=1&amp;totalRows_portfolio=52
    Can anyone advise how I resolve this?
    Has this been fixed in a later release of DW?
    Thanks
    http://www.lamtha2.co.uk/portfolio.php?pageNum_portfolio=1&totalRows_portfolio=52

    Are you using Dreamweaver 8.0.2? If not, get the updater from http://www.adobe.com/support/dreamweaver/downloads_updaters.html#dw8. You will also need to install the PHP extension fix for 8.0.2. Get it from the link in the first paragraph on the following page: http://kb2.adobe.com/cps/000/b6c2ae2a.html.
    I have just compared the code from a site made in DW 8.0.2 with one made in DW CS4. It's identical, and it correctly encodes the ampersand.
    If you're using 8.0.2, and the ampersand is not correctly encoded, it could be the version of PHP you're using. Try the following:
    <?php printf('&'); ?>
    Load that into a browser and view the source. In PHP 5.3, it outputs it as the correct HTML entity.

  • How to find the WSDL URL for my deployed portlet

    Hello,
    I do not find the WSDL URL for my deployed portlet. I deployed a Portlet correctly with JDeveloper to a remote Oracle AS.
    In the tutorial they write:
    "Now use the URL provided in the log page at the bottom of JDeveloper to get part of your URL (e.g. http://myserver.uk.oracle.com:8888/my-portlet) and complete the URL.
    http://myserver.uk.oracle.com:8888/my-portlet/portlets?WSDL
    Now use this URL to register your portlet with OracleAS Portal."
    But in the log there is nothing like this! The log ends like this:
    "DCM command completed successfully.
    Output:
    Exit status of DCM servlet client: 0
    Elapsed time for deployment: 13 seconds
    ---- Deployment finished. ---- 11-Mar-2006 12:26:58"
    Can anyone tell me where to finde the WSDL Url?
    Thank you.

    OK I think that I found a quick workaround for this issue. Creating a redirection URL using the parameter icm/HTTP/redirect_<xx> works for me.
    Parameter:
    icm/HTTP/redirect_0    (Value '0' may differ for your system)
    Value:
    PREFIX=/ws1, TO=/sap/bc/srt/wsdl/srvc_08002720027F1EE3AEAAFED3B5688C63/wsdl11/allinone/ws_policy/document?sap-client=001
    Now the WSDL URL can be reached at
    http://was730.dvlopr.com:8000/ws1
    Tested!
    Best regards

  • Single URL for internal and external CRM access when using IFD

    Hello,
    At one of our client site I have setup IFD on CRM 2011. This IFD is behind TMG. My client is a big corporation therefore all CRM components including CRM, ADFS and SQL are on separate servers.
    I have configured IFD using single url https://orgname.contoso.com Their IT staff wants to know why can't they use single URL for internal and external access where internal users are nto prompted for authentication
    when logging on to the CRM server. I know you can do URL re-write in ADFS but they want to know the reason "why internal users can't use the same IFD URL and don't get prompted for their credentials". Text below is from their IT staff.

    There are several approaches to your question.  You need to set up both an internal and an external relying party trust. If you use the external URL, it will always direct you to the signin page, if you use the internal URL, it will resolve you single
    sign on.
    I've configured IFD for CRM multiple times, and this is how it works. CRM looks at the URL. If you use the external URL (org.domain.com), it will prompt for credentials. So what you are asking for, a single URL that works single sign on internally and prompts
    externally really isn't possible.
    What I recommend is:
    1. make the external URL available internally
    2. Configure all outlook clients against the external URL, that way you won't have to reconfigure when someone goes internal to external
    3. Have users who are primarily internal use the internal URL for the web client, which will resolve single sign on
    4. Have users who are primarily external use the external URL for the web client
    For #1, since you only need to enter the credentials when you first configure CRM, it is in all effects single sign on.
    One thing I haven't tried that may work is using IIS redirect internally to redirect the external URL to the internal URL. There is also a powershell script in the IFD guide that you can use to make the outlook client switch between the internal and external
    URL's, but nothing that will give you a single URL that works as the internal relying party trust when internal and the external relying party trust when you are external.

  • Need help in web dispatcher settings for redirect

    Hello All!
    I need to redirect users from one URL (http://webdispatch:port1/abc/efg) to another (http://host2:port2/abc/efg) but URL in browser must stay unchanged (http://webdispatch:port1/abc/efg) after redirect. As I think server should get requested URL from browser, internally redirect to URL #2 and send response of URL #2 to browser.
    I've set up Web Dispatcher for redirecting by using parameter icm/HTTP/redirect_0, but now URL in browser is changing with http://host2:port2/abc/efg
    icm/HTTP/redirect_0 = PREFIX=/,FOR=webdispatch:,FROM=/sap/bc/webdynpro/sap/zwd_rep,HOST=host2,PORT=port2
    How I can do it?
    Helpful answers will be appreciated
    Regards, Lev

    Thanks for your replies.
    I've tried to comment wdisp/permission_table parameter but it had no effect. And it seems that I've made a mistake: I forgot to comment icm/HTTP/redirect_0 while tested work of icr file.
    I have:
    web dispatcher at webdisp_host:1090
    host with ABAP+Java instance at inst_host
    icm/HTTP/redirect_0 commented
    use icr file:
    >Version 1.0
    >SYS
    >J2EE crmdev.oao.sng 8010 DIA=2
    At inst_host I has two apps:
    /b2b_sng/ ( inst_host:50000/b2b_sng/ )
    and /sap/bc/* ( inst_host:8010/sap/bc/webdynpro/* )
    webdisp_host:1090/b2b_sng/ works fine.
    webdisp_host:1090/sap/bc/webdynpro/* don't work:
    500 Dispatching Error
    Error:     -26
    Version:     7000
    Component:     HTTP_ROUTE
    Date/Time:     Mon Dec 01 17:41:24 2008
    Module:     http_route.c
    Line:     3121
    Server:     crmdev_WDC_30
    Error Tag:     
    Detail:     no valid destination server available for '!ALL' rc=13
    Slava,
    > 8010 is probably an HTTP message server port.
    I think no since inst_host:8010/sap/bc/webdynpro/* working fine.
    Parameters
    > rdisp/mshost = crmdev.oao.sng
    > ms/http_port = 8010
    has been already added into profile, but http_port = 8101 instead 8010

Maybe you are looking for

  • Is there a way to disable the ability to double-tap to create a straight line in Photoshop?

    Hi, I have a problem in Photoshop CS6 where whenever my pen double taps the tablet, windows will do the "loading" circle where my cursor is, and I can drag the brush anywhere, and will still have control over the opacity and size, but once I let go,

  • Extract an embedded pdf file from xml in ADF

    Hi, I have a xml file containing an embedded pdf like below <?xml version="1.0" encoding="ISO-8859-1" ?> <dbtx> <response> <transaction_rs> <EMBEDDED_FILE> <DOCUMENT> JVBERi0xLjMKJaqrrK0KNCAwIG9iago8PCAvVHlwZSAvSW5mbwovUHJvZHVjZXIgKG51bGwpID4+CmVuZG9

  • Nail Polish Remover on my computer

    Okay so I knocked some nail polish remover onto my macbook pro, I quickly wiped it up and continued using the computer. I remembered from chem last year that acetone evaporates quickly so when nothing really happened I figured everything was fine...

  • How do I work around large AIR Installer file for app updates?

    I develop AIR apps which often come with many included files (pdf, doc, swf, images, etc).  These get quite large, Total Air installer size measured in Gigs.   Distribution is via DVD.  Currently I create sub-folders under my project and place the as

  • Image not display

    Hi, I have imported my own image using Shared components. After in a header page region I wrote <img src="#IMAGE_PREFIX#logo.gif"> And it doesn't work But when I use <img src="#IMAGE_PREFIX#go.gif">, which "go.gif" is an oracle image. Could you help