Any way to get HTTP header in web dynpro Java?

Is there any way to get HTTP header in web dynpro java? This method gives me the params. Is params same as header? It doesn't have any way to retrieve header data. I am on NW 7.0.19
WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("param");

Dear Faraz,
I'm afraid the code you've pasted is only to retrieve URL parameters.
Have you tried this document to see if it offers any good hint:
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0446f5c-fcb9-2910-e082-88becbe3ddc9]
Not sure if you can process the HTTP header with a WD4J.
An alternative could be to develop some Portal component in plain JAVA working as a proxy to call your WD4J afterwards.
That portal component would process your HTTP header and forward any parameter to your WD4J.
But this is me just guessing.
Kind Regards
/Ricardo

Similar Messages

  • Weblog for Simple way to debug ESS and MSS Web Dynpro Java applications

    Here is the link to the new Weblog topic "Simple way to debug ESS and MSS Web Dynpro Java applications"
    /people/yugandhar.reddy/blog/2011/03/26/simple-way-to-debug-ess-and-mss-web-dynpro-java-based-applications--very-useful-technique

    Thanks Siddharth. I was trying as you suggested, I was trying to add the link to the FAQ's but looks like the wiki is locked or I dont have permission to create a page in it. Is there any other way to do it?
    Edited by: Yugandhar  Reddy on Mar 28, 2011 5:04 PM

  • Any way to add HTTP Header info before redirect?

    I have a third party web site that requires basic authentication. My servlet knows the userid and password from its own database. Is there some way I can add the encoded authorization header before I do a response.sendRedirect( ) ??
    I just can't find a way to do this, even by creating a wrapper class for HttpServeletRequest that uses the request supplied to my servlet for all its work (the container must use request info that is not in the HttpServletRequest interface).
    I was thinking that I could have my servlet add the request Header for basic authentication and do a forward(..) to another servlet in my context, which in turn does a response.sendRedirect( ) to the third party BBS, but I can't find ANY way to muck with the request Headers. Any help is GREATLY appreciated!
    -- Dave D.

    I too am in need of this now... was a solution ever found? Can someone procide one?
    HttpServletRequest req = context.getRequest();
    HttpServletResponse res = context.getResponse();
    HttpSession ses = req.getSession(true);
    res.setHeader("sH", "setanewHeader");
    res.addHeader("aH", "addanewHeader");
    res.sendRedirect(res.encodeRedirectURL( req.getHeader("referer") );
    i can't seem to reference sH or aH in my page and they don't seem to be in the response.
    thx

  • Get HTTPS URL for Web dynpro application

    We are using SSL. By default the URL generated for the Web dynpro application is HTTP.
    We went to SICF, and deactivated the HTTP service. That made the URL point to HTTPS.
    But few problems started coming because of it:
    - Our Content server became inaccessible.
    - Every time server is re-started, we need to manually go and de-activate HTTP Service.
    We even tried to set the parameter icm/icm/HTTP/redirect_0. But problem is not solved.
    I know this question is asked before, but every time the answer is to read the help document on ICM.
    What's the correct way for any webdynpro application to point to HTTPS? I don't think de-activating HTTP service is the right way.
    Any suggestions please?
    Thanks in adv.

    Thanks a lot Thomas. I'd ask the Portal Admin to try it out.
    There is another similar problem we are facing: I have embedded Webdynpro in R/3 screen. Then used the cl_gui_wdr_viewer class's load_application method passing HTTPS protocol.
    It returns HTTPS URL only, but is not showing up on users' laptops.
    Earlier we were not passing HTTPS protocol, so generated URL was HTTP, and it was not showing on users' screen (can show in ours). Reason we found out is that users' site has HTTP port blocked. They cannot show any HTTP url.
    So we changed to get HTTPS URL, but that also gives the same problem. It is still trying to get HTTP url.
    Here is the URL that the users got: (when they right click to see the URL generated)
    res://ieframe.dll/dnserrordiagoff_webOC.htm#http://abc.def.jil:8000/sap/public/myssocntl?sap-client=220
    Can give any clues on why this is going wrong? Cannot raise OSS as I know embedding Webdynpro in R/3 is not supported
    Thanks in adv.

  • Is there  any way to get a big system icon through  java?

    the getSystemIcon() method returns a little icon, perfect for a JTree implementing a file tree. I'd like to be able to get the big version of it.
    how to do?

    I think they mean javax.swing.filechooser.FileSystemView getSystemIcon but I don't believe anything more is possible built in to the API then that.

  • EP server is getting restarted becauses of Web Dynpro java code

    Hi All,
      Node strucure is
       -->Prospect(Value Node)
          -->Opportunity(Value Node)
              --> Opportunity ID(Value attr)
      -->ProspectID(Value attr)
      -->Prospect Name(Value Attr)
              int nProspectOppNodeSize = wdContext.nodeZopportunity().size();
              IPrivateStaffingView.IProspectNodeElement eleProspect;
              IPrivateStaffingView.IOpportunityNodeElement eleOpportunity;
              wdContext.nodeZopportunity().moveFirst();
              for(int i=0;i<nProspectOppNodeSize;i++)
                   eleProspect = wdContext.nodeProspectNode().createProspectNodeElement();
                   wdContext.nodeProspectNode().addElement(eleProspect);
                   eleProspect.setProspectID(wdContext.currentZopportunityElement().getProspect_Id());
                   eleProspect.setProspectName(wdContext.currentZopportunityElement().getProspect_Name());
                   String strCurrentProspectID =  wdContext.currentZopportunityElement().getProspect_Id();
                   while(strCurrentProspectID.equalsIgnoreCase(wdContext.currentZopportunityElement().getProspect_Id()))
                        eleOpportunity = wdContext.nodeOpportunityNode().createOpportunityNodeElement();
                        wdContext.nodeOpportunityNode().addElement(eleOpportunity);
                        eleOpportunity.setOpportunityID(wdContext.currentOpportunityNodeElement().getOpportunityID());
                   wdContext.nodeZopportunity().moveNext();
                   wdContext.nodeZopportunity().moveNext();
         wdContext.nodeZopportunity().moveFirst();
         int nProspect = -1;
         for(int i=0; i<wdContext.nodeZopportunity().size(); i++)
              if(wdContext.currentDisplReq_Zsr_MasterElement().getProspect_Id().equalsIgnoreCase(wdContext.currentProspectNodeElement().getProspectID()))
                   nProspect = i;
              wdContext.nodeProspectNode().moveNext();
         wdContext.nodeProspectNode().moveTo(nProspect);
    Please help

    Hello,
      I think the problem is that you are not controlling the end of this bucle:
        String strCurrentProspectID =  wdContext.currentZopportunityElement().getProspect_Id();
        while(strCurrentProspectID .equalsIgnoreCase(wdContext
                                                .currentZopportunityElement().getProspect_Id()))
           wdContext.nodeZopportunity().moveNext(); 
    you can do something like:
       int count = 0;
       int num_ele = number of elements of node Zopportunity
       while (<b>count<num_ele</b> && strCurrentProspectID .equalsIgnoreCase(wdContext
                                                .currentZopportunityElement().getProspect_Id()))
        wdContext.nodeZopportunity().moveNext(); 
        <b>count++;</b>

  • E-catt on Web-Dynpro Java application

    Hi All,
    Is there any way to use e-catt on Web-Dynpro Java application?
    If any one has use it please guide me the steps?
    Regards

    hi Rohan,
    check this
    http://help.sap.com/saphelp_nw04/helpdata/en/8e/df9f40eb72371be10000000a1550b0/frameset.htm
    Best,
    Ignacio.

  • Interview Question on Web Dynpro JAVA

    hi
    Could any body please send Interview Questons on Web Dynpro java.
    Mukesh

    Hi Mukesh
    I dont think u will get any specific material for interview questions on webdynpro ,
    but u can always follow this link which has each n every aspect of webdynpro listed here for interview u should be familure with all the titbits of webdynpro and depending on ur comfort level u can explore any specific topic which u find dificult
    and moreover none can tell which questions ur going to be asked on the day
    Important is read about those things which u implemented in ur projects coz ur interview is going to circled around what u have done and U r confidence level thats the trik
    https://www.sdn.sap.com/irj/sdn/webdynpro
    U can also read the book by Chris Whealy: "Inside Web Dynpro for Java". if u have time before ur interview
    all the best
    GOOD LUCK
    Regards
    Asif

  • Difference between web dynpro java and web dynpro abap

    Hi this is watson maureen,
                 I wnat to know what is  the difference between web dynpro java and web dynpro abap?
    thank
    maureen

    Hi watson,
    Go through these links, you will get the difference between web dynpro java and web dynpro abap
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0e4940c-035c-2b10-0b9d-eb8f99674f4e
    Web Dynpro: ABAP or Java?
    Regards
    Sreedhar.

  • Web Dynpro Java timesheet to Web Dynpro ABAP timesheet  what changes needs to be done from EP side

    Hi All,
    We are moving Web Dynpro Java timesheet to Web Dynpro ABAP timesheet.
    what changes needs to be done from EP side?
    I have made Web Dynpro ABAP iView calling Web Dynpro ABAP timesheet and linked it with page.
    But It is showing an error 'Web Dynpro Application CATDATARECORD does not exist'.
    Please suggest what other changes needs to be done.

    Hi Anurag,
    I have added new Web Dynpro ABAP iView to the same page in which Web Dynpro JAVA iview was added and made ABAP iview visible.
    And this page is already assigned to role.
    How should I link this ABAP iview so that it get replace by the Web Dynpro JAVA iview.
    And the  application name (CATDATARECORD) is correct and Web Dynpro JAVA is using the same application.
    But now we want new time timesheet for that what changes needs to be done?
    Please suggest.

  • Just upgraded to FF 12 from FF 3.6 and most of my favicons are now dotted line squares. Any way to get the favicons associated with each web site to load?

    Just upgraded to FF 12 from FF 3.6 and most of my favicons are now dotted line squares. Any way to get the favicons associated with each web site to load? I've seen some suggested code to add but I'm not web code savvy. Thanx!

    The CheckPlaces extension can restore favicons. It is also great for checking bookmarks to ensure that they are still valid.
    * https://addons.mozilla.org/en-US/firefox/addon/checkplaces/

  • Uitableview grouped style-is there any way to get section background color

    hi all,
    So far i have tried myself and searched everywhere but didnt figured out that is there any way to get section background colors different for each sections in grouped style tableview.
    If anyone has tried something to get such thing would really be helpful to me.
    Thanks,
    C.P.

    Have you tried this? [http://stackoverflow.com/questions/813068/uitableview-change-section-header-co lor]

  • I have an 06' macbook and I just bought an 07' macbook.. The 06' has os x 10.6 but the 07' has 10.5.. I no longer have the disk for snow leopard. Is there ANY way to get snow leopard from the old computer to the other without having to buy it again?

    I have an 06' macbook and I just bought an 07' macbook.. The 06' has os x 10.6 but the 07' has 10.5.. I no longer have the disk for snow leopard. Is there ANY way to get snow leopard from the old computer to the other without having to buy it again?

    Technical issues aside, there's still a legal issue.
    Neither 2006 nor 2007 MacBooks shipped with Snow Leopard 'factory' installed. OS X 10.6 Snow Leopard became available in September 2009. So you purchased and installed a Snow Leopard upgrade disc on the 2007 system at some point.
    If your Snow Leopard upgrade was a single-user copy, then legally, you need to purchase another one for the second computer. If your Snow Leopard upgrade was a Family Pack 5-user license, then you're good to go.
    http://store.apple.com/us/question/answers/product/MC574Z/A?pqid=QTUXD7AF4YU9FJD YUTDPCKYKUDDDXKHTK
    If you have an active MobileMe account, Apple was giving away a single-user upgrade copy of Snow Leopard for a limited time, and you should have received an email with a link, or been offered the opportunity when you signed in to your MobileMe account on the web:
    http://www.macrumors.com/2012/04/24/free-snow-leopard-discs-for-mobileme-users-n ow-arriving/
    Worst case, single-user Snow Leopard upgrade discs are $29 retail, direct from Apple. I'd hate to have two computers and no OS installation CD's for whatever version I'm currently using.

  • Is there any way to get the appStore link for my application

    Hi everyone , i am developing an app which has a feature of sharing its appstore link with the friends through mail,so that they can see my appplication in appstore and buy it directly on click of a button. For that i need to use the app store link of my application for sending it . is there any way to get that and using it dynamically in my app immediately after releasing it.

    Your best bet would be to create a web page of your own for the app. Design that page so that it uses 'META REFRESH' to redirect the visitor straight to the App Store link.
    That way you can hard-wire your own web page address into your app.
    This has the advantage that it can work well even before you've noticed that your app has arrived on the App Store. Create a real web page, describing the app and telling people to search for it in the App Store by name - then replace it with the auto-redirect page when you've discovered your application's App Store address.

  • Any way to get prior (non-iOS 6) version of iMovie?

    Just saw a demo of iMovie and really liked it. I headed to the iTunes app store and was seriously disappointed to find that I could only use iMovie if I updated to iOS 6. That isn't going to happen. I use Google Maps every day and will switch to an Android based system before I will upgrade to iOS 6.
    So, is there any way to get the prior verion of iMovie that works on iOS 5.1.1 or is Apple just trying to force people to downgrade to iOS 6? My guess is the latter.
    Thanks
    David

    @hpr : I was running the dev version because it provided a LOT more stability with Chrome/Flash (while I waited to receive my "free upgrade to mountain lion" email from apple), and it also addressed the Retina font-rendering issues. Latest official Chrome release was super crashtastic for me -- multiple kernel panics daily. Apparently this is/was An Issue for the new rMBP + Chrome + Flash. Honestly, though, this thing reboots so freaking fast it wasn't even *that* much of an issue.
    Finally jumping to Mountain Lion right now...hopefully that'll stabilize things. If not, back to the dev version I go. Chrome has spoiled me - I just can't deal with Safari anymore.
    @Justan : Yeaaaaah, I figured that out after I installed it. Ah, well.

Maybe you are looking for

  • Win XP Pro x64 and DB 15 game p

    Hello All,here is what I posted on the :[color="#8008">[url="http://microsoft.public.windowsxp.help_and_support">micro soft. public.windowsxp.help_and_support[/url]?Besides many gamers who have custom joysticks and hardware which are not supported by

  • Where can I get an old version of iTunes

    I have a problem with iTunes 6 preventing me from connecting to the internet through a router. To overcome this problem I have tried uninstalling iTunes 6 and re-installing the version (3.x) which came with my iPod. However, this version does not all

  • Speaker Recommendations For iPhone 4

    Hi guys, I am sure this question has been asked countless times but I still would love some input. I want to get a speaker set for my iPhone 4 and iPod Touch and this would be my primary music system. My budget is around 400-500USD and since I am in

  • Command requires GPIB Controller to be Controller in Charge

    I downloaded the labview driver HP428XA, the 'getting started.vi' works fine, but all other example application vi's keep giving me the following warning: 'Warning 1 occurred at VISA Read in HP428XA Fetch.vi->HP428XA Frequency Step Measurement .vi. P

  • How to make a long  horizontal bar absolutely level horizontal? (Or vertica

    How can I ascertain that a long horizontal bar that I am placing on a page is absolutely horizontal and not at all tilting right or left? At this point I want the checking to be done with the Metric Inspector and the click toggles. Lorna in Southern