-
Downloading a word document using JSP
I am trying to download a Word file from jsp and from my research, I noticed that I can use an <a href""> </a> tag.
So I tried it usign the following code:
<a href = "<%=ClaimForm.doc%>"> Download a Claim Form</a>
but I am getting the following message:
Undefined variable or class name: ClaimForm
out.print(ClaimForm.doc);
Could anyone debug or inform me of how else I can download a Word Document by letting the user click on a hyperlink?
Last edited by Maria Modeste; 10-05-2005 at 06:40 PM.
-
Isn't this supposed to be "good HTML"? If so, take out the extra <% and %> and just have the name of the document in quotes following your href=. If the doc is being generated on the fly by a jsp, reference the jsp as the attribute to your href.
-
Thanks a mil! It's working in HTML!
Similar Threads
-
By Humair in forum ASP.NET
Replies: 1
Last Post: 04-28-2005, 01:10 AM
-
By Steve in forum ASP.NET
Replies: 0
Last Post: 05-16-2003, 10:02 AM
-
By Christian in forum Enterprise
Replies: 0
Last Post: 02-12-2002, 06:04 AM
-
By geethan in forum ASP.NET
Replies: 1
Last Post: 01-14-2002, 12:07 PM
-
By Sven in forum VB Classic
Replies: 1
Last Post: 10-05-2000, 01:41 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks