Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

display the data on edit link  RSS feed

 
Priyanka Dande
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I want to display the data on edit link according to Id no .For Ex I have data on the table below

ID Name Emp ID Dept Edit
1 xyz 3425 abcd Edit

On Edit link display the data according to ID number. How can i write the code.
kindly help me
 
Swastik Dey
Rancher
Posts: 1782
14
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you are displaying the row, you might keep a hidden field that stores the value of id based on which the record is to be edited. Now make edit as hyper link or a button, and when it is clicked, pass the value of hidden field as query string to the corresponding servlet.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or make the ID a request parameter of the link.
 
Swastik Dey
Rancher
Posts: 1782
14
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.. right. I didn't pay attention to that. If it's a hyper link it can always be the request parameter, no need of hidden fields.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!