vibs
|
Posted: 04/09/2005, 4:27 AM |
|
hi to all
well i am working on a JSP project in which i need to save a HTML page using the JSP code. that is as soon as the user clicks on a submit button the page should be saved on a specified location
please help, thanks in advance
vibs
|
|
|
Tallapally Aditya
|
Posted: 04/27/2005, 3:57 PM |
|
Try this code friend:
<%@ page import="java.io.*" %>
<%@ page import="java.util.Date" %>
<%
try
{
FileWriter fw = new FileWriter ("test.dat", true);
BufferedWriter br = new BufferedWriter (fw);
PrintWriter pw = new PrintWriter (br);
long date = new Date().getTime();
Long longDate = new Long (date);
String dateString = longDate.toString();
pw.println (dateString);
pw.flush();
pw.close();
br.close();
fw.close();
}
catch (IOException io)
{
System.out.println ( "FILEWRITER EXCEPTION " +io.getMessage() );
}
catch (Exception e)
{
System.out.println (" FILEWRITER GENERIC EXCEPTION " +e.getMessage());
}
%>
|
|
|
Ashutosh
|
Posted: 05/10/2005, 4:44 AM |
|
Quote Tallapally Aditya:
Try this code friend:
<%@ page import="java.io.*" %>
<%@ page import="java.util.Date" %>
<%
try
{
FileWriter fw = new FileWriter ("test.dat", true);
BufferedWriter br = new BufferedWriter (fw);
PrintWriter pw = new PrintWriter (br);
long date = new Date().getTime();
Long longDate = new Long (date);
String dateString = longDate.toString();
pw.println (dateString);
pw.flush();
pw.close();
br.close();
fw.close();
}
catch (IOException io)
{
System.out.println ( "FILEWRITER EXCEPTION " +io.getMessage() );
}
catch (Exception e)
{
System.out.println (" FILEWRITER GENERIC EXCEPTION " +e.getMessage());
}
%>
How to save if no dialog box popup.
|
|
|
sumanth123
|
Posted: 07/04/2005, 12:27 AM |
|
Quote Tallapally Aditya:
Try this code friend:
<%@ page import="java.io.*" %>
<%@ page import="java.util.Date" %>
<%
try
{
FileWriter fw = new FileWriter ("test.dat", true);
BufferedWriter br = new BufferedWriter (fw);
PrintWriter pw = new PrintWriter (br);
long date = new Date().getTime();
Long longDate = new Long (date);
String dateString = longDate.toString();
pw.println (dateString);
pw.flush();
pw.close();
br.close();
fw.close();
}
catch (IOException io)
{
System.out.println ( "FILEWRITER EXCEPTION " +io.getMessage() );
}
catch (Exception e)
{
System.out.println (" FILEWRITER GENERIC EXCEPTION " +e.getMessage());
}
%>
hi
i am doing my project using JSP so
i need a help from you
i need a JSP code for that
if a user specifies a path to store a file it should store in that specified location or in that specified directory .the file can be of any type
i need a code in JSP
looking fwd to u r reply
bye
regards
Sumanth.S.
|
|
|
sumanth124
|
Posted: 07/04/2005, 12:28 AM |
|
hi
i am doing my project using JSP so
i need a help from you
i need a JSP code for that
if a user specifies a path to store a file it should store in that specified location or in that specified directory .the file can be of any type
i need a code in JSP
looking fwd to u r reply
bye
regards
Sumanth.S.
|
|
|
kwasi
|
Posted: 08/08/2005, 1:51 AM |
|
could someone please help me with a jsp code that directs a any body who login to a specific area which is seen only by that user using the user login id.
|
|
|
DEBAMALYA JHA
|
Posted: 09/08/2005, 3:20 AM |
|
Quote vibs:
hi to all
well i am working on a JSP project in which i need to save a HTML page using the JSP code. that is as soon as the user clicks on a submit button the page should be saved on a specified location
please help, thanks in advance
vibs
|
|
|