hi all,
i just want to post my idea and have some feedback, especially from
the gurus of the Model 2 architecture....
i have been developing JSP using JavaBeans and <jsp:get /set
Property.....so that all the logic is in the JavaBean...
and the presentation in JSP pages...
however, i still have some lines of java code in the JSP..'cause sometime i
have to check the parameters submitted by the user
now that i faced the Model 2 architecture...my question is:
why don't use Model 2 architecture in the following way?? :
- we have a Servlet/controller
- some Action classes..like what was described in previous threads by Daniel
Lopez, Kevin Duffey, Craig McClanahan
- some JavaBeans used directly by the JSP to retrieve the various
properties..
this way..i don't need , if for example i have to manage lot of JSP, to have
a config file in which i have to put all the JSP URL..
and neither to forward the request back from the Servlet to the JSP's...
i would like to have opinion on that from as much people as
possible.....'cause i would like to know what are the
possible drawbacks
thanx in advance and best regards
marco
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets