Hi all,
I'm studying the MCV pattern using as model
the PetStore demo. How should I design an
application so that it's accessible from
many type of clients including Web clients,
Java fat clients, Wap and so on ?
In my opinion the entry point shouldn't be a servlet,
it should be a very generic class that
identify what kind of client is...what do you
think ?
and also I can see that information
like ejb references are stored in http session
but this breaks the goal of this model, that
is abstracting the type of client from the
model. In this case information should rather be kept on
Session bean that live on the AServer and are accessible
from every kind of client.
Any feedback ?
Thanks
Mark
-
Questions about MCV architecture - who cares to answer ? (4 messages)
- Posted by: Marcus30 Marcus30
- Posted on: July 10 2001 04:06 EDT
Threaded Messages (4)
- Questions about MCV architecture - who cares to answer ? by Collin Goredema on July 10 2001 09:59 EDT
- Questions about MCV architecture - who cares to answer ? by Marcus30 Marcus30 on July 11 2001 03:17 EDT
- Questions about MCV architecture - who cares to answer ? by B M on July 11 2001 11:32 EDT
- Questions about MCV architecture - who cares to answer ? by Marcus30 Marcus30 on July 11 2001 03:17 EDT
- Questions about MCV architecture - who cares to answer ? by Kent Roylance on July 12 2001 12:16 EDT
-
Questions about MCV architecture - who cares to answer ?[ Go to top ]
- Posted by: Collin Goredema
- Posted on: July 10 2001 09:59 EDT
- in response to Marcus30 Marcus30
I would use XML/XSL for the view, i.e. use the Apache Cocoon Framework to render HTML, WML, HDML, or whatever content type your view expects by applying different XSL stylesheets to DOM XML objects. This approache works very well when you combine Java, JavaBeans and the Xalan XSLTProcessor. -
Questions about MCV architecture - who cares to answer ?[ Go to top ]
- Posted by: Marcus30 Marcus30
- Posted on: July 11 2001 03:17 EDT
- in response to Collin Goredema
Hi Collin,
thanks for answering. I tried some time ago Xalan & Cocoon libraries- if you're using them extensively I wonder what do you think about their performance. Do you think they could bear the stress of production state? (I just did some small tests so maybe I'm wrong but it didn't look very fast)
Regards
Mark -
Questions about MCV architecture - who cares to answer ?[ Go to top ]
- Posted by: B M
- Posted on: July 11 2001 11:32 EDT
- in response to Marcus30 Marcus30
www.workthing.com huge commercial UK job site with about 500K hits per week use XML/XSL and Cocoon framework for the presentation layer -
Questions about MCV architecture - who cares to answer ?[ Go to top ]
- Posted by: Kent Roylance
- Posted on: July 12 2001 12:16 EDT
- in response to Marcus30 Marcus30
If you care about MVC, I would highly recommend Struts which uses a second generation of MVC called Model 2 MVC. I just built a web app with it and was very impressed. It does take some time to learn how to use it, but it is so worth it in the end. Here is the URL: http://jakarta.apache.org/struts/index.html