Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Get database values on page load

 
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
Marshal
Posts: 34973
379
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