• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<> symbol in textbox it's been changed to & lt; and & gt

 
josuva moorthy
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the code

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<html:text styleClass="text" name="CardForm"
property="lastName"
maxlength="20" styleId="lastName"/>

When I enter <> symbol in textbox it's been changed to & lt; and & gt
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has been URL encoded during the POST process.

You may need to decode it if persisting to a database or something.

WP
 
josuva moorthy
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
William P O'Sullivan wrote:It has been URL encoded during the POST process.

You may need to decode it if persisting to a database or something.

WP



How to decode .It's only occurring for few symbols <>%()
 
Paul Clapham
Sheriff
Posts: 20990
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
William P O'Sullivan wrote:It has been URL encoded during the POST process.


URL-encoding changes characters to something starting with a percent sign. For example a space character changes to "%20". So no, that's not URL-encoding.
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, HTML encoded.

WP
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic