S
Sathyaish
I am not a Java programmer and I have a question about a web
programming scenario in Java. Can you please tell me if it is possible
for the server to retrieve the file name and path of a file selected by
a user on the client machine using the Save file dialog control built
into Windows?
Here's the scenario.There's a button called OK. When it is clicked, a
Save file dialog (the windows common dialog that lets you select a file
to open or save) pops up on the client. The user chooses a file name
and location to save a new file. In the click of the same button,
records from a database are then transferred to the client machine in
that location with that file name.
In ASP.NET I know it would be possible because the OK button's click
event handler would execute on the server because it'd be a server
control. And so it'd look something like this in ASP.NET:
public void btnOK_Click(object sender, EventArgs e)
{
//psuedocode
string sPath = FileDialog.Show();
//sPath is the location and name of the file on the client's hard
drive
}
Is it possible in Java?
programming scenario in Java. Can you please tell me if it is possible
for the server to retrieve the file name and path of a file selected by
a user on the client machine using the Save file dialog control built
into Windows?
Here's the scenario.There's a button called OK. When it is clicked, a
Save file dialog (the windows common dialog that lets you select a file
to open or save) pops up on the client. The user chooses a file name
and location to save a new file. In the click of the same button,
records from a database are then transferred to the client machine in
that location with that file name.
In ASP.NET I know it would be possible because the OK button's click
event handler would execute on the server because it'd be a server
control. And so it'd look something like this in ASP.NET:
public void btnOK_Click(object sender, EventArgs e)
{
//psuedocode
string sPath = FileDialog.Show();
//sPath is the location and name of the file on the client's hard
drive
}
Is it possible in Java?