Forums Register Login

how can i use tag library within mvc architecture?

+Pie Number of slices to send: Send
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!
+Pie Number of slices to send: Send
IMHO, you don't. Database access tag libraries that encourage you to mix model and view are incompatible with the MVC design pattern.
Kyle
+Pie Number of slices to send: Send
thanks
i think most web program use mvc architecture,but when i use such a tag?
+Pie Number of slices to send: Send
 

Originally posted by zb cong:
thanks
i think most web program use mvc architecture,but when i use such a tag?


Never.
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 747 times.
Similar Threads
Difference between MVC1 and MVC2
MVC Design
How to display Database query in JSP?
Difference between Model1 and Model2
Can a Page can act as a controller in MVC arch.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:03:42.