How to open a file (*.html,*.pdf) in new browser using servlet

Dear Friends,
I am having some files (*.html,*.pdf) in local drive , im getting the path whichy includes dir name + file dynamically, im using the following code
response.sendRedirect(response.encodeRedirectURL(file))
this is displaying the file in same window, now i want open in new window is there any method except java script like window.open("URL");
Thanks in advance....
Thangavel

Hi Balu !
Thanks for u r reply ,
this is html code ok
<a onclick="view()" >View </a>
im callinig view function in java script
function view()
window.document.formname.submit()
so it will submit the action URL which given in form ok
filename contains full path ok
in server side im sending as i told previously encoderURL(file) ok
but im given target="_blank" as per ur suggestion in anger tag like
<a target="_balnk" onclick="view()" >View </a> tag
it is opening in new window the content which is displaying in jsp but not file
pls give ur valueable suggestion .....
Thanks in advance...
Thangavel

Similar Messages

  • How to open PSD file recieved via email on iPad using Photoshop Touch without Creative Cloud?

    Hi, how to open PSD file recieved via email on iPad using Photoshop Touch without the need of using Creative Cloud? Thanks.

    Hi Super Nemo
    Currently the only way to open psd files on Photoshop touch is via the creative cloud. Also, the layers you created from Photoshop on your desktop machine will be flattened when opened with Photoshop touch on your iPad. But you can retain the layers from the touch app when opening the psdx file on your desktop photoshop.
    This link might help you: http://forums.adobe.com/docs/DOC-1336
    -Sharon

  • How to open a entity form in a new window using openEntityForm() method.

     How to open a entity form in a new window using openEntityForm() method.

    As far as I'm aware, there isn't a supported way to do this in the client-side API. You could use window.open instead
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

  • How to open the file in PDF format

    Hello,
    There is a requirement on our page that , on click of a button a procedure will be called. If that procedure returns “S” i.e success , then I need to open a new browser window and also set the url for the window (all programmatically). That url opens a letter in pdf format. If it is error , I should display the error on the page. Please provide any kind of solutions.

    Where is PDF stored after generation? a blob or a location on unix server? or it gives u a byte stream at runtime?
    Accordingly we can guide u with the solution.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                           

  • How to open zip files ? what application do i use ?

    i am trying to open zip files with my g5 i
    PLEASE HELP

    mistermook,
    Download and install the free download of Stuffit Expander.

  • Forcing link in one web based PDF to open link to another PDF in new browser window

    We have created a form using LiveCycle Designer ES2.  The form is found on our website and is used by faculty to submit proposal information to our office.  Depending upon the answers to questions in the form if they say yes we had a link to another form that we would like them to complete and submit with the original PDF that they are working on.  The problem that we are having is that when they click on the form it opens the new PDF and all the data that they had entered in the original PDF is gone once the new form opens up.  Is there a way to force the new PDF via the use of some scripting that can go along with the link, or via the use of a button that can force the new form to open in a new browser window?  It is impractical for us to expect 1500 faculty members to change their browser settings to open new PDF's in a new window.  We have removed the links for now and have just put in text that says if they select yes they need to go out and complete the additional form.
    The form we are using can be found here: http://spo.usu.edu/files/uploads/SP-01.pdf
    The first three questions on page two where we reference the other forms is where we would like to be able to add the links to the new forms and have them open in a new browser window.  When the form is downloaded and opened in Adobe Acrobat/Reader the links functioned correctly, it just did not function properly when it opens in a browser.
    Thank you in advance for any assistance you can offer in regards to this issue.

    I used a button, removed the border/fill properties and underlined the caption to look like a URL.
    The click event is...
    // form1.page1.subform1.urlBtn::click - (JavaScript, client)
    app.launchURL("http://spo.usu.edu/files/uploads/SP-01.pdf",true);
    The PDF will open in a new window or tab, depending upon the browser configuration.
    Steve

  • How to convert document file in PDf format through workflow using sharepoint designer

     Please suggest me solution it's urgent.....please.

    Hi Anil,
    If Word Automation Services is installed in your environment then that may be an option (Providing you are only interested in converting MS-Word documents). However SharePoint does not ship with an out-of-the-box workflow activity that makes use of this.
    You may want to consider some third party software that supports formats other than MS-Word as well and comes with workflow actions for SharePoint Designer (and Nintex Workflow) out of the box. Have a look at the
    Muhimbi PDF Converter for SharePoint.
    Disclaimer, I worked on this product so I am obviously biased. (It works great though :-)

  • How to open .u3p file in macbook

    Hi everyone,
    Please help me to open .u3p (file extension) in my new MacBook using Leopard 10.5
    Thanks

    You can't, you will need to use bootcamp, install Windows XP or Vista, and then use Windows to open the file.

  • How to open vcf file in html in browser or pdf in adobe

    Can Any on tell me
    In flash as3 website
    How to open vcf file in html in browser or pdf in adobe?
    I want all visitors to be able to view vcard info. What if visitor does not have software to view vcf file?

    Hi,
          if u want to show a pdf then u can use fscommand("exec",batchfilename)
    and something.batch  will open the pdf

  • How to open local file in HTML/JSP

    Hi,
    Does anyone know how to open a file outside the war folders?
    I have tried this
    TEST FILE
    but it doesn't work.
    I'm using Jboss4.2
    Thanks,

    You may find this article useful: http://balusc.blogspot.com/2007/07/fileservlet.html

  • How to open Drafts file in Profile Folder Adobe says can't open HELP!

    Lately several drafts just disappear. Today a very important draft I was making/had finished, disappeared. Read in forum to shut down Thunderbird, go to Profiles then open the draft file, however when I try to open draft file Adobe PDF deal says it cannot open. Am desperate to get this draft that disappeared back ASAP!
    I am running Windows 7 and so need little step by little step instructions on how to accomplish this.
    BTW I see 2 draft files 1st appears like a blank page just says Drafts. The other says Drafts.msf and has the PDF logo within. Both of them, when I try to open I get error message from Adobe Reader saying " Adobe Reader could not open Drafts.msf because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)"
    Thanks in advance for ANY help in the matter ASAP as this particular draft is of great importance & sure don't want to have to redo such a very long detailed email!!!
    Ctipling

    You can check if the update was sucessfull b opening the Editor and clicking Help >>About Plug-in >>Camera Raw
    You should see this:

  • HT4796 I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    Send it as a PDF.

  • How to open aspx. files in OS 10.8?

    is this the right place to ask how to open aspx. files in OS 10.8.2?

    Unfortunately aspx is a generic extender - it is a report generated by a server running Windows .net - it isn't an extender that actually tells what kind of file it is or what kind of data it holds. That's something you either have to know before hand so you can force the proper program to open it (or change the aspx extender to its real extender) or you have to find out what the file is.
    At work our system's report generator gives everything an aspx extender. When I generate a report I decide whether it should be a PDF, Excel file, etc. After downloading the file I change its extender appropriately.

  • HOW TO OPEN WINDAT FILES

    How to open windat files which come along with E mails from microsoft users ?

    That is priceless, "you can ignore winmail.dat...."  No I can't. They are often a drawing or purchase order I require for a job.
    I am running outlook on my mac and I still can't open them. All my other devices open these attachments no problem (none of them are apple). The people sending me these attachments are using macs. The only thing that has changed since I started encountering this problem is my hardware. I still use outlook, I have the same email address. The PDF attachments are being sent by the same people in the same way. When I had an iphone they opened on there too. Why do all the people on this forum keep blaming microsoft. Why can't macs read microsoft RTF, much like gmail or yahoo manage to do.
    I cannot go asking busy project managers to send me attachments in a different format simply because I bought what I thought to be a decent computer.

  • I am trying to open a file in pdf form and I keep getting "there was

    I am trying to open a file in pdf form and I keep getting ...there was a problem reading this document....any suggestions???

    Hi,
    Thanks for reporting the issue; we would like to reproduce it at our end. Please give in the below information to investigate on this,
    1. The Linux distribution (Version of Linux) you are using.
    2. Are you opening the pdf from shared location? If yes, then how is the shared location mounted.
    It would help if you can send in the pdf you are trying to open. Please email the same to vaibhavp at adobe dot com or attach it on the forum.
    Thanks,
    Vaibhav

Maybe you are looking for

  • Thunderbolt to FireWire adapter

    If I purchase a MacBook Air 11" I want to be able to connect my new LG 23" monitor AND to connect my many LaCie and iOmega FireWire 800 Hard drives.  With my MacBook Pro 13" (Mid-2010) I can do both simultaneously. But with the MacBook Air 11" - ther

  • A little story of getting my isight imac to share

    Hello all, I just want to share my story with you future imac users. I ordered my iSight iMac 20" with wireless keyboard and mouse online on 10/24 and its estimated shipping time was 11/7. Just like some of you, I couldn't really wait for such a long

  • Why does my Airport Extreme

    Why do my aiport extreme and express regularly flash yellow even while functioning properly?

  • Generic Icons?

    I have noticed that some of my icons have turned generic. Is there a way in Leopard to rebuild the desktop and restore the icons?

  • For table control

    Hi,    While selecting records in table control only one record is selected.    I want to edit mulitple records in table control.   Can anybody gives me suggestions. Regards, Laxmi.