• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to send table cell value to action class

 
divya kundapur
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


In the above code there is a table column where all the rows have hyperlink for a particular column, the user might select any row, i need to send this value to database and get more values, my problem is how shall i save the selected column value and send it to struts action class.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...

Put the id in the link and retrieve it in the action.
 
divya kundapur
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



i replace href with the above code but i m not getting a link in the columns
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://struts.apache.org/1.2.x/userGuide/struts-html.html#link

You neglected to mention what version of Struts you're using, so I provided a 1.2.x doc link.
 
divya kundapur
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, i m using struts 1.2 version
 
Lei Guoguo
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
using like this:
 
divya kundapur
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lei Guoguo wrote:using like this:


Thank you very much
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic