You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "David Nuescheler (JIRA)" <ji...@apache.org> on 2008/01/15 15:56:34 UTC

[jira] Created: (SLING-157) output of primitives using <%= %> in .esp does not work

output of primitives using <%= %> in .esp does not work
-------------------------------------------------------

                 Key: SLING-157
                 URL: https://issues.apache.org/jira/browse/SLING-157
             Project: Sling
          Issue Type: Bug
          Components: Scripting
            Reporter: David Nuescheler
            Priority: Minor


while trying to output a non string value using the <%= %> syntax I stumbled over an issue that
somehow prevented the output without an error.

so:

<%= 1 %> 

does not produce output, while

<%= "1" %>

works fine.

a workaround for the application developer of course would be to convert the output to a string first, but i think
it would be great to fix that, since people output counters and other non string variables frequently.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SLING-157) output of primitives using <%= %> in .esp does not work

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated SLING-157:
------------------------------------

    Fix Version/s: 2.0.0
         Assignee: Felix Meschberger

Add fix version and assignee.

> output of primitives using <%= %> in .esp does not work
> -------------------------------------------------------
>
>                 Key: SLING-157
>                 URL: https://issues.apache.org/jira/browse/SLING-157
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: David Nuescheler
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> while trying to output a non string value using the <%= %> syntax I stumbled over an issue that
> somehow prevented the output without an error.
> so:
> <%= 1 %> 
> does not produce output, while
> <%= "1" %>
> works fine.
> a workaround for the application developer of course would be to convert the output to a string first, but i think
> it would be great to fix that, since people output counters and other non string variables frequently.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (SLING-157) output of primitives using <%= %> in .esp does not work

Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bertrand Delacretaz reopened SLING-157:
---------------------------------------

      Assignee:     (was: Felix Meschberger)

Reopening as I don't think the fix includes automated tests (and yes I volunteer to write them, just not right now ;-)

> output of primitives using <%= %> in .esp does not work
> -------------------------------------------------------
>
>                 Key: SLING-157
>                 URL: https://issues.apache.org/jira/browse/SLING-157
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: David Nuescheler
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> while trying to output a non string value using the <%= %> syntax I stumbled over an issue that
> somehow prevented the output without an error.
> so:
> <%= 1 %> 
> does not produce output, while
> <%= "1" %>
> works fine.
> a workaround for the application developer of course would be to convert the output to a string first, but i think
> it would be great to fix that, since people output counters and other non string variables frequently.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SLING-157) output of primitives using <%= %> in .esp does not work

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved SLING-157.
-------------------------------------

    Resolution: Fixed

Resolved in Rev. 612405 (with minor fix in 612407) by wrapping the PrintWriter with a ScriptablePrintwriter, providing the following support:

   * write, print, println: Take any number of arguments and print them one after the other as
          if called multiple times for each argument (println of course only emits the line feed after
          having printed all arguments).

   * printf: Standard Java 5 PrintWriter.printf support. If no Locale is provided, the Locale is taken
          from a request object (HttpServletRequest) if available. Otherwise the platform default is used.

Calling the methods with no arguments at all has no effect, except for println(), which of course emits the line feed as expected from the Java PrintWriter.println() method.

Please close this issue, if it solves your problem. Thanks.

> output of primitives using <%= %> in .esp does not work
> -------------------------------------------------------
>
>                 Key: SLING-157
>                 URL: https://issues.apache.org/jira/browse/SLING-157
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: David Nuescheler
>            Priority: Minor
>
> while trying to output a non string value using the <%= %> syntax I stumbled over an issue that
> somehow prevented the output without an error.
> so:
> <%= 1 %> 
> does not produce output, while
> <%= "1" %>
> works fine.
> a workaround for the application developer of course would be to convert the output to a string first, but i think
> it would be great to fix that, since people output counters and other non string variables frequently.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SLING-157) output of primitives using <%= %> in .esp does not work

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559430#action_12559430 ] 

Felix Meschberger commented on SLING-157:
-----------------------------------------

ok :-)

> output of primitives using <%= %> in .esp does not work
> -------------------------------------------------------
>
>                 Key: SLING-157
>                 URL: https://issues.apache.org/jira/browse/SLING-157
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: David Nuescheler
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> while trying to output a non string value using the <%= %> syntax I stumbled over an issue that
> somehow prevented the output without an error.
> so:
> <%= 1 %> 
> does not produce output, while
> <%= "1" %>
> works fine.
> a workaround for the application developer of course would be to convert the output to a string first, but i think
> it would be great to fix that, since people output counters and other non string variables frequently.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SLING-157) output of primitives using <%= %> in .esp does not work

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger closed SLING-157.
-----------------------------------

    Resolution: Fixed
      Assignee: Felix Meschberger

Committed test case in Rev. 628292 and now close this issue again.

> output of primitives using <%= %> in .esp does not work
> -------------------------------------------------------
>
>                 Key: SLING-157
>                 URL: https://issues.apache.org/jira/browse/SLING-157
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: David Nuescheler
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> while trying to output a non string value using the <%= %> syntax I stumbled over an issue that
> somehow prevented the output without an error.
> so:
> <%= 1 %> 
> does not produce output, while
> <%= "1" %>
> works fine.
> a workaround for the application developer of course would be to convert the output to a string first, but i think
> it would be great to fix that, since people output counters and other non string variables frequently.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.