You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Leland, Robert" <rl...@cghtech.com> on 2000/09/19 01:49:57 UTC

Is struts a hybrid or page-centric and servlet-centric design ?

Hi,

Struts looks pretty comprehensive even if it were a 2.0 framework, and its
just a 1.0 beta/gamma !
I am a bit confused though, and hope someone could help me out ?

In looking over the struts documentation, it would seem to indicate that
struts is a Model 2, servlet-centric design ?

I say servlet-centric after reading the book:
  Web Development with Java Server Pages 
  Chapter 8, Architecting JSP applications. 

In looking at the struts model
diagram with the one in WDJSP on page 220, they look identical.

In that chapter what the author called servlet-centric one of the key
characteristics of:

     Data from a jsp page is always passed via Post, and one jsp
     page never knows about the other. This hides the actual URL
     from the user keeping them from bookmarking 
     and using the <- and -> arrows.

     However in the /struts-example mainMenu.jsp struts .do commands are 
     passed via a URL such as 
             editRegistration.do?action=Edit, 
     are used to pass data. Thus users could bookmark it.

     Does this mean struts is a hybrid somewhere between 
     page-centric and servlet-centric design ?


Thanks !!!

-Rob