Difference between filters and front controller?

I have readed more than 4 documents about each but couldnt understand the exact difference...

By url mapping you can also filter something with front controller(controller servlet)We can redirect the requests to controller and filter it and then dispatch it.

So is there any reason that i choose one of them?

[327 byte] By [netsonicca] at [2007-11-27 11:21:29]
# 1

> I have readed more than 4 documents about each but

> couldnt understand the exact difference...

>

Tell us what did you understand from filters and front controller. Hope based on that we might help you out.

my_foruma at 2007-7-29 14:49:04 > top of Java-index,Java Essentials,New To Java...
# 2

> I have readed more than 4 documents ...

hmmm...

Navy_Codera at 2007-7-29 14:49:04 > top of Java-index,Java Essentials,New To Java...
# 3

If i would know the difference i dont ask such a question! Anyone wants to make me clear?

Thanks

netsonicca at 2007-7-29 14:49:04 > top of Java-index,Java Essentials,New To Java...
# 4

> I have readed more than 4 documents about each but couldnt understand the exact difference...

They serve a different purpose. A front controller is *the* central manager for request handling. A filter is used to "attach" behavior during request handling.

~

yawmarka at 2007-7-29 14:49:04 > top of Java-index,Java Essentials,New To Java...