Hi Rick

 

you're probably want to consider a templating language such as FTL/VM.. i'll 
borrow this test-include from FreeMarker


<!-- first the assignment in nestedinclude.ftl ...this is where the assignment 
of external property takes place -->

<#assign nestedMessage = "I'm here, mon!">

 

<!-- then blat  output in jsp -->

<html>
<head>
<title>FreeMarker: Include Instruction Test</title>
</head>
<body>

<p>A simple test follows:</p>

<p>Test normal includes:</p>
<!--include in jsp -->
<#include "nestedinclude.ftl">

${nestedMessage}

</body>
</html>

 

?

Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

> From: [email protected]
> Date: Sat, 22 May 2010 00:01:27 -0400
> Subject: Re: toughest time trying to get a jsp filtered.. any help much 
> appreciated
> To: [email protected]
> 
> On Fri, May 21, 2010 at 11:53 PM, Rick R <[email protected]> wrote:
> 
> >
> >
> > On Fri, May 21, 2010 at 9:44 PM, Wayne Fay <[email protected]> wrote:
> >
> >> > <properties>
> >> > <foo.bar>FOO/foo.bar>
> >> > </properties>
> >>
> >> If this is literally cut and paste from your pom.xml file, the problem
> >> should be pretty obvious. If you changed it and accidentally deleted
> >> the <, that's another story.
> >>
> >
> >
> > Ha sorry. no it wasn't cut and paste:) I see the mistake above. I had
> > several properties and then pasted them here and just screwed up making it
> > more generic. Thanks though.
> >
> 
> 
> I also ended up getting around the problem (in a flex/java app) by
> utilizing the flex mojos copy-flex-resources goal of the plugin.
> 
> However, I still would be curious why I wasn't have it filter correctly for
> the jsp. The plugin section was copy and paste:
> 
> <plugin>
> <groupId>org.apache.maven.
> plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.0.2</version>
> <configuration>
> <webResources>
> <resource>
> <directory>src/main/webapp</directory>
> <includes>
> <include>**/*.jsp</include>
> </includes>
> <filtering>true</filtering>
> <!--<targetPath> </targetPath> tried also setting this to
> src/main/webapps-->
> </resource>
> </webResources>
> </configuration>
> </plugin>
> 
> The relevant property I was trying to replace.. copy and paste:
> 
> <properties>
> <swf.version>1.0-SNAPSHOT</swf.version>
> </properties>
> 
> and then from a snippet in the index.jsp
> 
> 
> "src", "integrated-media-swf-${swf.version}.swf"
                                          
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2

Reply via email to