wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes how can i use tag library within mvc architecture? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how can i use tag library within mvc architecture?" Watch "how can i use tag library within mvc architecture?" New topic
Author

how can i use tag library within mvc architecture?

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
hello

in some tag libraris such as jakarta tag library and jrun tag library,there is database
access tag, it provide convenient function to access database from jsp page,but i wonder how can i use such a tag within MVC architecture.
as we know,in MVC architecture,all requests from the jsp pages are submit to the controller servlet,then the controller manipulate ejb to access database,it don't allow the database access from the jsp page.

who can tell me how can i combine the tag library with mvc architecture appropriately?
thank you!
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
IMHO, you don't. Database access tag libraries that encourage you to mix model and view are incompatible with the MVC design pattern.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
thanks
i think most web program use mvc architecture,but when i use such a tag?
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Originally posted by zb cong:
thanks
i think most web program use mvc architecture,but when i use such a tag?

Never.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how can i use tag library within mvc architecture?
 
Similar Threads
Can a Page can act as a controller in MVC arch.
Difference between Model1 and Model2
How to display Database query in JSP?
Difference between MVC1 and MVC2
MVC Design