interesting problem with JAVA...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manas312
    New Member
    • Mar 2007
    • 5

    interesting problem with JAVA...

    Hey guys....

    I'm facing an interesting problem ....and need some solution.....

    The problem goes like this.

    You r having one site like www.abc.com (for example). The website contains only one textbox....blan k textbox.
    Now I have a database of names of people. I hv control over database.
    I hv another site containing only one 'button'. (for ex. www.xyz.com)
    It acts as an interface site.(not exactly interface...but kinda)

    Now wat i want to do is :
    the moment i click on the button in my website...ur website(www.abc.com) will be opened in the browser automatically & the first entry in the database would be retrieved in ur website's ( www.abc.com) textbox....and this will happen only in my computer coz i'm accessing the website( www.xyz.com) thr' my comp and the website( www.abc.com) too is getting opened in my computer only.

    So this is server side programming but the effect takes place on the client side.
    Thus even u or ne client opens the site www.xyz.com. & clix on the button...then www.abc.com will get opened and the textbox will be filled with the first entry of the database.

    If u r getting the solution....plz mail me at <email removed by Admin:Against site rules>,.....

    Thanx....

    Regards
    Manas
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by manas312
    Hey guys....

    I'm facing an interesting problem ....and need some solution.....

    The problem goes like this.

    You r having one site like www.abc.com (for example). The website contains only one textbox....blan k textbox.
    Now I have a database of names of people. I hv control over database.
    I hv another site containing only one 'button'. (for ex. www.xyz.com)
    It acts as an interface site.(not exactly interface...but kinda)

    Now wat i want to do is :
    the moment i click on the button in my website...ur website(www.abc.com) will be opened in the browser automatically & the first entry in the database would be retrieved in ur website's ( www.abc.com) textbox....and this will happen only in my computer coz i'm accessing the website( www.xyz.com) thr' my comp and the website( www.abc.com) too is getting opened in my computer only.

    So this is server side programming but the effect takes place on the client side.
    Thus even u or ne client opens the site www.xyz.com. & clix on the button...then www.abc.com will get opened and the textbox will be filled with the first entry of the database.

    If u r getting the solution....plz mail me at <email removed by Admin:Against site rules>,.....

    Thanx....

    Regards
    Manas
    This sounds like a javascript question.
    Are you using JSPs?

    Comment

    • manas312
      New Member
      • Mar 2007
      • 5

      #3
      Dude...I don't know wat to use actually......c an u tell me how to work it out....

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        You can use a JSP to connect to the database and display the first value in the database.

        Comment

        • manas312
          New Member
          • Mar 2007
          • 5

          #5
          but dude....i haave no control over the other site which is having the 'TEXTBOX'.....a ssume that i just knoe the TEXTBOX NAME...nothnig else...now how can i give connectivity to the site wiht TEXTBOX??...can u plz elaborate???? And tell me...is it really feasible to do that??? imean is there really a solution to the problem???

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            Originally posted by manas312
            but dude....i haave no control over the other site which is having the 'TEXTBOX'.....a ssume that i just knoe the TEXTBOX NAME...nothnig else...now how can i give connectivity to the site wiht TEXTBOX??...can u plz elaborate???? And tell me...is it really feasible to do that??? imean is there really a solution to the problem???
            This is all not very clear. But you can get the value entered in a textbox form a page using
            Code:
            request.getParameter("textBoxName");
            in the second JSP.

            Comment

            • hirak1984
              Contributor
              • Jan 2007
              • 316

              #7
              if you dont have the second jsp name and full path,knowing only the name of the textbox doesnt help.

              can you be a bit more elaborate and clear?

              Originally posted by manas312
              but dude....i haave no control over the other site which is having the 'TEXTBOX'.....a ssume that i just knoe the TEXTBOX NAME...nothnig else...now how can i give connectivity to the site wiht TEXTBOX??...can u plz elaborate???? And tell me...is it really feasible to do that??? imean is there really a solution to the problem???

              Comment

              • manas312
                New Member
                • Mar 2007
                • 5

                #8
                Assume that u know the full path.....still then how would u give connectivity of database with the third party site ......which is having only textbox....wtih the java or javascript???


                Originally posted by hirak1984
                if you dont have the second jsp name and full path,knowing only the name of the textbox doesnt help.

                can you be a bit more elaborate and clear?

                Comment

                Working...