cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Encode method deprecated in Logon Page

thenmalar_v2
Explorer
0 Kudos
246

Hi All,

we have to customize the login page in Portal 7.3  The Jsp files encoded the error message using

"EncodeHtmlTag.encode(logonMessage.print(error.getMessage()))". But the error messages is not getting encoded. since the method encode is deprecated. May i know what is the alternative to encode the error messages.Please help me.

Regards,

Malar

View Entire Topic
former_member193577
Active Contributor
0 Kudos

Hi Malar,

You can see the following for updated encoding methods:

SAP Encoding Functions for AS Java and JavaScript - Secure Programming - SAP Library

You can use:

XSSEncoder.encodeHTML method for encoding HTML.

Best Regards,

Tal