[ http://issues.apache.org/jira/browse/VELOCITY-363?page=all ]
Will Glass-Husain resolved VELOCITY-363:
----------------------------------------
Resolution: Invalid
Assign To: (was: Velocity-Dev List)
Hi - Since you worked this out I'm going to go ahead and resolve the issue.
> this expected result con't be rendered out
> ------------------------------------------
>
> Key: VELOCITY-363
> URL: http://issues.apache.org/jira/browse/VELOCITY-363
> Project: Velocity
> Type: Bug
> Components: Source
> 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: [EMAIL PROTECTED](^*%%(*^....
> #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.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]