You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2008/11/06 05:27:44 UTC
[jira] Commented: (SLING-720) Set jcr:mimetype to
text/x-java-source for generated java files
[ https://issues.apache.org/jira/browse/SLING-720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645393#action_12645393 ]
Felix Meschberger commented on SLING-720:
-----------------------------------------
Modified the commons/mime mapping of the .java extension to text/x-java-source (was text/plain) in Rev. 711769
> Set jcr:mimetype to text/x-java-source for generated java files
> ---------------------------------------------------------------
>
> Key: SLING-720
> URL: https://issues.apache.org/jira/browse/SLING-720
> Project: Sling
> Issue Type: Bug
> Components: Scripting JSP
> Reporter: Dominique Pfister
> Assignee: Felix Meschberger
> Priority: Minor
>
> We have a web-based repository browser that will return nt:files via HTTP with the content-type derived from the jcr:content subnode's jcr:mimeType property. In Sling's JSP Scripting engine, files generated by JSP transpilation/compilation will always have their mime type set to "application/octet-stream" (see org.apache.sling.scripting.jsp.RepositoryOutpuStream). If jcr:mimeType could be changed to "text/x-java-source" for generated java files, they would be displayed directly inside the web browser.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.