Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp page iterator help  RSS feed

 
Jiten Kothari
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Genius,
I kept trying and look all over the google.
my question is how do I iterate to next button and new result should come from listerator on button click above
all the data stored in list collection

this is my test.jsp file


any help will be appreciate
thanks in advance
 
raj sawant
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
paging not possibile in jsp but it comes with built in component on asp.net
i dont think javascript able to call iterator method
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
raj sawant wrote:paging not possibile in jsp

Huh? Of course it's possible. What tripe.

See the JSP FAQ which addresses this very issue.

And, putting Java code in a JSP is no longer a good practice. Time to move on to more modern techniques.
 
Jiten Kothari
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:

And, putting Java code in a JSP is no longer a good practice. Time to move on to more modern techniques.


then what is the good practice? where to put java code? what do you put in jsp? only JSTL?
please let me know
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a JSP there should be only JSTL, EL, custom tags and the like. No scriptlets of any kind. Java code goes into controllers, beans, tag handlers, EL functions and the like.

this article might be a good start.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!