Kees Jongenburger wrote: 
> Hello Michiel , I am very impressed !
> Great job.

Thanks.



I though so too :-), so I just checked everything in in 1.8, and added an 
example in
/mmexamples/taglib/jstl.jsp.

To use, one has to adopt web.xml (if using tomcat), it must start with something
like this:
<?xml version="1.0" encoding="utf-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    
xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
    version="2.4">


in stead of:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app>


I think you also need to place: jstl.jar and standard.jar in WEB-INF/lib


This raises the question if those jars and such a web.xml must be available
in the 1.8 distro.


There was still a problem with '_'-vars which I solved too. So, this works:

<mm:write referid="h">
  <c:if test="${_ == 'hoi'}">
    DEFAULT
  </c:if>
</mm:write>

(of, course this is a bit of a silly examle because <mm:compare value="hoi">
would also have been possible, but it's just to prove the idea).


I also implemented a new version of mm:url (I called it mm:link), which is a
'true' writer, so now you can do this:

 <mm:link>
    <mm:param name="h">hallo</mm:param>
    <a href="${_}">Change</a>
 </mm:link>

Which obviousely is more elegant than:

 <a href="<mm:url>
             <mm:param name="h">hallo</mm:param>
          </mm:url>">Change</a>

, which we use to do in 1.7.

Of course, mm:link only works in this way if you have EL enabled (using a 2.4 
web.xml).

Michiel


-- 
Michiel Meeuwissen                  mihxil'
Mediacentrum 140 H'sum                [] ()
+31 (0)35 6772979         nl_NL eo_XX en_US



_______________________________________________
Developers mailing list
[EMAIL PROTECTED]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to