You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org> on 2007/03/08 01:10:44 UTC
[jira] Closed: (VELOCITY-363) this expected result con't be
rendered out
[ https://issues.apache.org/jira/browse/VELOCITY-363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henning Schmiedehausen closed VELOCITY-363.
-------------------------------------------
> this expected result con't be rendered out
> ------------------------------------------
>
> Key: VELOCITY-363
> URL: https://issues.apache.org/jira/browse/VELOCITY-363
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.4
> Environment: Operating System: Windows 2000
> Platform: PC
> Reporter: stoneman
>
> Result expected: <c:if test="${userForm.id != null}">.
> As you can see, it's a widely use JSTL core tag.
> The precondition is: #set ($formName = "user")
> I tried 4 ways:
> one:
> <c:if test="${${formName}.id != null}">
> two:
> #set ($D = '$')
> <c:if test="$D{${formName}Form.id != null}">
> three: use the EscapeTool
> <c:if test="${escape.d}{${formName}Form.id != null}">
> four: !@#(^*%%(*^....
> #set ($D = '$')
> #set ($LEFT_B = '{')
> #set ($RIGHT_B = '}')
> <c:if test="$D{${formName}Form.id != null}">
> But all 3 ways failed, with the same error:
> org.apache.velocity.runtime.parser.ParseException: Encountered " != null} , Was
> expecting one of:
> "}" ...
> <DOT> ...
>
> currently all I can do is NOT USE the JSTL, replaced it with the ugly java code:
> <%if (((User)request.getParameter("userForm")).getId() != null) %> ...
> any suggest?
> Thanks.
> stoneman.huang
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org