File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes how to send table cell value to action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to send table cell value to action class" Watch "how to send table cell value to action class" New topic
Author

how to send table cell value to action class

divya kundapur
Ranch Hand

Joined: Aug 21, 2007
Posts: 110


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.


SCJP - 5.0
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

...

Put the id in the link and retrieve it in the action.
divya kundapur
Ranch Hand

Joined: Aug 21, 2007
Posts: 110



i replace href with the above code but i m not getting a link in the columns
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Aug 21, 2007
Posts: 110
thanks, i m using struts 1.2 version
Lei Guoguo
Greenhorn

Joined: Mar 31, 2009
Posts: 26
using like this:


I'm a chinese, my english is so bad, I need help. If you want to help me, you can send your question to my e-mail: lgg860911@yahoo.com.cn, I will help you, and improve my english. Thanks everyone.
divya kundapur
Ranch Hand

Joined: Aug 21, 2007
Posts: 110
Lei Guoguo wrote:using like this:


Thank you very much
 
Don't get me started about those stupid light bulbs.
 
subject: how to send table cell value to action class
 
Similar Threads
How do i select value from dropdown box in netui:repeater tag
Help me about html:select
Problem Passing Parameter values to action
Problem in hiding the row of data
jQuery select option