•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 391,563 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,728 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 2597 | Replies: 2
![]() |
•
•
Join Date: Aug 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
hi,
I was looking to solve this problem long time ago.My problem is:
I have a link on jsp page (witch belong to a website ) when I click the link it suppose to give me the open/save/cancel dialog box to choose to open or save the specified file but it didn`t this all the times, i explain more, on an other page i have a submit to upload files on a temporary foledr on the server (.doc, .pdf, .rtf)
when i have the pdf or rtf file it works correctly but with doc files it doesn`t display dialog box it open the fiel as html page so the doc file isn`t correct it is mixed with ascii caracters.
but the real problem is only with IE not with other browsers (firefox, netscap, opera..)
I tryied a lot of thing but still not working, i verify the IE configuration also.
I add mimetype, content type ....
my link is like this:
<a href="<%=request.getContextPath()%>/tmp/<%=row.get("filename")%>?id=<%=row.get("employee_id")%>" class="gray"> click here </a>
any ideas please.
thanks in advance
I was looking to solve this problem long time ago.My problem is:
I have a link on jsp page (witch belong to a website ) when I click the link it suppose to give me the open/save/cancel dialog box to choose to open or save the specified file but it didn`t this all the times, i explain more, on an other page i have a submit to upload files on a temporary foledr on the server (.doc, .pdf, .rtf)
when i have the pdf or rtf file it works correctly but with doc files it doesn`t display dialog box it open the fiel as html page so the doc file isn`t correct it is mixed with ascii caracters.
but the real problem is only with IE not with other browsers (firefox, netscap, opera..)
I tryied a lot of thing but still not working, i verify the IE configuration also.
I add mimetype, content type ....
my link is like this:
<a href="<%=request.getContextPath()%>/tmp/<%=row.get("filename")%>?id=<%=row.get("employee_id")%>" class="gray"> click here </a>
any ideas please.
thanks in advance
•
•
Join Date: Apr 2006
Location: Mumbai, India
Posts: 351
Reputation:
Rep Power: 0
Solved Threads: 4
I'm not sure I understand your problem. A little more code and clear explanation maybe!
•
•
Join Date: Aug 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
ok I try to clarify:
i have a link when i cilck this link i want to have the dialog box open/save/cancel to have choise to open the file or save it (the files i want to open are in a folder on the server, cv`s file)
but when i click the link but it doesn`t give me the dialog box, it open the file directly as an html page and not like the original file.
my files are (.doc, .pdf,.rtf) the problem is only with doc files with IE
if I click the link with fire fox it alwsys give me the dialog box and after that I open the file in the appropriate program (word, acrobat).
the line code that I gave is the like where I click to have the dialog box to open files
if you need more code please tel me witch part you need.
thanks a lot for your interest.
devSa
i have a link when i cilck this link i want to have the dialog box open/save/cancel to have choise to open the file or save it (the files i want to open are in a folder on the server, cv`s file)
but when i click the link but it doesn`t give me the dialog box, it open the file directly as an html page and not like the original file.
my files are (.doc, .pdf,.rtf) the problem is only with doc files with IE
if I click the link with fire fox it alwsys give me the dialog box and after that I open the file in the appropriate program (word, acrobat).
the line code that I gave is the like where I click to have the dialog box to open files
if you need more code please tel me witch part you need.
thanks a lot for your interest.
devSa
Last edited by devsa : Aug 14th, 2007 at 9:35 am.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
3d apple blue screen cocoa computer crash dell development drivers email enterprise eudora firefox framework games gnu graphics ibm intel internet java linux microsoft microsystems mozilla news next open open source open-source opengl openoffice operating os penelope programming red hat rhel server software source step sun super system ubuntu vista wesnoth windows xp
- Opening a .pdf file at the clientside without the open/save dialog box (ASP.NET)
- "Save Target As.." isn't working in IE6 (Web Browsers)
- how to display the message in jsp (JSP)
- jsp command for open a page (JSP)
- file save load problems (C++)
- verify that a file was downloaded (save as was clicked) (ASP)
- ASP.NET problem (ASP.NET)
- Links will not open in new window IEv.6 (Web Browsers)
- IE save html problem! (Web Browsers)
Other Threads in the JSP Forum
- Previous Thread: catch without try error
- Next Thread: problem with jstl validation


Linear Mode