Bertrand Delacretaz created SLING-2617:
------------------------------------------
Summary: 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: Scripting JSP 2.0.24
Reporter: Bertrand Delacretaz
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