Config path to a Tiles Definition file in the generated struts-config file
contains back slashes and forward slashes in the same path.
--------------------------------------------------------------------------------------------------------------------------------------
Key: BEEHIVE-219
URL: http://issues.apache.org/jira/browse/BEEHIVE-219
Project: Beehive
Type: Bug
Components: NetUI
Versions: V1Beta
Environment: Running the usual components required by Beehive V1Beta on a
Win32 box. Local test environment.
Reporter: Nathan Jantz
Priority: Minor
Config path to a Tiles Definition file in the generated struts-config file
contains back slashes and forward slashes in the same path when compiled on a
Win32 machine. This could potentially cause a runtime error if this webapp was
.WAR'ed up on a Win32 box and placed on a Linux box to run.
Here is an example:
ParentPageFlow.jpf:
@Jpf.Controller(
tilesDefinitionsConfigs = { "tiles-defs.xml" },
simpleActions={
@Jpf.SimpleAction(name="begin", tilesDefinition="default.page")
}
)
ChildPageFlow.jpf (extends ParentPageFlow):
ChildFlow1Controller.jpf:
@Jpf.Controller(
simpleActions={
@Jpf.SimpleAction(name="begin", tilesDefinition="default.page")
}
)
Generated struts-config output:
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config"
value="\childFlow1/tiles-defs.xml"/>
<set-property property="moduleAware" value="true"/>
</plug-in>
Notice that value="\childFlow1/tiles-defs.xml" could potentially break during
runtime in a Unix environment. Expected result would be:
value="/childFlow1/tiles-defs.xml".
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira