How to implement "Email this link to a friend"

I'm developing a J2EE application in which I need to send links and the complete HTML pages (that a end user will see in the browser) to an email he specifies. I'd like to give a link "email this link to a friend" and "email this page to a friend". How do I achieve it?
My question is specifially how to get the contents of a JSP/HTML page already rendered in the browser. I can go ahead and use Java Mail API or something similar.
Thanks,

My understanding is, using URL class may not work,
since the required parameters are not submitted using
GET method. I can get the URL without parameters and
that may not give me the correct HTML page. Am I
missing something?The example in the tutorial uses GET mode, I suppose. But the URL class does work perfectly well with POST mode, you just have to set up things correctly. (By the way, having a report as output from a POST mode form is an abuse of the HTTP protocol, as POST is supposed to be for updating the server and GET is for getting information, which is what a report is. But I suppose that you're stuck with this.) I don't have an example of this handy but I've seen examples on these forums often enough. Or you could use the Apache Commons HttpClient package which you can find out about here.

Similar Messages

  • The link to deleting temporary internet files found under the Tools tab has disappeared. How do I restore this link?

    The link to deleting temporary internet files, cookies, etc. has disappeared from the Tools tab. How do I restore this link?

    https://support.mozilla.org/en-US/kb/remove-recent-browsing-search-and-download-history#w_how-do-i-clear-my-history
    Also Firefox uses a Cache and not IE's temporary internet files.
    edit: fixed a autocorrected word by PlayBook that I missed.

  • HT4865 I just got an email from icloud with this notice, "To help protect your privacy, we'll sometimes ask you to verify your email address even though you're already signed in. Verify your email This link will expire 24 hours. Sincerely,   The iCloud Te

    "To help protect your privacy, we'll sometimes ask you to verify your email address even though you're already signed in. Verify your email This link will expire 24 hours. Sincerely,   The iCloud Team" Is it legit?
    It asked for my name, email address, pasword and apple I.D.
    Why?
    Jean

    It's spam.

  • How do I email a link to a file on my server?

    I know on windows machines you can email a link to different files on your computer that other people have access to like c:/caleb/documents/... but I am not sure how to do that with a mac
    We use a server at work and my boss always tells me to open different files that are hard to navigate to. I am wondering if there is a way for him to just email me a link to the file so I can just click on the text in my email and it will open up the finder window with the file in it.
    Any help would be appreciated.
    Thank you,
    Caleb

    If users are on the local windows machine then "C:/path/..." will work, but if they're accessing it through the network then "\\servername\sharename\path\file" is how it's linked.
    In the mac it's the same way. If "windows" file sharing is enabled then the slash-slash method will work if the users are on a windows PC. Otherwise, it will require the use of specific protocol prefixes in the address. For connecting via AFP (apple filing protocol -- the default and mac-native networking system) the following is the address to use:
         afp://servername/sharename/path/file
    Emailing this address to users who can get network access to the computer will allow them to click the link and connect. For example, my machine is called "Laptop" (ip address is 192.168.1.3) and I have a file called "textfile.txt" located in a "testfolder" in my "Public" directory (which is the shared directory that is readable by users other than myself). To send a link to that file I'd send the following:
         afp://Laptop/Public/testfolder/textfile.txt
    Alternately I can link to it using the IP address as follows:
         afp://192.168.1.3/Public/testfolder/textfile.txt
    To connect to the same computer via windows networking (from a PC or Mac that has windows networking enabled), ensure you have windows networking turn on in your computer and the only difference in the address would be to use "smb" instead of "afp" in the addresses above. This is for NON-windows computers; since windows machines will not know what to do with "smb://servername...", and instead will require the "\\servername\..." notation.

  • How to implement a download link

    i would like to implement a download link in jsp. Can anyone show me how to do this?
    thanks.
    cc

    simple html:
    <a href="linkToFileToDownload.exe"> Download my cool app!</a>

  • How to implement email facility in PL/SQL programs.

    Is there any Oracle package which supports email facility?
    I have some dbms automatic jobs fires every half hour, in case there is any failure in the process I would like to send an email to user or the person who is running the job.
    Can some body tell me how to implement it in PL/SQL?????????????

    You might find this article useful..
    visit..
    http://www.oracle.com/oramag/code/tips2000/090400.html

  • How to hyperlink "Email this site"?

    How can I hyperlink "Email this site" on my webpage? (I have "email me" and "email [another person]" buttons done, but I can't find how the viewer can email the site to a friend.
    I can't find it in the online manual.
    http://web.mac.com/lwm2/mywebpage/Welcome.html

    No need to add the javascript in <head> element, what you need is correctly referencing parent window URL (instead widget9_markup). Copy and paste the following to you HTML Snippet:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Original: Ronnie T. Moore -->
    <!-- Web Site: The JavaScript Source -->
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    function initMail(form) {
    text = "Check out this page: " + parent.window.location;
    form.message.value = "Hi " + form.sendto.value + " (" + form.to.value + "):\n\n"
    + text + "\n\nYour Friend,\n" + form.sendername.value + "(" + form.senderemail.value + ")";
    return (form.to.value != "");
    </script>
    <center>
    <form name=emailform method=post action="http://cgi.freedback.com/mail.pl" target="_new" onSubmit="return initMail(this);">
    <input type=hidden name=subject value="** Check Out This Site! **">
    <input type=hidden name=message value="">
    <table>
    <tr><td colspan=2 align=center>Tell a friend about this page!</td></tr>
    <tr><td>Their Name:</td><td><input type=text name=sendto></td></tr>
    <tr><td>Their Email:</td><td><input type=text name=to></td></tr>
    <tr><td>Your Name:</td><td><input type=text name=sendername></td></tr>
    <tr><td>Your Email:</td><td><input type=text name=senderemail></td></tr>
    <tr><td colspan=2 align=center><input type=submit value="Ok!"></td></tr>
    </table>
    </form>
    </center>
    <p><center>
    <font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
    by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
    </center><p>

  • How to implement Language Toggle Link?

    Dear friends,
    I would like to implement Language Toggle Links (Right Top) for each page in my application? (English - Turkish)
    How do I implement it by using APEX translation tool?
    or is there a better solution?
    regards
    Siyavuş
    Edited by: Siyavus on Apr 1, 2009 4:46 PM

    simple html:
    <a href="linkToFileToDownload.exe"> Download my cool app!</a>

  • I have somehow associated an email link (.swf) with playerx and now cannot open it. How can I remove this link so that the file automatically opens as it has done previously?

    I received an email with a hyperlink that runs a .swf file. I also recently downloaded PlayerX so decided to us it to open the .swf file.  It was unable to do so. When trying to play this file I receive options of "Open in ..." or "Open in PlayerX". I try to select "Open in ..." however nothing is available to select. I need to remove this association. I have restarted the phone, resent the email from its original location but this association seems to have stuck. Can anyone help out with this. I would prefer to not have to delete the App and re-download it.

    Jeff, many thanks for the reply. More than Adobe Chat did for me, Problem sorted this morning with telephone support. Complete mix up between 2 accounts I have and Trial copy. Appreciate your help thanks. Have now got a fully operative CC with my LR integrated, concerned as had purchased some years ago and didn't want to miss out on updates by having a separate copy.
    Regards
    Phil

  • I received what appears to be a phony invoice from someone representing themselves as the Apple store.  How can I email this to Apple? Thanks.

    I received what appears to be a phony invoice from the Apple store.  Where can I forward this phony email to?
    Thanks
    Tompdev

    FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
    For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
    Phone: 800-275-2273 How to reach a live person: Press 0 four times
    Hours of Operation: Mon-Fri: 9am-5pm ET
    Email: [email protected]
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
    How to Get a Refund from the App Store
    http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
     Cheers, Tom

  • How can I share this link Tell Congress to stop bulk collection of our personal information. there is no easy way to do this other then copy the entire link

    I want to share the link and post the:
    Tell Congress:
    It’s Time to Stop Mass Surveillance
    Mass surveillance threatens people’s privacy and security online.
    Tell Congress to stop bulk collection of our personal information.
    there is no easy way to post this or forward without sending the entire page link and nobody will touch those if something like a preview doesn't show up, just looks like a bunch of unsafe links to most people, you need to have a share button on this if you really want us to share it

    Heres the link to "Take action" http://mzl.la/1CgTnKg. In the future if you want to copy links, right click the address bar, and the whole link should be selected, then click "Copy" in the menu that comes up.
    Have a great day!!
    Jon

  • How can I Construct this Linked Teardrop Pattern?

    I'm trying to replicate the way these circles are connected for use in a new design. I've gotten so close, but aligning everything exactly is incredibly frustrating.
    At first I tried constructing this with the use of a white outline around the circles. But this isn't a solution, as the white pace around each linked circle obviously isn't a perfect circle itself.
    The problem is achieving a perfectly aligned, flowing "s" curve. The connecting points that are giving me trouble are in the red circles.
    I can approximate the connection points, but this leaves a "kink" in what should be a perfectly flowing "s" curve. I thought smart guides/snap to point would help me here, but to no avail.
    Any help would be greatly appreciated.
    Just for further clarification... I've achieved this.
    But if you look closely, you can see the "kink" in the curve. I know it might seem a little nit picky, but this is for a final logo design.

    I think it’s really quite simple if you don’t let the wood spoil your view of the trees.
    Here’s the way I did it:
    Start off by adding anchor points to a circle so that it now has 8 anchors.
    Snap them together as here and draw a square (diamond) between their centres with the Pen tool.
    Colour the top and bottom circles with a fill colour and a white stroke.
    Colour the side circles white with white strokes
    Colour the diamond with the same fill colour as the top and bottom circles but leave out the stroke.
    The coloured circles should be at the bottom of the stack, then the diamond, ten the white circles.
    Adjust the stroke weight on the circles until you’re happy with the look of things.
    Make a copy of one of the coloured circles for safe keeping.
    Now expand everything and use Pathfinder > Minus Front to remove the white strokes where you do not need them.
    This requires several operations.
    You now should have something like this:
    All you need is the single circle and the double circle. (The triple circle is made from 2 doubles overlapping.)
    You can see that I used ruler guides for accurate spacing.

  • How do I get this link to work???

    I would really like to view the following movie on my PC with Quicktime 7 and Windows XP Pro. I have even uninstalled and reinstalled Quicktime, but all I get is the faint Q with a question mark in it. Any help would be greatly appreciated.
    http://www.jacksonholevlog.com/the-otterbody-experience-streamed-quicktime-7-req /
      Windows XP Pro  

    Copy the link below (do not click) and open QT Player app.
    Choose Open URL from the QT Player menu and paste the URL.
    rtsp://streaming.jacksonholevlog.com/streaming.jacksonholevlog.com/otterbodystre am.mov
    I never got any audio (pitiful dial-up connection) and the file didn't work for me.
    It may be a bandwidth issue in the file or the server's inability to keep the streaming file being served.

  • You must authorise this computer from the Store menu before you can download previous purchases. Anyone know how to get to this link?

    Searched everywhere and can't find the link to authorise my computer - probably simple and not seeing it. Anyone help?

  • Can someone please tell me how I can email this stupid company to get technical help. I have been going round in circles on the website "so called support" and getting nowhere. All I am trying to do is install my ITUNES on another drive partition

    I have installed ITUNES 5 times, each time telling it where I want my media folder Drige G: as my main drive is filling up. Yet after installing, and re-downloading my music it still puts it in Documenets and setting on my C drive. Is the ITUNES software so backward?
    I am feeling so fedup I just want to retieve my music and say goodbye to ITUNES.
    Thanks

    Dr Traed-
    There should be a program that came with the camera that can view the AVCHD videos.  It may have the ability to save-as other formats.
    One program that is good for converting some video formats to M4V or MP4 required by iPad, is HandBrake.  <Download Handbrake> If you can save the videos to an intermediate format, HandBrake may be able to complete the comversion to MP4.
    Fred

Maybe you are looking for