My observation is that href in netui:anchor and at least one of the
netui-data tags is specifically 'encoding' the % if it appears.  It
seems to me that either the value in href should be fully encoded or the
% should be left as is.

Here is an attempt at a simplified example:
--- clip from Controller.java
        @Jpf.Action(forwards = { @Jpf.Forward(name = "success", path =
"index.jsp") })
        protected Forward begin() {
                getRequest().setAttribute("reserved",
"plus+divide/equal=quote'percent%semicolon;question?colon:[EMAIL 
PROTECTED]&doller$
comma,");
                getRequest().setAttribute("encoded",
URLCodec.encode("plus+divide/equal=quote'percent%semicolon;question?colo
n:[EMAIL PROTECTED]&doller$comma,"));
                return new Forward("success");
        }
---

I take that reserved stuff and put that in a netui:label and
netui:anchor and see that it is altered in the netui:anchor.

--- clip from index.jsp
<netui:body>
        <p><netui:anchor href="${reserved}">
                <netui:label value="${reserved}" />
        </netui:anchor></p>
        <p><netui:label value="${encoded}" /></p>
</netui:body>
---

So the value of href in the page rendered to the browser is
http://localhost:7001/aWar/plus+divide/equal=quote'percent%25semicolon;q
uestion?colon:[EMAIL PROTECTED]&doller$comma,

I expected either the same result as what is in one of the labels, but
only the % is changed.  Is this a bug or am I doing something wrong or
have incorrect expectations?

Thank you.

- jeremiah
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Reply via email to