java - What should I use instead of jsp:useBean? -
recently i've read articles , answers, suggests should avoid use of jsp:usebean tag communicate view layer controller layer. i'm developing view layer jstl , want know:
how access bean/servlet method view layer without jsp:usebean tag?
update
i thinking in servlet bean, put in1 jsp:usebean , use methods , vars, seems tag becoming old, that's why want see alternatives use beans or servlets or misunderstading use of tag?
if using <jsp:usebean> in application, means view directly interacting model data , controller here might not playing role. mv model (rather mvc).
in mvc approach request/response object used pass data between view , controllers; in turn forwarded model beans (model beans hold business logic operate on data).
i suggest use jsp implicit objects pass on data between layers. further using framework spring mvc here makes more sense, make life easy , hide complexities of app flow control.
Comments
Post a Comment