I am n't using blob, I am using EAServer and PowerBuilder components, deployed to EAServer. So I should use redirection.
If it is not possible to delete the redirected file, I am interested if it is possible use File object to delete all pdf files, generated in the certain directory on the...
I am using sendRedirect JSP method to send pdf file to the browser, and then try to find a way to delete pdf file from the server. I understand, it does not work because of Client Browser is using the file after redirection.
But I need to find out how to delete this file from the server after...
It is correct, I am doing sendRedirect to a pdf, and then try to find a way to delete pdf file from the server. I understand now, it does not work because of Client Browser is using the file after redirection.
But I need to find out how to delete this file from the server after redirection, as...
I found, that I have problem when I try to delete File after redirection in my JSP page to Client browser (this is PDF file, so I need to use redirection):
response.sendRedirect(ls_filename);
( I have error message in Server log file: Static Resource not found)
If I simply use (for HTML file)...
I know exactly what absolute path is on my local drive, so I use it in my JSP code :
<%@ page import="java.io.*" %>
<%
String ls_path = "c:\\program files\\sybase\\easerver 4.1.1\\Repository\\WebApplication\\my_jspclient\\";
String s_full;
String s_dataset =...
File descriptor includes full pathname:
File(String pathname)
For example, for absolute path name:
c:\Program Files\Sybase\EAServer\rpt\report1.pdf
how we can create a new File object in our jsp page?
What separator we should use for Windows : "/" or "\" ?
In different books...
Yes, the two files have exactly the same name - that the new file actually overwriting the previous and replaces the previous file in server directory. But a new file was created with another arguments, than previous.
When I using sendRedirect method:
response.sendRedirect(ls_filename);
to...
I am using sendRedirect method to send to client the file, created on the Server side:
response.sendRedirect(ls_filename);
where ls_filename - it is report, which is created with different arguments, it saved as file in server directory.
When file name is changed, it works fine, client...
I implemented PDF and Excel file generation in my PowerBuilder code using generate() function and using redirection in JSP Client to send generated file to the Browser:
String ls_filename = htmldw.generatePDF();
if (ls_filename.length() > 0 )
{...
Thank you, bnymk. I fixed error and now function verify works fine.
But now I got another problem. My script for Submit button includes onClick event, which let me get message on the screen, while retrieving data from database:
<input type="Submit" value="Run Report"...
I wrote function verify, that performing form verifivation.
Function loop through the all text elements of the form:
function verify(f)
{
for(var i=0; i < f.length; i++) {
var e = f.elements[i];
if e.value == null) {
alert("All Arguments are required for the...
My first JSP Page includes a Form with Submit button. When user clicks the button, data items on the form send to the second Web Page, specified in the FORM ACTION attribute. This Web Page retrieve data from Database to print Report and pop-up with big delay.
I need to create message on the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.