This week's book giveaway is in the
We're giving away four copies of a choice of
"Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac"
and have Joe Kissell on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
How to write code in jsp and hide it from the user
Joined: May 22, 2008
Jul 21, 2009 08:32:38
In my application i have to save data in to the
The code to generate the pdf file i have written in the javabean.
when i run the application the file get saved at the server side and not at the user side.
so my question is whether we can write a code in jsp and still hide it from the user or can we send a file object on the wire and reference it at the user side. Then store the file on the user side.
One more question..
How to bring "Save As" dialog box in
But it has only two file types..
Can you please guide me in this regard or give any link,suggestion?
Thanks in Adavance.
Prathamesh M.B.<br />Java....only.....
author & internet detective
Joined: May 26, 2003
Jul 21, 2009 17:28:21
You can't hide HTML code from the user. The JSP should be protected against readers.
You should set the MIME type and "attachment" in the header of your JSP/Servlet to get the desired type.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
Joined: May 22, 2008
Jul 22, 2009 01:03:41
How to get "Save As" dialod box in jsp?
I got one using executeCommand("Save As", X, Y);
But when the window opens it gives only two options for saving..
1> save as "HTML"
2> save as "*.txt"
How to add more file types?
Please guyz help me!!!
Thanks in adavance,
I agree. Here's the link:
subject: How to write code in jsp and hide it from the user
Returning A List Of Variables From A Folder Of Documents And Returning Them Into A New Document
java.lang.IllegalStateException: Cannot forward after response has been committed
Help me understand this piece of code
How to store the PDF file in the server side?
How do i save a file that has been generated using JSP in excel format .
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014