Re: Results in multiple pages

2003-02-28 Thread Richard Raquepo
www.javanovic.com - see articles. i'm sure it can help you and try going
browsing to  this thread
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=58t=
000767

hope this helps

- Original Message -
From: Konstantina Stamopoulou [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 3:59 PM
Subject: Results in multiple pages


Hello,
I have the following problem and I'm not sure how I can solve it.
The resultset returned from a query I'm making to the database has many
records. What I want to do is to display each time 10 of these records in my
page.
How can i do this? I have searched the archive but I couldn't find anything
similar.
Any ideas or redirections to places where I could find a solution?

Thank you in advance.





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



Re: Results in multiple pages

2003-02-28 Thread Chetan Sahasrabudhe
man, this question is asked so many times on this list
any how, check logic-iterate tag from logic tag lib.
put ur records in arraylist and later iterate on jsp

- Original Message -
From: Konstantina Stamopoulou [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 1:29 PM
Subject: Results in multiple pages


Hello,
I have the following problem and I'm not sure how I can solve it.
The resultset returned from a query I'm making to the database has many
records. What I want to do is to display each time 10 of these records in my
page.
How can i do this? I have searched the archive but I couldn't find anything
similar.
Any ideas or redirections to places where I could find a solution?

Thank you in advance.





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



Re: Results in multiple pages

2003-02-28 Thread Konstantina Stamopoulou
Richard ,
Many thanx!! With all these resourses I sould be able to find the solution.
I knew I could count on the mailing list!

Konstantina

- Original Message -
From: Richard Raquepo [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 10:15 AM
Subject: Re: Results in multiple pages


 www.javanovic.com - see articles. i'm sure it can help you and try
going
 browsing to  this thread

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=58t=
 000767

 hope this helps

 - Original Message -
 From: Konstantina Stamopoulou [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 3:59 PM
 Subject: Results in multiple pages


 Hello,
 I have the following problem and I'm not sure how I can solve it.
 The resultset returned from a query I'm making to the database has many
 records. What I want to do is to display each time 10 of these records in
my
 page.
 How can i do this? I have searched the archive but I couldn't find
anything
 similar.
 Any ideas or redirections to places where I could find a solution?

 Thank you in advance.





 -
 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]



Re: Results in multiple pages

2003-02-28 Thread Richard Raquepo
im just passing it forward... :p

- Original Message -
From: Konstantina Stamopoulou [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 4:54 PM
Subject: Re: Results in multiple pages


 Richard ,
 Many thanx!! With all these resourses I sould be able to find the
solution.
 I knew I could count on the mailing list!

 Konstantina

 - Original Message -
 From: Richard Raquepo [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 10:15 AM
 Subject: Re: Results in multiple pages


  www.javanovic.com - see articles. i'm sure it can help you and try
 going
  browsing to  this thread
 

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=58t=
  000767
 
  hope this helps
 
  - Original Message -
  From: Konstantina Stamopoulou [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Friday, February 28, 2003 3:59 PM
  Subject: Results in multiple pages
 
 
  Hello,
  I have the following problem and I'm not sure how I can solve it.
  The resultset returned from a query I'm making to the database has many
  records. What I want to do is to display each time 10 of these records
in
 my
  page.
  How can i do this? I have searched the archive but I couldn't find
 anything
  similar.
  Any ideas or redirections to places where I could find a solution?
 
  Thank you in advance.
 
 
 
 
 
  -
  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]





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



Re: Results in multiple pages

2003-02-28 Thread Dirk Markert
Hello Konstantina,

you should also take a look at

http://edhill.its.uiowa.edu/display-0.8/

Of course, you can also use logic-iterate as suggested elsewhere,
but why reinvent the wheel?

Friday, February 28, 2003, 8:59:04 AM, you wrote:

KS Hello,
KS I have the following problem and I'm not sure how I can solve it.
KS The resultset returned from a query I'm making to the database has many records. 
What I want to do is to display each time 10 of these records in my page.
KS How can i do this? I have searched the archive but I couldn't find anything 
similar. 
KS Any ideas or redirections to places where I could find a solution?

KS Thank you in advance.





-- 
Best regards,
Dirk


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



AW: Results in multiple pages

2003-02-28 Thread Hirschmann, Bernhard

Konstantina, 

if you want something like in Google, where you can view the first 10 hits,
the clicking on next to see the next 10 hits, then you can use the pager
taglib for this.
http://jsptags.com/tags/navigation/pager/

Greetings to Greece!

Bernhard


-Ursprüngliche Nachricht-
Von: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 28. Februar 2003 08:59
An: Struts Users Mailing List
Betreff: Results in multiple pages


Hello,
I have the following problem and I'm not sure how I can solve it.
The resultset returned from a query I'm making to the database has many
records. What I want to do is to display each time 10 of these records in my
page.
How can i do this? I have searched the archive but I couldn't find anything
similar. 
Any ideas or redirections to places where I could find a solution?

Thank you in advance.



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



Results in multiple pages

2003-02-27 Thread Konstantina Stamopoulou
Hello,
I have the following problem and I'm not sure how I can solve it.
The resultset returned from a query I'm making to the database has many records. What 
I want to do is to display each time 10 of these records in my page.
How can i do this? I have searched the archive but I couldn't find anything similar. 
Any ideas or redirections to places where I could find a solution?

Thank you in advance.




RE: Same search results in multiple pages

2002-08-30 Thread Walter Fu

Thanks Joe for the suggestion!
What I did was:
1. page1.jsp:
 bean:define id=actionToCall value=action1 toScope=request/
2. searchResultsInc.jsp:
  a
href=%=request.getContextPath()%%=actionToCall%?param1=val1link/a

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 4:49 PM
To: Struts Users Mailing List
Subject: RE: Same search results in multiple pages


hmmm...You could do a bean:define in both page1.jsp and page2.jsp like
this:

bean:define id=actionToCall value=action1 toScope=request/


...and then, I assume in searchResultsInc.jsp you wrap the Prev/Next and
sort links in a form, so you would do this there:

 html:form action=%=request.getAtribute(actionToCall)% /


This would mean that any page including the search results page would have
to define this attribute, but I *think* this would work.


peace,
Joe

 -Original Message-
 From: Walter Fu [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 29, 2002 4:42 PM
 To: '[EMAIL PROTECTED]'
 Subject: Same search results in multiple pages
 
 
 - struts version:  1.0.2
 - What I want to do:
   1. Action1 has its associated page1.jsp. page1.jsp includes
 searchResultsInc.jsp
   2. searchResultsInc.jsp shows rows of search results. 
   3. The field titles of the search results are links that 
 would allow the
 results to be sorted
   4. Similar to 3, there are Prev and Next links in 
 searchResultsInc.jsp
 that allows pagination.
 
   5. Action2 has its associated page2.jsp. page2.jsp also includes
 searchResultsInc.jsp
 
 Question: 
  How do I set up searchResultsInc.jsp such that the sort 
 links (step 2) or
 the Prev/Next links (step3) will go to Action1 if 
 searchResultsInc.jsp is
 included by page1.jsp and Action2 if included by page2.jsp?
 
 Perhaps there are better ways of doing what I am trying to do? 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




RE: Same search results in multiple pages

2002-08-29 Thread Joe Barefoot

hmmm...You could do a bean:define in both page1.jsp and page2.jsp like this:

bean:define id=actionToCall value=action1 toScope=request/


...and then, I assume in searchResultsInc.jsp you wrap the Prev/Next and sort links in 
a form, so you would do this there:

 html:form action=%=request.getAtribute(actionToCall)% /


This would mean that any page including the search results page would have to define 
this attribute, but I *think* this would work.


peace,
Joe

 -Original Message-
 From: Walter Fu [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 29, 2002 4:42 PM
 To: '[EMAIL PROTECTED]'
 Subject: Same search results in multiple pages
 
 
 - struts version:  1.0.2
 - What I want to do:
   1. Action1 has its associated page1.jsp. page1.jsp includes
 searchResultsInc.jsp
   2. searchResultsInc.jsp shows rows of search results. 
   3. The field titles of the search results are links that 
 would allow the
 results to be sorted
   4. Similar to 3, there are Prev and Next links in 
 searchResultsInc.jsp
 that allows pagination.
 
   5. Action2 has its associated page2.jsp. page2.jsp also includes
 searchResultsInc.jsp
 
 Question: 
  How do I set up searchResultsInc.jsp such that the sort 
 links (step 2) or
 the Prev/Next links (step3) will go to Action1 if 
 searchResultsInc.jsp is
 included by page1.jsp and Action2 if included by page2.jsp?
 
 Perhaps there are better ways of doing what I am trying to do? 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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