Keith Pemberton wrote:

> Experts,
>
>     I'm struggling with using the View Helper pattern.  In my logical way of
> thinking, when a request to any jsp page is made, then the request goes to
> the ActionServlet.  The ActionServlet then looks up the appropriate view
> helper initiallizes it with any parameters that were passed in through the
> request.  The ActionServlet then requests that the view helper put the
> required java bean object in the request scope and then the servlet forwards
> to the page that was requested.  This doesn't seem to be the case, though,
> with how struts works.

This is exactly struts work. View helper creates presentation content, which
requires processing of dynamic business data. View Helper (Action) serve as
business data adapters. Struts try to encapsulate business logic in a helper
instead of a view  to make our application more modular and to facilitates
component reuse.


> Please correct me if I am wrong, but every link in
> my jsp pages where the page that I am requesting has content that comes from
> a java bean (form bean) must be linked to some action component.  So, just
> say that I have an index page where I am displaying only five items at a
> time out of database that are ranked based on their index number in the
> database.  To get the next five entries from the database I would have to
> use the struts tags and put an html:link element in the page that pointed to
> some action class.

I think you mean same action class with logic ...

> I, guess, am just looking for an assurance that I am
> implementing the view helper pattern the correct way according to struts.
> Any help you can provide would be much appreciated!
>
> Keith Pemberton
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to