|
-
Jan 31st, 2007, 05:43 AM
#5
Re: Jstl / Mvc
In short, <jsp:useBean> sucks for actually doing anything. The intention of it might have been to actually create the beans in Servlets and do all logic there, and then in JSP pages only retrieve the results.
Or perhaps they really expected the getters to do logic. In which case, shame on them.
Here's my advice: forget useBean. Use EL to retrieve properties, and use custom tags when you actually want to do something.
Ah, custom tags. Now that's some good stuff.
Checking authentication, on the other hand, is IMO a task for a filter. Using a filter here means that you don't have to put the check in every single page you create.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|