• Post Reply Bookmark Topic Watch Topic
  • New Topic

while click button,it will retun the correspond tabl name  RSS feed

 
mkabdul kadermk
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have 10 table also i have a servlet page which contain 10 table-rows.
each row have one table-content and one edit button..
if i click edit button,it will return the correspond table name.
how i do this???
please reply me..

thank you..
 
Devaka Cooray
Marshal
Posts: 5326
575
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch,

I'm not understanding your requirement exactly. However, in general,...

  • Associate an identifier for each button while populating them. If you are using hyperlinked button, assign that id to the url as a parameter
  • Use a servlet for handling the request, track the id, and use another business component for the database interaction.
  • Using that business component, findout the table name for that id.
  • Assign that table name to a request attribute, and dispatch the request to a JSP.
  • Print that attribute value from the JSP.


  • Ps - you can use ajax instead of generating new pages.
     
    Devaka Cooray
    Marshal
    Posts: 5326
    575
    Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    "mkabdul kadermk", please check your private messages regarding an important administrative matter.
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!