Louise Brown

+ Follow
since Sep 08, 2008
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Louise Brown

I took Java a long time ago, and now I'd like to apply for a job as an entry-level Java programmer.

To help my chances of getting hired, I'm writing a Java project. The code
1) reads the contents of a MySQL database (using JDBC),
2) displays the database contents in a web page (using JSP), and
3) lets the user type in the web page and click buttons, in order to add, modify or delete the database items.

I plan to put a link to that project in my resume.

The problem is, I've read that JSP has been replaced with JSTL, EL and REST web services. Is that right? Has JDBC been deprecated also?

If so, then I guess I'll have to learn those technologies, so that I'll be up-to-date, and then re-write my project to include the new technologies.

What should I learn first? Do I first have to learn Java Beans, then EL, then JSTL? Is REST independent of those three subjects?

Do you have any recommendations for books or online tutorials that I should read? Thank you.
3 years ago
I need to learn how to write HTML, CSS and JavaScript that will work regardless of operating system and web browser. For example,

Several web sites discuss the best approach to take. (They say that we should check whether browser objects contains needed features, instead of "browser sniffing".) But what I need is a checklist of all items that I need to check.

Does anyone know of a website that has a list of items (ex: event vs window.event) that I need to check?

Thank you.
I've tried something that seems to work on Mac OS X on Safari. I wonder if it works on all operating systems and browsers.

Suppose these two lines are in my HTML, with the second line immediately following the first:

Will myjs.js always be completely imported before doSomething() starts executing, on all operating systems and browsers?

Thank you.
Sometimes when I display a web page, the title that appears at the top of the browser window is incorrect, but then it automatically changes to the correct title. It seems that the browser does this:
1) Display the title at the top of the browser window as the html file name (in Safari), or the title of the previous web page (in Firefox).
2) Execute any window.onload JavaScripts.
3) Change the title at the top of the browser window to the correct title.

For example, suppose you display this file in Safari on a Mac. The title at the top of the browser window will be the name of the html file for a moment, before the correct title appears.

The delay in displaying the correct title also occurs if the user has to respond to an alert. For example in this web page, you see the file name as the title, until you respond to the alert (using Safari on a Mac):

With Safari, I have this problem with both of the above html files. With Firefox, I have this problem only with the first file (the web page that increments i). With Opera, both html files work ok.

Setting the title at the top of the JavaScript doesn't solve the problem - the correct title doesn't appear until after the JavaScript finishes.

If I refresh the web page, the title is ok - the correct title appears right away. I have this problem only when I display the web page in a new window.

I tried putting the JavaScripts into jQuery $(document).ready functions, but had the same problem.

Does anyone have a suggestion for how to make the correct title (either in the <title> tag, or set by "document.title =") appear immediately? Thank you very much.
I've written a web page called a.html.

The top part of a.html has a textarea called "userInputArea".

The bottom part echoes the user input. It has a span called "outputNode", which contains the result of JavaScript reading and processing the user input.

Function setResult() copies the content of userInputArea into a string called "userInputString". It then copies userInputString into a string called "outputText". It then calls replaceNodeText(), to replace the contents of outputNode with outputText. (replaceNodeText() is a function in the Head First JavaScript book.)

A friend and I tested entering lines in the textarea, and checking the content of outputNode on the web page. On Windows XP, running Firefox 3.08 and Internet Explorer 8, it ran fine. It also ran fine on Mac OS X 10.5, running Firefox 3.08 and Opera 9.27.

However, I had a problem running Safari 3.21 on Leopard. I put some alerts into a.html, which tell what some counts are. The alerts are triggered by keystrokes. (After you see the alerts, cancel them by clicking on the "OK" button. If you type Enter to cancel the alert, the web page run setResult() becuase you typed a key.)

The problem is that whenever the most recent line that I enter is a blank line, Safari seems to think that there is an extra blank line at the end - a blank line that I didn't enter. Then when I enter a non-blank line, the extra blank line at the end goes away.

For example:

Suppose I type the letter "a". The alerts will say that there is one character in the textarea - the letter "a".

Now I type the "return" key. The alerts will say that I have typed three characters - the letter "a", followed by two carriage returns.

Now I type the letter "b". The alerts will say that I have typed three characters - the letter "a", followed by a carriage return, followed by the letter "b".

If you comment out the alerts so that you're not distracted by them, and the run the test again, you'll see this: After you type a blank line at the end, the "End of the data that you entered" line goes down one line too far, and after you type the "b", the "End of the data that you entered" line moves back up where it should be.

I also tried this on the Safari 4 public beta for Mac OS X. The test worked better with that browser, but it still wasn't right. After I typed a blank line, the "End of the data that you entered" line went down one line too far, and then immediately jumped up to where it should be.

Safari works as I would expect when there are embedded blank lines. I just have problems when the last line is blank.

Am I doing something wrong? Is there a workaround? (This is a simplified version of a web page, which needs the newlines to be correct.)

Thank you very much.
11 years ago
Thanks. The people here are very nice and friendly.
11 years ago
Do you mean JavaPassion , which is a web site written by Sang Shin of Sun?
( http://www.javapassion.com/ )
11 years ago