Skip to Content
author's profile photo Former Member
Former Member

Spawning a new browser in hyperlink in java/tomcat

Post Author: passionlessDrone

CA Forum: General

Hello friends -

I'm going crazy trying to reckon a way to spawn a new browser from a hyperlink field with the java info view / tomcat set up. Based on some recommendations provided for .NET users, I went ahead and modified viewDHTMLReport.jsp with the following line, diretly after the CrystalReportInteractiveViewer was created:

viewer1.setHyperlinkTarget("_blank");

I have confidence this is being called, as I mispelled the function name on my first try and got a 505 returned from Tomcat indicating bad method name, etc. Tragically, even with a valid method name, the page continues to render 'target="_self" no matter what value is passed in as a hyperlink target. I have also tried modifiying DHTMLViewer.jsp and ADHTMLViewer.jsp with similar calls directly after the setProductLocale call, but the same results.

Is there a chance that processHttpRequest in the Viewer just doesn't pay attention to what gets set in setHyperlinkTarget and will return "_self" no matter what?

It also seems a bit naughty that it appears you have to globally set hyperlinks to either spawn new windows or not.

Any insight or advice is greatly appreciated!

Take care!

-pD

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 03:38 PM

    Post Author: passionlessDrone

    CA Forum: General

    Bump.

    Surely someone has either solved this problem or deemed it impossible.

    Thanks!

    - pD

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.