After changing, compiling and refreshing a java file -when the server is started and the code executed - the class file that is being executed is not my new one, but the earlier version from an imported jar file. I can find the newly created class file, so I can confirm that it is being created...
My servlet loads a StringBuffer sb and outputs the results via <out.println(sb.toString())> where out is the return from response.getWriter(). The performance on that single output line is terrible. Any help on how to optimize the throughput would be greatly appreciated.
It Works - Thank You. No file creation/output needed. Now, if only I can get the user back into the query tool servlet so they can submit follow-up queries it would be great ;o)
Thanks Venur. The contentType is basically text/html for all the other user interaction. I inserted your line just after the xls file creation - as the last line before exiting the servlet. The excel file did not launch. Did I miss something?
I am building a simple query tool servlet which writes the results set out to a .xls file. How do I launch the .xls file from the servlet (so that the user sees the query results). This is in a Windows environment.
Sorry for not confirming your assumptions.
Correct - TOMCAT_HOME is C:tomcat, and no files have been modified (server.xml or any configs).
Tried the copy & test - still errs.
Cookies & all temp internet files deleted - to clear cache - to no avail.
It seems that "http://localhost:8080" is...
webapps/examples/WEB-INF/classes&lib
under classes/com/samples/model&web
myForm.html is the only file under examples
WEB-INF has a web.xml file
All other directories are empty
The error msg is Tomcat generated,
so I know I get that far
Thanks sedj. It is still not working - still get the same error. The browser path shows 'examples' instead of 'webapps'. Will try other paths tonight if you think it's path related. Could it have something to do with permissions? The form loads fine when selected from Windows Explorer, just...
I am a newbie and just installed Tomcat 5.0.28 on my home Windows XP machine. I am getting the HTTP Status 404 -/webapps/myForm.html error: "the requested resource (/webapps/myForm.html) is not available. The HTML file is in "C:/tomcat/webapps/examples/myForm.html". The URL in the browser window...
The OS is Windows 2000. The idea is to provide an admin with a Web browser an HTML page where they have a link that
accesses a servlet (remotely). The servlets job would be to open a CMD.exe on the server (machine) itself with some parameter - like running a batch file. Hence, running the...
I there a way to have a servlet fire an executable on a remote box? I want the user to push a "go" button on an html form which comes to the servlet - which in turn initiates a job on a remote machine (such as cmd.exe). If this is possible, please help me with the key points - mainly, getting...
I would like for the user to press a 'submit' to view information supporting the current page. The form inputs are submitted to a Java servlet. How do I present the information in a new page?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.