hmmm ... guess we need to take a closer look at it.
could you open an issue for that?

regards, Achim


2017-06-15 19:49 GMT+02:00 Eben Stewart <[email protected]>:

> I tried that - Jasper compiler complains about the path not starting with
> /WEB-INF/
>
>
> On Thursday, June 15, 2017 at 11:20:48 AM UTC-4, Achim Nierbeck wrote:
>>
>> Hi,
>>
>> I'm not sure, the only thing that crosses my mind right now would be the
>> / before the WEB-INF,
>> could you give it a try without the slash?
>>
>> If that still doesn't work out, please open an issue at pax web for that.
>> OTH might want to checkout how the jsf and the primefaces samples are
>> doing this. [1]
>>
>> regards, Achim
>>
>> [1] - https://github.com/ops4j/org.ops4j.pax.web/tree/master/sam
>> ples/war-jsf-primefaces
>>
>> 2017-06-14 20:57 GMT+02:00 Eben Stewart <[email protected]>:
>>
>>> Very simple example... tried this under standard WAR/Tomcat environment,
>>> and it works fine.
>>>
>>> In pax-web, using extended DefaultJspMapping class for JSPs, directory
>>> structure of jar shows index.jsp in the root, and layout.tag in
>>> /WEB-INF/tags.  It definitely sees the jsps (with the custom tag, they work
>>> fine)
>>>
>>> index.jsp:
>>> <!DOCTYPE html>
>>> <%@taglib prefix="my" tagdir="/WEB-INF/tags"%>
>>>
>>> <my:layout>
>>>     <jsp:attribute name="body">
>>>       <div>
>>>         Test
>>>       </div>
>>>     </jsp:attribute>
>>> </my:layout>
>>>
>>> /WEB-INF/tags/layout.tag:
>>> <!DOCTYPE html>
>>> <%@tag description="LayoutTemplate" pageEncoding="UTF-8"%>
>>> <%@attribute name="body" fragment="true" %>
>>>
>>> <html>
>>>     <body>
>>>         <jsp:invoke fragment="body"/>
>>>     </body>
>>> </html>
>>>
>>> However, when I attempt to load the page:
>>>
>>> org.apache.jasper.JasperException: /index.jsp (line: 4, column: 0) No tag 
>>> "layout" defined in tag library imported with prefix "my"
>>>
>>>
>>> Am I missing a directive somewhere?
>>>
>>> --
>>> --
>>> ------------------
>>> OPS4J - http://www.ops4j.org - [email protected]
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "OPS4J" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> & Project Lead
>> blog <http://notizblog.nierbeck.de/>
>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>
>> Software Architect / Project Manager / Scrum Master
>>
>> --
> --
> ------------------
> OPS4J - http://www.ops4j.org - [email protected]
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OPS4J" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to