I have a servlet that basically accepts firstname and lastname in a html page and displays it.
I am trying to compose a URL in your browser address bar that will set firstname to x and lastname to y.
I tried this url but it is not working.
http://localhost:51500/examples/servlets/servlet/RequestParamExample/?firstname=%22+x+%22&lastname=%22+y
Not sure what i am doing wrong?
I think there's no need to add the double quote mark %22, nor the plus sign it's not javascript and if you're writing it on the browser url bar, it will parse it for you later on the servlet
Try this: http://localhost:51500/examples/servlets/servlet/RequestParamExample?firstname=x&lastname=y
EDIT
After reading the comments i agree, first troubleshoot the mapping and some other issues, it's helpful if you bring some code, problems and/or errors, please read on enter link description here
Related
I was sent a hyperlink to a Tableau Public link by a client. When I tried opening it, I got a 404 exception. I wrote back to the client but was told by the same that the link was working fine. I visited his profile page and was able to open the presentation there, but the URL that ended up working was slightly different than the one behind the original, non-functioning link.
Here's the anonymized URL behind the original link
https://public.tableau.com/profile/[client_name]%23!/vizhome/Project-AirportDelay/FlightPerformancesinUSA?publish=yes
And here's the URL via the profile page:
https://public.tableau.com/profile/[client_name]#!/vizhome/Project-AirportDelay/FlightPerformancesinUSA
The only differences I see are ?publish=yes and %23!. I tried appending the former, ?publish=yes, to the working URL, and it was still functional. So I suspect that it has to do with the other difference %23! vs. #!. Could the first work because he is opening it from his computer where he is likely logged onto Tableau Public? What's the difference between these syntax? Any ideas about why the original hyperlink might not be functional?
For obvious privacy reasons, I can't provide the whole URL.
It looks like the basic URL pattern for passing filters ?publish=yes
and
%23 is the URL encoded representation of #
The first # after the authority component starts the fragment component. If the # should be part of the path component or the query component, it has to be percent-encoded as %23.
As # is a reserved character, these URIs aren’t equivalent:
http://example.com/foo#bar
http://example.com/foo%23bar
There are countless ways how a URI reference could become erroneous. The culprit is often a software, like a word processor, where someone pastes the correct URI, and the software incorrectly percent-encodes it (maybe assuming that the user didn’t paste the real/correct URI).
Copy-pasting the URI from the browser address bar into a plain text document should always work correctly.
I'm working on a Exchange Hub Transport Rule that applies signatures from variables that are pulled in from AD. Anyways I'm trying to get the email link working and I'm having an issue trying to escape quotes variable tags to include the proper format.
Variables included are %%Email%%, here is a link to all of them http://solarz.net/?p=31
Email:%%Email%%
The Email displays correctly but the link for the email address doesnt. Just cant figure out how to include the same %%Email%% for the link.
The Last %%Email%% displays correctly.
Thanks
Fixed it using some escape characters.
Email:%%Email%%
I wrote in my jsp page the next link:
Map
I want to send parameters to my controller (the controller is servlet).
BUT the problem is that in the browser it show's:
"http://localhost:8080/Attraxions4/Controller#/Attraxions4/Controller?pageName=OptionCategory&pageCommand=Map"
instade of:
"http://localhost:8080/Attraxions4/Controller?pageName=OptionCategory&pageCommand=Map"
what is this sign number #?
why it copy again the root folders?
what can i do to fix it ??
thank you!! :)
what is this sign number #?
It is a fragment identifier. It indicates the end of the part of the URL to send to the server and indicates the id of an element to scroll to.
It is often abused to store data for use with Ajax requests.
what can i do to fix it ?
Find the JavaScript you have that is hijacking the normal functionality of your links and remove it.
This is a rather simple question, but I cannot find documentation about it from Salesforce.
I am setting up an HTML Newsletter from Salesforce Vertical Response, and I need to put a link in the body of the email that goes to another site which takes the user's email address as a query string. I am doing this so that when the user clicks the link from the HTML email, they will automatically be signed up for a different blog mailing list.
The link will look like this www.mywebsite.com/blog/subscribe?email=your_email#email.com.
I can easily accomplish this by using the {EMAIL_ADDRESS} variable, such that the link looks like this:
Subsribe
This workds, but when the user gets the email and clicks the link, the '#' symbol gets stripped from the URL. Now I'm trying to figure out how to get around this. I saw some documentation on the URLENCODE() function for SalesForce, but when I try to use it in the HTML email editor in SalesForce, like URLENCODE({EMAIL_ADDRESS})it doesn't execute it, and instead interprets it literally as text. Can anyone help me? is it even possible to use functions from within the SalesForce HTML email editor?
Thanks
I havent used VerticalResponse, but if it leans on salesforce communication templates then you can always create an email template as Visualforce page. Then you can apply Encode functions to merge fields.
I'm glad you were able to find a workaround. If you ever go back to dealing with the URL, it's a good idea to disable our click-tracking when working with merge fields. This can be accomplished by adding nr_ before the http. Example: Subsribe - If you ever try that and it doesn't work, or if you have any other questions, please let us know via one of our Support channels:
support#verticalresponse.com
866-683-7842 x1
We also have live chat available: http://help.verticalresponse.com/
Regards,
Keith Gluck
VerticalResponse Customer Support
This is an odd question but hopefully someone has an idea of how to work around it
I'm working with a 3rd party product that sends out txt-based emails on the triggering of certain events. I can customize the text of the emails and I have access to certain dynamic properties that I can embed that will be included when the email is generated. So for example assume that I have a dynamic property called %%full-name%%, when it sends the email it would substitute in 'John Smith' in the body of the email.
Now, I need to also embed a url in the email that uses that dynamic property, something like this:
http://mysite.com?fullname=%%full-name%%
but what will happen is that the 3rd party product has no idea I am embedding a link so it doesn't know to escape it for the space between John and Smith so I get this:
http://mysite.com?fullname=John Smith
where the clickable part of the link shows up as just the bolded part in most mail clients.
So my question is, is there a way to wrap that dynamic property such that it will render the link properly despite the spaces? Since its a 3rd party API I'm working with I have zero control over the actual values being passed into the dynamic properties so my options are limited
You should ask the third party vendor this questions. They may have some way of designating that you want a URL encoded dynamic variable in the email.
If you surround the link in quotes ("") or greater/less than (<>), most email clients "like outlook" will know that it represents one link and won't cut it off at the space.
"http://mysite.com?fullname=%%full-name%%"
<http://mysite.com?fullname=%%full-name%%>
You will run into issues if the variable contains other special characters (like: + % & " >).
edit *
Have you tried using HTML
http://mysite.com?fullname=%%full-name%%
If you control the data that is available, you could always maintain another property that is url-safe:
Hi, %%full-name%%, visit this link to set your preferences:
http://mysite.com?fullname=%%full-name-url%%"