How can a servlet determine the exact requesting URL

This seems like a simple question, but I cannot find a solution. I am wondering how a servlet can determine the exact requesting URL that invoked the servlet. Specifically, I am having trouble making my servlet determine if the port number was specified or not. I am using session tracking, and my web server (by default) produces two separate sessions when hitting https://myserver.com/myservlet and https://myserver.com:443/myservlet.
I have tried to use the HttpUtils.getRequestURL(), but this function seems to assume that if you used https over port 443, that you DID NOT specify 443 in the URL.
SV

If your servlet container implements servlet 2.2 or better, try the request.getRequestURL() method. It should return everything that was originally entered for the request address at the client except the query string (use request.getQueryString() to get that).
I am not sure how it handles the port number for specifically entered vs not specifically entered.

Similar Messages

  • How can I re-release the Customizing request

    Hi,
    Yesterday, I released a customizing request to QAS. At the QAS, I used the T-code STMS to check the import request, I could not find out it.
    But, today, I released another customizing request to QAS. I can find out it. I don't known what had happened.
    Could I re-release the CR? How to deal with this question?
    Waiting for answer, THX
    jk

    Dear all,
    Thanks for your time. The problem is still have.
    I have released the Task and Sub-task, and I checked the import queue in which there isn't the TR.
    I released a new customizing request, it can be find out the import queue.
    I think the transport routes maybe have problem at yesterday, so I want to re-transport the customizing request.
    Which method can I choose to do that?
    jk

  • How can I find out the exact date or just month an...

    Can you help me on the above question??

    It's not written on your account, but you may contact customer service they might be able to help you: https://support.skype.com/en/faq/FA1170/How-can-I-contact-Skype-Customer-Service
    Andre
    If answer was helpful please mark it with Kudos and if issue is resolved mark it with solution. This will help other users find this answer more easily. Thanks in advance!

  • How can IC WebClient determine the host name for free seating?

    Hi,
    I want to determine the host name at CRM application server by ICI interface for free seating scenario.
    There is a TCODE CRMM_IC_GFS to set 'Host Name Identification Applet'.  But when I check on it, all buttions in IC Webclient disappeared. I followed the note 812399 to change Java security configuration, but the synptom still exist. Do anybody now how to? Thanks!
    BR,
    Hao

    To run a public VPN server, you need to do the following:
    1. Give the gateway either a static external address or a dynamic DNS name. The latter must be a DNS record on a public DNS registrar, not on the server itself. Also in the latter case, you must run a background process to keep the DNS record up to date when your IP address changes.
    2. Give the VPN server a static address on the local network.
    3. Forward external UDP ports 500, 1701, and 4500 (for L2TP) and TCP port 1723 (for PPTP) to the corresponding ports on the VPN server.
    4. Configure any firewall in use to pass this traffic.

  • How can I get back the Exact Duplicates menu item?

    All of a sudden, when I hold down the Option key and open the File Menu, I no longer get the item to show Exact Duplicates -- just plain Duplicates.
    I have no idea what's gone wrong! Does anyone have an idea how I can get Exact Duplicates back?

    I'm afraid so. (I can still type an é.) Good thought, though!

  • How can I programmatically determine the capabilities of a card under NI-DAQmx (e.g. max sample rate, number of AI/AO/CTR channels, etc.

    Is there a DAQ_Get_Device_Info() equivalent for NIDAQmx? I need to iterate thru all the devices on my system, and build up a list of device capabilities. The system may include M-series and E-series cards.

    Attached is a program I've used in the past to determine number of AI channels. It could be easily modified to check for AO or digital or counter. Also, there is a ton of properties that you have access to (i.e. max sample rate, max/min voltage inputs, etc.) that are accessed as properties of the type of channel, or timing properties, as opposed to properties of the board. Check out the DAQmx C Reference Help (Usually at Start>>All Programs>>National Instruments>>NI-DAQ). Expand the NI-DAQmx C Properties, and look at the List of Channel Properties, and Timing Properties, etc.
    -Alan A.
    Attachments:
    Device_Info.vi ‏25 KB

  • How can I automatically determine the threshold for a SmtSpectrumPeakSearch?

    I'm using the 5600/5620 and LabWindows 8.0 to capture free-space RF in the range from 2.0 MHz to 500.0 MHz (not the entire range, but various selected 10 MHz segments).  Depending on the antenna and frequency I'm trying to detect the signal noise levels varies.  Currently I allow the operator to manually adjust the threshold level which is used for my SmtSpectrumPeakSearch call, but I'm using one threshold for all the frequency peaks I'm trying to measure.  I'd like to automatically compute a threshold 3 dB above the noise floor for each frequency I'm trying to detect.  What's the best way to accomplish that?
    Ken

    Hello Ken,
    You have two scenarios to start from - either knowing ahead of time what the expected noise level is based on your settings, or not knowing. Also, whether the displayed noise level is the system noise level (i.e. the signal noise is lower than the system noise) or the signal noise level. Of course, is the noise level is the system noise level, you essentially know ahead of time what the noise level will be based on the 5660 specs.
    If you are looking at system noise as the noise floor, you can look at the 5660 specs and calculate the noise floor based on the noise density value, 5660 RF attenuation, and RBW.
    Noise Floor (dBm) = Noise Density (dBm/Hz) + 10*LOG10(Actual RBW) + RF Attenuation (dB)
    If the noise level varies and your application has to adapt, then you can use the power spectrum. If you want to average a section of the spectrum (that contains no noise), you need to do so in linear units, not dB or dBm. A quicker way to do this would be to do a simple max value test for a portion of the spectrum noise that doesn't contain signal and then set your threshold 3 dB above this.
    Regards,
    Andy Hinde
    National Instruments

  • How does a servlet close the browser window?

    How can a servlet close the browser window it is running in?

    I'm running the servlet by calling it in a browser window, passing parameters using POST, with the parameters appearing at the end of the url.
    Is there another way to run the servlet, without it affecting the browser window? That would be a better solution.

  • How can I programly determine versions

    How can I programly determine the ORACLE-client version I am running? Registry?
    How can I programly determine the name of SQLLoader - in version 8.0.5 SQLLoader is named sqlldr80.exe in version 8.1.7 SQLLoader is named sqlldr.exe

    Doesn't v$version tell me the Oracle-server version I am running?
    I am using Oracle-server version 8.0.5 and oracle-client version 8.1.7.
    Martha

  • How to configure IIS webserver with weblogic so that I can invoke servlets without the .wlforward extension

    How to configure IIS webserver with weblogic so that I can
    invoke servlets without the .wlforward extension
    As per the documentation iisforward.dll is registered as a filter and .wlforward
    has also been
    included as a special file type. However this requires me to key-in ".wlforward"
    after my servlet name.
    What I want is something like this
    http://iis/MyServlet
    Please help me find a solution to this
    Thanks,
    Rishi

    I am able to invoke the servlet without the wlforward extension now.
    However, now I am required to add /weblogic before the servlet
    name otherwise it does not execute the pathtrim property.
    I have tried with the pathprepend thing also.
    Can we get rid of the /weblogic part also. I just want to execute
    my servlet as http://iis/myServlet.
    Your help in this regard is greatly appreciated...
    Thanks..
    "Rishi" <[email protected]> wrote:
    >
    Thanks for the reply Kumar.
    I did follow the instructions as given in the Weblogic documentation
    The documentation said to add iisforward.dll as a filter service
    and register .wlforward as a special
    file type to be handled by iisproxy.dll. For this,
    while configuring the IIS server in the Home Directory tab
    I added an extension ".wlforward" and the executable as
    iisproxy.dll. Is this the way it should have been done...
    I also modified the iisproxy.ini file as per the documentation.
    I have added the WLForwardPath property and set it to /weblogic.
    My server works fine when I give the url as
    http://iis/myServlet.wlforward
    but it does not work for
    http://iis/myServlet and this is the way i'd want it to work.
    Please tell me if I am missing something on the configuration part
    and if there is something special that needs to be done. I shall
    be grateful to you.
    Kumar Allamraju <[email protected]> wrote:
    http://e-docs.bea.com/wls/docs61/adminguide/isapi.html#101184
    Rishi wrote:
    How to configure IIS webserver with weblogic so that I can
    invoke servlets without the .wlforward extension
    As per the documentation iisforward.dll is registered as a filter
    and
    .wlforward
    has also been
    included as a special file type. However this requires me to key-in".wlforward"
    after my servlet name.
    What I want is something like this
    http://iis/MyServlet
    Please help me find a solution to this
    Thanks,
    Rishi

  • How can i disable/hide the calling form from fnd_function.execute

    Hi,
    How can i disable/hide the calling form from fnd_function.execute.If so can any one give the syntax.
    thanks

    Hi Francesco,
    Are you talking about that ??? )) It will explain you about to get the name of the web page when you are executing an abap function for determining the values of variables...
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20make%20a%20variable%20even%20more%20flexible%20in%20bw-bps.pdf">How to make a variable even more flexible in BW-BPS?</a>
    This is weird: I wrote that document a few weeks ago, it is theorically published on SDN but this is not possible to find it by using the research tool... Maybe because it applies only to BPS in 3.5. I did not have enough time to migrate that solution to BI-IP 7.0.
    Regards
    Laurent

  • How can we see status of all Requests at a time using any tables?

    How can we see status of all Requests at a time in the Info cube or ODS using any tables? what I am facing was while I run a Process Chain in some data targets red requests remains and due to this all other requests doesnot available for reporting.
    Now is there any T-Code or Table to view all requests in a single shot.
    Thanks in advance,
    Raj

    Hi Go for RSMONICDP give timestamp and u'll have it.
    Please assign points if useful
    Edited by: Aadil on Jan 21, 2008 7:43 AM

  • When trying to play videos I get the message "requested URL is not supported on this network" how do I fix this?

    I receive the error "requested URL is not supported on this network" when trying to play videos on my iPhone. Can you please advise how to fix this problem?

    Hi,
    You will need to re-instal iCal as an optional install from your OSX installer DVDs. Then run the Mac OS X 10.5.8 Combo Update.
    Best wishes

  • I have hp 430 laptop,how can i re install the windows 7, if i not have original window on my laptop

    I have hp 430 laptop,how can i re install the windows 7, if i not have original windows on my laptop. i have oem number,
    But i have troubol to finishing installation of window.

    Originally the Notebook will have the Recovery Partition and that would give you an option to create a set of Recovery Disk. If you have not created those Recovery Disks when the Notebook was in working condition we cannot do that right now
    As of now if you need to recover your Notebook with the new Operating System you can check if the Recovery Partition is in a working condition or not, If yes you can easily recover/restore your Notebook
    If Recovery Partition is corrupted
    You need to call HP Technical Support and request for a set of Recovery Disks , So you can recover/restore your Notebook at the earliest
    OR
    You need call up Microsoft and purchase an Operating System with the License Key, So you can recover/restore your Notebook at the earliest
    I strongly recommend you to Contact HP Technical Support over the Phone for further assistance without any delay
    Hope this helps, for any further queries reply to the post and feel free to join us again
    **Click the KUDOS star on left to say Thanks**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
    Thank You,
    K N R K
    Although I am an HP employee, I am speaking for myself and not for HP

  • How can i create a new transport request?

    Dear Experts,
    Some colleagues have to modify a master record, but save time, failing to produce a request no., then, how can i create a new transport request?
    Wilson

    Hi,
    Please let us know about the issue when you create the new Transport request .
    In which system you are creating the request . Hope its in Development  .
    If so , check the entries are enabled in SCC4 > Changes without automatic recording
    Changes to repository objects and cross client customizing allowed .
    Protection level 0
    If these entries are enabled, you must be able to create Transport requests.
    Please check and update .
    Regards,
    Nibu

Maybe you are looking for

  • Problem in BI Publisher release 11.1.1 scheduleService v2

    Hello everyone, I'm facing a problem when trying to schedule a Report using V2/ScheduleService in BI Publisher release 11.1.1. I'm using soapUI 3.6.1 as the service consumer and also had enabled BIP logging (xdo.log) to see all BIP activity. The soap

  • Canon Pixma Pro-100 printer ejects 3.8 in of a 4X6 paper and prints only 2.2 in of the image printing from Photoshop CS6, I'm sure I set everything correctly - what could I be missing?

    Using Mac Pro running Snow Leopard (10.6.8) & editing & printing from Photoshop CS 6. Have new Canon Pixma Pro-100 printer and set it up yesterday.  First thing printed was a document from MS Word (a letter) 8.5 X 11 plain paper - this came out OK. 

  • Image rotation with spry

    <cfsetting enableCFoutputOnly="yes" showDebugOutput="no"> <cfinclude template="../includes/XMLExport/XMLExport.cfm"> <cfquery name="get_ads" datasource="#dns#"> SELECT * FROM BannerAds WHERE type = 'c' AND realastate = 3 AND active = 1 </cfquery> <cf

  • Alerts Not Received in Inbox

    Hello guys,         I have a BPM in which I am raising an alert if invoice posting fails.I have done all the settings needed for alert management. In workflow log I can see that the alert has been sent to the user which i have mentioned in "Fixed Rec

  • OSX reinstall.

    I've tons of problems with LP8 so decided to scrub the hard drive and reload the OS. Disk two will not load and keep getting the repeat message "Please try installing again". Is a call to Applecare in order? I'm not seeing any hope.....