Read entire URL with WD

Hi @ all,
I have to do some upgrade work for my WD application from 6.4 to version 7.0
I have some codings that don`t work anymore, where the Request URL was read out like this way:
HttpServletRequest request = (HttpServletRequest)WDProtocolAdapter.getProtocolAdapter().getRequestObject();
String url = (String) request.getRequestURL().toString();
With this i got values like this: http://sappep.server-customer.de:60000/irj/portal/anonymous/activation?guest_user=ep_selfreg_anon
In NW 7 this coding doesn`t work at all. There must be a new method of access I cannot find.
Please note: I need the entire url and not only the parameters of the url. How to get the url parameters I already got in an other document but how to get the entire url?
Thx in advance
Mathias

Hi,
   If you know the name of the querystring parameter, then you can read it within your WD application like the following:
//let's say the URL is of the form http://<servername>:<port>/webdynpro/dispatcher/<package>/<component>/<Application name>?param1="abc"&param2="123"
String qParam1 = WDProtocolAdapter.getProtocolAdapter().getRequestParameter("param1");
String qParam2 = WDProtocolAdapter.getProtocolAdapter().getRequestParameter("param2");
   For your requirement about server information, you can use
String serverName    = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getServerName();
String serverPort    = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getServerPort();
   In case you don't see the above mentioned methods (I use CE), then you can also use the not-so-sophisticated way of reading the server information:
String appURL = WDURLGenerator.getWorkloadBalancedApplicationURL(wdComponentAPI.getApplication().getDeployableObjectPart());
*appURL will be of the form  http://<servername>:<port>/webdynpro/dispatcher/<package>/<component>/<Application name>
*now you can do a standard string split to fetch the information
Regards,
Satyajit.

Similar Messages

  • How to read the param in an URL with an applet???

    I will like to read the in an URL with an applet param (after the ?)
    I need the equivalent of: String parm1 = request.getParameter("param"); but for applet
    I think the HttpServletResponse doesn't work in an applet ???
    Tell me if I'am right
    Thanks for your help
    Benoit

    Hi
    What you can do is, just get that URL in the web page. Like as we can get in the ASP. Store the required information in the variables and pass this information as parameters to the applet.
    Hope this helps!

  • How can I see the entire url in the address bar in Mountain Lion including the http or https?

    I recently updated Safari and now when the url of the site I am visiting shows up in the adress bar...it is minus the http or https so I am unaware fo whether the site is secure or not. How can I enable Safari to show me the entire url each and everytime I visit a webpage? Like before??

    Users can revert to the old behavior by setting '''browser.urlbar.trimURLs''' to '''false''' in '''about:config'''.<br>
    <br>
    <br>
    To change this preference:<br>
    <br>
    type about:config in the Location/URL bar and press Enter.<br>
    if you see a warning, accept (promise to be careful)<br>
    Filter: browser.urlbar.trimURLs<br>
    in lower panel, double-click that item to toggle value to false<br>

  • "there was a problem connecting to the server. URLS with the type 'file' are not supported"

    i have a new macbook pro 13" and every 6 minutes or so it pops up a window that says "there was a problem connecting to the server. URLS with the type 'file' are not supported". it never seems to cause any problems but is supremely annoying. how can i make this come to an end?

    I tried someone's solution of taking another external disc and plugging it in, then when it showed up and time machine asked if I wanted to use it or that someone might be trying to trick me, I chose not use it.  Then I  shut down my computer, plugged in the original Lacie, and rebooted the computer and all seems to work fine now-- the Lacie appears on my desktop and all seeems to be in working order. Who knows why or anything else,- as weird as it gets- but for now things seemed fixed--- maybe others can try this too-- it worked for me so far.

  • "There was a problem connecting to the server.   URLs with the type "file:" are not supported.  Why?  What can be done to eliminate it?

    After upgrading to Mountain Lion, I repeatedly get this message:  "There was a problem connecting to the server.   URLs with the type "file:" are not supported. 
    Why? 
    What can be done to eliminate it?

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • Message - There was a problem connecting to the server. URLs with the type "file:" are not supported

    new macbook pro receving this message: There was a problem connecting to the server. URLs with the type "file:" are not supported. What is causing this and how do

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • There was a problem connecting to the server. URLs with the type "file:" are not supported. OK

    I have just upgraded to Mountain Lion from Leopard, but now I keep getting this message when I open some web-pages and every time I wake the Mac up after going to sleep. For some odd reason I get it in Swedish sometimes (installed language) and some times in English...
    There was a problem connecting to the server.
    URLs with the type "file:" are not supported.
    OK
    What is this and how can I get rid of it. I use Firefox and have updated to latest version.

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • Since installing Lion I keep getting the error message 'there was a problem connecting to the server. URLs with the type 'file:" are not supported"' How can I fix this?

    since installing Lion I keep getting the error message 'there was a problem connecting to the server. URLs with the type 'file:" are not supported"' How can I fix this?

    A Davey1 wrote:
    Not a nice answer!
    Posting "Check the 'More like this'" area and not simply providing the answer is a great way to make these groups worthless.
    You're ignoring context.  On the old Apple Discussion Groups I never posted replies like that, instead giving people relatively detailed answers.  The new Apple Support Communities made things worse by introducing certain inefficiencies.  Then came Lion.  The flood of messages that came with Lion required a painful choice for any of the people who had been helping here: (1) Give quality responses to a few questions and ignore the rest.  (2) When applicable, give a brief answer such as the one that you found objectionable.  (3) Give up all the other normal activities of life and spend full time trying to answer questions here.
    People who needed help with Lion problems seemed to have trouble discovering existing message threads that described how to solve their problems.  I never posted the suggestion of "Check the 'More like this' area" without verifying that the help that the poster needed could be found there.  Even doing that, what I posted saved me time that I could use to help someone else.
    The people helping here are all volunteers.  None of them is being paid for the time they spend here.  They all have a life outside of Apple Support Communities.  It's arrogant of you to demand that people helping here spend more time than they already do.

  • Using the file protocol to read a URL from a DataSocket Link (DSL) file

    Hey people,
    The text of the message subject is almost directly lifted from the
    LabVIEW help file. I'm currently a DataSocket server for communication
    between a laptop and a Compact FieldPoint unit. My application is
    currently functioning, but I'm searching for a way to easily change the
    IP of the server without having to recompile the VI into a startup.exe
    file.
    The help file says it is possible to create a file (.dsl extension)
    which contains the URL of the server, with the following format:-
    [InternetShortcut]
    URL=dstp://servername.com/tag
    I have created such a file, but the help file refers to reading the URL
    from the DSL file directly, which I'm not sure how to do. The examples
    use hard-coded strings as their reference URLs, so no help there, and
    as far as I can see the question has not been raised before on these
    boards.
    I am aware that I could probably use the File Open vis and manually
    read the information contained within the file, but then it wouldn't
    make sense to rename it to .dsl or to have any other text other than
    the URL contained within.
    Thanks for your replies.

    Hey Lost And Found,
    There is actually a great example on using .dsl files with DataSocket.  You can append "file:" to the beginning of the path of your .dsl file, and wire it directly into the "connection in" pin of the DS Read.  Check out the example here: http://digital.ni.com/public.nsf/websearch/FCC19AF27EFED9A5862569A500709C58?OpenDocument.  I think that it will provide everything you need and if not, just ask.
    Hope this helps!
    Megan B.
    National Instruments

  • Cannot Read Entire TXT Files in "Notes" folder

    Ihave a 4G iPod nano (red, if relevant... I think it's a 4g?) I cannot read entire text files in the notes folder. I can read part of the file, usually up to about a 2 KB size in standard Unicode format, but I am unable to view the entire text file. For example, I have a copy of Beowulf on my iPod that is about 267KB in size; however, I can only read through 1.87KB of it. The rest shows up in Windows Explorer and is fully functional there, but I Cannot view it from my iPod.
    Anyone else have this problem, and know what I can do to fix this (besides breaking it up into about 50 chapters?)
    Thanks Much!
    intel.ectual
    programmer, code-guru, and graphic designer
    Compaq Presario Athlon 1.7GHz 64-bit 1GB RAM and a very comepetent user   Windows XP Pro  
    Compaq Presario Athlon 1.7GHz 64-bit 1GB RAM and a very comepetent user   Windows XP Pro  

    The max size for any note that can be read in the notes on ipod is 4kb. That said there is no alternative way of getting around this size. here is a good article about working with ipod notes.
    http://www.macworld.com/2004/09/secrets/septgeekfactor/index.php
    and on another note from another of your posts.
    jsut to make you aware of not doing something stupid adn cursing about it.
    DO NOT TRY AND USE IPODLINUX ON YOUR IPOD NANO.
    unless you really want to VOID your warranty and also fry your nano to become a expensive PAPERWEIGHT!!
    many have stupidly done this and have come here cursing as to why their ipod nano is fried adn not working at all! Just be smart and make note that that hack software doenst even work for the 2g ipod nano!
    GFF:)

  • Button URL With Variables widget that works with HTML5

    Hello,
    I'm currently using the "Button URL With Variables widget 6.x" developed by CaptivateDev. com. Unfortunatley it is not compatible with HTML5 projects in Captivate 7. Do you know where I can find one?
    Thanks,
    Stewart

    I don't know yet about any widget available for HTML5 output, with the exception of the interactions included with Captivate.

  • Please help me in resolving the URL with parameters.

    Hello,
    Please help me in resolving the URL with parameters. If desformat is pdf, a pop up message �Acrobat Reader could not open �pa034922.fdf� because it is either not a supported file type or because the file has been corrupted���.
    if desformat is html or xml, the following URL is working.
    our requirement, report should be in pdf format.
    http://servername:7778/dev60cgi/rwcgi60?server=Rep60_mclaren&&userid=bizsystest/test@business&destype=cache&desformat=pdf&report=salary_dept.rdf&p_dept_list=''ABE','ASE','CE','CHE','CS','DE','DIAL','ECE','ERC','IE','ME','PTE','ARC','ASE1''&p_status_list=''ACP','AD','AP','ATP','D','FE','HD','INS','P','RP','S','TF','TP','TS','ST','GS','O''&p_sex=''M','F''&p_order_by='Name'&p_totals='NO'
    Thanks in advance,
    Usha

    We've seen this bug on machines running IE6 with a certain security patch (I forget its number). There's a thread in the Metalink reports forum about it. It appears to be somewhat tied to another problem where IE runs the report twice (you can see that in Showjobs. You're seeing the problem in 6i; I believe it persists in 9i.
    The workarounds are (1) set Acrobat so it doesn't open within IE or (2) switch to a different browser, like Netscape. For workaround 1, Start Acrobat Reader, Choose File -> Preferences -> General, Uncheck Web Browser Integration
    There's some evidence that it occurs more often with urls that include single quote characters. I think it's worse with XP, but I don't have any proof.
    If you check Adobe's site, you will see this isn't just an Oracle Reports problem. I think we're waiting for Microsoft on this one, so don't hold your breath for a quick fix.
    -- jim

  • Opening a url  with parameters in an application

    I'm able to open a url in a browser from my application, but I want to open a url with parameters.
    for instanse http://mypage.asp?parameter=a
    You get a file not found. Is this possible?
    I'm currently using
    Runtime.getRuntime().exec( "cmd /C start " + url);

    Found the answer -- you have to put the url in quotes lest the ampersands parse the end off.

  • Using url with username and password in URL class

    Hi,
    I'm writting an applet in which I use getAppletContext().showDocument with an URL.
    The problem is that I'm using URLs with username and password (http://user:[email protected]/page) and it isn't working because the browser is getting the URL http://user/page.
    Is this a bug in the URL class? Or in the showDocument method?
    Is there any way to make this work?
    Thanks for any help,
    Pedro Prospero Luis ([email protected])

    I'm not sure whether this is supported behaviour. I've had this syntax fail to work in the Netscape address bar so I can't recommend it as an approach for authentication.
    If you want to authenticate the user before redirecting to the page, though, you could try creating a connection to another page on the same server and sending the authorization information then. Your browser may then be successfully authenticated.
    See http://www.javaworld.com/javatips/jw-javatip47.html for information on this.
    You might not need to read back the page from the server, just connect to it. Might work.

  • Macintosh transfer over the presets and preferences WITHOUT transferring the ENTIRE HD with "target disc mode

    I'm picking up the new 2014 MBP tomorrow so should be installing over the weekend / next week.
    I've been currently using a 2011 MBP with OS 10.7.5, using the "home" folder, which I will NOT be doing on the new one MBP with Mavericks.
    What is the best way to transfer over the presets and preferences I want, WITHOUT transferring the ENTIRE HD with "target disc mode" or something similar? I am FRESH installing all  APPLICATIONS.
    Mainly it's the presets and preferences I want to transfer.
    Thanks in advance.

    I'm picking up the new 2014 MBP tomorrow so should be installing over the weekend / next week.
    I've been currently using a 2011 MBP with OS 10.7.5, using the "home" folder, which I will NOT be doing on the new one MBP with Mavericks.
    What is the best way to transfer over the presets and preferences I want, WITHOUT transferring the ENTIRE HD with "target disc mode" or something similar? I am FRESH installing all  APPLICATIONS.
    Mainly it's the presets and preferences I want to transfer.
    Thanks in advance.

Maybe you are looking for

  • In Report Painter, need to find out how a field is defined.

    I'm trying to find out how a field used in a current report is defined.  For example, columns 2-13 are monthly columns.  Double clicking on the column name (April), for example, brings up the box "Element Definition: April;$Year.  The Value Field is

  • Profile picture limited to 96x96 pixels

    Dear Skype Moderators, Do you know if there is anyway to store a profile picture with more than 96x96 pixels?  Or, if that is not possible, is there anyway to avoid Skype from upscaling the picture? After multiple attempts, the best result I had was

  • Any suggestions for possible hardware problem with 8320

    Having a problem with 8320.  Phone seems to be scrolling by itself.  Making the scrolling noise and mouse is moving by itself.  Unfortunately when this happens, I can't do anything else involving the trackball.  I have cleaned the trackball and updat

  • Deactivate Outline function in Word Processor, AppleWorks 6.2.9

    For some reason my AppleWorks 6.2.9 word processor has decided that every time I open it I want to make an outline, when all I want is to write a letter or something similar. I have no use for all the arrows and margins and squiggles that are part of

  • Adobe Premier Elements 11

    Using Adobe Premier Elements 11 I experience "freezing" when I: add some info to a picture while making a DVD, save the program then access the button to continue scanning the photos for the next spot in which to add more info. Not always, but often