This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes hyperlinking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "hyperlinking " Watch "hyperlinking " New topic
Author

hyperlinking

Murasoli Maran
Ranch Hand

Joined: Jun 08, 2003
Posts: 193
Hi all,
i am using mysql as database.
i am having a search page.which searches products from products table according to keyword.
the search lists items.
i wanna provide hyperlinks for results and when user clicks on that hyperlink a wanna display that perticular product details which is in another table.(now it's not listing as links)
how to achieve this?.anyone experienced plz share,
regards,
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
whenever you are ouputting your results, you basically just need to show the url. You just need to look at how you are going to do the url?
things you need to look at is using quereyString or hardcoding the product page.
Eric
Murasoli Maran
Ranch Hand

Joined: Jun 08, 2003
Posts: 193
But the output is from database.and my database(not done by me) did'nt contain URL field.it's listing data from table.
how to create a URL that'll bring me the desired page?.

i mean i wanna make results as hyperlinks.so by clicking hyperlink,the system should show the page(perticular product page).
how to achieve this?.i think it's a common problom.most sites having this feature.
anyone experienced ..plz,
regards,
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
How is the product linked to the url
You need to make some sort of relationship between the two.
The database has no meaning if you can make sort sort of relationship.
I personnaly would do a query string with a lookup to get the information, but it sounds like you have all of the infomation hard coded into html.
Eric
 
 
subject: hyperlinking
 
Similar Threads
textbox to listbox(simple)
help showing mysql data?
MySQL query
Answers for "SAMPLE" Test 340, IBM WebSphere Application 5.0
Is there any web search component /webapplication in OSS