Input Fields Ending With Backslash ("\") in HTML Form Portlet Are Interpreted as Escape Characters By WebCenter Portal

(Doc ID 2055827.1)

Last updated on SEPTEMBER 14, 2015

Applies to:

Oracle WebCenter Portal - Version and later
Information in this document applies to any platform.



When creating a WSRP Portlet with an HTML Form with Input Fields having Default values ending with backslashes ("\"),
the same are interpreted as escape characters.


For example, having the following input field:

<input id="__ns2036993941_firstName" type="text" name="firstName" value="foo\" size="20" />

WebCenter Portal will assume the value for the text input parameter to be this:

foo\" size=


Instead of:




Expect WebCenter Portal to not interpret the backslash as an escape character.


The issue can be reproduced at will with the following steps:

  1. Create a portlet with the following code:


  2. Run the view.jsp form the portlet directly.
    This displays the form with the 2 input fields.

  3. Register the portlet with webcenter portal application and add the portlet to a page.
  4. Run the portal application.
    The portlet output will be completely mangled.



Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms