You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Heligon Sandra <sa...@nextream.fr> on 2002/09/26 15:38:31 UTC

RE: Struts tags for display a collection of views [paging design pattern]

"Paging" is the good term to describe what I want to do.
I don't work directly with a dataset because I use an back-end application
server that works on the database. So I receive a list of JavaBean that
I would like to display in JSP pages.
I found a little description of the paging pattern but I would like
to know if someone has created an application with paging that use
Struts tags (logic:iterate) or nested tags.
You speak about the documentation but I think that an example allows
to understand a documentation well. 

Sandra
-----Original Message-----
From: Taylor, Jason [mailto:jtaylor@cobaltgroup.com]
Sent: 25 September 2002 16:31
To: 'Struts Users Mailing List'
Subject: RE: Struts tags for display a collection of views


I think you're talking about "paging" through a dataset a certain number of
records at a time.  If I'm right then we're talking about some sort of
collection with a class or set of classes whose mission in life is to
provide meta-data about the collection like "Page 5 of 6", "current
selection is Record #34", etc.  It's a pattern, though I'm not sure what
you'd call it other than "paging", though unfortunately "paging" makes
people think of little electronic devices that annoy people automatically,
so there should be a better word for it.

Bottom line-- what you're talking about is something you could handle on the
front end (in Javascript or some other scripting language) or the back end
(in your Java classes that make up and service your Model), depending on
your preferences/strengths.  

What Struts provides you is the framework for passing the data between the
front and back end that shields you as much as possible from the details of
how the servlet container works.  

Sometimes you'll get rather curt answers if it sounds like you're expecting
Struts to provide features that are more high-level than that of a webapp
framework.  Don't take it personally, there are a *lot* of postings on this
newsgroup, and most of them could be handled by the posters themselves if
they simply read and understood the documentation more carefully.

-JT

-----Original Message-----
From: Heligon Sandra [mailto:sandra.heligon@nextream.fr]
Sent: Wednesday, September 25, 2002 12:35 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts tags for display a collection of views


Excuse me I do not understand the direction of your answer.
I already read documentation about tags offered by struts.  
For displaying a list of objects it seems that there are two possible
choices logic:iterate and nested tags.  
The problem that I meet today in the construction of my page to displaying
data several similar sights seemed me common.  
This is why I sought of the assistance on this forum.  
I find interessant very to be able to exchange our knowledge, 
and our experiments that makes it possible to reduce times of development
considerably. 
I know that the tutoriaux ones and documentation exist but the examples
given are often simple.  On the other hand the users of Struts like you and
me, build more complex cases.  

Sandra, 

-----Original Message-----
From: Galbreath, Mark [mailto:Galbreath@tessco.com]
Sent: 24 September 2002 19:10
To: 'Struts Users Mailing List'
Subject: RE: Struts tags for display a collection of views


This would require a tutorial (or two).  I would suggest you do one, then
ask a question.

Mark

-----Original Message-----
From: Heligon Sandra [mailto:sandra.heligon@nextream.fr]
Sent: Tuesday, September 24, 2002 12:10 PM


	Hi,

	I don't know HTML/Struts tags very well, I would like to know if it
is possible to
	display this kind of view:

            					       Previous <|  |> Next
	
------------------------------------------------------------
				|					|
				|			(body)		|
				|					|
	
------------------------------------------------------------

	In fact I have to display a list that can have a large size and
multiple
	views are required. The buttons Previous and next all to navigate
	from one view to another.

	Could you explain me how this type of views is managed ?

	Thanks a lot
		

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>