Re: [PROPOSAL] Keel look and feel (Attn: Pierre)

Raoul Pierre <[email protected]>
Newsgroups gmane.comp.java.keel.devel
Message-ID <[email protected]>
Shash,

> I could not use this version.  All my menu items come out (literally) 
> as ${topelement_title}, ${secondelement_title} etc.  That's because, 
> you are not using <c:out> tag, just printing directly using EL.  Now, 
> why that works for you and not for me I have no clue.  I am using 
> Tomcat 5.0.28 (and Jasper).

Me too.

>
> All the app-personality stuff is checked in, so you can get an update, 
> get updates for clnt-struts, app-crud also.  Maybe you can try your 
> changes also.

In fact I don't use any more  the jsp file of app-crud. But I will 
update and see what appends.

>
>
> BTW, I had to take out  <jsp:directive.include 
> file="/common/taglibs.jspf" />, I don't have that file.

It's just the file with all the taglib declarations. I attache it to 
this email.

>
> While you are at it, here's something else maybe you can help me with. 
> I noticed that if I change taglib URI to use JSTL-1.1 version (so I 
> can use the fn:length(...) etc. functions), the <c:if test="${!empty 
> menu}"> quits working (as do all other <c:if...> tags).
>
> To change to use JSTL-1.1 TLDs, all I do different is to change from:
> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%> <== 
> JSTL-1.0 version
> to
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <=== 
> Add /jsp in path to get JSTL-1.1 version

I use the functions taglib without problem. Your taglib declaration 
seems ok for me.

>
> I also tried changing the web.xml to conform to Servlet-2.4 version, 
> that did not make a difference.

Servlet 2.4 is necessary to use JSTL 1.1. Herewith the file I use: 
{keel_project}/conf/overwrite/keel-client/conf/client/snippets/web-1.xml .

>
> Can you make it work for you?
>
> Shash
>
>
Pierre
taglibs.jspf (text/plain, 1.6 KB)
<%-- TODO:
     - taglib for Struts with EL, see below.
     - well-formed XML: 
       * need a jsp:root element as the root
         question: is it possible to declare a namespace not as
                   a jsp:root attribute?
       * put all jsp comments inside XML comments
     --%>

<%-- With Tomcat 5, it's possible to work with JSTL 1.1
     but need to convert web.xml with servlet API version 2.4
     --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
     
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/keel.tld" prefix="keel" %>

<%-- en attente : en l'état actuel des choses provoque des erreurs à l'exécution.
     Mais est-il vraiment nécessaire d'y faire appel : les EL dans des balises 
     Struts telles que <bean:write name="${title}" /> sont acceptées en l'état !
     Du moins avec Struts 1.2.4...
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el" prefix="html-el" %>
     --%>

<%-- With Tomcat 4.x, JSTL 1.0 must be used with:
     uri="http://java.sun.com/jstl/core"
     --%>
web-1.xml (text/xml, 334 B)
<?xml version="1.0" encoding="ISO-8859-1"?>
  
<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/j2ee
                             http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
         version="2.4"
         >
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.