How to print String to default Printer, Help
Hi, there, What I want to do is: When the following code running, print "try to be printed" to my default printer, NOT my screen. Could you help me on it? Thanks!! (Sorry for the basic stupid question) David *** public static void main (String args[]) { str_mystring = "try to be printed" } *** __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JServ problems
[EMAIL PROTECTED] wrote: > > Hello, > > I'm working with Jserv 1.1.2 on Apache 1.3.12 on Red Hat 6.2. > Occasionally, when I POST a large number of parameters ( ~100 fields) from > an HTML form to a servlet, the last few parameters seem to be corrupted > somehow - I get binary characters and other junk when I do a > request.getParameter(x). ( I know getParameter() is deprecated, but surely > it should *work* ?). > > If anyone is willing to help, I can provide sample servlets that > illustrate this problem. Works fine with a Perl CGI script, though... Are you using Tomcat? If not, I suggest that you try it. You can get it at http://jakarta.apache.org/tomcat/. I would recommend version 3.2. There is a mailing list (with 100+ msgs a day, mostly RTFM cases), send mail to [EMAIL PROTECTED] -- Diego Pons Pharos Consulting LLC -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JServ problems
> [EMAIL PROTECTED] wrote: > > > > Hello, > > > > I'm working with Jserv 1.1.2 on Apache 1.3.12 on Red Hat 6.2. > > Occasionally, when I POST a large number of parameters ( ~100 fields) from > > an HTML form to a servlet, the last few parameters seem to be corrupted > > somehow - I get binary characters and other junk when I do a > > request.getParameter(x). ( I know getParameter() is deprecated, but surely > > it should *work* ?). > > > > If anyone is willing to help, I can provide sample servlets that > > illustrate this problem. Works fine with a Perl CGI script, though... Be aware that many web servers, Apache included, have a default size limit to the POST input stream. This is to prevent denial-of-service attacks where someone opens a post query and then delivers 3 gigs of crap to the server in hopes of filling its disk and/or ram and crashing the host. You may be passing the POST input limit and getting garbage in your variables instead of the data you thought you sent. Investigate your apache's config files, I think there's something in there that you can use to expand the POST input limit. Or you may have to rebuild apache to up the limit at compile time. The POST limit is large, but it's not infinite. -- Joi EllisSoftware Engineer Aravox Technologies [EMAIL PROTECTED], [EMAIL PROTECTED] No matter what we think of Linux versus FreeBSD, etc., the one thing I really like about Linux is that it has Microsoft worried. Anything that kicks a monopoly in the pants has got to be good for something. - Chris Johnson -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK1.2.2 & Redhat 7
Hi Guys, I have install the latest Redhat 7 and Installed JDK1.2 and everything appears to have installed okay BUT,,, when I run java, javac or appletviewer I get a sementation fault (core dump) Please help me Dave This mail item has passed through an insecure network. All enquiries should be directed to the message author. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]