Re: Someone is using Tomcat for spreading spam?
Yes, Everytime I resubscribe to the user list I am bombarded with Spam. Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Behrang Saeedzadeh [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Friday, February 25, 2005 5:57 AM Subject: Someone is using Tomcat for spreading spam? Hi I get spam message from Tomcat's mailing list? Is anybode else having this problem either? I just recieved a message that had the same title as my last message with a Re: appended to it. Does anybody else also recieved this message? It's something from Harvard whatever... bla bla... Regards, -- Behrang Saeedzadeh http://www.jroller.com/page/behrangsa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fw: Request for example of use of Sun's FtpClient or Apache's FTPClient
Hello, Does anyone have an example of how to use these classes which includes how the client destination file name must be specified? I have tried both from within servlets and in both cases it finds the source file correctly but then writes the ftp get to the server. Should they not be invoked from a servlet? If so, how are they used so that the file from the server is ftp'd to the client? Regards, Susan Hoddinott http://www.hexworx.com
Request for example of use of Sun's FtpClient or Apache's FTPClient
Hello,Does anyone have an example of how to use these classes which includes how the client destination file name must be specified?I have tried both from within servlets and in both cases it finds the source file correctly but then writes the ftp get to the server. Should they not be invoked from a servlet? If so, how are they used so that the file from the server is ftp'd to the client? Regards,Susan Hoddinotthttp://www.hexworx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hiding an ftp URL
Hi, I was attempting to use an http ftp command as in the former case. I thought there might be some way of mapping it to some sort of a synonym like used for servlets in the web.xml file? Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Peter Crowther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 10, 2004 5:28 PM Subject: RE: Hiding an ftp URL From: Susan Hoddinott [mailto:[EMAIL PROTECTED] I am wondering what the best way to avoid display of an ftp URL is when redirecting to an ftp location. Are you redirecting the user's browser to that location, or are you wanting to obtain content from that location to send to the user's browser via a servlet running under (say) Tomcat? If you want to do the former, it's not possible as the browser's address bar / properties window will show the FTP location. If the latter, one simple approach would be to write a servlet that opened a ReadStream on the FTP resource and repeatedly read from that and wrote to the servlet's output stream; I have no doubt there would be better and more standard ways if I was more familiar with the servlet spec! - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hiding an ftp URL
Hello, I am wondering what the best way to avoid display of an ftp URL is when redirecting to an ftp location. The ftp address includes a host name and string. Should it be mapped in web.xml like a servlet, set up as a context parameter? What would be the best and most secure way? Regards,Susan Hoddinotthttp://www.hexworx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Socket write error 10022
No. This is not the problem. This is occurring at the testing stage and no stop button is being pressed. Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 2:32 PM Subject: Re: Socket write error 10022 If this isn't in the FAQ already, it should be ;-). SocketWriteErrors are almost always the result of the user hitting the stop button in the browser before the page is fully loaded. The fix is to make your content more interesting, so users stop doing this, or to make it load faster so that they don't get the chance ;-). Susan Hoddinott [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I recently upgraded my java JVM from an earlier version of 1.3.1 to 1.3.1_09. I found when I did this that some things which were previously working now give the following error: // MonitorFilter::IOExceptionMonitorFilter::A web application object caused an exception MonitorFilter::java.net.SocketException: socket write error (code=10022) at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:91) at org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java:679 ) at org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseBase. java:741) at org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:652) at org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:312) at org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponseStre am.java:175) at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:18 93) at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1642) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav a:1194) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter .java:223) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.j ava:142) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
Socket write error 10022
Hello, I recently upgraded my java JVM from an earlier version of 1.3.1 to 1.3.1_09. I found when I did this that some things which were previously working now give the following error: // MonitorFilter::IOExceptionMonitorFilter::A web application object caused an exception MonitorFilter::java.net.SocketException: socket write error (code=10022) at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:91) at org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java:679) at org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseBase.java:741) at org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:652) at org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:312) at org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponseStream.java:175) at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1893) at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1642) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1194) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:223) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.java:142) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) // I tried 1.3.1_08 and it did the same thing. As the errors are clearly Tomcat related, is there something in my Tomcat configuration I also need to change? Does anyone know what this error is and how it may be fixed? Regards,Susan Hoddinotthttp://www.hexworx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: why is tomcat accessing webapps/examples
Hi, If you are using Windows I find that using the System Tools to delete Temporary Internet Files seems to overcome whatever caching is occurring. Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Paridhi Bansal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 14, 2003 12:36 AM Subject: why is tomcat accessing webapps/examples HI!!! Why is it so in tomcat server that even when i have deleted all the folders(example,ROOT,tomcatdocs,manager,etc) from webapps directory except mine which i have created and removed the corresponding directory entries from server.xml, still in the log files, i get errors like Accessing /webapps/examples Error finding web.xml in webapps/examples/WEB-INF Why does it try to access examples directory???From which specific file do i need to remove the entry for example directory Paridhi -- __ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: images not appearing
Hello, I had exactly the same problem and found that gifs need to be referenced as /MyGif.gif. This makes it look in the web root directory (i.e. where your HTMLs and JSPs are). If you have a sub-directory then it might become /images/MyGif.gif. I messed around with this for ages trying the context path and all sorts of other things including preceding dots etc. as in your examples. Also check the case of your gif file name because if you are ftp'ing from Windows it could be putting them in in uppercase. Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Mark Biciunas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 3:09 AM Subject: images not appearing I am deploying a test servlet on Tomcat 4.1.24. Everything works great, the servlet executes, I get results back at my browser, but none of the images show up. In conf/server.xml, I have added the following: Context path= docbase=helloworld debug=99 Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_helloworld_log. suffix=.txt timestamp=true/ /Context In webapps/hello/WEB-INF/web.xml, I have the following: web-app ... servlet servlet-namehelloworld/servlet-name servlet-classhelloworld.Hello/servlet-class /servlet servlet-mapping servlet-namehelloworld/servlet-name url-pattern//url-pattern /servlet-mapping /web-app The image directory has been created in webapps/hello, and the requested image does exist. As part of trying to resolve this, have placed copies of the image directory up and down the directory tree and tried calling the image in the servlet in a number of ways (ie: /images/image.gif, ../images/image.gif, images/image.gif). Nothing seems to work to get the image to display!!! Any and all ideas would be greatly appreciated at this point!!! Mark [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [off-topic] - Where can i find Oreilly's package for uploading files?
Have you tried www.oreilly.com? Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 10, 2003 2:02 AM Subject: [off-topic] - Where can i find Oreilly's package for uploading files? Hi, i have tried to search for , but i didnt find it. Can somebody help me? Thanks in advance, Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI scripts
Hi, I don't know if this is too simple an answer to your question but it is similar to what I have been trying to do and I have discovered that they can be referenced in the all the same ways as a normal http address, e.g. anchors, etc. (e.g. http://localhost/directory/cgiscriptname. If you need something more complicated then look at URLConnection and HttpURLConnection. You effectively simulate a servlet GET request by opening an input stream on the connection but you may need to use URLEncode for the parameters. Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: harsh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 07, 2003 4:02 PM Subject: CGI scripts Hi can i run cgi scripts too through apache if yes then how and where to place them ? -- harsh http://www.cse.iitb.ac.in/~harsh -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compensating for applet security restrictions
Further to my earlier comment. I would also question whether making the applet trusted would make any difference. It seems that given its current behaviour this would just allow it to freely read and write to the client rather than reading and writing from the server. Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Susan Hoddinott [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 1:15 PM Subject: Re: Compensating for applet security restrictions Hello, I have thought about signing but unfortunately I have many of these files which can be automatically created by users and therefore I cannot expect them to have CA. Can you give an example as to how deployment of the program as a Java Application would differ as effectively this is what I am doing. The first applet just takes parameters and either runs the program as an applet or an application but the security which is inherited appears to be that for an applet in either case? Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Atreya Basu [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 7:15 PM Subject: RE: Compensating for applet security restrictions If you need to read and write to a file, just keep the files on the server. You can pull a resource off the originating server to read something. Writing to a file is probably going to be a problem however. You could always sign the applet and then you would be able to read and write all you wanted. The other option is to simply deploy it as a Java Application instead of an Applet. That seems a lot more appropriate for what you are trying to do. Atreya _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Susan Hoddinott [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 2:35 AM To: Tomcat Users List Subject: Compensating for applet security restrictions Hello, I currently have a JSP with an APPLET tag (including EMBED and OBJECT references) which runs a JAR file located on my server. The program runs fine but because the APPLET is run by the Java plug-in whenever it needs to read or write data it attempts to read or write the data from or on the client machine, which is clearly inappropriate. I do not want to use servlets as I would like to distribute the APPLET and program when I have finished and do not want to assume servlet support. The jar file first program is a JApplet and this creates a JFrame using a normal class file. All other programs are normal classes (i.e. non-applets). I want to use the graphics environments on the client machine as my own web server does not have an installed graphics environment. I have been investigating URLConnections, Sockets, Proxy Servers and RMI and have been left feeling confused as I am unclear which is the best approach and all seem very complicated to overcome what seems to be a simple problem. Furthermore, all examples seem to use a single text file whereas I want to default all IO to the server rather than the client. Does anyone know a solution for this problem? Regards, Susan Hoddinott http://www.hexworx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compensating for applet security restrictions
Hello, I have thought about signing but unfortunately I have many of these files which can be automatically created by users and therefore I cannot expect them to have CA. Can you give an example as to how deployment of the program as a Java Application would differ as effectively this is what I am doing. The first applet just takes parameters and either runs the program as an applet or an application but the security which is inherited appears to be that for an applet in either case? Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Atreya Basu [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 7:15 PM Subject: RE: Compensating for applet security restrictions If you need to read and write to a file, just keep the files on the server. You can pull a resource off the originating server to read something. Writing to a file is probably going to be a problem however. You could always sign the applet and then you would be able to read and write all you wanted. The other option is to simply deploy it as a Java Application instead of an Applet. That seems a lot more appropriate for what you are trying to do. Atreya _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Susan Hoddinott [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 2:35 AM To: Tomcat Users List Subject: Compensating for applet security restrictions Hello, I currently have a JSP with an APPLET tag (including EMBED and OBJECT references) which runs a JAR file located on my server. The program runs fine but because the APPLET is run by the Java plug-in whenever it needs to read or write data it attempts to read or write the data from or on the client machine, which is clearly inappropriate. I do not want to use servlets as I would like to distribute the APPLET and program when I have finished and do not want to assume servlet support. The jar file first program is a JApplet and this creates a JFrame using a normal class file. All other programs are normal classes (i.e. non-applets). I want to use the graphics environments on the client machine as my own web server does not have an installed graphics environment. I have been investigating URLConnections, Sockets, Proxy Servers and RMI and have been left feeling confused as I am unclear which is the best approach and all seem very complicated to overcome what seems to be a simple problem. Furthermore, all examples seem to use a single text file whereas I want to default all IO to the server rather than the client. Does anyone know a solution for this problem? Regards, Susan Hoddinott http://www.hexworx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compensating for applet security restrictions
Hello, I currently have a JSP with an APPLET tag (including EMBED and OBJECT references) which runs a JAR file located on my server. The program runs fine but because the APPLET is run by the Java plug-in whenever it needs to read or write data it attempts to read or write the data from or on the client machine, which is clearly inappropriate. I do not want to use servlets as I would like to distribute the APPLET and program when I have finished and do not want to assume servlet support. The jar file first program is a JApplet and this creates a JFrame using a normal class file. All other programs are normal classes (i.e. non-applets). I want to use the graphics environments on the client machine as my own web server does not have an installed graphics environment. I have been investigating URLConnections, Sockets, Proxy Servers and RMI and have been left feeling confused as I am unclear which is the best approach and all seem very complicated to overcome what seems to be a simple problem. Furthermore, all examples seem to use a single text file whereas I want to default all IO to the server rather than the client. Does anyone know a solution for this problem? Regards,Susan Hoddinotthttp://www.hexworx.com HexButton.gif- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing data files via APPLET tags in JSP pages
Hello, I am restricted in that my web hoster does not have an installed graphics environment (therefore any attempts to draw graphics offscreen in a servlet results in a null pointer from getLocalGraphicsEnvironment). In order to bypass this problem I have attempted to replace my servlet with an applet and I call this via an APPLET HTML tag in a JSP. It works fine except for the fact that any attempt to read a data file on the server seems instead to be interpreted as an attempt to read the file in a directory of the same name on the client, despite passing in such parameters as request.getRealPath(/) and request.getServletPath(). It also seems to use the JVM in any plug-in on the client machine rather than my preferred JVM environment on the server. Has anyone encountered these problems and found a way around them? Regards,Susan Hoddinotthttp://www.hexworx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing data files via APPLET tags in JSP pages
Thanks, I'll try that. The component toolkit methods and awt toolkit stuff were all looking for X11 and there did not seem to be anything else as you are probably aware. It does seems strange to me that the APPLETS will read sound and graphics files on the server but not a simple data file. Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Magne Skjeret [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:30 PM Subject: Re: Accessing data files via APPLET tags in JSP pages man, 09.06.2003 kl. 12.48 skrev Susan Hoddinott: Hello, I am restricted in that my web hoster does not have an installed graphics environment (therefore any attempts to draw graphics offscreen in a servlet results in a null pointer from getLocalGraphicsEnvironment). In order to bypass this problem I have attempted to replace my servlet with an applet and I call this via an APPLET HTML tag in a JSP. It works fine except for the fact that any attempt to read a data file on the server seems instead to be interpreted as an attempt to read the file in a directory of the same name on the client, despite passing in such parameters as request.getRealPath(/) and request.getServletPath(). It also seems to use the JVM in any plug-in on the client machine rather than my preferred JVM environment on the server. Has anyone encountered these problems and found a way around them? An applet is running on the client machine, not on the server. If the server is using java1.4 you can set the server to be headless, making it possible to create images and such on a server without a graphichs environment. -Djava.awt.headless=true on the startup script will make it run headless. I hope this can help. Magne Skjeret Regards, Susan Hoddinott http://www.hexworx.com __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing data files via APPLET tags in JSP pages
On this same subject, I was wondering if there is any way of forcing an APPLET to access a server file, e.g. via socket connection, etc.? Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Magne Skjeret [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:30 PM Subject: Re: Accessing data files via APPLET tags in JSP pages man, 09.06.2003 kl. 12.48 skrev Susan Hoddinott: Hello, I am restricted in that my web hoster does not have an installed graphics environment (therefore any attempts to draw graphics offscreen in a servlet results in a null pointer from getLocalGraphicsEnvironment). In order to bypass this problem I have attempted to replace my servlet with an applet and I call this via an APPLET HTML tag in a JSP. It works fine except for the fact that any attempt to read a data file on the server seems instead to be interpreted as an attempt to read the file in a directory of the same name on the client, despite passing in such parameters as request.getRealPath(/) and request.getServletPath(). It also seems to use the JVM in any plug-in on the client machine rather than my preferred JVM environment on the server. Has anyone encountered these problems and found a way around them? An applet is running on the client machine, not on the server. If the server is using java1.4 you can set the server to be headless, making it possible to create images and such on a server without a graphichs environment. -Djava.awt.headless=true on the startup script will make it run headless. I hope this can help. Magne Skjeret Regards, Susan Hoddinott http://www.hexworx.com __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating an HTML file with the correct codebase and archivevalue parameters for a jar in the /WEB-INF/lib directory
Thanks. Do you have the servlet spec reference link where this is explained? - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, March 28, 2003 11:51 AM Subject: Re: Creating an HTML file with the correct codebase and archivevalue parameters for a jar in the /WEB-INF/lib directory On Fri, 28 Mar 2003, Susan Hoddinott wrote: Date: Fri, 28 Mar 2003 09:25:45 +0800 From: Susan Hoddinott [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Creating an HTML file with the correct codebase and archive value parameters for a jar in the /WEB-INF/lib directory Hello, I am trying to create an HTML file which accesses classes and applets in a jar file (demo.jar) which is in the WEB-INF/lib directory. I seem to have problems getting it to recognise the existence of the jar file and/or more than the first applet in the jar file. If I put the jar in a known directory, it runs but takes about 5 minutes to load. Can anyone tell me what the values should be for codebase and archive so that it correctly finds the jar and classes. My HTML is as follows: This is not ever going to work. The servlet spec includes a requirement that no resources under /WEB-INF can be requested directly by the client. For applets, that means the .class and .jar files that you want to download must *not* be under /WEB-INF, because the browser will not be able to retrieve them. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating an HTML file with the correct codebase and archivevalue parameters for a jar in the /WEB-INF/lib directory
As you are aware of this problem and from my experience that putting a jar anywhere else seems to result in a large download time, what was your final solution? - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, March 28, 2003 11:51 AM Subject: Re: Creating an HTML file with the correct codebase and archivevalue parameters for a jar in the /WEB-INF/lib directory On Fri, 28 Mar 2003, Susan Hoddinott wrote: Date: Fri, 28 Mar 2003 09:25:45 +0800 From: Susan Hoddinott [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Creating an HTML file with the correct codebase and archive value parameters for a jar in the /WEB-INF/lib directory Hello, I am trying to create an HTML file which accesses classes and applets in a jar file (demo.jar) which is in the WEB-INF/lib directory. I seem to have problems getting it to recognise the existence of the jar file and/or more than the first applet in the jar file. If I put the jar in a known directory, it runs but takes about 5 minutes to load. Can anyone tell me what the values should be for codebase and archive so that it correctly finds the jar and classes. My HTML is as follows: This is not ever going to work. The servlet spec includes a requirement that no resources under /WEB-INF can be requested directly by the client. For applets, that means the .class and .jar files that you want to download must *not* be under /WEB-INF, because the browser will not be able to retrieve them. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating an HTML file with the correct codebase and archivevalueparameters for a jar in the /WEB-INF/lib directory
Thanks am downloading it now to see if I can get any more clues. - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, March 29, 2003 9:34 AM Subject: Re: Creating an HTML file with the correct codebase and archivevalueparameters for a jar in the /WEB-INF/lib directory Java(TM) Servlet API Specification (Specification) Version: 2.3 SRV.9.5 Directory Structure http://java.sun.com/products/servlet/download.html -Tim Susan Hoddinott wrote: Thanks. Do you have the servlet spec reference link where this is explained? - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, March 28, 2003 11:51 AM Subject: Re: Creating an HTML file with the correct codebase and archivevalue parameters for a jar in the /WEB-INF/lib directory On Fri, 28 Mar 2003, Susan Hoddinott wrote: Date: Fri, 28 Mar 2003 09:25:45 +0800 From: Susan Hoddinott [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Creating an HTML file with the correct codebase and archive value parameters for a jar in the /WEB-INF/lib directory Hello, I am trying to create an HTML file which accesses classes and applets in a jar file (demo.jar) which is in the WEB-INF/lib directory. I seem to have problems getting it to recognise the existence of the jar file and/or more than the first applet in the jar file. If I put the jar in a known directory, it runs but takes about 5 minutes to load. Can anyone tell me what the values should be for codebase and archive so that it correctly finds the jar and classes. My HTML is as follows: This is not ever going to work. The servlet spec includes a requirement that no resources under /WEB-INF can be requested directly by the client. For applets, that means the .class and .jar files that you want to download must *not* be under /WEB-INF, because the browser will not be able to retrieve them. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating an HTML file with the correct codebase and archive value parameters for a jar in the /WEB-INF/lib directory
Hello, I am trying to create an HTML file which accesses classes and applets in a jar file (demo.jar) which is in the WEB-INF/lib directory. I seem to have problems getting it to recognise the existence of the jar file and/or more than the first applet in the jar file. If I put the jar in a known directory, it runs but takes about 5 minutes to load. Can anyone tell me what the values should be for codebase and archive so that it correctly finds the jar and classes. My HTML is as follows: ** HTML HEAD TITLETestKit HTML Page/TITLE /HEAD BODY bgcolor="#99" text="#228b22" !--"CONVERTED_APPLET"-- !-- HTML CONVERTER -- OBJECT classid = "" codebase = "" WIDTH = "100%" HEIGHT = "100%" PARAM NAME = CODE VALUE = "TestKit.StartTester" PARAM NAME = CODEBASE VALUE = "" PARAM NAME = ARCHIVE VALUE = "/lib/demo.jar" PARAM NAME = "type" VALUE = "application/x-java-applet;jpi-version=1.3.1" PARAM NAME = "scriptable" VALUE = "false" PARAM NAME = "defaultPath" VALUE = "Tester/TesterDemo" / PARAM NAME = "defaultTestName" VALUE = "demo" / PARAM NAME = "Entry" VALUE="T" / COMMENT EMBED type = "application/x-java-applet;jpi-version=1.3.1" CODE = "TestKit.StartTester" JAVA_CODEBASE = "" ARCHIVE = "/lib/demo.jar" WIDTH = "100%" HEIGHT = "100%" defaultPath = "Tester/TesterDemo" defaultTestName ="demo" Entry ="T" scriptable = false pluginspage = "http://java.sun.com/products/plugin/index.html#download" NOEMBED /NOEMBED /EMBED /COMMENT /OBJECT !-- APPLET CODE = "TestKit.StartTester" JAVA_CODEBASE = "" ARCHIVE = "/lib/demo.jar" WIDTH = "100%" HEIGHT = "100%" PARAM NAME = "defaultPath" VALUE = "Tester/TesterDemo" / PARAM NAME = "defaultTestName" VALUE = "demo" / PARAM NAME = "Entry" VALUE="T" / /APPLET -- !--"END_CONVERTED_APPLET"-- /BODY /HTML - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Contract Work Hourly Rates
Why don't you take a statistical approach. Aim for sticker shock and work your way down until you get someone who begrudgingly pays your exorbitant rate. Could also try the other way - raise your rate with every rejection so they get a sense of urgency. - Original Message - From: Jeff Tulley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 27, 2003 6:40 AM Subject: RE: [OT] Contract Work Hourly Rates http://www.htmlgoodies.com/letters/221.html A recent htmlgoodies.com newsletter dealt with this subject, helping you with the formula since there is no real definitive easy answer that we could give you. Follow the link above, I hope it helps. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 3/26/03 3:26:27 PM Do you have a ballpark, since I was asked? At 03:15 PM 3/26/03 -0700, you wrote: In this economy, I usually ask the client how much they're willing to spend. Usually they will fess up and then you can decide from there. Telling them how much you (truly) want will usually result in yeah, right. Matt -Original Message- From: Micael [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 2:44 PM To: Tomcat Users List Subject: [OT] Contract Work Hourly Rates I have a job offer to do contract work coding websites. I am well versed in most of the areas required, and wonder what is a good hourly rate to ask for? I know Java (certified programmer), Tomcat, Struts, Ant, blah, blah, as well as scripting, Red Hat, etc. Thanks for any assistance. LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Netscape navigator
Does anyone know if there is a problem using Netscape Navigator with servlet pages generating their own html using the println function. Whenever I attempt to access servlets of this kind (which work fine under Explorer) I just get the HTML text (e.g. HTML etc.) displayed on the screen rather than what should be generated. Is there something special I need to do? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat hosting provider needed
Hello, Yes I have recently gone through the same exercise. There is a list at www.adrenaline.com. There appears to be a hugh variation in both prices and level of technical expertese. I emailed my requirements to a few and many were clearly just marketing oriented and tried to get me to change my requirements to suit there capabilities, etc. Based on clear and prompt responses to my questions (some dropped out after the first or second question), price and clearly demonstrated technical competence I went with qnix. I've been with them for just over a month and am still happy. Regards - Original Message - From: Turoff, Steve [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 4:39 AM Subject: Tomcat hosting provider needed Greetings, Can anyone recommend a good Tomcat hosting provider? I thought there was a list somewhere, but I can't seem to find it. Thanks, Steve Steven Turoff Peoples Health Network 200 W. Esplanade Ave., Suite 600 Kenner, Louisiana 70065 tel: 504.461.9800 ext. 4363 CONFIDENTIAL HEALTH INFORMATION This email message and any accompanying attachments are confidential and privileged. This information is intended solely for the addressee; access by anyone else is unauthorized. No confidentiality or privilege is waived or lost by mistransmission. If you are not the intended recipient, any forwarding, opening of attachments, disclosure, copying, distribution, or other action, is strictly prohibited. If you have received this electronic message in error, please delete it and any attachments and notify the sender at Peoples Health Network immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]