URL rewriting for the links

Hi
I have my webapplication which is running on tomcat ....and as of now i havent encoded any of my links in the web application ...they are like
<a href="/action.do?id=1"></a>
Is it my duty to keep all the URLs encoded so that if the client diables the browser this would be helpful ??
Currently then if a client disables the cookies my application should not work properly right ??
Can any one enlighten this

If you are using Struts, then use the html:link tag.
That will automatically encode the URLs for you if necessary.
<% pageContext.setAttribute("id", "1"); %>
<html:link action="/action" paramId="id" name="id"/>
http://struts.apache.org/userGuide/struts-html.html#linkCheers,
evnafets

Similar Messages

  • Apache Url rewrite for portal URLs

    Hi,
    I have a requirement where i need to write simple URL's for the default portal uRL's
    for example
    inspite of using default url like "http://myserver:port/portal/server.pt/community/abc_xyz/123/efg_jkl/12345",
    if user uses
    "http://myserver:port/portal/server.pt/xyz"
    It should navigate to same default URL.
    Can somebody let me know how this can be achieved.
    I know Url rewriting is done through Apache Url rewrites but do not have an idea how apache does it with portal Url's. What configurations need to be done in order to manage portal Url's with apache rewrites.
    Thanks
    Ajay

    Hi Ryan,
    Thanks for the reply. The link shows how to write the Rewrite rules in apache. I am familier with that. The actual problem is that how can the portal Url's be controlled by apache rewrites. My apache and weblogic are both on the same server instance but after writing the rewrite in httpd.conf file. It does not work out. Just want to know how can i tell apache to handle my portal Url's too.
    Is there any specific entry that we need to make for doing this.
    Thanks
    Ajay

  • URL rewriting for a WebService Consumer Proxy

    Hi all,
    Did anybody come across this issue?
    I have a SAP System - let's call it "TM" -  that I want to bind with another non-SAP one - let's call it "FB" - without any PI between them.
    The communication is made as a Service Consumer (TM side), the Proxy (see image below) and Proxy-Implementation Class being generated automatically after the ".wsdl" file and the "url" given by the documentation of FB.
    Everything looks good! All the Methods (operations) that are available from the service have been added to the Implementing Class.
    After the Proxy generation, I also created the Logical Port (in transaction SOAMANAGER - see image below) where the path, host, prefix, and all the necessary stuff were also automatically created after the ".wsdl" document.
    So far so good! When I want to test it and to play along with this connection TM -> FB, I am creating the Proxy-Object, I am filling the required User / Pass / and an ID in order to call the first method. As you have probably guessed already: LOGIN.
        ls_in_login-login_request-id             = '...some ID...'.
        ls_in_login-login_request-user          = '...some user ...'.
        ls_in_login-login_request-password  = '...some password'.
    TRY.
             CREATE OBJECT lo_proxy
               EXPORTING
                 logical_port_name = 'ZAS_PORT_FB'.
         CATCH cx_ai_system_fault INTO lo_ref.    " Application Integration: Technischer Fehler
    ENDTRY.
       TRY.
           CALL METHOD lo_proxy->login
             EXPORTING
               input  = ls_in_login
             IMPORTING
               output = ls_out_login.
         CATCH cx_ai_system_fault INTO lo_ref.    " Application Integration: Technischer Fehler
         CATCH cx_ai_application_fault INTO lo_ref.    " Application Integration: Applikations Fehle
    ENDTRY.
    As a response, (meaning that the connection works and that the WebService acknowledges the connection) I get a "SessionID" -> a string of characters.
    In the Wiki of the Service is written that from this point on, every other methods (but I mean ALL of them, logout() also...) need to be called along with this SessionID. The problem is, that this SessionID doesn't have a specific place in the "inbound"-structure of the methods, but this mechanism of passing around the SessionID must be made with URL rewriting. Another solution would be to use COOKIES. From my point of view, a so-called URL rewriting would be easier, right?
    In the documentation is the following info written:
    URL rewriting (recommended):
    The JSessionId is attached to the URL of the SOAP request, as follows:  http://[URL];jsessionid=[jsessionid]
    Caused by tecnical reasons, it is necessary to specify the static string “;jsessionid=” in lower case letters.
    I have turned this "LO_PROXY" object around and around and around... trying to find a solution... a method...anything that would let me rewrite the URL, but nothing...
    I have also tried to use ce CL_HTTP_CLIENT class and to create myself the client and the URL and the host and everything manually... but in this case how do I end up in calling a specific "custom" method -> for instance... how do I call the "LOGIN"... or the LOGOUT...where do I put the parameters, etc?
    Do you have any suggestions / ideas / hints ?
    Thanks a lot in advance!
    Warm regards,
    Alex

    Hi Stefan,
    You are right! It doesn't support to set URL / HTTP parameters outside the logical port.
    Nevertheless, I have debugged the whole engine and found out that via custom coding (enhancements / modifications) and with extreme attention, the URL can be rewritten as desired.
    When a method of the proxy is called, let's say for instance: lo_proxy->logout (...) - as written up for example, the method CL_HTTP_CLIENT=>CREATE_BY_URL is called dynamically.
    In this method, in the "url" variable is the desired URL that needed to be rewritten.
    Here it's about an importing parameter, so it cannot be changed so easily, but it's not impossible.
    Another place where a nice Enhancement can be created is at the beginning of the FM "SWLWP_URI_PARSE".
    You need to be very careful not to change these places in all cases (this CREATE_BY_URL will be called pretty much), JUST when the specific conditions are fulfilled.
    Have a great day / week!
    Warm regards,
    Alex

  • It used to be that when I created a pdf from a word or publisher document, hyperlinks worked fine. Now I cannot get them to work unless the text displayed for the link is the complete address and it all appears on one line. Why?

    it used to be that when I created a pdf from a word or publisher document, hyperlinks worked fine. Now I cannot get them to work unless the text displayed for the link is the complete address and it all appears on one line. Why?

    You can print to the Adobe PDF printer, but that only creates links that Acrobat or Reader recognize as such. That is the reason for needing the entire URL on one line. It is not actually an embedded link, but one created by Acrobat on the fly. With OFFICE 2013 you have two choices: 1. create the PDF with the print to Adobe PDF and then add the links in Acrobat so that they are complete or 2. I think the WORD save as PDF or XPS will create the PDF with links, but not sure. If so, that would be the quickest solution for you, but be aware of potential problems with the MS plugin.
    Of course, the third option is to upgrade to XI which can be done with AA 9. You will probably not be eligible for a for an upgrade to whatever the next version will be.

  • Using URL Rewrite for HNSC Web App

    Greetz!
    I'm using host named site collections in my deployment of 2013 Enterprise. I've got a single web app, on the default zone, that was created on port 443 with the -SecureSocketLayer parameter. How can I seamlessly redirect users accessing a HNSC with http
    to the correct (and only) https url? I'm using the URL Rewrite 2.0 with IIS 8.5.
    I have the following rule in place but it is still throwing a 404 on pages. Is this able to work with Host Named Site Collections and does it matter that I've installed the Web App on 443 without having it on 80 first? It shouldn't but SharePoint has
    surprised me before ;):
      <rule name="SSL Redirect" enabled="true" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions>
                        <add input="{HTTPS}" pattern="off" />
                    </conditions>
                    <action type="Redirect" url="https://{SERVER_NAME}" redirectType="Found" />
                </rule>
            <rule name="HTTP/S to HTTPS Redirect" enabled="false" stopProcessing="true">
              <match url="(.*)" negate="true" />
                <conditions logicalGrouping="MatchAny">
                        <add input="{SERVER_PORT_SECURE}" pattern="1" />
                        <add input="{SERVER_PORT_SECURE}" pattern="0" />
         </conditions>
         <action type="Redirect" url="https://{HTTP_HOST}" redirectType="Permanent" />
         </rule>
    Love them all...regardless. - Buddha

    are you using the URL Rewrite on the same IIS web application as the SharePoint sites?
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • I need to go back to Firefox 3.5-3.6 because 90% of my extension do not work. Where can I find the download to Firefox 3.5-3.6? Thank you for the link.

    I need to go back to Firefox 3.5-3.6 because 90% of my extension do not work. Where can I find the download to Firefox 3.5-3.6? Thank you for the link.

    You are a "life saver". Thank you very much.

  • Can anyone point me in the right direction for the link to download Acrobat 9 Standard?  I found the link to download 9 Pro but not standard.  Old computer crashed and new computer does not have a CDR/DVD rom drive.

    Can anyone point me in the right direction for the link to download Acrobat 9 Standard.  I found the link to download 9 Pro but not standard.  Old computer crashed and new computer does not have a CDR/DVD rom drive.

    Hi,
    Standard or Pro would be licensed through your serial number, the download link and downloaded file would be the same for both of them.
    Pro or Standard would be determined after you put in your serial number.
    Download Acrobat products | 9, 8
    Thank You
    Arjun

  • Expiration time has passed for the link used to download an ebook?

    expiration time has passed for the link used to download an ebook? I checked the time, date and time zone. Plus I am trying to do this on three different devices that are registered and which I used in the past with the reader app- iPhone, iPad, laptop. there is no firewall or antivirus . please help. I don't know what else to try

    OK I finally was able to delete it...had to do a restart to finlaize deletion, but the app was gone after. And have re-installed it with my current apple id.
    Thanks.

  • Where can I download OSX Maverick. I'm looking for the link where there is the "download button" I can't find it!

    Where can I download OSX Maverick? I'm looking for the link where there is the "download button" I can't find it! Please Help!

    What is your current operating system? It needs to be at least Snow Leopard 10.6.8 in order to have the App Store available.
    Which Mac are your trying to upgrade? It needs to be:
    iMac (Mid 2007 or newer)
    MacBook (Late 2008 Aluminum, or Early 2009 or newer)
    MacBook Pro (Mid/Late 2007 or newer)
    MacBook Air (Late 2008 or newer)
    Mac mini (Early 2009 or newer)
    Mac Pro (Early 2008 or newer)
    Xserve (Early 2009)

  • Query for the link of recordings

    A Korean company developed Moodle module by which teacher can
    create meetings and display meeting schedules within Moodle using
    xml webservices. They asked me whether there is an action to query
    for the links of recordings of meetings.
    Does anyone know?
    Thanks in advance.

    You can do so using the XML API. There is a .pdf here:
    http://www.adobe.com/devnet/breeze/
    Web Services
    Using the Adobe Connect Enterprise XML Web Services

  • I have the activation problem to. I deleted my iPad from my iCloud account but its still asking for the linked apple id, but there is no iPad linked to Find My iPhone so i wanted to ask what to do

    I have the activation problem to. I deleted my iPad from my Find My iPhone account but its still asking for the linked apple id, but there is no iPad linked to Find My iPhone so i wanted to ask what to do. I can't use the apple id Apple is asking for because my iPad is not linked anymore.

    Hi JL Kamsoerie,
    Try using the information in this article to help you troubleshoot this issue with the Activation Lock on your iPad:
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account
    http://support.apple.com/kb/TS4515
    Thanks for being a part of the Apple Support Communities!
    Cheers,
    Braden

  • In iWeb I created a hyperlink to a file on my computer. When I publish I get a 404 error for the link.  Can anyone help?

    In iWeb I created a hyperlink to a file on my computer. When I publish I get a 404 error for the link.  Can anyone help?

    How would I check to see if the like works when I enable via the inspector pane
    If you enable hyperlinks when you click on the link link to the pdf file it will open a browser window and display the pdf file.
    I upload the pdf files to the server and link to them as if they were an external web page:
    That's been more reliable for me than linking to the file as Link To: A file and have iWeb upload the pdf file to the serve.

  • APEX: Internet domain mapping / URL rewrite for Apps in the cloud

    Hello,
    I have registered for a trial access since first day in which the cloud was launched ... But, did not get access till now ... If I were to buy it, am I going to get access right away ??
    Is Oracle Cloud going to offer Internet domain name mapping to a specific APEX application ???
    Is Oracle Cloud u going to offer URL rewrite where APEX URL is not Search Engine friendly.... e.g:
    This site: http://www.enkitec.com/ was built on APEX, but as you can see the URL was rewritten ????
    Best Regards,
    Fateh

    Hi,
    According to your post, my understanding is that the rule was not processing for SharePoint 2013 result page.
    Please make sure you add the reverse rewriting rule correctly.
    For more information, you can refer to:
    Add the reverse rewriting rules (in the HTML)
    Setting up a Reverse Proxy using IIS, URL Rewrite and ARR
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Unclear on URL rewriting for SunONE

    On IAS 6.5 running on IWS 6.0 SP4, when is a URL actually rewritten with the Session ID?
    1. When I call response.encodeURL(theURL) so that its return value should be theURL with the extra Session ID params.
    2. When the html is sent back and the AppServer or WebServer intercepts the html and rewrites all URLs regardless of whether I called response.encodeURL(someURL).
    I ask cause it doesn't seem like response.encodeURL is doing anything. Although other URLs that I didn't explicitly encode are getting encoded.
    I have found that the URLs that are not rewritten with the Session ID are those that appear in:
    1.Javascript such as onClick="javascript:document.location.href='/NASApp/myscriptservlet' "
    2. Posted Forms such as <form method="post" action="/NASApp/myapp/myformservlet">
    And URLs that are rewritten with the Session ID are those that appear in:
    1. Anchor Tags such as link
    2. Image Tags such as <img src="/NASApp/myapp/myimageservlet">
    The worst part of it all is that in my JSP I explicitly call encodeURL for the URL in the javascript and the form action URL and these are the two that don't get encoded.

    Hi Stefan,
    You are right! It doesn't support to set URL / HTTP parameters outside the logical port.
    Nevertheless, I have debugged the whole engine and found out that via custom coding (enhancements / modifications) and with extreme attention, the URL can be rewritten as desired.
    When a method of the proxy is called, let's say for instance: lo_proxy->logout (...) - as written up for example, the method CL_HTTP_CLIENT=>CREATE_BY_URL is called dynamically.
    In this method, in the "url" variable is the desired URL that needed to be rewritten.
    Here it's about an importing parameter, so it cannot be changed so easily, but it's not impossible.
    Another place where a nice Enhancement can be created is at the beginning of the FM "SWLWP_URI_PARSE".
    You need to be very careful not to change these places in all cases (this CREATE_BY_URL will be called pretty much), JUST when the specific conditions are fulfilled.
    Have a great day / week!
    Warm regards,
    Alex

  • Always use URL Rewriting for session tracking?

    All you JSP guru:
    I am working on a JSP project that requires session tracking. I have successfully implements session tracking with both cookies or URL rewriting. I know that with the HttpSession object, it will always try to use cookie first, if that's disabled, then it'll automatically switch to URL rewriting. However, is there a way to force the HttpSession object to ALWAYS use URL rewriting instead of cookies? I have searched for an answer for a long time and haven't been able to found a solution. Is it possible at all? Thank you very much.

    i was going to say that WebSphere always uses URL rewriting if you enable it at all, but someone beat me to it (indirectly) :-)
    however, that seemed to me to be a violation of the spec, which seemed to imply the behaviour you're describing (only use URL rewriting if cookies are not supported on the current client)
    here's a response someone else made on a websphere newsgroup to a statement in that regard:
    I believe you are technically correct. However from my
    experience, I think the spec if flawed in this area since
    there is no reliable way of determining whether the
    client browser supports cookies. The authority on
    cookies (www.cookiecentral.com) says:
    "To properly detect if a cookie is being accepted via
    the server, the cookie needs to be set on one HTTP
    request and read back in another. This cannot be
    accomplished within 1 request."
    This is asking too much of a servlet engine
    implementation. Even if it did submit a request for this
    purpose, the user could refuse the cookie. So
    then technically the browser supports cookies, but the
    servlet engine infers it doesn't. So if the servlet engine
    infers the browser does not support cookies and so
    encodes the URL, it is again out of spec because the
    browser really does support cookies. By doing it
    however encoding is configured makes things simpler,
    robust, consistent and avoids the flaw.
    My opinion.so, mostly i'm just rambling, but if you're using websphere, you should get the behaviour your boss wants. if you're using something else, i suppose there's a chance it'll "violate" the spec in this same, potentially helpful way.
    btw, i remember somebody else complaining that URL rewriting is less secure than cookies, but i kinda think they're about equal. it seems like either could be intercepted by a sniffer and then used to spoof. but i'm no expert in that stuff...

Maybe you are looking for

  • Problem with DNS

    Hello, I am relatively new to configuring DNS settings in Server Manager. Recently, my Kerberos relm stopped working and I am now getting this error message on the console: configured name and reverse DNS name do not match (fileserver.occu-med.com !=

  • If I have an American MacBook from 2009, what cables do I need to hook it up to an English tv?

    I have a MacBook from late 2009. I want to show my videos on iMovie in England to family but I have an American computer. Which cables do I need to connect my American computer to an English tv?

  • Support for 32" LED TV model no 32PS1V

    Where do I find support for Toshiba 32" LED TV model no 32PS1V. I am looking for firmware upgrades to allow for USB avi compatibility as this model currently only supports JPEG photos and NOT movies.

  • How to change active partition?

    Hi experts, I have disk D which contains OS windows 7 and not in active, but my another disk E is in active with 100% free space.so, how can i change active partition from E to D ? please help me  

  • My IPOD is a paper weight

    I have a four GB nano (1st gen) I received a battery warning with what should have been about half a charge left. I immediatly Plugged the IPOD into the USB nad it didn't show up on the source screen in itunes. I left for a few hours thinking it just