Groups > IBM > Studio400 > Re: lessthan ('<') on input fields




Re: lessthan ('<') on input fields

Re: lessthan ('<') on input fields
Thu, 17 May 2007 08:01:14 -040
Patricio Correia wrote:
> Dear all,
> I need to receive and work with lessthan ('<') char on input filelds,
but 
> everytime i submit this char, it's transformed into &lt;
> I can change every jsp from: getFieldValueWithTransform("FIELD2",

> UNQUOTED_TRANSFORM)
> to: getFieldValueWithTransform("FIELD2", DO_NOT_TRANSFORM)
> But this is realy not a good solution because i would have to do this 
> everytime i perform a conversion, and i have to many DSPF's that need this

> property.
> Any thoughts?
> Thanks in advance 

I think that you will find that the &lt; will be handled just like the 
'<' character by the browser.  If it was left as the '<' character it 
would cause the html to be incorrect.

What do you need to do with this character that does not appear to be 
working correctly?

Post Reply
Re: lessthan ('<') on input fields
Thu, 17 May 2007 09:40:25 -040
> 
> thanks for the reply.
> In fact in the browser apears &lt; because the actual html code is 
> "&amp;lt;"
> The problem is that when the browser send the content of the input field to

> the RPG processing, sends &lt; instead of '<', this causes the
malfunction 
> of the the program and when the data comes back to the browser is 
> transformed into &amp;lt;.
> This only happens with '<' char, '>' works just fine...
> Hope i was clear enough.
> Patricio 
> 
> 

What version of WF are you using?  And is this a default value in the 
field or is it data sent from the program to a both field ?  I would 
expect that you should see "&amp;&lt;" I think.

Post Reply
lessthan ('<') on input fields
Thu, 17 May 2007 12:14:07 +010
Dear all,
I need to receive and work with lessthan ('<') char on input filelds, but 
everytime i submit this char, it's transformed into &lt;
I can change every jsp from: getFieldValueWithTransform("FIELD2", 
UNQUOTED_TRANSFORM)
to: getFieldValueWithTransform("FIELD2", DO_NOT_TRANSFORM)
But this is realy not a good solution because i would have to do this 
everytime i perform a conversion, and i have to many DSPF's that need this 
property.
Any thoughts?
Thanks in advance 

Post Reply
Re: lessthan ('<') on input fields
Thu, 17 May 2007 13:16:09 +010
"M.Hockings" <hockings@ca.ibm.com> wrote in message 
news:464C440A.9070400@ca.ibm.com...
> Patricio Correia wrote:
>> Dear all,
>> I need to receive and work with lessthan ('<') char on input
filelds, but 
>> everytime i submit this char, it's transformed into &lt;
>> I can change every jsp from:
getFieldValueWithTransform("FIELD2", 
>> UNQUOTED_TRANSFORM)
>> to: getFieldValueWithTransform("FIELD2", DO_NOT_TRANSFORM)
>> But this is realy not a good solution because i would have to do this 
>> everytime i perform a conversion, and i have to many DSPF's that need 
>> this property.
>> Any thoughts?
>> Thanks in advance
>
> I think that you will find that the &lt; will be handled just like the
'<' 
> character by the browser.  If it was left as the '<' character it would

> cause the html to be incorrect.
>
> What do you need to do with this character that does not appear to be 
> working correctly?
>
> Mike

thanks for the reply.
In fact in the browser apears &lt; because the actual html code is 
"&amp;lt;"
The problem is that when the browser send the content of the input field to 
the RPG processing, sends &lt; instead of '<', this causes the
malfunction 
of the the program and when the data comes back to the browser is 
transformed into &amp;lt;.
This only happens with '<' char, '>' works just fine...
Hope i was clear enough.
Patricio 

Post Reply
Re: lessthan ('<') on input fields
Thu, 17 May 2007 15:25:14 +010
> What version of WF are you using?  And is this a default value in the
> field or is it data sent from the program to a both field ?  I would 
> expect that you should see "&amp;&lt;" I think.
>
> Mike

I'm using WebSphere Development Studio Client for iSeries V7.0.0.1

the problem occours when the data is sent from the web to the program, i.e. 
if i put '<' in a input or both field and submit, the value that the program

receives is '&lt;' when this data is sent back to web to a both or output 
field, it's transformed in &amp;lt, that's why it apears as &lt; in the

browser, but the actual problem is when an input or both field is filled 
whith the '<' char and data is submited.
Thanks.
Patricio

Post Reply
<< Previous 1 2 3 Next >>
( Page 1 of 3 )
about | contact