Tom Caldwell

Ranch Hand
+ Follow
since Oct 09, 2000
Merit badge: grant badges
For More
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 Tom Caldwell

I asked this very same question in this forum about a month ago. I had started to code my own servlet when I ran into a much easier way. If you have sas, there is a new option in version 8 that creates an applet from your data, in my case db2. Once created you can then click on the applet and change the graph type from a bar, to a pie graph, to a line graph, change colors, backgrounds, shapes, connectors, etc.
My manager needed 89 graphs in a hurry and this made it a snap to do in a very short time.
22 years ago
Thanks all,
All of the above should be enough to get me going.
22 years ago
The algorithm,
It was mainly your books that got me certified so I ordered the servlet book even before it came out, and I see the Go board on page 89, but I think I'm looking for something simpler. I've got a servlet that reads from DB2 and creates a bar graph(only by stretching a gif)and I'm trying to just make a simple line graph instead.
22 years ago
Can someone point to a book or some code that does a simple line graph in a servlet? I've done very little with graphs and just looking for a simple place to start.
Thanks
22 years ago
Never mind
This was a how dumb can I be error
Yes sorry that's a typo
They both should be string 2
[This message has been edited by Tom Caldwell (edited September 06, 2001).]
[This message has been edited by Tom Caldwell (edited September 06, 2001).]
Is there a data conversion issue with DB2 or Can someone tell me what I'm missing in this code. Even though string(2) is ABC it always prints out "didnt" ???
type = rs.getString(7);
if (type.equals("ABC")) {
out.println("worked");
}
else{
out.println("didnt");
}
Thanks
Thanks John, and I guess I should read up on it 1st but thats the area I'm not clear about with swing.
OK my servlet does produce normal html and within this html I have one those applet scrollers with info about the servlet and some links. Its all just displaying on the browswer?? It seems like I could be able to work swing in there somehow?
and how did I get to be a ranch hand? Is that a numer of posts thing?
22 years ago
Perhaps this is a dumb question as I've never done anything with swing yet. BUT, if I have the swing .jar files that are installed with websphere and I have database servlet that starts from and then displays its results in html,
Why can't I use swing to spice this up a little?
I have read the other posts but I still don't see why
Thanks !!
22 years ago
Thanks Sean,
That works fine, I'll use it.
Still seems like a lot of work to do something so simple ?
22 years ago
I'm sure this is easy to do but I'm not getting it. ?
All I need to do is parse a string in the middle and take the 2nd half as in
select * from table where something = something
I need to get from "where" on, isn't StringTokenizer the way to do this ?
Thanks
22 years ago
Very clever Jason,
I feel your pain
23 years ago
Bill Brogdens book has some very good explanations,
I have several JSP books and while reading his I often thought to myself "now I get it"
23 years ago
Yes but if "myResult" above is the SQL from the bean how do I call that in JSP? like I would in a servlet by > - while(myResult.next())
Nothing I try works, JSP seems much more confusing to me at the moment than servlets ever did.
Thanks