[opencms-dev] OpenCms removes scriplet code
Eduard Nesterov
edn at quadrix.com
Tue Sep 28 13:13:53 CEST 2004
Thank you Thomas,
The approach you described works fine if you use scriplets in the jsp
code. Problem which I am experiencing is related to the publishing of
the html code. If I use code from your example then all "<" and ">" will
be replaced with < and > correspondingly and will never be treated
by the ASP engine as scriplets.
Ed
Thomas Kraft wrote:
> Hi Eduard,
>
>> 2. If I use scriplet as a standalone code, for example
>> <code>
>> "<%= "foo" %>"
>> </code>
>> then after publishing I get the following code:
>> <code>
>> &qout;"
>> </code>
>>
>> Does anybody have any idea how to force OpenCms 5.0.1 to leave
>> scriplets untouched.
>
>
> You can escape them so that they will not be recognized as scriptlets,
> but in the resulting html code they will appear as scriptlets, so that
> a secondary engine can process them.
>
> There are several ways to do so, for the above example e.g.
>
> <code>
> <%= "<" + "%= \"foo\" %" + ">" %>
> </code>
>
> ugly, but works fine :)
>
> Greetings, Thomas
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
> visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
More information about the opencms-dev
mailing list