Re: Taglibs Plans?
"Craig R. McClanahan" wrote: My personal view is that I'd rather migrate Struts users to the ultimately approved standard tags (in one move) rather than migrating to Taglibs and then to the standard -- but that decision is certainly open to the community for discussion. Some people might think that Struts is more of a framework than also a taglib collection, keeping some people away from using the taglibs thinking it implies using the framework as well. -- - Torgeir
Re: URLEncoder taglib
Maya Muchnik wrote: See the book: O'Reily "Java servlet programming" or "Web development with JavaServer Pages" by D. Fields, M. Kolb. Thanx for the response. I implemented that taglib anyway, and since it was my first taglib ever, it was a nice exercise. :) -- - Torgeir
regexp taglib; am i smoking?
Why do I get search.jsp [-1:-1] org/apache/oro/text/regex/MalformedPatternException Errors compiling search [LMod]. on the tag rx:regexp id="rx1"s/test1/mi/rx:regexp This is beyond me. -- - Torgeir
URLEncoder taglib
I'm about to create a small taglib that does the same as java.net.URLEncoder, eg. like url:encodetext to be encoded/url:encode. But do anyone of you know of any similar taglib that does the same, to save me some work? -- - Torgeir
escape =, etc
Is there a taglib that can escape string from other request for using the string in a a href="%=value%" so that eg. = or are renamed properly. -- - Torgeir
using self created Context with jndi taglib
I'm trying to use the jndi taglib with a context that comes from my own context pool. The code is included below. But I guess that the context needs to be references in the PageContext in order to be found by the tag? Is there an easy way to do this? I plan to create a tag that fetches a context from my context pool later, but for now it would be nice to be able to put a context into the pagecontext temporarily. %@page contentType="text/html" import="profile.*, javax.naming.*" % %@ taglib uri="http://jakarta.apache.org/taglibs/jndi" prefix="jndi" % html headtitleProfile/title/head body h3Profile for /h3 % ContextPool ctxPool = (ContextPool) session.getAttribute("contextPool"); System.out.println("context pool retrieved: " + ctxPool); System.out.println("using dn: " + request.getSession().getAttribute("username") + ", credentials: " + request.getSession().getAttribute("credentials")); Context testCtx = ctxPool.getContext((String)request.getSession().getAttribute("username"), (String)request.getSession().getAttribute("credentials")); System.out.println("context retrieved: " + testCtx); % jndi:lookup contextRef='testCtx' name='uid=test, ou=people, o=ecomda.de' id="hmm" / !-- doesn't work. the testCtx is not found. The exception is included below -- /body /html javax.servlet.jsp.JspException: context not set in a lookup invocation ... -- - Torgeir
bummer
pageContext.setAttribute("id", value); ahem.. -- - Torgeir