Dear Sir,
This is my code
String osname=System.getProperty("os.name");
System.out.println(osname);
String userHome=System.getProperty("user.home");
System.out.println("User Home Direcory:->"+userHome);
boolean exists = (new File("C:/WINDOWS/jtwain.dll")).exists();
if (exists) {
// File or directory exists
System.out.println("Found jtwain.dll");
return mapping.findForward("success");
} else {
// File or directory does not exist
System.out.println("Not Found jtwain.dll");
request.getSession().setAttribute("winDir","C:/WINDOWS");
return mapping.findForward("fail");
}
i wrote this one in action class..... i deployed the
struts program in weblogic in linux OS...... While executing the application from server i got only linux machine system properties.... I want client side system properties...... whoever open my website i should get their system properties...... so that if they dont have the corresponding dll file...i will ask them to install it in c:\windows directory.... Pleas help me how to check the file found or not in client side.
-Rodricks