Hi Curtney

> Emile, can you elaborate more on your suggestion? I don't totally get what
you
> are saying. Perhaps an example or relation graph?

I'm thinking of a java bean which is used to store the content field, a page
placeholder property and page objects which have start and end position
indicators for the content stored in the bean content property.  The results
(content for a given page) can be obtained with a substring using the page
object start and end position.

So, using an arbitrary news example, a news article is selected from a list,
but first the calling page instantiates a new bean, passing it the article
to set the content property to and the number of characters per page.
The bean creates the page objects based on the number of characters
required - searching for the nearest space or end-of-word marker to define
the limits of the page content (setting the start and end properties for
each page object).
The calling jsp requests a page and the bean returns a substring of the
content.

Obviously this is simplified and applies to plain text only, but it's the
principle that I'm suggesting here, because then it becomes totally generic
and can possibly be added as a new component into mmbase.

Hope it helps.

Regards
Emile


Reply via email to