GeeCON Prague 2014*
The moose likes JSP and the fly likes Automate login..... HELP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Automate login..... HELP" Watch "Automate login..... HELP" New topic
Author

Automate login..... HELP

Tom Ben
Ranch Hand

Joined: Aug 17, 2001
Posts: 109
I want to be able to click a button from my JSP page that will redirect to my amazon.com account and open up the link for how many of my products have been sold. But I am not to sure if this can be done. I have just started with JSP and Servlets so also would a Servlet be better for this?


Sun Certified Programmer on the Java 2 Platform
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16095
    
  21

Well, first off, you can't "click a button on a JSP page". A JSP is a template for a web page, not a web page itself. So you'd have to "click a button on the HTML page generated from the JSP and sent to your client (browser)".
Beyond that, I'm not sure what you mean. A simple < a href=... > tag is enough to send the user from a "local" page to a "foreign" one.
If what you wanted was a sort of "picture-in-picture" view of site B while at site A, that's an old framing trick.
Of course there are also tricks used by many sites to PREVENT them from being framed by another site...


Customer surveys are for companies who didn't pay proper attention to begin with.
Tom Ben
Ranch Hand

Joined: Aug 17, 2001
Posts: 109
First I know that you click a button is a HTML page but I want the user to click a button go to a nother web site and have my JSP dynamiclly fill in all the users info and then log them in.
 
GeeCON Prague 2014
 
subject: Automate login..... HELP