Results 1 to 2 of 2
  1. #1
    bkhote is offline Member
    Join Date
    Oct 2012
    Rep Power

    Default variable data in internet query


    I am new to java/html programming.
    I would like to pass a variable info( via a function return value) in the internet query
    and wondering how could I do that.

    e.g This is hard-coded query that I am embedding in my html
    <img src="">

    instead, I would like to do
    <img src=" string()">

    Could you please let me know how could I do that.

    Last edited by bkhote; 10-15-2012 at 05:50 PM.

  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Rep Power

    Default Re: variable data in internet query

    Assuming you're using a web app (jsp + java) then this can be accomplished with simple REST services. Really any http service would do. There are many frameworks for this, or you can write something yourself. In the most primitive form, you can have a simple http server running on the host and process the input manually - this isn't very flexible, extendable, or easy though. Google java REST framework and see whats out there - there are hundreds!

Similar Threads

  1. Query abt interface variable
    By Gobi in forum New To Java
    Replies: 5
    Last Post: 06-25-2011, 04:27 PM
  2. Replies: 0
    Last Post: 04-12-2011, 11:11 PM
  3. read specific data from the internet
    By Get_tanked in forum New To Java
    Replies: 1
    Last Post: 02-01-2011, 03:47 AM
  4. Using a variable in a SELECT FROM WHERE query
    By cplmckenzie in forum JDBC
    Replies: 12
    Last Post: 04-23-2008, 03:24 AM
  5. How to query data from database using SSL
    By mano in forum New To Java
    Replies: 0
    Last Post: 08-02-2007, 05:30 PM

Posting Permissions

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