James Lee

Ranch Hand
+ Follow
since Oct 16, 2006
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 James Lee

Thanks a lot for your points. They are very helpful.
11 years ago
JSF
Hi,

I'm using JSF 2.0. Something is weird with servlet-mapping setting.

If I use *.jsf url pattern (see below), .../hello.jsf url works fine.

However, if I use /faces/* url pattern (see below), .../faces/hello yields "The requested resource () is not available." error.

I want to use folder-structure url in my 2nd case, i.e., no extension in the url.

Based on the settings, .../hello.jsf and .../faces/hello should result in the same page from hello.xhtml. Does anyone know what's going wrong there?

Many thanks!
11 years ago
JSF
Thanks. I've successfully checked out the project.

Command: svn checkout [url].
13 years ago
Hi,

Can anyone give steps of how to check out mvc-showcase project? The project is at https://src.springframework.org/svn/spring-samples/mvc-showcase/.

Thank you.
13 years ago
Hi,

In a recent project, custom exceptions were used. They used J2SE exceptions implmentation as their implementation. In other words, everything was the same except the exceptions' names. My question is what point to use the custom exceptions. Why not to use J2SE exceptions directly?

Thanks.
13 years ago
springsource.org site said it would release a new tutorial with Spring 3.0 but I can't find the tutorial. Does anyone know where it is?

This is the one for Spring 2.5.

Thanks.
14 years ago
Hi Sona,

I've figured it out using sequence.

Thanks a lot.

14 years ago
Hi,

Can anyone show me how to do it? Basically something like this: but it's not working.

It can be done with two queries but I'm wondering if it can be done with only one query.

Thanks.
14 years ago
I've been feeling division of Java forum into three (advanced, intermediate, and beginner) is kind of bothering. There are basic questions in the advanced one. On the other hand, there are advanced topics in the other two. If we want to browse posting, we have to go through each group. If we want to post something, it's hard to decide which group it should go into.

Can JavaRach merge the three into one?

Thanks.
14 years ago
Hi,

When we create a jsp in eclipse, should ascii or binary mode be used? I know the two modes are related to data transfer between local and cvs but there is no difference and impact in my project by switing them. Can anyone say something about the modes? Usually which one should be used for jsp?

Thanks.
I see. Thanks so much for your help.
15 years ago
Hi,

The dot . is not allowed to be used in an interface name but why java.util.Map.Entry interface is named using "." Anyone can explain it?

Thanks.
15 years ago
Hi all,

I need to load a class from another package but don't want to instantiate it.

The problem is I can't load class A in class B using .class or forName(...). The classpath is set OK as class A can be loaded using . I guess something is going wrong with ClassLoader so I enforce using the system class loader like this but still got java.lang.NoClassDefFoundError exception.

What might cause the issue?

Thanks.
15 years ago
Thanks Merrill. I'll take your suggestion.
15 years ago
Based on convention, a style should be kept in a view or in a properties file? e.g. is option 1 or option 2 preferred in the following?
Option 1




Option 2




Thanks.
15 years ago