It's not a secret anymore!
The moose likes JSP and the fly likes URL w/multiple parameters in Outlook Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "URL w/multiple parameters in Outlook" Watch "URL w/multiple parameters in Outlook" New topic

URL w/multiple parameters in Outlook

Steve Swanson

Joined: Aug 10, 2005
Posts: 6
Hello all! I'm currently having the following problem:

My web app has a "Send Mail" feature which needs to open Outlook via a simple mailto. Once the outlook window opens, I populate the subject and body fields, as such:

The http link is a url to a servlet that needs to pass three parameters.
The mailto in my jsp looks like:

Unfortunately what I get for my hyperlink is:

(It is not a big deal if users see these parameters in the link.)
The rest of the parameters aren't rendered in the email's body.
I have a feeling it's because of the ampersand following my first parameter. Is there a way to render my complete url in outlook, with all three parameters?

Steve Swanson

Joined: Aug 10, 2005
Posts: 6
Never mind, I just figured out the solution! javascript: x()
raul marzo

Joined: Apr 09, 2007
Posts: 21

I have the same problem. Could you post how you did it with Javascript?

<a href="" target="_blank" rel="nofollow"></a>
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Since this post is over a year old and the original poster only has 4 posts to his name, I think it's safe to assume that he's moved on.

I'll move this to our HTML/Javascript forum where the Ranch's Javascript Gurus hang out.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: URL w/multiple parameters in Outlook
It's not a secret anymore!