How to return a "HttpServletResponse" for generic servlets (please Help me)

I have a servlet that do a call service to another machine( the service
          can be so different), and I would like to know if there is possible to
          return to the client the "servletresult" in the "httpservletresult" or
          something
          similar("servletresult" is a class of "bea.jolt". and I utilizes for
          conectivity with TUXEDO).
          I am doing the call to the servlet in an application java(via URL and
          parameteres), not in browser.
          I don´t know which are the parameters to return , and i would like to
          manipule these parameters in the client. So, i want don´t use
          "getParameterValues" of "servletresult".
          I would like to return a object java. It is like to say that the result of
          the service call ("servletresult") is passed directly to the
          "httpservletresponse" and not pass every parameter (read by name ) between
          "servletresult" and "httpservletresponse".
          Thanks
          

I have a servlet that do a call service to another machine( the service
          can be so different), and I would like to know if there is possible to
          return to the client the "servletresult" in the "httpservletresult" or
          something
          similar("servletresult" is a class of "bea.jolt". and I utilizes for
          conectivity with TUXEDO).
          I am doing the call to the servlet in an application java(via URL and
          parameteres), not in browser.
          I don´t know which are the parameters to return , and i would like to
          manipule these parameters in the client. So, i want don´t use
          "getParameterValues" of "servletresult".
          I would like to return a object java. It is like to say that the result of
          the service call ("servletresult") is passed directly to the
          "httpservletresponse" and not pass every parameter (read by name ) between
          "servletresult" and "httpservletresponse".
          Thanks
          

Similar Messages

  • How to return a httpservletresponse for generic servlets II

    I have a servlet that do a call service to another machine( the service
              can be so different), and I would like to know if there is possible to
              return the "servletresult" in the "httpservletresult" or somethiing
              similar,because
              I don´t know which are the parameters to return , and i would like to
              manipule these parameters in the client. So, i want don´t use
              "getParameterValues" of "servletresult".
              I would like to return a object java. It is like to say that the result of
              the service call ("servletresult") is passed directly to the
              "httpservletresponse" and not pass every parameter (read by name ) between
              "servletresult" and "httpservletresponse".
              Thanks
              

    I am not sure if I am answering your question fully but here goes:
              I have a pack of utilities that I use for handling servlet requests.
              One of them helps to transform an HTTPRequest object into a HashMap.
              The objective was to make the processing as web-independent as
              possible. So what you get is a generic java object which has all the
              data of the HTTP Request. You can use it any way you want. I am
              attaching the code below. It does the basic job but pls remember that
              it was designed for a slightly different purpose:
              * Converts an HTTPServletRequest object to an equivalent HashMap
              public boolean mapRequest(HttpServletRequest req, Map input)
              try
              Enumeration reqEnum = req.getParameterNames();
              String keystr;
              String valstr;
              while(reqEnum.hasMoreElements())
              keystr = (String)reqEnum.nextElement();
              valstr = req.getParameter(keystr);
              input.put(keystr, valstr);
              return true;
              catch(Exception e)
              return false;
              oscar alarcon wrote:
              >
              > I have a servlet that do a call service to another machine( the service
              > can be so different), and I would like to know if there is possible to
              > return the "servletresult" in the "httpservletresult" or somethiing
              > similar,because
              > I don´t know which are the parameters to return , and i would like to
              > manipule these parameters in the client. So, i want don´t use
              > "getParameterValues" of "servletresult".
              > I would like to return a object java. It is like to say that the result of
              > the service call ("servletresult") is passed directly to the
              > "httpservletresponse" and not pass every parameter (read by name ) between
              > "servletresult" and "httpservletresponse".
              >
              > Thanks
              

  • How to create authorisation object for save button please help in abap

    how to create authorisation object for save button please help in abap

    Hi
    In general different users will be given different authorizations based on their role in the orgn.
    We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
    USe SUIM and SU21 T codes for this.
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
    To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
    Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
    You program the authorization check using the ABAP statement AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    'S_TRVL_BKS' is a auth. object
    ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
    The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
    This Authorization concept is somewhat linked with BASIS people.
    As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
    Take the help of the basis Guy and create and use.
    Regards
    ANJI

  • How to use the LAN NetStream for peer transmission, please help, write a sample code

    How to use the LAN NetStream for peer transmission, please help, write a sample code

    No reply, I reply, Oh

  • How many certificate in needed for push notification please tell me all steps ?

    how many certificate in needed for push notification please tell me all steps ?

    Your System Details shows;
    Installed Plug-ins
    Garmin Communicator Plug-In 4.0.4.0
    Garmin Communicator Plug-In 4.0.3.0
    Having more than one version of a program may cause issues.

  • I have two children both have ipods and my wife and i both have iphones. how do open up a seperate library for each device. please help i hate itunes at the moment

    We have four apple devices and one home cmputer how can i have a seprate itunes library for each device. please help!!!!!!!!!!!!!!!

    How to use multiple iPods, iPads, or iPhones with one computer

  • Welcome. At the outset, I'm sorry for my English :) Please help with configuration Photoshop CS6 appearance. How to disable the background of the program so you can see the desktop. (same menus and tools) Chiałbym to be the same effect as CS5.

    Welcome.
    At the outset, I'm sorry for my English
    Please help with configuration Photoshop CS6 appearance.
    How to disable the background of the program so you can see the desktop. (same menus and tools)
    i wantto be the same effect as CS5.

    Please try turning off
    Window > Application Frame

  • HT3630 How to creat an app-enabled accessories for iPhone? Please help me to get an answer..

    How to creat an app-enabled accessories for iPhone? Please help me to get an answer..

    To get hardware interfaces and API's via hardware you
    need to join the MFi program.  That info is here:
    https://developer.apple.com/programs/mfi/
    To get the additional software to be able to download
    and test code on any iDevice, you must join the
    iOS Developer Program.  That info is here:
    https://developer.apple.com/programs/ios/
    Both programs require fees and NDA agreements,
    especially hardware as most vendors that supply
    components development tools will not sell you any
    of their tools unless you are a member of the MFi
    program.

  • How use set up with office 2011 for mac as I did keep tried put download but it's always 'update' download. I want get start set up new office 2011 for mac? please help me

    how use set up with office 2011 for mac as I did keep tried put download but it's always 'update' download. I want get start set up new office 2011 for mac? please help me

    You must be using an update CD.  You need the software that has the full version first - install that, then you can use the update one if needed. I know, cuz I made the same mistake - lol

  • Activation Problem..i Have Registered for the devolopers account and also paid 99 dollars. how do i open my iphone now? please help. this is urgent!

    this morning my iphone showed up a activation problem then it told me to go to devoloper.apple.com and register for the ios developer program.. it costed me 99 dollars. but i did it.. just a moment ago.. how do i access my iphone now? please help me this is real urgent.

    this in my problem too apple say : ur request is pending now and it did not activated yet !    ?  
    what should i do?

  • HT204053 I have two Apple ID's. How do I delete one of them? Please help. Thank you. Dru

    I have two Apple ID's. How do I delete one of them? Please help. Thank you. Dru

    To add to the above...
    From Here   http://support.apple.com/kb/HE37
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.

  • I down loaded about 100 cds to my library and I can no longer view the downloaded artwork it's shows a black picture or blank. How can I get the artwork back? Please help! Thank you

    I downloaded about 100 cds to my library and I can no longer view the downloaded artwork it's shows a black picture or blank. How can I get the artwork back? Please help! Thank you.

    Hi- apparently I also had a similar moment of madness and thought that 'freeride games' would be fun. Well, so much for that! It added a ton of things to my tool bar, I would like to uninstall it, any suggestions for this one?
    thanks :)

  • HT201363 Hello I forgot my Security question of my Apple ID ? I don't kow what should I do and how to solve this problem ? could you please help  ?

    Hello I forgot my Security question of my Apple ID ? I don't kow what should I do and how to solve this problem ? could you please help  ?

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (104569)

  • My I phone 4 fall from my hand and screen broke. Can I replace my I phone 4 from Apple Store ? How much it will cost in Dubai ? Please help with information.

    My I phone 4 fall from my hand and screen broke. Can I replace my I phone 4 from Apple Store ? How much it will cost in Dubai ? Please help me with the information.

    I'm assuming you can..now I don't know the prices for your area, you'll have to check around, I just did a quick web search and I'm pulling all sorts of prices up, I'd look into a repair facility near you and see what they can do for you :-) shouldn't be too expensive though! Good luck!

  • As an elderly rookie, I don't know how to download, install, & activate this software. Please help!

    I bought this but do not know how to download, install, and activate it. Please help!

    Let's start with the basics. Adobe have a baffling number of choices.
    1. What is your computer system? For example, Windows 7, Mac OS Yosemite
    2. What exactly are you trying to download and install? If you paid for it, check your receipt for the exact name.
    3. Did you pay for it already? If so did you subscribe or get a one time purchase?

Maybe you are looking for

  • Problem with minimize and maximize of the AIR WIndow

    If I execute the below code I will get an window with 100 buttons. With vertical scrolling on. If I bring the vertical scroll down say positioned at some button. Minimize it using minimize button and maxmize it . The vertical scroll position is reset

  • How can I prevent my iPhone4 from opening the 'next' e-mail when I delete an e-mail?

    Subject says it all. When viewing an e-mail, I delete it. Rather than just going back to the list of e-mails, my iPhone opens up another unread e-mail (seems to sometimes open a newer one, and sometimes an older one). I don't want it to do that.

  • Safari 5.1 for Windows no longer connects to the internet. Anyone else see this?

    I'm typing this from Firefox on the same Windows XP Pro machine which watching Safari in an infinite "connecing to www.apple.com" window. I've been using Safari on this same machine for over three years. Todays Safari update killed it.

  • How to create a folder with spaces written in Java under Linux?

    Hello, I have a serious problem I want to run a Linux command using a Java class with the runtime interface, there is a command to create a folder named eg "My Folder", with a space For create the Unix command is easy to do either: mkdir My\ Folder o

  • Drops audio attachments for mms

    Hi, I've got an 8330 and here's the problem I can send pictures and ringtones to alltel users (*whose network I use) fine, but verizon, I can only send pictures via mms. If I try to send a ringtone, it drops the attachment. Any suggestions? I've trie