Hi
An article about Model 2 architecture can be found at:
http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html
Rgs
Madhavan
>From: Mistroni Marco <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: More on Model 2/little confused
>Date: Tue, 11 Apr 2000 12:39:49 +0300
>
>Hi All,
> i have followed many threads about Model 2 architecture, and at
>the
>hand i got
>this picture(please correct me if i am wrong) listed below shortly :
>- JSP 'sends' the request to the Servlet/controller
>- based on 'path info' the Servlet fetches from an Hashtable the correct
>Action class to instantiate
>- action class does the logic, populates a JavaBean and send the request to
>the JSP
>- the JSP fetches the request data and present it to the User
>
>Well, in this scenario something is not clear to me:
>- how can the Action class know the URL of the JSP page to send the
>response??? i don't want to hardcode it into the java class, and in one
>thread Craig McClanahan wrote
>
> >Now, I tend to add a public method in my controller servlet that can look
>up actual page names from a logical name (as >someone else in this thread
>recommended).
>
>well i did not get this idea......could u pls explain me more?? for
>example,
>suppose that i store all the URL of the JSP in the config file..and then
>populate (in the init() of the servlet) an Hashtable with all the
>URL....then when i communicate it to the Action?? do i say it when i create
>the Action class that i am going to use???
>
>the other thing that is not clear is:
>- how can i use a single instance of the various Action classes that i am
>going to use??? sorry for this question, but i don't know much about
>performance............will i have much disadvantages if i instantiate
>every request a new Action class??
>
>can anyone that got the picture explain it better to me??
>
>sorry Craig, Kevin and Daniel for bothering again...
>
>thanx to all in advance
>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
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
===========================================================================
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