Niels Laughlin

Greenhorn
+ Follow
since Apr 04, 2006
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 Niels Laughlin

Addendum: what do you think they meant by "Your score falls in the middle of the passing continuum" which I got in an email?
This wasn't there the last time I looked. My raw score was 26/42. In the six sections I had two "greens" and four "yellows". Obviously, I need to study more, however, does anyone have any feedback on this new feature? Thanks.
How do I change the netbeans 5.5 home directory? I.e., the one that appears when you click "help" and then "details"? Thanks.
Other posts have talked about this problem, that Prometric doesn't intend to fix the problem which is that if you go back to a drag and drop problem it will erase your previous answer (it's a feature!!!). BTW, about how many of these problems are there on the exam? It would be nice to know for strategy reasons. Thanks.
OK, I've solved my own problem. First of all, the netbeans uninstall when completed tells you that the uninstall was only partial. To complete the uninstall, you have to move things to the recycle bin. Secondly, the passwords can be found in .netbeans\5.5\apache-tomcat-5.5.17_base\conf\tomcat-users.xml, per the netbeans help files. Hope I didn't waste anyone's time. Best wishes, Niels.
I have Netbeans 5.5 with integrated Tomcat server. I needed to get into the admin console, but I didn't have the right password. So I uninstalled netbeans, downloaded it again, and reinstalled it. However, it still won't accept my password. I thought netbeans would give me a fresh copy of tomcat, but apparently not, due to the error messages I'm getting when I start the Tomcat server. Anybody know what the problem is? Thanks, Niels
I solved my own problem, it was just a version mismatch. All I had to do was add /jsp to the taglib, to wit:
<%@tablib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
Hope I didn't waste anybody's time. Thanks.
15 years ago
JSF
I'm trying to work my way through Geary/Horstmann's "Core Java Server Faces" and am having a problem with the library application in chapter 8. BTW, he has a new edition coming out in a couple of months so maybe this problem is fixed there. Also they admit to a "sleigh-of-hand" in this application and this may be it.

library/bookMenu.jsp is the following two line program:

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<c:import url="${book.directory}/${chapter}.html"/>

The error message is: "According to TLD or attribute directive in tag file, attribute url does not accept any expresssions".

Any suggestions? Is this something that changed in the latest release?
15 years ago
JSF
Thanks guys, in Firefox it's Tools-->Error Console. I re-introduced my error (a misspelled variable) and there was the error message!

FireBug looks great at first glance. But as I am just starting out I don't want to add another layer just yet--wrestling with NetBeans is bad enough! Thanks again, Niels
15 years ago
JSF
I'm going through the examples in Geary/Horstmann's Core Java Server Faces. I typed Listing 4-1 "javascript/index.jsp" into NetBeans. This program has an embedded javascript function. I made a typo in the javascript. When Firefox came up, nothing happened at all I decided to switch browsers, to IE. When I ran the app again, IE had an icon that you can click in the lower left hand corner that brought up a box that explained the script error. When I corrected the error, the app worked in IE. I then switched back to Firefox, and the app worked.

The problem seems to be that Firefox does not report javascript errors or reports them in a way I couldn't see. Any comments? Is this a known problem?
15 years ago
JSF
Hi, I'm just starting out, and am working through Chapter 2 of Marty Hall's Core Servlets and JavaServerPages. I appear to be having a problem with tomcat.

From Firefox, I enter //localhost:8080 and the tomcat home page appears. According to Hall, this indicates that tomcat is installed correctly. But when I try to redisplay it using //localhost:8080/index.html, Firefox tells me that it's not there. There are a few other things that indicate that the problem may be that firefox is trying to communicate with my DSL internet rather than my own PC's server. Any ideas as to what may be wrong? Thanks. Niels Laughlin
15 years ago
Very good answer, this explains exactly what is going on. Thanks.
15 years ago
Thanks, Brian Cole, your suggestion worked!!! To answer your question, I created a JPanel and put the scroller in it and then put the JPanel in a JFrame. Your suggestion to put the scroller directly in the JFrame worked.

However, I am curious as to why it worked.
15 years ago
I am trying to learn how to do things in swing, and I wonder if someone could help me with a component resize problem.

I am using the default JFrame border layout. The North panel contains a JLabel, a JTextField, and a JButton. The Center panel contains a scrollable JTextArea (a JTextArea embedded in a JScrollPane) and nothing else.

Suppose, however, the customer clicks the Maximize button, perhaps because a particular query results in a lot of text. As expected, the window maximizes, the components move around, but nothing changes size. What I would like have happen is for all the components to continue to do this except for the JTextArea. I want it to expand to fill all the available space. In other words, the JTextArea should automatically resize whenever the window is resized.

How do you do this?
15 years ago