This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Get database values on page load  RSS feed

 
Juan Porras Antonio
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good night from Spain.

I'm a newbie in struts2 and I have this doubt:

I need to load dabatase values on page load to fill a displaytag table. I can get this values from action (doing submit) but I need fill this table in index.jsp.

Is there any way to do this?.

I'm spanish, please, sorry for my poor english.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37222
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Juan,
Welcome to JavaRanch!

IF you have the values in the actin, you can store them in an attirbute in the request. That way they are available when you paint the JSP.
 
Juan Porras Antonio
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it works¬°¬°.

I have a problem with display tag now in paginator mode. When I click to sort list, submit and back to index.jsp, then, page load, action load and table is not sorted.

I'm a newbie, sorry for asking bother questions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!