You might be able to use filtering to find/replace the value at build time.

http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html

Matt

On Wed, Jan 14, 2009 at 1:46 AM, Martin Homik <mar...@homik.de> wrote:

>
> Does anyone know how to pass a property that is set in pom.xml to a JSP
> page.
> In other words, how can I display my custom pom properties in a JSP page?
>
> Scenario: In my pom.xml, I want to set a relative path to a gwt script
> which
> changes depending on the environment. In Maven pom:
>
> <appfuse.myRelativePath> /some/Path </appfuse.myRelativePath>
>
> In the JSPs the header should include something like this:
>
> <script language='javascript' src="???appfuse.myRelativePath???"/>
>
> Any hints?
>
> Martin
>
> --
> View this message in context:
> http://www.nabble.com/Pass-a-pom-property-to-a-JSP-page-tp21452783s2369p21452783.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to