You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2012/11/27 10:17:58 UTC
[jira] [Updated] (SLING-2617) jsp:setProperty causes "the type
JasperException cannot be resolved" compilation error
[ https://issues.apache.org/jira/browse/SLING-2617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler updated SLING-2617:
------------------------------------
Fix Version/s: JCR Classloader 3.1.10
> jsp:setProperty causes "the type JasperException cannot be resolved" compilation error
> --------------------------------------------------------------------------------------
>
> Key: SLING-2617
> URL: https://issues.apache.org/jira/browse/SLING-2617
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Affects Versions: JCR Classloader 3.1.8
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Fix For: JCR Classloader 3.1.10
>
>
> The following script causes a compilation error, "The type org.apache.sling.scripting.jsp.jasper.JasperException cannot be resolved" - I'll attach the stack trace.
> Without the jsp:setProperty statement the script compiles without error.
> export PORT=8080
> cat <<EOL > /tmp/foo.jsp
> <jsp:useBean id="date" scope="page" class="java.util.Date" />
> <jsp:getProperty name="date" property="time"/>
> <jsp:setProperty name="date" property="time" value="1234"/>
> <jsp:getProperty name="date" property="time"/>
> All good!
> EOL
> curl -u admin:admin -X MKCOL http://localhost:$PORT/apps/foo
> curl -u admin:admin -T /tmp/foo.jsp http://localhost:$PORT/apps/foo/foo.jsp
> curl -u admin:admin -Fsling:resourceType=foo http://localhost:$PORT/apps/foo
> curl -u admin:admin http://localhost:$PORT/apps/foo.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira