getRuntime().exec(...) root command problem

2004-01-16 Thread Philippe Valle
I want do do ipconfig on linux with exec java command. When i do 'ls' for exemple is ok , but for root command like 'ifconfig' i have nothing . my code : ... cmd=ls -l\n; try { Process p=Runtime.getRuntime().exec(/bin/sh); OutputStream

session redirection automatic

2003-12-17 Thread Philippe Valle
hi, I use tomcat 4.1.29 and my server.xml have Session expire to 60. When Session expired i want redirect automaticly the user on sessionerror.jsp . how i do that ? this test is do on jsp pages or servlet ? Did you have an example ? thanks.

Re: CSS in War file

2003-12-15 Thread Philippe Valle
Duncan Smith wrote: I've just started deploying a web app as a war file instead of uploading individual files. Everything works except my styles don't load. The stylesheet is added to the war file in the same location as before, but if I try to request the css file on it's own I get a