File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is this push based or pull based framework ?

 
Sathvathsan Sampath
Ranch Hand
Posts: 96
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP does not allow push. Therefore, Struts is not push.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic