How can I forward a request from to another servlet?

If I would like to forward a request from a servlet to another one, but they are not located in the same machine.
Could I use the following code to do it?
getServletConfig().getServletContext().getRequestDispatcher("XXXXX").forward(request, response);

You can not do a forward to a servlet on a different server. You can do a redirect and put any parameters you want to pass in the url. If you are using JSP you may bve able to use the JSTL include tag, again passing the parameters in the URL. You could use the URLConnection or HttpURLConnection class to open a connection to the servlet, make a request, get the response and the return the response to the client.

Similar Messages

  • How to transfer the http request from applet to servlet/jsp

    I use the JTree component to create a navigation of a website,but i don't
    know how to connect the tree's nodes with the jsp/servlet.
    I mean how to transfer the http request from the applet to a jsp.
    I use the "<frameset>" mark which will divide the web browse into 2 blocks.
    The left side is Applet,and the right side is the linked jsp page.
    what I say is as the weblogic console layout.
    who can help me!!!
    Thank You!

    I use the JTree component to create a navigation of a website,but i don't
    know how to connect the tree's nodes with the jsp/servlet.
    I mean how to transfer the http request from the applet to a jsp.
    I use the "<frameset>" mark which will divide the web browse into 2 blocks.
    The left side is Applet,and the right side is the linked jsp page.
    what I say is as the weblogic console layout.
    who can help me!!!
    Thank You!

  • How can we forward XML document from Routing Engine to Mapviwer!!!

    Does anyone try to forward XML document from routing engine to Mapviwer. Like spatial coordinate system from Routing engine. Could you help me how to accomplish this problem. Thank much much....

    Just open an HTTP connection to MapViewer's server url (ususally http://host:port/mapviewer/omserver) and send an XML map request to it using POST. You can do that from any language that supports such a connection.
    Inside the xml map request you can attach the routing result (a series of coordinates i imagine) as dynamic geo-features. You can also specify any base map/layer information in the xml map req provided you have defined such map/themes. DTD of mapviewer's map req is in the Users Guide, which is on OTN site mapviewer http://otn.oracle.com/products/mapviewer.

  • How can i forward a request one jsp to another jsp?

    as per my knowledge
    using jsp action tags that forward and include
    and first loaded the ServletContext objects and retriving that context objects...
    so i want one more any otherway can u help me?

    sreeman wrote:
    as per my knowledge
    using jsp action tags that forward and includeThe <jsp:forward> indeed forwards the request. The <jsp:include> doesn't.
    and first loaded the ServletContext objects and retriving that context objects...I don't get you?
    so i want one more any otherway can u help me?Why do you want that?
    There is a dedicated subforum for JSP and Servlets. For future JSP or Servlet related questions please make use of it.
    JSP and JSTL: http://forum.java.sun.com/forum.jspa?forumID=45
    Servlets: http://forum.java.sun.com/forum.jspa?forumID=33

  • How can I know the request is come from the link in header in the filter?

    I am using the tile for layout management and each page has a header, menu, and content body. I want to do something at the filter If the request is come from the commandlinks in the header and menu.
    How can I know the request is come from the link in header in the filter?

    Basically all you have to go on is the request data. Examine the encode/decode requirements for commandLink; you may be able to determine from the request attributes which commandLink has been invoked.

  • How can i send xml file with a http servlet request

    Hi
    Please tell me how can I send a xml file into http servlet request.
    I have a servlet(action) java file.From this servlet I have generate a xml file. Now I need to send that xml file to another servlet with http servlet request object.
    Dave.

    When you say you have generated an XML file what do you mean?
    Is it a file stored on disk? Then pass the file path as a string to the servlet.
    Is it stored in memory as an object? The pass a reference to the object to the servlet.
    Or are you asking how to communicate between servlets?
    Look in the JavaDocs for the RequestDispatcher class. You can use this class to forward the request to another servlet. Data can be passes using the RequestDispatcher by storing it as attributes using the request getAttribute and setAttribute methods. Also described in the JavaDOcs.
    http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/RequestDispatcher.html

  • How can I buy a film from an ohter store?

    How can I buy a film from an ohter iTunes store?
    I have an Austrian Apple ID and want to buy something from Germany iTunes Store because in the Austrian store you won't get it.
    I look forward to hearing from someone!

    You can only buy content from your own country's store - to be able to buy from the German store you need a valid German billing address and be in Germany when buying from it.  You can try requesting that the film be added to the Austrian store, but ultimately it's the film studio that will have to grant Apple a license to sell it there : http://www.apple.com/feedback/itunes.html

  • How to submit a concurrent request from Discoverer report.

    I would like to know If any one has tried submitting a concurrent request from Discoverer Report?_
    This is no stupid question, but our team here finally decided with a solution to our long pending issues with few of the discoverer report. To Proceed further, we would like to know, how to submit a concurrent request from Discoverer report?
    We are looking for calling a package from the Disco admin by passing the parameters from the disco to the 6i report.
    All help us in this regards are much appreciated.
    Kindly help us in the same!
    Thanks
    Arun

    Thanks Rod for confirming the same.
    I will be trying the same today and will let you know if I succeed in doing it.
    If I can share the actual requirement with you, it goes like this.
    "I will be triggering the Oracle 6i standard AP Trail balance report through the Disco report. The standard report will be inserting the required data to one of my custom table. Once the concurrent program completes normal, my custom table will be having the required data to create the workbook specific to the current run of the concurrent program.
    The one problem which I think could happen is, How can I make my disco report to wait till the standard program to complete in normal so that my disco report can be generated with the data from custom table.
    Will the above requirement is possible If I follow the way you mention in the PDF or Could you suggest a better way for achieving the same.
    In short, my requirement is: The custom table(say XX_TABLE) will be populated with data when the standard 6i report is run and the disco admin will be making of the custom table (XX_TABLE) to generate the report.
    Please advice.
    Thanks
    Arun

  • How can I forward an e-mail document on adobe

    I want to know how can I forward a e-mail document from adobe and I saved the document called Princess Pink but cannot find it. two questions need answer

    Hi Ohtigers
    Is your document a PDF?
    Did you have it open in Reader or Acrobat Prod?
    Can you log into https://files.acrobat.com/ and search for your document?
    If your document is a PDF, you can open it in Adobe Reader and you can send the file using Adobe SendNow
    Select 'Tools' from the top bar
    In the right hand panel select 'Send Files'
    Click on  'Sign In' - you will be prompeted to enter your Adobe ID and password
    Enter an email address into the To field
    Option: Fille out the Subject and Message fields
    Select Send Link button

  • How can i download an app from iTunes store, that exists just in a "swiss store". Because my account isn't allowed to download apps from other stores than a slovene. ???

    how can i download an app from iTunes store, that exists just in a "swiss store". Because my account isn't allowed to download apps from other stores than a slovene. ???

    You have to be in a country, and have a billing address in that country, to download from its store. You can try requesting that the app be added to the Slovenia store, but unless the app's developer/rights-holder agrees to it then Apple won't be able to sell it there : http://www.apple.com/feedback/itunes.html

  • How to delete a single request from DSO in BI 7.0

    Dear Experts,
    Could you please tell me how to delete a single request from DSO?
    I mean, in DSO if we delete one request it also delete the requests which are above it. But i don't to delete the above it.
    Please suggest me this issue.
    Regards,
    Prathap

    IN DSO--its a very basic thing....
    ACTIVE TABLE and CHANGELOG tables are overwritten after activation of each request.
    So ,each new request has a realationsip with the older request.
    So in the cases:
    1.If you activate the older request it will delete the new one ,because changelog entries have been written from the data of new request on the basis of the older one.
    e.g older request  entries:
    a x 1
    new request
    a x 2
    change log
    a x 1
    a x -1
    a x 2
    so its quite obvious you can't have  a x 2 directly (because in the infocube you will be sending wrong entries by deleting the just the older request and loadning new request).
    2.If you have activate new and old request toghterh then also system will not allow you to delete the newer request alone and you will have to delete both the requests.
    I guess already someone proposed correct solution to you ...thats selective deletion...but rahter than doing selective deletion there is a better way if you want to cancel out a particular request:
    thats request reverst posting
    IN the process monitor of any particular request you can find out the option for request reverse posting..Its good for individual request cancellation(keyfig values will become 0 for that particular request)
    regards,
    rk

  • HT204053 How can I transfer my apps from one account to another

    How can I transfer my apps from one account to another

    Apple will not permit transfer of applications from one account to another. Suppose your mom has presented an iPad to you and before presenting she has downloaded some Apps with her account. If you want to update those Apps, you must know her pass word or send the iPad to her and request her to update and give back. If you feel it is time consuming and difficult, the best way is purchase new iPad and down load  the latest version of App. Whenever you come across you go on purchasing new iPad. This will help you to have latest version of iPad with you.
      Ramanujam, Hyderabad.

  • On AOL, how can I forward an e-mail using my contacts

    I am no longer using AOL's web site, but was told to get to AOL thru Firefox. How can I forward my e-mails? When I hit "forward" the e-mail appears, but when I hit my "contacts, (so I can insert e-mail addresses) the e-mail is gone and now is in "old" mail

    Hi Ohtigers
    Is your document a PDF?
    Did you have it open in Reader or Acrobat Prod?
    Can you log into https://files.acrobat.com/ and search for your document?
    If your document is a PDF, you can open it in Adobe Reader and you can send the file using Adobe SendNow
    Select 'Tools' from the top bar
    In the right hand panel select 'Send Files'
    Click on  'Sign In' - you will be prompeted to enter your Adobe ID and password
    Enter an email address into the To field
    Option: Fille out the Subject and Message fields
    Select Send Link button

  • How can you move the objects from one server to another?

    how can you move the objects from one server to another?

    Hi,
    Collecting objects for Transporting
    1. rsa1->transport connection
    2. left panel choose 'object type', middle panel choose 'infocube' and 'select objects'
    3. then choose your infocube and 'transfer'
    4. will go to right panel, choose collection mode 'manual' and grouping only 'necessary objects'
    5. after objects collection finished, create request
    6. If they are $TMP, then change the package.
    7. When you click the Save on the change package, it will prompt for transport. Here you can provide an existing open transport request number, or if you like here itself you can create a new one.
    8. You can check the request in SE09 to confirm.
    Releasing Transport Request  
    Lets say you are transporting from BWD to BWQ
    Step 1: In BWD go to TCode SE10
    Step 2: Find the request and release it (Truck Icon or option can be found by right click on request #)
    Note: First release the child request and then the parent request
    Steps below are to import transport (generally done by basis )
    Step 1: In BWQ go to Tcode STMS
    Step 2: Click on Import queue button
    Step 3: Double Click on the line which says BWQ (or the system into which transport has to be imported)
    Step 4: Click on refresh button
    Step 5: High light the trasnport request and import it (using the truck icon)
    Transport
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/1d733b73a8f706e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/224381ad-0701-0010-dcb5-d74236082bff
    Hope this helps.
    thanks,
    JituK

  • Somebody uses my apple id for facetime on his iphone how can i remove his phone from my account?

    somebody uses my apple id for facetime on his iphone how can i remove his phone from my account?

    Last Spring I received a couple of emails to an alias I set up a long time ago under mac mail with mac.com - not my main ID - at mac.com.   The mail had the Icloud extension.     I just deleted it.
    I then received a couple of e-mails forwarded to the same alias that came from a non-apple account that led me to search to see if the company was legit - it was.     Using a non-apple hidden account I sent that non-apple account an email informing them apparently when they registered the ID or alias as an ICLOUD extension - apple did not check for duplication in accounts or aliases that were not in the Icloud.
    I also sent feedback to Apple telling them to fix it and apparently they did - along with the person who replicated my alias.
    On this site there were a number of postings from people who also had problems with mac mail and Icloud who resolved it by contacting Apple and getting the accounts cleared up.

Maybe you are looking for

  • How to test a generated report in my application by using web test written with Visual Studio 2012 Ultimate

    Hello, My application generates report in different formats, such as: Adobe, Excel, XML, CSV and HTML I have a webtest that makes all preparations, then generates a report.  In my application I have an option either to save the new generated report o

  • Clearing thru TC-F-03

    dear all, i want to clear 5000 nos. of documents thru F-03.these documents are not in sequence. So i can not use from- to of documents & as per the standard maximum 15 individual documents can be selected at a time.Can we add Multiple selection tab l

  • Need soultion for this?

    hai friends,          i am doing flexcoldfusion project. now i reterive data(notpad or worddoc or pdf file path) from database using coldfusion.now i want to save that file in my desktop .if i reterive notpad file .that will save  notpad format. if i

  • Trading Partner Directory

    Hi, We are configuring Supplier Collaboration 2.0 business package in the portal. We are following the installation guide "Inst. & Config. Guide: BuPa for Supplier Collaboration 60.1", We facing problem while configuring Trading Partner Directory (TP

  • How to pass an array to a procedure & how to use array in IN clause in SQL

    Hi all, how do i pass an array of varchar2[10] in an procedure and i want to use this array in the IN caluse of the SQL statement inside the procedure. Can anyone please help me on this. Thanks & regards shyam~