Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 43209 invoked from network); 2 Dec 2004 15:44:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Dec 2004 15:44:56 -0000 Received: (qmail 46009 invoked by uid 500); 2 Dec 2004 15:43:43 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 45912 invoked by uid 500); 2 Dec 2004 15:43:42 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 45738 invoked by uid 99); 2 Dec 2004 15:43:39 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jak-struts-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO main.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 02 Dec 2004 07:43:37 -0800 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CZt7E-0005oA-00 for ; Thu, 02 Dec 2004 16:43:32 +0100 Received: from 209.101.199.82 ([209.101.199.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Dec 2004 16:43:31 +0100 Received: from billsigg by 209.101.199.82 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Dec 2004 16:43:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: user@struts.apache.org From: Bill Siggelkow Subject: Re: JSTL when...test won't work. Date: Thu, 02 Dec 2004 10:43:36 -0500 Lines: 70 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 209.101.199.82 User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en In-Reply-To: Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Found formRoles manager NOT Found Nadia Kunkov wrote: > Hello, > > This is my first try with JSTL and somewhere I'm getting the syntax wrong. Could you please help me? > I have a bean called user in the session. One of this bean's properties is a hash map called frmRoles. I need to go over the hashmap's keys and test if a particular key exists. I'm not getting an error when I run the jsp, it just tells me that this key is not found. But I can print all the keys so its my c:choose test syntax. The code that gives me a problem is in bold face. I also would like to ask you to point me to the documentation on the syntax used within c:when test. Is it regular expressions or JSTL syntax? > > I'd appreciate any help. > > Thanks in advance. > > NK > > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> > <%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt" %> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> > > > > Welcome World! > > > > >

Welcome !

>
> > >
> >

Welcome World!

>
> >
    >
  • Sign in
  • > >
  • Sign out
  • >
    >
    > > > Key is
    > Value is
    >
    > > > Found formRoles manager > > > NOT Found > > > >
    >
> Powered by Struts > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org