This week's book giveaway is in the Open Source Projects forum.
We're giving away four copies of Spark in Action and have Jean-Georges Perrin on-line!
See this thread for details.
Win a copy of Spark in Action this week in the Open Source Projects forum!

Ben Weaver

Ranch Hand
+ Follow
since May 10, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ben Weaver

Mo et al.,
Pardon the delay; I've been too busy the past few weeks to visit this site. I forget the urls of those WAP tutorials. If I find them, I'll let you know. Do what I did; type in "WAP tutorial" or "Nokia tutorial" in Yahoo, and see what you get.
19 years ago
Also, get around the recruiters by finding job listings in
(1) hotjobs.com
(2) newsgroups (Thanks, Tony Alicea!)
(3) newspapers
(4) local tech newspapers or websites (to find these, go to the biggest bookstore in an area where there is a lot of programming going on, ask the next person in the Java section, "Are you a Java programmer?" and ask him/her what local sources exist. In the Baltimore/Washington D.C. area, for example, there is a site www.haborjava.org. Humble it may look, and shut down it may often be on its little server, but real jobs it lists from the companies themselves.
19 years ago
Wow, our server just went down and my long reply here was wiped out. ANYWAY, here is what I said in an abbreviated format.
I have been having good luck on the job search here in Washington D.C. and I know that this in part owes to my experience with relational databases.
1. Learn about databases if you don't know them already. Oracle is the best one to know. You might buy a copy of personal Oracle which you can install on your p.c. Alternatively, download one of the free online databases, i.e. MySqL or Postgres (I think).
2. Write a servlet that connects to this database via JDBC. If you can write a JDBC-enabled servlet, you will likely be able to land a job. To learn about servlets, read sun's online servlet tutorials (www.javasoft.com, under the "developer" category, or, as I HIGHLY recommend, read "Core Servlets and Java Server Pages," by Marty Hall. These materials will give you what you need to know. Learn about the Java JDBC interface (a much else) from David Flanagan's "Java Enterprise in a Nutshell," or from the jdbc tutorial at www.javasoft.com.
What's hot? Well, in D.C., servlets are huge, Java Server Pages (jsp), perhaps even more so. After writing a servlet or two, describing WHAT YOUR PROGRAM DOES in your resume, and after applying for a few jobs, then write a couple of JSPs. Learn about JSP from Hall's book or from online tutorials by IBM (hunt around on their "education" site), by Gamelan (look this up on yahoo) and other sites gleaned from a search on yahoo for "Java Server Page tutorial." JSP error messages will seem weird and frustrating for two days. Then, when you will realize that most of the weirdness derives from improper placement of jsp tags (e.g. "<", ">"), they will get alot easier.
Want a little pizzaz? Learn a little XML. To find out what XML is, read the comments by Frank Carver, et al. in the XML chat group on this website (Javaranch). Then buy "XML Step by Step," by Microsoft Press to start with simple applications writable on Microsofte explorer 5. There's also a good tutorial called "Learn XML in 11.5 minutes on the web on some website (maybe xml.com).
Want a little more pizazz? Go to Nokia.com and download their WAP wireless server emulator. Hunt around on the web for a tutorial on WAP-enabled servlets (there are several of these). Write one of the servlets, or (as I did), modify one of their examples. They aren't hard. However, these will appear as attractive tinsel decorating your resume, and may differentiate you as a job candidate.
Nevertheless, most important of all I have mentioned is to learn how to connect to a relational database and to display the information extracted from them on the web.
Good luck!
19 years ago
Answered my own question. The problem lay NOT with security, but with the lack of an invocation of a Java plug in. Below are examples, from Sun, of the Old Way and the New Way of doing things in the .html file:
Traditional APPLET Tag:
<APPLET code="XYZApp.class" codebase="html/" align="baseline"
width="200" height="200">
<PARAM NAME="model" VALUE="models/HyaluronicAcid.xyz">
No JDK 1.2 support for APPLET!!
</APPLET>

New EMBED tag:
<EMBED type="application/x-java-applet;version=1.2.2" width="200" height="200" align="baseline" code="XYZApp.class"
codebase="html/" model="models/HyaluronicAcid.xyz" pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html">;
<NOEMBED>
No JDK 1.2 support for APPLET!!
</NOEMBED>
</EMBED>

For more info on plug-ins and on the <EMBED> tag, see:
http://java.sun.com/products/plugin/1.2/docs/tags.html

Ben Weaver

20 years ago
I've written an applet that comes up fine with appletviewer, but when I try to invoke it from the html page that refers to it, I get nothing more than "starting Java" at the bottom of the screen. The screen remains white as the applet is apparently never loaded.
I've located both the applet and the html page in the webpages directory of JSWDK-1.0.1, and refer to the name of the applet as "applet_name.class" under APPLET CODE. What is the matter with this applet?
20 years ago
Core Servlets and Java Server Pages, by Marty Hall (Prentic Hall) is great! It's full of practical examples, and extremly clear directions on how to install and configure a webserver, run a helloWorld servlet, etc. These basic instructions alone saved me huge amounts of time and were worth the price of the book. But there are also in-depth discussions of servlets and jsp applications.
Also good is Professional Java Server Programming (Wrox Press).
Ben Weaver
20 years ago
Thanks, Carl. I'm using 1.2.2_005. How weird that the code compiled for you. I'll try to compile it again, first on a different computer, then from a different version of Java.
20 years ago
Hi,
I've lately tried setting the jsp parameters in the weblogic.properties file in all sorts of ways, without success. My latest effort is:
weblogic.httpd.register.*.jsp=\
weblogic.servlet.JSPServlet
weblogic.httpd.initArgs.*.jsp=/d:/myserver/public_html
compileCommand=/d:/jdk1.2.2/jre/lib/ext/servlet.jar
workingDir=/d:/weblogic/myserver/classfiles
I have a jsp page (that I know works) stored in d:\weblogic\myserver\public_html. My .jar servlet compilation files are stored at d:\jdk1.2.2\lib\ext. I'm running Windows NT 4.0.
What settings in the weblogic.properties file will enable the successful execution of Java Server Pages and Servlets?
20 years ago
Hi,
I've lately tried setting the jsp parameters in the weblogic.properties file in all sorts of ways, without success. My latest effort is:
weblogic.httpd.register.*.jsp=\
weblogic.servlet.JSPServlet
weblogic.httpd.initArgs.*.jsp=/d:/myserver/public_html
compileCommand=/d:/jdk1.2.2/jre/lib/ext/servlet.jar
workingDir=/d:/weblogic/myserver/classfiles
I have a jsp page (that I know works) stored in Windows NT, d:\weblogic\myserver\public_html. My .jar servlet compilation files are stored at d:\jdk1.2.2\lib\ext.
What settings in the weblogic.properties file will enable the successful execution of Java Server Pages and Servlets?
20 years ago
Thanks, Bill. I checked out the hip-pocket guide. Indeed it looks good and easy to use. Another one I'll purchase is by Elizabeth(?) Castro, entitled something like "HTML 4.0 for the World Wide Web." Lots of photographs and images of parts of webpages next to the blocks of code that created them. Both books are cheap: 12.95 for the hip pocket guide and 15.95 for the Castro
You're indeed right, String does not have an append() method. But I'm calling append() on a StringBuffer in both cases.
20 years ago
Hi,
Here's the code I'm working with:
String updateSQLString;
String initSQLWords = "UPDATE spraddr SET ";
StringBuffer updateSQLSetClauseString = new StringBuffer(1024);
updateSQLSetClauseString.append(initSQLWords);
StringBuffer updateSQLWhereClauseString = new StringBuffer(1024);
updateSQLWhereClauseString.append(" WHERE");

On lines 4 and 6 I get "Identifier Expected" errors. I resorted to different usages of append() in each of these lines, placing first the String literal and then the String object between the parentheses of append(), in hopes of avoiding the error, but always with the same result. This code does not reside between { } brackets of any kind. WHY AM I GETTING THESE "IDENTIFIER EXPECTED" ERRORS???
20 years ago
Hi,
Here's the code I'm working with:
String updateSQLString;
String initSQLWords = "UPDATE spraddr SET ";
StringBuffer updateSQLSetClauseString = new StringBuffer(1024);
updateSQLSetClauseString.append(initSQLWords);
StringBuffer updateSQLWhereClauseString = new StringBuffer(1024);
updateSQLWhereClauseString.append(" WHERE");

On lines 4 and 6 I get "Identifier Expected" errors. I resorted to different usages of append() in each of these lines, placing first the String literal and then the String object between the parentheses of append(), in hopes of avoiding the error, but always with the same result. This code does not reside between { } brackets of any kind. WHY AM I GETTING THESE "IDENTIFIER EXPECTED" ERRORS???
20 years ago
Hi,
I want to learn a lot of HTML in a short time. Best would be a book that would continually show the HTML code along with examples of what it did, i.e. create a table or a frame, etc. In other words, not so much a dictionary of tags and attributes (I have one of those), but a book full of specific examples, from which you might learn whole blocks of code at once.
Does anyone know of a good book of this format?