aspose file tools *
The moose likes JSP and the fly likes regarding fetching record on button click Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "regarding fetching record on button click" Watch "regarding fetching record on button click" New topic
Author

regarding fetching record on button click

pradip thite
Greenhorn

Joined: Apr 19, 2014
Posts: 9
hello,friends, i am working on web project in java. i have taken buttons in column..and projects is my column..when i click on a button in first row ,i want fetch all information about selected project....so how can i do that??please help me friends....i got stuck for 3 hours for that stuff...
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2628
    
    9

3 hours! ... that's nothing lol

Anyway how is your data structure set up? Is it a map, a list of list or something else?

Let say it's a map because that's what I would use. You got a "taken button" with list of "projects"


then when user clicks the "taken button" it gets the corresponding list of projects.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5 OCPBCD5
pradip thite
Greenhorn

Joined: Apr 19, 2014
Posts: 9
okk but right now,suppose i have a table and in table i have a column called as project name..in that there are so many projects..okk all are buttons..when i click on project i want to get information of selected project......okk how to do that in java??? please help me friends......
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2628
    
    9

It's somewhat hard to picture your situation. Well actually not but imagine each button or project is a link ... and click it a new page opens or popup. So how hard can that be?

I don't know your problem is about the "fetching" part (eg each button is assigned the correct id hence correct link) or you got the links but opening the pages (hint javascript onclick is ideal).

Maybe you should post some code showing us what you got so far.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regarding fetching record on button click