*
The moose likes JSP and the fly likes string passing from one page to another 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 "string passing from one page to another" Watch "string passing from one page to another" New topic
Author

string passing from one page to another

abhijeet srivastava
Greenhorn

Joined: Aug 22, 2006
Posts: 26
Hi all!!

I want to design a web page in jsp which contain a text box and a button. As I enter any search string in text box and press button it should pass this string to other searching tool say google search page text box, get all results and display that to my jsp page. All this should be done without opening google page.

ie; I want to use google searching through my jsp interface.
How it is possible???
[ December 26, 2006: Message edited by: Bear Bibeault ]
Anu Pillai
Greenhorn

Joined: Oct 09, 2006
Posts: 28
One way to do it (i am not saying its the best or even good) is to use JavaScript, access the Google page as a DOM object, populate the textbox in the Google page with the value entered in your jsp page and submit the form in the Google page. It will return the results.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

Google provides a service API just for this purpose. In fact, I wrote a chapter on using just such services in the Ajax in Practice book. If you are interested, the book is available via the Manning Early Access Program.

Or you could research the API on your own. It's available on the goggle web site.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

Start here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: string passing from one page to another
 
Similar Threads
JSF TextArea to highlight the content
Dynamic adding
How to Edit Details in database using JSP page?
Can I get code for 'CTRL F'
Calling bean method in enter press key