Q&A
Q1: | I have an applet that takes parameters and an HTML file that passes it those parameters, but when my applet runs, all I get are null values. What's going on here? |
A1: | Do the names of your parameters (in the NAME attribute) match exactly with the names you're testing for in getParameter() ? They must be exact, including case, for the match to be made. Make sure also that your <PARAM> tags are inside the opening and closing <APPLET> tags and that you haven't misspelled anything. |
Q2: | Because applets don't have a command line or a standard output stream, how can I do simple debugging output like System.out.println() in an applet? |
A2: | Depending on your browser or other Java-enabled environment, you might have a console window where debugging ... |
Get Sams Teach Yourself Java 2 in 21 Days, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.