*
The moose likes Struts and the fly likes is this push based or pull based framework ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "is this push based or pull based framework ?" Watch "is this push based or pull based framework ?" New topic
Author

is this push based or pull based framework ?

Sathvathsan Sampath
Ranch Hand

Joined: Oct 03, 2000
Posts: 96
Background: Our micro framework used a struts based controller that eventually generated a table model for the web UI. The table model is a complex aggregate that abstracted the notion of tabular display of data.
The table model can tell what cols are editable, sortable, paging info so on so forth. This model was created and stored in the request scope for the page to render.
The second aspect of this framework a small bunch of custom tags that understood this table model. It only talks with the model and renders the page delegating to appropriate sub-components.

Question: Is this push or pull based approach?
I think its some sort of pull based as
1) The custom tags are model bound and model aware.
2) Custom tags 'pull' in desired data from the model. Otherwise, the page (jsp) would behave as a channel between model & custom tags pushing all the desired context & data as attributes/parms to a custom tag.

What do rest of you think?
[ July 16, 2004: Message edited by: Sathvathsan Sampath ]

- Sathvathsan Sampath
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

HTTP does not allow push. Therefore, Struts is not push.


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is this push based or pull based framework ?
 
Similar Threads
JDeveloper Business Components
GUIContoller
MVC with two Model interfaces
NX: URLy Bird 1.3.1 Connection Factory Design
AJAX real-time push/pull model