| | |
Client side downloading code
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2009
Posts: 13
Reputation:
Solved Threads: 0
Hi. I am developing an e-mail application for lab works. I am using servlets mainly along with JSP and using HTML with CSS. I have two questions.Please tell me the solutions. Its important and its urgent.
1. As usual I give the provision for attachments.I wrote code for uploading files for attachment and it works. I dont know how to download the file when the client needs it from the server. Please help me.Its urgent.If code is offered it would be great.
2.I have used servlets for some pages. In these pages the CSS file is not gettng accepted. The format, image is not getting displayed. I dont know what to do. Please help.
1. As usual I give the provision for attachments.I wrote code for uploading files for attachment and it works. I dont know how to download the file when the client needs it from the server. Please help me.Its urgent.If code is offered it would be great.
2.I have used servlets for some pages. In these pages the CSS file is not gettng accepted. The format, image is not getting displayed. I dont know what to do. Please help.
•
•
Join Date: Feb 2009
Posts: 21
Reputation:
Solved Threads: 1
•
•
•
•
hi friend
for downloading the files on your server
Give the full path of the file in the Jsp page
which will locate on the server
JSP Syntax (Toggle Plain Text)
<a href="www.yourserver.com/java/chapter.txt" >Download file</a>
•
•
•
•
if you want to download the file in the zip format then you
must upload the file in the zip format
then the path will be
JSP Syntax (Toggle Plain Text)
<a href="www.yourserver.com/java/chapter.zip" >Download file</a>
•
•
•
•
remember the
JSP Syntax (Toggle Plain Text)
<a href="dynamic value get from servlet through bean getter method ">
•
•
•
•
you must set the path of the file in bean setter property
Last edited by amarjeetsingh; Apr 28th, 2009 at 3:15 am.
![]() |
Similar Threads
Other Threads in the JSP Forum
- Previous Thread: problem in understanding <logic:iterate> tag
- Next Thread: JSP not finding class files?
Views: 671 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for JSP
apache array backbutton combobox comma connection csv database development directorystructure dropdownlist dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 mysql netbeans network parameters passing ping printinserverinsteadofclient project read redirect request.getparameter response seperated servlet servletdopost()readxml sessions software sql ssl state_saving_method stocks sun tomcat tutorial update values video web write





