You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Honwai Wong (JIRA)" <ji...@apache.org> on 2008/07/30 17:43:31 UTC

[jira] Created: (SLING-593) JSPC does not respect JSTL/EL expressions

JSPC does not respect JSTL/EL expressions
-----------------------------------------

                 Key: SLING-593
                 URL: https://issues.apache.org/jira/browse/SLING-593
             Project: Sling
          Issue Type: Bug
          Components: Maven Plugins
    Affects Versions: Maven JSPC Plugin 2.0.2
            Reporter: Honwai Wong


When using the JSPC plugin for precompilation of jsp-scripts, contained JSTL/EL expressions are ignored and the resulting servlets simply output the JSTL/EL expression instead of evaluating the expression itself. The precompiled classes are deployed as an OSGi bundle.

If the exact same script is deployed directly to the target repository (e.g. with WebDAV), the JSTL/EL expressions are evaluated correctly.

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


[jira] Resolved: (SLING-593) JSPC does not respect JSTL/EL expressions

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

Felix Meschberger resolved SLING-593.
-------------------------------------

    Resolution: Fixed

The problem is that the JSP compiler defaults ignoring expression language support if the web.xml file is a pre-Servlet API 2.4 file. This was exactly the case for the JspC plugin, which had an empty Servlet API 2.3 web.xml file. I modified the empty web.xml file to be Servlet API 2.4 compliant. Now it seems to work.

Committed in Rev. 682715 and deployed SNAPSHOT version 2.0.3-incubator-20080805.140521-2.

Please close this bug, if this works for you. Thanks.

> JSPC does not respect JSTL/EL expressions
> -----------------------------------------
>
>                 Key: SLING-593
>                 URL: https://issues.apache.org/jira/browse/SLING-593
>             Project: Sling
>          Issue Type: Bug
>          Components: Maven Plugins
>    Affects Versions: Maven JSPC Plugin 2.0.2
>            Reporter: Honwai Wong
>            Assignee: Felix Meschberger
>         Attachments: test.jsp
>
>
> When using the JSPC plugin for precompilation of jsp-scripts, contained JSTL/EL expressions are ignored and the resulting servlets simply output the JSTL/EL expression instead of evaluating the expression itself. The precompiled classes are deployed as an OSGi bundle.
> If the exact same script is deployed directly to the target repository (e.g. with WebDAV), the JSTL/EL expressions are evaluated correctly.

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


[jira] Commented: (SLING-593) JSPC does not respect JSTL/EL expressions

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

Felix Meschberger commented on SLING-593:
-----------------------------------------

Thanks for submitting this issue. Will look into this.

As another workaround you may just omit the compiled classes from the bundle and have Sling compile the script files deployed with the bundle by means of the BundleResourceProvider.

> JSPC does not respect JSTL/EL expressions
> -----------------------------------------
>
>                 Key: SLING-593
>                 URL: https://issues.apache.org/jira/browse/SLING-593
>             Project: Sling
>          Issue Type: Bug
>          Components: Maven Plugins
>    Affects Versions: Maven JSPC Plugin 2.0.2
>            Reporter: Honwai Wong
>            Assignee: Felix Meschberger
>         Attachments: test.jsp
>
>
> When using the JSPC plugin for precompilation of jsp-scripts, contained JSTL/EL expressions are ignored and the resulting servlets simply output the JSTL/EL expression instead of evaluating the expression itself. The precompiled classes are deployed as an OSGi bundle.
> If the exact same script is deployed directly to the target repository (e.g. with WebDAV), the JSTL/EL expressions are evaluated correctly.

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


[jira] Closed: (SLING-593) JSPC does not respect JSTL/EL expressions

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

Honwai Wong closed SLING-593.
-----------------------------


I successfully tested following jstl-statements:

- ${pageContext.request.pathInfo}
- <c:out value="${pageContext.request.pathInfo}" />
- <c:forEach ../>


Thanks for the fix, works perfect now!

> JSPC does not respect JSTL/EL expressions
> -----------------------------------------
>
>                 Key: SLING-593
>                 URL: https://issues.apache.org/jira/browse/SLING-593
>             Project: Sling
>          Issue Type: Bug
>          Components: Maven Plugins
>    Affects Versions: Maven JSPC Plugin 2.0.2
>            Reporter: Honwai Wong
>            Assignee: Felix Meschberger
>             Fix For:  Maven JSPC Plugin 2.0.4
>
>         Attachments: test.jsp
>
>
> When using the JSPC plugin for precompilation of jsp-scripts, contained JSTL/EL expressions are ignored and the resulting servlets simply output the JSTL/EL expression instead of evaluating the expression itself. The precompiled classes are deployed as an OSGi bundle.
> If the exact same script is deployed directly to the target repository (e.g. with WebDAV), the JSTL/EL expressions are evaluated correctly.

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


[jira] Updated: (SLING-593) JSPC does not respect JSTL/EL expressions

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

Honwai Wong updated SLING-593:
------------------------------

    Attachment: test.jsp

Attaching a simple jsp script that should print a simple string value using JSTL/EL.

> JSPC does not respect JSTL/EL expressions
> -----------------------------------------
>
>                 Key: SLING-593
>                 URL: https://issues.apache.org/jira/browse/SLING-593
>             Project: Sling
>          Issue Type: Bug
>          Components: Maven Plugins
>    Affects Versions: Maven JSPC Plugin 2.0.2
>            Reporter: Honwai Wong
>         Attachments: test.jsp
>
>
> When using the JSPC plugin for precompilation of jsp-scripts, contained JSTL/EL expressions are ignored and the resulting servlets simply output the JSTL/EL expression instead of evaluating the expression itself. The precompiled classes are deployed as an OSGi bundle.
> If the exact same script is deployed directly to the target repository (e.g. with WebDAV), the JSTL/EL expressions are evaluated correctly.

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


[jira] Assigned: (SLING-593) JSPC does not respect JSTL/EL expressions

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

Felix Meschberger reassigned SLING-593:
---------------------------------------

    Assignee: Felix Meschberger

> JSPC does not respect JSTL/EL expressions
> -----------------------------------------
>
>                 Key: SLING-593
>                 URL: https://issues.apache.org/jira/browse/SLING-593
>             Project: Sling
>          Issue Type: Bug
>          Components: Maven Plugins
>    Affects Versions: Maven JSPC Plugin 2.0.2
>            Reporter: Honwai Wong
>            Assignee: Felix Meschberger
>         Attachments: test.jsp
>
>
> When using the JSPC plugin for precompilation of jsp-scripts, contained JSTL/EL expressions are ignored and the resulting servlets simply output the JSTL/EL expression instead of evaluating the expression itself. The precompiled classes are deployed as an OSGi bundle.
> If the exact same script is deployed directly to the target repository (e.g. with WebDAV), the JSTL/EL expressions are evaluated correctly.

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


[jira] Updated: (SLING-593) JSPC does not respect JSTL/EL expressions

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

Felix Meschberger updated SLING-593:
------------------------------------

    Fix Version/s:  Maven JSPC Plugin 2.0.4

> JSPC does not respect JSTL/EL expressions
> -----------------------------------------
>
>                 Key: SLING-593
>                 URL: https://issues.apache.org/jira/browse/SLING-593
>             Project: Sling
>          Issue Type: Bug
>          Components: Maven Plugins
>    Affects Versions: Maven JSPC Plugin 2.0.2
>            Reporter: Honwai Wong
>            Assignee: Felix Meschberger
>             Fix For:  Maven JSPC Plugin 2.0.4
>
>         Attachments: test.jsp
>
>
> When using the JSPC plugin for precompilation of jsp-scripts, contained JSTL/EL expressions are ignored and the resulting servlets simply output the JSTL/EL expression instead of evaluating the expression itself. The precompiled classes are deployed as an OSGi bundle.
> If the exact same script is deployed directly to the target repository (e.g. with WebDAV), the JSTL/EL expressions are evaluated correctly.

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