Skip to Content
0
Feb 09, 2006 at 09:53 PM

Clicking on link opens new jsp window

523 Views

Hi all,

I'm working on a jsp dyn page application where I want the end user to be able to click on a link and have it open a new window that displays a jsp page. I want this jsp page to be able to read all of the data that I've got stored in memory.

I've tried using this for the link:

<hbj:link

id="printableVersion"

onClick="PrintableVersionLinkClick"

target="_BLANK"

text="Printable Version"

tooltip="Click here for a printable version of this supplier's info."

linkDesign="REPORTING"

>

</hbj:link>

With this in the dyn page:

public void doProcessAfterInput() throws PageException {

}

public void doProcessBeforeOutput() throws PageException {

this.setJspName(nextJSP);

}

public void onPrintableVersionLinkClick(Event event) throws PageException {

nextJSP = "PrintableVersion.jsp";

}

Control is passed to the "PrintableVersion.jsp" file, however, it is in the same page as where the link was displayed. How do I get this to pop up in a new window?

Thanks!

-Stephen Spalding

Web Developer

Graybar