TCLUG Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG-DEVEL:289] JSP, Bean and Servlet
Bob Tanner wrote:
>
> Read an interesting article in JavaPro about Presentation, Model and
> Controller design pattern (think this is it, left the mag at home).
>
> Anyways, it talks about using JSP as the presenation, a Java Bean as Model and
> Servlet's as the controller.
>
> JSP's get their info from the Bean for display on the web.
>
> Servlet's manipulate the info on the Bean.
>
> The Bean just sits there and holds the data. :-)
>
> I understand the JSP can POST/GET to the servlet, that communication channel is
> clear.
>
> I also understand how JSP can retrieve data from the Bean. The Bean is
> instantiated inside the JSP, so that is simple.
>
> What I don't understand is how does the Servlet communicate with the Bean?
Having not seen the article, I would assume the following: the JSP would
talk to the Bean through custom tags. Each tag is supported by a Java
class that implements the Tag interface.
--
Perry Hoekstra
E-Commerce Architect
Talent Software Service
dutchman@mn.uswest.net