How do you launch browser from a servlet

I have an interesting issue here. I send data to a servlet and the servlet recieves and processes the data (confirmed through breakpoints) but I want to display the data in a JSP or directly thru the servlet using html tags.
However I can forward or redirect the data from the servlet to my jsp code but this still doesn't launch a browser.
A little more detail... I am not sending information from a JSP to the servlet. The servlet is listening on a port for input, so the servlet is being invoked directly when the data comes in. In the current state my servlet sends the results in a session object to a JSP which gets the results but can't display them since it doesn't launch browser.
Does anybody know how to display my calculated results from the servlet in a browser?

Ok let me try to be more specific. I have an application that sends data to the servlet over a socket connection. The servlet gets this data and multiplies it by a factor.
When I put break points in, I see that the servlet gets this data.
Now I am trying to display the data in a browser.
Upon entry to doGet the servlet checks if the String variable that gets the parameter is not null. If it is not null then it forwards to a JSP.
But I tried a scenario where I have a browser open that has the localhost address of the servlet and then I run the program which is outside the war file that contains the servlet to send data to the servlet, but when the servlet gets the data, it does the forward to the JSP but the page is not displayed. However I see the process move to the JSP thru the break points I put in.
I know its kind of a weird scenario but I suspect that since the program calls the servlet and it gets the data, it must need to launch a new browser in order to be able to display the JSP it forwarded to.
I could be wrong but so far I have exhausted all possible ideas in my head for now so if you understand what I am saying perhaps you can tell me if you know a better way to do this...
Thanks

Similar Messages

  • How do you launch apps on your device when it keeps saying my device was not known any advice?

    How do you launch apps from your device mine being a Macbook pro?

    Hi TammyPruett,
    I apologize, I'm a bit unclear on the exact issue you are describing. If you are having issues launching applications on your Mac, you may find the following articles helpful:
    Mac OS X: How to troubleshoot a software issue
    http://support.apple.com/kb/ht1199
    Apple Support: Troubleshooting the Mac App Store
    http://support.apple.com/kb/ts3624
    Regards,
    - Brenden

  • How do you launch an app from a shell?

    how do you launch an app from a shell?  how about an example... say, launch the texteditor app.

    To open an app from the terminal use the command open followed by the fullpath pf the command.
    So for TextEdit you would enter
    open /Applications/TextEdit.app

  • How does google work out what country you are browsing from?

    Hi,
    Does anyone know how sites like google know what country you are browsing from and automatically forwards you to the local country site? I would like to do something similar with an ApEx application I am writing, showing country-specific things without prompting the user for their country.
    Thanks,
    Bill
    Message was edited by:
    user497072

    Google for keywords like geolocation IP address
    See
    http://linuxjournal.com/article/7856
    Read all the comments people have written for that article, they are very informative.
    I found http://www.dnsstuff.com/tools/city.ch to be uncannily accurate!
    See http://www.ip2location.com/

  • Launching Browser from Swing Applicaton....

    Hi,
    i am launching browser from my swing application.While opening HTML file, always the HTML file goes behind the application.Everytime i have to maximize the html file window.
    i want the HTML file to come up in front of the swing application.
    any help please ??? itz very urgent.....
    Thanks in advance.
    Manikandan

    Browser Utility - Class to launch a URL in a web browser in
    a platform independent manner. Includes an optional swing
    GUI allowing user customization. [Open Source - GPL]
    http://ostermiller.org/utils/Browser.html
    BrowserLauncher - Open the system web browser with
    particular attention paid to various Macintosh systems.
    (Freeware)
    http://browserlauncher.sourceforge.net/
    Java World - With a little platform-specific Java code, you
    can easily use your system's default browser to display any
    URL in Windows or Unix.
    http://www.javaworld.com/javaworld/javatips/jw-javatip66.html
    JConfig - Class Libraries that allow a URL to be launched in
    a browser on Windows, Unix, or Macintosh. [Commercial]
    http://www.tolstoy.com/samizdat/jconfig.html
    Apple - MRJFileUtils.openURL() not implemented in Mac OS X.
    http://developer.apple.com/techpubs/macosx/ReleaseNotes/JavaGMWebReleaseNotes.html#MRJToolkit
    Apple - How one would open a URL in a web browser on a
    Macintosh.
    http://developer.apple.com/qa/java/java12.html

  • How do I launch report from menu using RUN_REPORT_OBJECT?

    Hi all,
    Re: How do I launch report from menu (and have it print to the screen) using RUN_REPORT_OBJECT?
    I am using Oracle 9iAS on Windows 2000 and I have a similar problem with launching reports from the menu. The application should call the report via the RUN_REPORT_OBJECT builtin feature from Forms. The report is never displayed.
    The report is in the same folder as the menu form calling it. Do the reports have to be in a specific format? How do I get the report_id?
    The name of the report is seconds_calls. No user-specified parameters are passed. Also, the report object in the object navigator in Forms is Report4 (is this relevant?)
    When I try to run report via the form using this code:
    DECLARE
         report_id REPORT_OBJECT;
         rep_status VARCHAR2(200);
         v_rep VARCHAR2(100);          
         report_job_id VARCHAR2(200);
    --     job_number NUMBER;
    --     server_name VARCHAR2(200) := 'repserver';
    BEGIN
         report_id:= FIND_REPORT_OBJECT('seconds_calls');
         rep_status:=REPORT_OBJECT_STATUS(report_job_id);
         v_rep := RUN_REPORT_OBJECT(report_id);
    END;
    I get this error message:
    FRM-41219 Cannot find report:Invalid ID
    And this message
    FRM-40738 Argument 1 to builtin RUN_REPORT_OBJECT cannot be null
    When I tried to use the same code (above), substituting the object name for the form name,
    I got these messages:
    FRM-41219 Cannot find report:Invalid ID
    FRM-40738 Argument 1 to builtin RUN_REPORT_OBJECT cannot be null
    And FRM-10259 Invalid null argument to packaged procedure or function (???)
    Any ideas?
    Cheers,
    Pippa

    Philippy,
    substr(v_rep,instr(v_rep,'_',-1)+1)
    This code extracts the Reports job id from the Reports Server name. The run_report_object() built-in
    retrieves e.g. RepServ_9 as a job id, but in Reports9i you only need the '9' as a value to retrieve the
    output.
    Use the following sample a template. It is a procedure that expects the reports object name, teh reports server name and the
    output format as an argument. The call to Web.show_document expects the ReportsSrevices to be accessible from teh same server
    (relative addressing is used)
    PROCEDURE RUN_REPORT_OBJECT_PROC (vc_reportobj Varchar2, vc_reportserver varchar2, vc_runformat varchar2) IS
    v_report_id           Report_Object;
    vc_ReportServerJob      VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status      VARCHAR2(100); /* status of the Report job */
    vjob_id               VARCHAR2(100); /* job_id as number only string*
    BEGIN
    /* Get a handle to the Report Object itself. */
    v_report_id:= FIND_REPORT_OBJECT(vc_reportobj);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    /* Define the Report output format and the name of the Reports Server as well as a user-defined parameter, passing the department number from Forms to the Report. We don't need a parameter form to be displayed, and therefore paramform is set to "no". */
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT, vc_runformat);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, vc_reportserver);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,      'p_deptno='||:dept.deptno||'paramform=no');
    vc_ReportServerJob:=RUN_REPORT_OBJECT(report_id);
    /* remove the Reports Server name from teh job id */
    vjob_id := substr(vc_ReportServerJob,length(reportserver)+2,length(vc_ReportServerJob));
    /* Check the report status if finished. */
    vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
    IF vc_rep_status='FINISHED' THEN
    /* Call the Report output to be displayed in a separate browser window.
    The URL for relative addressing is only valid when the Reports Server
    is on the same host as the Forms Server. For accessing a Remote Reports
    Server on a different machine, you must use the prefix http://hostname:port/ */
    WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid '||vjob_id ||'?server='vc_reportserver,'_blank');
    ELSE
    message ('Report failed with error message '||vc_rep_status);
    END IF;
    END;
    Frank

  • How to call a Applet from a servlet and vice versa...?

    Hi all
    Can anyone help me how to call a applet from a servlet and vice versa. When the applet is called it should contact the database (oracle8i) and get the data. When i submit the applet form the data in the applet should be saved in the database.
    Thanks in advance
    Kamalakannan

    Sweep is correct about requestDispatcher being another approach for inter-servlet delegation; the only issue that i recall with this approach is that it defaults the method of the destination servlet to the one it was called from...for example, calling servlet2 from within servlet1.post() resulted in the dispatcher attempting to utilize servlet2.post() - i believe that i searched for a parameterize solution to no avail :( (ended up handling the request by placing a "fake" doPost() in servlet2 that simply called servlet2.doGet())
    however, if your application is functioning correctly on your pc/webserver then the problem may be external to servlet communication (e.g. client webserver's ports not configured or blocked, missing runtime classes, etc.)
    my suggestion would be to set aside the programmatic concerns for the moment - what is the response if you open a browser on a client's machine and access the URL in question (i.e. http://clientserver:port/stefanoServlet)? If it will not respond to access in this manner then it certainly won't when your application calls for it.
    It's possible that there is a coding error but, given the info supplied, i'd start examining the environment, first. Let us know if you have any luck with the test i recommended or not (please provide abundant detail). Or, if you've found the solution then you may want to post back with a quick blub so the next person knows how to escape the trap.
    D

  • How do you save photos from import or Photo Stream to an album?

    How do you save photos from import or photo stream to an album?  I have a MacBook Air (which keeps telling me my start-up disk is full) and I am trying to organize photos so there aren't duplicates and triples.  I have photos in events, last import, photos and albums....I feel like they are all taking up space.  If I move a photo from photo stream to an album, then delete the photo from photo steam its deleted from the album.  That doesn't make sense to me.  There should be a way to clean up photo stream, and events, and last import by putting photos into albums.  Even more bizarre; I imported photos from my 4S, and only a fraction of them transferred over. 
    I am completely lost.  Any help would be appreciated.
    Thank you!
    sarah

    and I am trying to organize photos so there aren't duplicates and triples.  I have photos in events, last import, photos and albums....I feel like they are all taking up space.
    Sarah,
    Only the photos you are seeing in the events and the Photo Stream will take up space. iPhoto stores each photo only one. After you import it, it will be assigned to one event.
    Then you can use it in many albums and projects. Using the photo this way will only reference the one single copy of the photo in the event. The albums don't store the photos and do not require additional space. If you delete a photo from an event, it will be removed from all albums that have been using the this photos.
    What you are seing are not actually duplicate photos but different ways to access the same photos.
    The "Last event" is the same event as the last one you imported. It is there for a quick access to your recently imported photos.  Photos is a quick access to all photos in your library as an endless stream of photos. These are also no duplicates.
    So if you want to save space and delete photos, do that by browsing your events. Deleting a photo from an event will delete the original image file and remove the photo from all albums, books, and other products. You have only duplicate photos, if you are seing the same photo twice in an event.
    Even more bizarre; I imported photos from my 4S, and only a fraction of them transferred over.
    That is a different problem, but it may be related to to fact that you need to free space.
    If you get a warning, that the system needs space, don't do anything but update the backup of your mac and move files to an external disk to free space.
    It is not save to keep working, when the system is running out of space.
    How much free space do you have? Anything below 15GB free space is really critical.
    -- Léonie

  • Create or open a new browser from a servlet

    Hi everybody(sorry my english is so terrible), i have one problem .It`s possible to create ,instance or open a new browser from a servlet without javascript?.

    Hi everybody(sorry my english is so terrible), i have
    one problem .It`s possible to create ,instance or
    open a new browser from a servlet without javascript?.Well, sorta. You have to create a link with a target to "_blank" that the user clicks on. For example:
    Some Page
    will open somePage.jsp in a new browser window. There would be no way, other then js to do it automatically (and often those are blocked, now-a-days with pop-up blockers), flash (can be blocked as well, requires a plugin to use, costs money to get the developement kit), or an applet (java program embeded in web page, requires a plugin, can be blocked). Or some other client-side script/application. (ie servlets run on the server so they can't interact with the client's computer. You need something on the client's computer to do the job).

  • How do you clean safari from virus displaying ads?

    how do you clean mac from virus displaying ads?

    There is no need to download anything to solve this problem.
    You may have installed one or more of the common types of ad-injection malware. Follow the instructions on this Apple Support page to remove it. It's been reported that some variants of the "VSearch" malware block access to the page. If that happens, start in safe mode by holding down the shift key at the startup chime, then try again.
    Back up all data before making any changes.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, ask for further instructions.
    Make sure you don't repeat the mistake that led you to install the malware. It may have come from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    Malware is also found on websites that traffic in pirated content such as video. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • On Game Center how do you stop players from seeing the last time you have played a game?

    on Game Center how do you stop players from seeing the last time you have played a game? Or the last time you signed in.

    hello, this should be addressed in a later version of firefox. as a workaround in the meanwhile you could try this: enter '''about:config''' into the firefox location bar (confirm the info message in case it shows up) & search for the preference named '''browser.sessionstore.resume_from_crash'''. double-click it and change its value to '''false'''.

  • How do you import photos from a disc on to a memory stick

    how do you import photos from a cd disc on to a memory stick using an IMac 27 inch

    Insert the CD into the CD/DVD drive and the memory stick into a USB port. Open a Finder window and browse to the CD disk and select the images you want to copy. You can select individual images, out of order by holding down the Command key while clicking on them or a Run of images by holding down the Shift key and select the first then the last image you want to copy over.
    Once selected press Command + c keys to Copy. Browse (Select) the memory stick in the finder window and press Command + v keys to paste.

  • How do you transfer money from one apple id to another

    How do you transfer money from one Apple ID account to another?

    hello guys i have the same problem before but i fixit already if you forget your security questions what you need to do its so aesy you just call apple 8006927753 from free magicjack app you can get it on your iPhone from App Store  just call and ask them to restore your apple id security questions .
    and the guy going to ask for your apple id address tell hem that and after that he will ask you to log in with your apple id and he will tell you to give hem pin code you can fiend it here just folw me …….
    go to this link and log in with your apple id https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    after you open the link go to ( manage your apple id ) after you click on manage your apple id  log in with your account.. and go to password and security questions there is something down on the left conner like this
    ( temporary support PIN ) click on that and you will see PIN number just tell the guy and he will restore you apple id password & security questions
    and done you have new security questions and password  you can pay what you want now ….. anything you want to ask I’m happy to help just contact me
    <Email Edited by Host>

  • How do you delete songs from Itunes? I have many that show up as many as 7 times and itunes will not allow me to remove them.

    How do you delete songs from Itunes? I have many that show up as many as 7 times and itunes will not allow me to remove them.

    I have tried to Hilight them and hit Control Delete nothing happens. I tried to just Delete one, but when you hit delete nothing happens.

  • How do you delete file from time machine back up?

    How do you delete file from time machine back up?

    This from Apple KB Article  If Time Machine is not in your Dock, you can enter Time Machine from the Menu Bar or System Preferences.
    Deleting data from a Time Machine backup
    To delete all backups of one or more items from a Time Machine backup, follow these steps:
    Click the Time Machine icon on your Dock to enter the Time Machine restore interface.
    Click on the item you would like to delete. Command-click to select multiple items.
    Control-click (or right click) the highlighted item(s) and select "Delete All Backups of..." from the contextual menu, or select "Delete all backups of..." from the Action Item menu.
    Authenticate with an administrator password when prompted.

Maybe you are looking for

  • Re: Can't find drivers for Satellite A200-204

    Dear Experts. I am trying to download driver updates for my Satellite A200-204, but i can't seem to find tihs product in the list of products on this website. Can anyone help me define under which familly of products A200-204 is? Many Thanks in Advan

  • Table of contents - seperate not overlay

    I want to add the table of contents to be displayed permanently on the left hand side rather than come in overlayed.  I'm assuming this is done by going into the TOC settings and choose 'separate' rather than 'overlay'.  However 'separate' is greyed

  • Key differencess bet'n Altrnative condtion base value and Alternative calcu

    Hi All I read many times even though I have dought in pricing where in, differentating Altrnative condtion base value and Alternative calculation type. I know these two are forumalas. I am looking for key differencess bet'n Altrnative condtion base v

  • My MacbookPro (A1278) shuts down inmediately after turning it on.

    I have a MacBook Pro (A1278) Mid 2010, and it began to run very slowly, i checked the Activity Monitor and found out that a Kernel_task was consuming almost the whole processor, i restarted the machine and after one second of the first gray screen, i

  • Certificate of Networthiness (CON)

    Can someone at Adobe or another user let me know if Robohelp 7 has an Army Certificate of Networthiness (CON). I thought since it's Adobe it was a given but I guess not because I do not see it on the list.