You can use JSP to generate HTML, why not for Javascript ? But suppose you have 2 users access this JSP and first user uploaded a file and second user won't know until refresh the JSP again. A better approach is validating on Servlet (or JSP if you like), and tell the user if upload is successful.
Hi All, When I am running below code for executing .exe file in java in websphear application developers (WSAD) its working fine, when I try to run below code in websphear application server (WAS), its not working. Process p = Runtime.getRuntime().exec(C: Program Files\\GanttProject ganttproject.exe); InputStream stderr = p.getErrorStream(); InputStreamReader isr = new InputStreamReader(stderr); BufferedReader br = new BufferedReader(isr); String line = ...
I have load balanced production servers. I have been told that our web farm set up a "shared" folder on both of these servers, meaning I could access this folder from both servers. What happens is the user logs on to server A and wants to view a file. If the file does not exist on server A, I then need ...
Well, one thing we could fix right now is your whole idea of reading/writing into streams. What you're doing at the moment is reading one byte at a time and writing one byte at a time, which means you can't be in a hurry since it's very slow to do things that way. I'd advice you to look into the write(byte[] ...