leo donahue

Ranch Hand
+ Follow
since Apr 17, 2003
Merit badge: grant badges
For More
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 leo donahue

I've seen a few variations of the MVC pattern when it comes to swing applications. However, my question is a little bit more general than just swing and it relates to what exactly belongs in the model.

I've adapted a sample I found online regarding the MVC pattern.

Should only the controller have access to update the View?

Is the code in Model.java considered "model" code, or does what I have in Model.java actually belong in Controller.java?




I assume you're talking about the difference between these?

The first one is just a value you supply.
The second one is a binding to a value that comes from your bean property.
12 years ago
"When you install your application". Install it on an existing Tomcat instance? Or somewhere else?

Tomcat serves static resources as good as any other http server - my opinion.

You can create a virtual directory in Tomcat using a Context.

12 years ago

Standard Layout Directory:

/WEB-INF/lib/ - This directory contains JAR files that contain Java class files (and associated resources) required for your application, such as third party class libraries or JDBC drivers.

When you install an application into Tomcat (or any other 2.2/2.3-compatible server), the classes in the WEB-INF/classes/ directory, as well as all classes in JAR files found in the WEB-INF/lib/ directory, are made visible to other classes within your particular web application. Thus, if you include all of the required library classes in one of these places (be sure to check licenses for redistribution rights for any third party libraries you utilize), you will simplify the installation of your web application -- no adjustment to the system class path (or installation of global library files in your server) will be necessary.

12 years ago
Revanth didn't ask for pooled connection, Bear mentioned and Revanth picked up on it. Does Revanth know he wants pooled connection?
12 years ago

A. I don't know why I keep coming back to this forum, perhaps I'm just stupid.

B. An example that works for SQL Server:

C. Place the driver in the WEB-INF/lib directory of your webapp, not in Tomcat's lib directory. Why? Because sometimes you want specific database settings per webapp, not for the whole container.

Good luck...

12 years ago

Bear Bibeault wrote:And as I have said... I have no idea how anyone could read "don't put servlets on your resume" into that.

So what. Is it your job to know how?

You just can't let people have any opinion that is different than yours, can you.
12 years ago

What I read from Pat, is that Servlets are about as sexy/useful as the String Class these days... used all the time, etc, yet many people list Servlets on their resume over stating they know/use the String Class.

I'll concede that if all you know is servlets, then you have alot of ground to make up, but it depends on what you want to do.
12 years ago

Pat Farrell wrote:What are you really asking here? .... Which one? That changes weekly.

That was my point. Client side technology changes all the time and it depends on what your project is, as you have said.

In my field, I see Silverlight and Flex as the wrong choice for many projects, but you can't convince people blinded by "sizzle" of that.

On one hand, you're saying that Servlets != sizzle, but that sizzle is where it's at, in terms of getting a job. Was I wrong?

On the other hand, you say that you want to hire smart people, irrespective of whether they have experience in sizzle.

Is "sizzle" important or not?

For me, I see through sizzle and fear listing it on my resume for the fact that there are people such as yourself that would rather not hire based on sizzle alone.
12 years ago

Bear Bibeault wrote: .. client-side knowledge ..

Client side knowledge of which framework/plugin? jQuery, Flex, Silverlight, something else?
12 years ago

I extrapolated it from here:

... but no one will get a job just because they put the magic keyword "servlets" on their resume.

12 years ago

Bear Bibeault wrote:Perhaps because Pat is correct?

What? Correct in the sense that servlets are useful, yes.

Can you get a job with just Servlets on your resume, it depends on the employer and what their "java rock stars" are whispering in their ears.

Now are you telling me that you leave JSP and Servlets off your resume because they don't have any sizzle left? Honestly? That is what I thought.
12 years ago
Hi Dusan,

Check your web.xml for the welcome file. What is the name?
12 years ago
I guess.

I suppose if the OP asked Marty Hall what comes next after Servlets, he'd say "More Servlets". I'm suprised no one threw this out there already...
12 years ago

This mechanism seems to work fine until I submit the form without filling the input
text: as expected, JSF validation fails but when I change the value of the first selectOneMenu,
the page keeps displaying the values specified before JSF validation failed for the second and the
third selectOneMenu

Google for the JSF lifecycle and note that if validation fails, the model is not processed, it just skips to the render response phase.
12 years ago