This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is equivelent of AppletContext.showDocument() in JSP

 
Noor-e-Mustafa
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want to load a xls/doc file when user click on a Button. I receive complete URL and file name to load. After some checking in JSP file I want to load this file. But how? I still unable to find any way to load a URL automatically from JSP. Just like we do in Applet by using command:
AppletContext browser = getAppletContext();
browser.showDocument(pageLink);
can anyone help?
 
lokesh reddy
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Try out this.
**************************************************************
<%@ page language="java"%>
<%
response.sendRedirect(url);
%>
**************************************************************
 
Noor-e-Mustafa
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks lokesh reddy
It works
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic