Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Launching Browser from servlet.

 
Jane Arndt
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a program on my local drive that 'bridges' and starts a servlet running. The servlet is to map some data,
and then launch the browser & jsp to display pages with data
captured from the program that was on the local drive.
at the end of my doPost method in my servlet, I've tried:
RequestDispatcher rd = getServletContext().getRequestDispatcher("myjspname.jsp");
rd.forward(req,res);
But this has not worked. I know I'm missing something here.
Thanks in advance.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Server-side code (servlets) can't start a browser. The browser must be running already...
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you convert your bridging program into an HTML page with nothing on it but one submit button that says "Start Process".

That way you could launch it from the browser, and the response would show up in the browser window.


[This message has been edited by Mike Curwen (edited November 10, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic