could you anyone give suggestions for my project ?
could you anyone give suggestions for my project ?
i am having idea developing an application . Its like time-sheet ... when employee start the system ... IE (internet explorer or mozilla firefox) opens .. that contains the form . we entered information that is stored in database .. after every one hour that form opens and we should enter information .. if we are not enter the information .. it shows warning page ..
1)In that how can I invoke (trigger ) browser automatically that displays my form after start up the server ?
Message was edited by:
kannankalli
# 1
I dont think you will be able to invoke explorer of the client machine from the server
if you can place a small application in client machine you can very well open a browser and point it to the required url
the code snippet given below invokes the internet explorer and points in to www.google.com
try
{
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("C:/Program Files/Internet Explorer/iexplore.exe www.google.com");
InputStream stderr = proc.getErrorStream();
InputStreamReader isr = new InputStreamReader(stderr);
BufferedReader br = new BufferedReader(isr);
String line = null;
// System.out.println("<ERROR>");
while ( (line = br.readLine()) != null)
System.out.println(line);
System.out.println("</ERROR>");
int exitVal = proc.waitFor();
System.out.println("Process exitValue: " + exitVal);
} catch (Throwable t)
{
t.printStackTrace();
}