Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Character # in text field is creating creating issue

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created simple form accepting address and country, whenever I enter text having # character in address field, in validator it trims all char from # to end also sets other bean variables as null.

and in validator address always trims # char and trailing characters also country is set as null when address contains # character.
I googled lot about but not found anything on this.

  public void validate()
     if(location.getCountry().equalsIgnoreCase("US")) //getCountry is null when # is in address.

Does Struts OGNL consider # as id selector.
This guy is skipping without a rope. At least, that's what this tiny ad said:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic