Sorry, I'm an idiot.  That fixed it.

Thanks!

-Mike



On Mon, Dec 10, 2001 at 07:21:38PM +0100, Martin Fekete wrote:
> check for taglib directive ..
> 
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> 
> and also look into generated HTML source ...
> 
> 
> feky
> ----- Original Message -----
> From: "Mike Bridge" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 10, 2001 7:09 PM
> Subject: Problems with logic:present tag: always true
> 
> 
> > I'm trying to figure out the logic:present tag (with Dec. 10's
> > nightly build), but I'm not having any success.  I want to print
> > some text only if there is a parameter in the query part of the
> > url.  For example, if the url ends in:
> >
> >    /mywebapp/do/builder/new?testid=123
> >
> > and the jsp has:
> >
> >   <logic:present parameter="testid">
> >      testid is present
> >   </logic:present>
> >
> > This prints the expected "testid is present".  But
> > If I do the opposite:
> >
> > <logic:notPresent parameter="testid">
> >   testid is present
> > </logic:notPresent>
> >
> > This still prints "testid is present", even in the same JSP.
> >
> > Also, if I remove "testid" from the URL, I *still* get
> > "testid is present" for the "present" and the "nonPresent" tags.
> > Is this a bug, or am I doing something wrong with this tag?
> >
> > Thanks,
> >
> > -Mike
> >
> >
> > --
> > Mike Bridge <[EMAIL PROTECTED]>
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >

-- 
Mike Bridge <[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to