aspose file tools*
The moose likes JSP and the fly likes  open a link in PDF using custom tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark " open a link in PDF using custom tags" Watch " open a link in PDF using custom tags" New topic
Author

open a link in PDF using custom tags

Vibha VibhaJ
Greenhorn

Joined: Oct 30, 2009
Posts: 9
How to open links in PDF using custom tags in jsp.
Are there any taglibs already available for the same
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

Links within a PDF ?

That is all handled by the Adobe PDF reader plugin or application.

WP
Vibha VibhaJ
Greenhorn

Joined: Oct 30, 2009
Posts: 9
Sorry i was not clear.
IN jsp i have a link and when someone clicks on the link,action is to open the pdf with relevant info.
Ex: Link for Help should open a user manual.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18660
    
    8

Just produce an ordinary HTML link to the URL where the PDF is located. You really don't need custom tags to do that.
Vibha VibhaJ
Greenhorn

Joined: Oct 30, 2009
Posts: 9
Link we are using is from a custom taglib and based on certain bus needs,link should open a pdf doc sometimes and in other cases open new form for user in new window.
I need to know how can i extend the custom taglib to handle the link to open in new window /pdf.
I have to use the existing taglib for the link.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42285
    
  64
It sounds like you need to consult the documentation of that tag lib, or its author, absent that.


Ping & DNS - my free Android networking tools app
Vibha VibhaJ
Greenhorn

Joined: Oct 30, 2009
Posts: 9
am able to open pdf/form in same window.I need to open in new window which is where am struggling
Vibha VibhaJ
Greenhorn

Joined: Oct 30, 2009
Posts: 9
jsp :<pg:submitbutton name="View=selectDetails " title="Action"
/>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61432
    
  67

Ulf Dittmer wrote:It sounds like you need to consult the documentation of that tag lib, or its author, absent that.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Vibha VibhaJ
Greenhorn

Joined: Oct 30, 2009
Posts: 9
The author is no more with project and I just came on board.
If there is any other libs that are available also,please suggest

Thanks,
vibha

TLD :

Vibha VibhaJ
Greenhorn

Joined: Oct 30, 2009
Posts: 9
Is there a way to use java script embedded in custom tags.If so how can i do it.

<pg:submit property="index" name="View/Edit =selectDetails" title="Action" buttontypes="SKIP" />
/>
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42285
    
  64
Vibha VibhaJ wrote:The author is no more with project and I just came on board.

If there is no documentation, and no one to consult on this, then you will need to study the source code of the tag library. Sounds like you might want to introduce a new attribute that controls whether to show a PDF, or whether to open another page.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: open a link in PDF using custom tags