Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL .. Set Property to save values..

 
luis Fernandez
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!!

i am doing pagination, and i would like to save records/values between pages.
But i cannot use setProperty tag to save into a Bean when i trigger it (onClick event in ex.).

The code always write the property (omits the onclick), i want it to do when i trigger it..
I think it happen because tags are server side, and onclick event, client side. right?

Some ideas how to solve this situation?
I need help please.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Between pages" there is a submission to the server. Is that not an opportunity to save the values somewhere? The session perhaps?
 
luis Fernandez
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, i use to do it through request.getParameter and so on.

but this time i'm iterating with JSTL (forEach), and using pager-taglib,..it is a recursive callback url. and i cannot get any parameter

if there could be some way to store data in some structure.. i don't know
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic