Results 1 to 2 of 2
  1. #1
    kwesiaryee is offline Member
    Join Date
    Apr 2008
    Posts
    11
    Rep Power
    0

    Default How to pass mysql string through a url parameter to a detail page query

    Hi,

    I am stuck with the problem of how to code the mysql query in the details page of a jsp web project. I want to use the value of the url parameter to display the query on the details jsp page from the master jsp page. If any one can help me fast I will be most grateful, with how to code this. :confused:

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default

    You can create a query string in the URL. For instance in the Master Page you'll have a link that point into the detail page and you pass the record id from where the information will be read in the detail page. You URL can be something like: detail.jsp?record_id=1

    In the detail page you can read the parameter and use it to query data from database.

Similar Threads

  1. Java Popup Window & Url Query String Value
    By Rivelyn in forum New To Java
    Replies: 4
    Last Post: 01-20-2011, 05:03 AM
  2. [SOLVED] General string problem in my database query.....?
    By prabhurangan in forum New To Java
    Replies: 7
    Last Post: 06-25-2008, 08:55 AM
  3. How to pass two parameter in struts-config using dynaActionForm
    By 82rathi.angara in forum Web Frameworks
    Replies: 2
    Last Post: 06-10-2008, 02:43 PM
  4. unable to update MYSQL with values from jsp page
    By koushika in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-27-2008, 01:35 AM
  5. Replies: 1
    Last Post: 08-03-2007, 10:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •