• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

EMail Adresses and Spring Controller methods

 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a problem with Spring, RequestMapping and eMail-Addresse which I send to my controller method. Actually every email address is received without the ending (after the last point) So if I send this
name@domain.com the controller method receives name@domain.
I found this as a bug but the workaround didn't help me: https://jira.springsource.org/browse/SPR-6164
It's all because of the dots I learned. I build a workaround by replacing the dots with dollarsigns, but this is really ugly and also is shown in the address bar, which is forbidden.

Has anybody an idea?

Thank you.
cheers
Robin

Here is my controller method. Well only the header:
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wish I could find that other post that had the same issue and gave a solution. Not perfect, but works and is cleaner than the "$"

Where you create two PathVariables, one for the String before the dot, and one for the String after the dot.

Basically, try


Mark
 
Bob Wheeler
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your effort. Indeed this is also a solution for my problem. Not perfect, but it is a solution.
But luckily, for me, my boss changed his mind, and didn't want to use the eMail address as an ID.

But still thank you,
Robin
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bob Wheeler wrote:Thank you for your effort. Indeed this is also a solution for my problem. Not perfect, but it is a solution.
But luckily, for me, my boss changed his mind, and didn't want to use the eMail address as an ID.

But still thank you,
Robin



Are you Robin or Bob?

Mark
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic