0

I have a GWT project. I would like to call this gwt project from email content with parameters by clicking hyperlink. In this case, I would like to hide my parameters, so, I tried by adding javascript coding for passing hidden parameter. Unfortunately, javascript code cannot work in email content because of security issue.

Could anyone give me advise how can I call to my project with hidden parameters from email content ?

Kyaw Min Thu L
  • 537
  • 8
  • 26

2 Answers2

0

It is a good thing, that email clients don't allow this (think about the security risks). Links generally aren't meant to perform a POST request.

So if you don't want to have the GET parameters in your browser's URL, the way to solve this is sending a redirect when you receive the request. (An alternative would be to change the URL immediately on the client side using Window.Location.replace() or Window.Location.assign() .)

Community
  • 1
  • 1
Chris Lercher
  • 37,264
  • 20
  • 99
  • 131
0

Use a jsp file for your module:

Call you jsp with parameters like myModule.jsp?user='123'&mail='456'

in the jsp code write the parameters to your HTML output

<input id='userName' type='hidden' value='<%=user%>'>

Get the values in the result html from your gwt code: when the GWT is executed, the page html is already rendered.

If you use the Place-Activity mechanism, do a placeController.goTo() using a place constructed with these parameters

Zied Hamdi
  • 2,400
  • 1
  • 25
  • 40