From beehive-user-returnkatrina81@example.com Tue Feb 01 14:29:05 2005 Return-Path: <beehive-user-returnkatrina81@example.com> Delivered-To: katrina81@example.com Received: (qmail 79750 invoked from network); 1 Feb 2005 14:29:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Feb 2005 14:29:04 -0000 Received: (qmail 7762 invoked by uid 500); 1 Feb 2005 14:29:03 -0000 Delivered-To: katrina81@example.com Received: (qmail 7736 invoked by uid 500); 1 Feb 2005 14:29:02 -0000 Mailing-List: contact katrina81@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:katrina81@example.com> List-Unsubscribe: <mailto:katrina81@example.com> List-Post: <mailto:katrina81@example.com> List-Id: <beehive-user.incubator.apache.org> Reply-To: "Beehive Users" <katrina81@example.com> Delivered-To: mailing list katrina81@example.com Received: (qmail 7716 invoked by uid 99); 1 Feb 2005 14:29:02 -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 katrina81@example.com designates 83.161.120.155 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Feb 2005 06:28:58 -0800 Received: by rproxy.gmail.com with SMTP id 1so52776rny for <katrina81@example.com>; Tue, 01 Feb 2005 06:28:56 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=DS5VGUacs3uzFfbmR4LRaR9REFzVRBNVb64WI3YNP75gxBR6mGVnCE0qGwohYxfX8ii/Kh6VwmxFIMt6l3hPhKc9BT4b6LkE0BBBhkuQqWaZe8GCG14EBVL1bKdwNMbO66SlXj06v6GsEFHjMu9ynZL3x9vQDzjvRYeFqOKcUPQ= Received: by 83.161.120.155 with SMTP id b56mr96975rnf; Tue, 01 Feb 2005 06:28:56 -0800 (PST) Received: by 83.161.120.155 with HTTP; Tue, 1 Feb 2005 06:28:55 -0800 (PST) Message-ID: <katrina81@example.com> Date: Tue, 1 Feb 2005 15:28:55 +0100 From: Pietro Di Bello <katrina81@example.com> Reply-To: Pietro Di Bello <katrina81@example.com> To: Beehive Users <katrina81@example.com> Subject: Re: Problem using the version taken from SVN In-Reply-To: <katrina81@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, We have fixed that problem! We've found out that it was caused by a missing generated file for struts: jpf-struts-config.xml. Now that we fix that issue, we encounter another. :-( This is the error message we got now, requesting the home page: **************** Tag Error Tag Form Errors 1 Tag Error Message Action 'logIn is not a valid action. **************** both in our project and in the beehive's petStoreWeb sample (in that case the invalid action is the search() one in the home page). We really cannot understand why our logIn() action is not valid... Do you have any idea? Thanks! Piero P.S. Our source code is still the same On Mon, 31 Jan 2005 09:22:12 -0700, Eddie O'Neil <katrina81@example.com> wrote: > Pietro-- > > One thing to check is that all of the generated XML, source, and > .class files have been deleted from your webapp. > > These would live in: > > WEB-INF/.tmpbeansrc > WEB-INF/.pageflow-struts-generated > > And, of course: > > WEB-INF/classes > > As far as petstoreWeb goes for the current SVN tree, I know that > there's an issue with finding the global "search" action in the > top-level shared flow. It's something that needs a bug and a fix. :) > > Eddie > > > Pietro Di Bello wrote: > > Hi all, > > > > we downloaded the Beehive sources from SVN and built it successfully > > (including its docs). > > Now we are trying to update our test project (previously running with > > v1-alpha) that uses both controls and pageflows, but after the > > build&deploy, when we request our login page, we encounter the > > following error on the login form: > > > > ************ > > Tag Error > > Tag: Form Errors: 1 > > Tag Error: Message Could not locate the Form's application module > > configuration information. > > ************ > > > > To make up our mind, we built and deployed the petstoreWeb sample but > > we still have the same error, in this case on the search form in the > > home page. > > > > > > This is our index.jsp: > > ************ > > <%@ page language="java" contentType="text/html;charset=UTF-8"%> > > <%@ taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" > > prefix="netui-data"%> > > <%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%> > > <%@ taglib uri="http://beehive.apache.org/netui/tags-template-1.0" > > prefix="netui-template"%> > > > > <netui:html> > > <head> > > <title>Ldap Login</title> > > <netui:base/> > > </head> > > <netui:body> > > <h1>Ldap Login</h1> > > <p> > > <netui:form action="logIn"> > > <p>User:<netui:textBox dataSource="actionForm.userName"/> > > <p>Password:<netui:textBox password="true" > > dataSource="actionForm.userPassword"/> > > <p><netui:button type="submit">Submit</netui:button> > > </netui:form> > > </p> > > </netui:body> > > </netui:html> > > ************ > > > > and its Controller.jpf: > > ************ > > import org.apache.beehive.netui.pageflow.PageFlowController; > > import org.apache.beehive.netui.pageflow.Forward; > > import org.apache.beehive.netui.pageflow.annotations.Jpf; > > import forms.AuthenticationForm; > > import forms.SearchForm; > > import spike.beehive.ldap.LdapAccess; > > import spike.beehive.ldap.LdapAccessClient; > > import org.apache.beehive.controls.api.bean.Control; > > > > @Jpf.Controller( > > simpleActions={ > > @Jpf.SimpleAction(name="begin", path="index.jsp") > > } > > ) > > public class Controller extends PageFlowController > > { > > @Control @LdapAccess.LdapServer( > > userManagerName = "anyuserManagerName", > > userManagerPassword = "anyuserManagerPassword", > > serviceUrl = "ldap://anyserviceUrl:port", > > searchDatabase = "anysearchDatabase") > > private LdapAccess itsLdapAccess; > > > > @Jpf.Action( > > forwards={ > > @Jpf.Forward(name="success", path="search.jsp", > > actionOutputs = { > > @Jpf.ActionOutput(name = "searchResult", > > type = java.lang.String[].class, > > required = true) > > }), > > @Jpf.Forward(name="error", path="error.jsp") > > } > > ) > > public Forward logIn(AuthenticationForm form) > > { > > System.out.println("/Controller.jpf - logIn: user: " + > > form.getUserName()); > > boolean isValidUser = > > itsLdapAccess.logIn(form.getUserName(), form.getUserPassword()); > > if (isValidUser) > > { > > Forward forward = new Forward("success"); > > forward.addActionOutput("searchResult", new String[0]); > > return forward; > > } > > else > > return new Forward("error"); > > } > > > > @Jpf.Action( > > forwards={ > > @Jpf.Forward(name="success", path="search.jsp", > > actionOutputs = { > > @Jpf.ActionOutput(name = "searchResult", > > type = java.lang.String[].class, > > required = true) > > }) > > } > > ) > > public Forward search(SearchForm form) > > { > > System.out.println("/Controller.jpf - search: > > stringToSearch: " + form.getStringToSearch()); > > String[] retrievedUsers = > > itsLdapAccess.search(form.getStringToSearch()); > > > > Forward forward = new Forward("success"); > > forward.addActionOutput("searchResult", retrievedUsers); > > return forward; > > } > > > > @Jpf.Action( > > forwards={ > > @Jpf.Forward(name="success", path="search.jsp", > > actionOutputs = { > > @Jpf.ActionOutput(name = "searchResult", > > type = java.lang.String[].class, > > required = true) > > }) > > } > > ) > > protected Forward searchUsingPojo(SearchForm form) > > { > > System.out.println("/Controller.jpf - searchUsingPojo: > > stringToSearch: " + form.getStringToSearch()); > > > > LdapAccessClient ldapAccessClient = new > > LdapAccessClient("xp", "xpLAYERS"); > > String[] retrievedUsers = > > ldapAccessClient.search(form.getStringToSearch()); > > > > Forward forward = new Forward("success"); > > forward.addActionOutput("searchResult", retrievedUsers); > > return forward; > > } > > > > } > > ************ > > > > Do you have any suggestions? > > > > Thanks a lot! > > Piero > > > From beehive-user-returnkatrina81@example.com Tue Feb 01 15:41:56 2005 Return-Path: <beehive-user-returnkatrina81@example.com> Delivered-To: katrina81@example.com Received: (qmail 18350 invoked from network); 1 Feb 2005 15:41:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Feb 2005 15:41:56 -0000 Received: (qmail 670 invoked by uid 500); 1 Feb 2005 15:41:54 -0000 Delivered-To: katrina81@example.com Received: (qmail 650 invoked by uid 500); 1 Feb 2005 15:41:54 -0000 Mailing-List: contact katrina81@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:katrina81@example.com> List-Unsubscribe: <mailto:katrina81@example.com> List-Post: <mailto:katrina81@example.com> List-Id: <beehive-user.incubator.apache.org> Reply-To: "Beehive Users" <katrina81@example.com> Delivered-To: mailing list katrina81@example.com Received: (qmail 636 invoked by uid 99); 1 Feb 2005 15:41:54 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from ussjmh01.bea.com (HELO ussjmh01.bea.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Feb 2005 07:41:54 -0800 Received: from ussjfe02.amer.bea.com (ussjfe02b.bea.com [83.161.120.155]) by ussjmh01.bea.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id j11Ffp27015458 for <katrina81@example.com>; Tue, 1 Feb 2005 07:41:51 -0800 Received: from USBOEX01.amer.bea.com ([83.161.120.155]) by ussjfe02.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 1 Feb 2005 07:41:51 -0800 Received: from [83.161.120.155] ([83.161.120.155]) by USBOEX01.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 1 Feb 2005 08:41:51 -0700 Message-ID: <katrina81@example.com> Date: Tue, 01 Feb 2005 08:44:16 -0700 From: "Eddie O'Neil" <katrina81@example.com> User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Beehive Users <katrina81@example.com> Subject: Re: Problem using the version taken from SVN References: <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> In-Reply-To: <katrina81@example.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Feb 2005 15:41:51.0333 (UTC) FILETIME=[8C51D950:01C50874] X-PMX-Version: 83.161.120.155621, Antispam-Engine: 83.161.120.155, Antispam-Data: 283.161.120.155 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Pietro-- Yeah, I'm seeing the same thing -- either we're both doing the same thing wrong or there's an issue here. I've filed this to track it: http://issues.apache.org/jira/browse/BEEHIVE-220 Eddie Pietro Di Bello wrote: > Hi, > We have fixed that problem! We've found out that it was caused by a > missing generated file for struts: jpf-struts-config.xml. > > Now that we fix that issue, we encounter another. :-( > This is the error message we got now, requesting the home page: > **************** > Tag Error > Tag Form Errors 1 > Tag Error Message Action 'logIn is not a valid action. > **************** > both in our project and in the beehive's petStoreWeb sample (in that > case the invalid action is the search() one in the home page). > > We really cannot understand why our logIn() action is not valid... > Do you have any idea? > > Thanks! > Piero > > P.S. > Our source code is still the same > > > On Mon, 31 Jan 2005 09:22:12 -0700, Eddie O'Neil <katrina81@example.com> wrote: > >>Pietro-- >> >> One thing to check is that all of the generated XML, source, and >>.class files have been deleted from your webapp. >> >> These would live in: >> >> WEB-INF/.tmpbeansrc >> WEB-INF/.pageflow-struts-generated >> >>And, of course: >> >> WEB-INF/classes >> >> As far as petstoreWeb goes for the current SVN tree, I know that >>there's an issue with finding the global "search" action in the >>top-level shared flow. It's something that needs a bug and a fix. :) >> >>Eddie >> >> >>Pietro Di Bello wrote: >> >>>Hi all, >>> >>>we downloaded the Beehive sources from SVN and built it successfully >>>(including its docs). >>>Now we are trying to update our test project (previously running with >>>v1-alpha) that uses both controls and pageflows, but after the >>>build&deploy, when we request our login page, we encounter the >>>following error on the login form: >>> >>>************ >>>Tag Error >>>Tag: Form Errors: 1 >>>Tag Error: Message Could not locate the Form's application module >>>configuration information. >>>************ >>> >>>To make up our mind, we built and deployed the petstoreWeb sample but >>>we still have the same error, in this case on the search form in the >>>home page. >>> >>> >>>This is our index.jsp: >>>************ >>><%@ page language="java" contentType="text/html;charset=UTF-8"%> >>><%@ taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" >>>prefix="netui-data"%> >>><%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%> >>><%@ taglib uri="http://beehive.apache.org/netui/tags-template-1.0" >>>prefix="netui-template"%> >>> >>><netui:html> >>> <head> >>> <title>Ldap Login</title> >>> <netui:base/> >>> </head> >>> <netui:body> >>> <h1>Ldap Login</h1> >>> <p> >>> <netui:form action="logIn"> >>> <p>User:<netui:textBox dataSource="actionForm.userName"/> >>> <p>Password:<netui:textBox password="true" >>>dataSource="actionForm.userPassword"/> >>> <p><netui:button type="submit">Submit</netui:button> >>> </netui:form> >>> </p> >>> </netui:body> >>></netui:html> >>>************ >>> >>>and its Controller.jpf: >>>************ >>>import org.apache.beehive.netui.pageflow.PageFlowController; >>>import org.apache.beehive.netui.pageflow.Forward; >>>import org.apache.beehive.netui.pageflow.annotations.Jpf; >>>import forms.AuthenticationForm; >>>import forms.SearchForm; >>>import spike.beehive.ldap.LdapAccess; >>>import spike.beehive.ldap.LdapAccessClient; >>>import org.apache.beehive.controls.api.bean.Control; >>> >>>@Jpf.Controller( >>> simpleActions={ >>> @Jpf.SimpleAction(name="begin", path="index.jsp") >>> } >>> ) >>>public class Controller extends PageFlowController >>>{ >>> @Control @LdapAccess.LdapServer( >>> userManagerName = "anyuserManagerName", >>> userManagerPassword = "anyuserManagerPassword", >>> serviceUrl = "ldap://anyserviceUrl:port", >>> searchDatabase = "anysearchDatabase") >>> private LdapAccess itsLdapAccess; >>> >>> @Jpf.Action( >>> forwards={ >>> @Jpf.Forward(name="success", path="search.jsp", >>> actionOutputs = { >>> @Jpf.ActionOutput(name = "searchResult", >>> type = java.lang.String[].class, >>> required = true) >>> }), >>> @Jpf.Forward(name="error", path="error.jsp") >>> } >>> ) >>> public Forward logIn(AuthenticationForm form) >>> { >>> System.out.println("/Controller.jpf - logIn: user: " + >>>form.getUserName()); >>> boolean isValidUser = >>>itsLdapAccess.logIn(form.getUserName(), form.getUserPassword()); >>> if (isValidUser) >>> { >>> Forward forward = new Forward("success"); >>> forward.addActionOutput("searchResult", new String[0]); >>> return forward; >>> } >>> else >>> return new Forward("error"); >>> } >>> >>> @Jpf.Action( >>> forwards={ >>> @Jpf.Forward(name="success", path="search.jsp", >>> actionOutputs = { >>> @Jpf.ActionOutput(name = "searchResult", >>> type = java.lang.String[].class, >>> required = true) >>> }) >>> } >>> ) >>> public Forward search(SearchForm form) >>> { >>> System.out.println("/Controller.jpf - search: >>>stringToSearch: " + form.getStringToSearch()); >>> String[] retrievedUsers = >>>itsLdapAccess.search(form.getStringToSearch()); >>> >>> Forward forward = new Forward("success"); >>> forward.addActionOutput("searchResult", retrievedUsers); >>> return forward; >>> } >>> >>> @Jpf.Action( >>> forwards={ >>> @Jpf.Forward(name="success", path="search.jsp", >>> actionOutputs = { >>> @Jpf.ActionOutput(name = "searchResult", >>> type = java.lang.String[].class, >>> required = true) >>> }) >>> } >>> ) >>> protected Forward searchUsingPojo(SearchForm form) >>> { >>> System.out.println("/Controller.jpf - searchUsingPojo: >>>stringToSearch: " + form.getStringToSearch()); >>> >>> LdapAccessClient ldapAccessClient = new >>>LdapAccessClient("xp", "xpLAYERS"); >>> String[] retrievedUsers = >>>ldapAccessClient.search(form.getStringToSearch()); >>> >>> Forward forward = new Forward("success"); >>> forward.addActionOutput("searchResult", retrievedUsers); >>> return forward; >>> } >>> >>>} >>>************ >>> >>>Do you have any suggestions? >>> >>>Thanks a lot! >>>Piero >>> >> > From beehive-user-returnkatrina81@example.com Tue Feb 01 16:41:56 2005 Return-Path: <beehive-user-returnkatrina81@example.com> Delivered-To: katrina81@example.com Received: (qmail 52170 invoked from network); 1 Feb 2005 16:41:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Feb 2005 16:41:56 -0000 Received: (qmail 81858 invoked by uid 500); 1 Feb 2005 16:41:52 -0000 Delivered-To: katrina81@example.com Received: (qmail 81813 invoked by uid 500); 1 Feb 2005 16:41:51 -0000 Mailing-List: contact katrina81@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:katrina81@example.com> List-Unsubscribe: <mailto:katrina81@example.com> List-Post: <mailto:katrina81@example.com> List-Id: <beehive-user.incubator.apache.org> Reply-To: "Beehive Users" <katrina81@example.com> Delivered-To: mailing list katrina81@example.com Received: (qmail 81784 invoked by uid 99); 1 Feb 2005 16:41:51 -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 katrina81@example.com designates 83.161.120.155 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Feb 2005 08:41:49 -0800 Received: by rproxy.gmail.com with SMTP id 1so64758rny for <katrina81@example.com>; Tue, 01 Feb 2005 08:41:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=lPTKWuvztgyynHhTOP1skkQ3GitlRMkofJG4btkXSnNsNPkGJu2TQEGxeEKMpvIDq7dw7W0Lt23znwt0drQRWSLgSHhvi4v2X+L1PDqpe1ZXItsmuchm+IdvHD3zuB/M1ujLDWs46ceFSEh8ASLY7Scos2h2Hk46PpbvZ9GnleI= Received: by 83.161.120.155 with SMTP id 77mr140924rnh; Tue, 01 Feb 2005 08:41:47 -0800 (PST) Received: by 83.161.120.155 with HTTP; Tue, 1 Feb 2005 08:41:47 -0800 (PST) Message-ID: <katrina81@example.com> Date: Tue, 1 Feb 2005 17:41:47 +0100 From: Pietro Di Bello <katrina81@example.com> Reply-To: Pietro Di Bello <katrina81@example.com> To: Beehive Users <katrina81@example.com> Subject: Problem with declarative instantiation of a Control from a POJO In-Reply-To: <katrina81@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, I'm using Beehive taken from SVN two days ago and have a problem instantiating a Control within a POJO (I'm following the v1Beta docs, chapter 'Control Programming', 6.1 Declarative Instantiation). I've already used (successfully) the same beehive control from a page-flow and also with a programmatic instantiation. This is the code of the POJO, which uses an LdapAccess Control we developed: ******************* public class LdapAccessClient { @Control @LdapAccess.LdapServer( userManagerName = "xxx", userManagerPassword = "yyy", serviceUrl = "zzz", searchDatabase = "ttt") private LdapAccessBean itsLdapAccess; .... ... } ******************* Do you have any idea? Thanks a lot! Piero From beehive-user-returnkatrina81@example.com Tue Feb 01 16:46:46 2005 Return-Path: <beehive-user-returnkatrina81@example.com> Delivered-To: katrina81@example.com Received: (qmail 55068 invoked from network); 1 Feb 2005 16:46:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Feb 2005 16:46:46 -0000 Received: (qmail 97069 invoked by uid 500); 1 Feb 2005 16:46:44 -0000 Delivered-To: katrina81@example.com Received: (qmail 97046 invoked by uid 500); 1 Feb 2005 16:46:44 -0000 Mailing-List: contact katrina81@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:katrina81@example.com> List-Unsubscribe: <mailto:katrina81@example.com> List-Post: <mailto:katrina81@example.com> List-Id: <beehive-user.incubator.apache.org> Reply-To: "Beehive Users" <katrina81@example.com> Delivered-To: mailing list katrina81@example.com Received: (qmail 97033 invoked by uid 99); 1 Feb 2005 16:46:43 -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 katrina81@example.com designates 83.161.120.155 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Feb 2005 08:46:43 -0800 Received: by rproxy.gmail.com with SMTP id 1so65204rny for <katrina81@example.com>; Tue, 01 Feb 2005 08:46:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=mvaLh5Gor+TsFbTCsmTlPjGwN9t5SM7u6+hlVqQkEETBuDlA1iqC3phPm9KAJvHSTuWBzyqVA/XuCgckMFrj2svNX+qtL6gTe5xX80INQ+fMFS2csv5fbijgmO88uRxj5Mq5Mygt6WerCADk7YCk3gWV5vinQfU8IU/wmDU1n+s= Received: by 83.161.120.155 with SMTP id 7mr141609rnh; Tue, 01 Feb 2005 08:46:41 -0800 (PST) Received: by 83.161.120.155 with HTTP; Tue, 1 Feb 2005 08:46:41 -0800 (PST) Message-ID: <katrina81@example.com> Date: Tue, 1 Feb 2005 17:46:41 +0100 From: Pietro Di Bello <katrina81@example.com> Reply-To: Pietro Di Bello <katrina81@example.com> To: Beehive Users <katrina81@example.com> Subject: Fwd: Problem with declarative instantiation of a Control from a POJO In-Reply-To: <katrina81@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Sorry! I forgot to tell you that the error I got trying to use the control from that pojo was a NullPointerException (it seems that the control has not been initialized somehow...) Thanks Piero ---------- Forwarded message ---------- From: Pietro Di Bello <katrina81@example.com> Date: Tue, 1 Feb 2005 17:41:47 +0100 Subject: Problem with declarative instantiation of a Control from a POJO To: Beehive Users <katrina81@example.com> Hi all, I'm using Beehive taken from SVN two days ago and have a problem instantiating a Control within a POJO (I'm following the v1Beta docs, chapter 'Control Programming', 6.1 Declarative Instantiation). I've already used (successfully) the same beehive control from a page-flow and also with a programmatic instantiation. This is the code of the POJO, which uses an LdapAccess Control we developed: ******************* public class LdapAccessClient { @Control @LdapAccess.LdapServer( userManagerName = "xxx", userManagerPassword = "yyy", serviceUrl = "zzz", searchDatabase = "ttt") private LdapAccessBean itsLdapAccess; .... ... } ******************* Do you have any idea? Thanks a lot! Piero From beehive-user-returnkatrina81@example.com Tue Feb 01 20:32:54 2005 Return-Path: <beehive-user-returnkatrina81@example.com> Delivered-To: katrina81@example.com Received: (qmail 3359 invoked from network); 1 Feb 2005 20:32:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Feb 2005 20:32:54 -0000 Received: (qmail 81268 invoked by uid 500); 1 Feb 2005 20:32:50 -0000 Delivered-To: katrina81@example.com Received: (qmail 81225 invoked by uid 500); 1 Feb 2005 20:32:50 -0000 Mailing-List: contact katrina81@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:katrina81@example.com> List-Unsubscribe: <mailto:katrina81@example.com> List-Post: <mailto:katrina81@example.com> List-Id: <beehive-user.incubator.apache.org> Reply-To: "Beehive Users" <katrina81@example.com> Delivered-To: mailing list katrina81@example.com Received: (qmail 81038 invoked by uid 99); 1 Feb 2005 20:32:49 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from ussjmh01.bea.com (HELO ussjmh01.bea.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Feb 2005 12:32:48 -0800 Received: from ussjfe02.amer.bea.com (ussjfe02b.bea.com [83.161.120.155]) by ussjmh01.bea.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id j11KWb2H029852; Tue, 1 Feb 2005 12:32:44 -0800 Received: from USKIEX01.amer.bea.com ([83.161.120.155]) by ussjfe02.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 1 Feb 2005 12:32:43 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Problem with declarative instantiation of a Control from a POJO Date: Tue, 1 Feb 2005 12:32:43 -0800 Message-ID: <katrina81@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem with declarative instantiation of a Control from a POJO Thread-Index: AcUIfZ99sGrXFyJiSr+AVLKR01kWcwAHSlOw From: "Ken Tam" <katrina81@example.com> To: "Beehive Users" <katrina81@example.com>, "Pietro Di Bello" <katrina81@example.com> X-OriginalArrivalTime: 01 Feb 2005 20:32:43.0790 (UTC) FILETIME=[2ECB72E0:01C5089D] X-PMX-Version: 83.161.120.155621, Antispam-Engine: 83.161.120.155, Antispam-Data: 283.161.120.155 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Pietro, It looks like that's exactly what's going on (the control instance field is not being initialized). When you use declarative controls in a POJO, there needs to be _some_ code that does that initialization. That code is encapsulated in the org.apache.beehive.controls.api.bean.Controls helper class in a static method called "initializeClient". Basically, you need to instantiate an instance of your POJO, and then call initializeClient() on that instance (see the javadoc for more detail). One caveat is that you must be compiling your POJO with apt, so that the @Control annotation gets processed -- this will result in a <POJO>ClientInitializer.class being created along side the .class file for the POJO itself. initializeClient() depends on that ClientInitializer class to do its work. Does this make sense? Let me know if you'd like more details.. -----Original Message----- From: Pietro Di Bello [mailto:katrina81@example.com]=20 Sent: Tuesday, February 01, 2005 8:47 AM To: Beehive Users Subject: Fwd: Problem with declarative instantiation of a Control from a POJO Sorry! I forgot to tell you that the error I got trying to use the control from that pojo was a NullPointerException (it seems that the control has not been initialized somehow...) Thanks Piero ---------- Forwarded message ---------- From: Pietro Di Bello <katrina81@example.com> Date: Tue, 1 Feb 2005 17:41:47 +0100 Subject: Problem with declarative instantiation of a Control from a POJO To: Beehive Users <katrina81@example.com> Hi all, I'm using Beehive taken from SVN two days ago and have a problem instantiating a Control within a POJO (I'm following the v1Beta docs, chapter 'Control Programming', 6.1 Declarative Instantiation). I've already used (successfully) the same beehive control from a page-flow and also with a programmatic instantiation. This is the code of the POJO, which uses an LdapAccess Control we developed: ******************* public class LdapAccessClient { @Control @LdapAccess.LdapServer( userManagerName =3D "xxx", userManagerPassword =3D "yyy", serviceUrl =3D "zzz", searchDatabase =3D "ttt") private LdapAccessBean itsLdapAccess; .... ... } ******************* Do you have any idea? Thanks a lot! Piero From beehive-user-returnkatrina81@example.com Thu Feb 03 13:59:36 2005 Return-Path: <beehive-user-returnkatrina81@example.com> Delivered-To: katrina81@example.com Received: (qmail 44068 invoked from network); 3 Feb 2005 13:59:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2005 13:59:36 -0000 Received: (qmail 50839 invoked by uid 500); 3 Feb 2005 13:59:36 -0000 Delivered-To: katrina81@example.com Received: (qmail 50551 invoked by uid 500); 3 Feb 2005 13:59:34 -0000 Mailing-List: contact katrina81@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:katrina81@example.com> List-Unsubscribe: <mailto:katrina81@example.com> List-Post: <mailto:katrina81@example.com> List-Id: <beehive-user.incubator.apache.org> Reply-To: "Beehive Users" <katrina81@example.com> Delivered-To: mailing list katrina81@example.com Received: (qmail 50538 invoked by uid 99); 3 Feb 2005 13:59:34 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mvx-200-201-178-34.mundivox.com (HELO localhost.localdomain) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 03 Feb 2005 05:59:33 -0800 Received: from weblogic1 ([83.161.120.155]) by localhost.localdomain (8.11.0/8.11.0) with SMTP id j13DHYK08584 for <katrina81@example.com>; Thu, 3 Feb 2005 11:17:35 -0200 From: "Vanessa Monteiro" <katrina81@example.com> To: <katrina81@example.com> Subject: "dynamic" datasource Date: Thu, 3 Feb 2005 12:01:23 -0200 Message-ID: <katrina81@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I have a checkbox group binding to a HashMap property in my form bean. I need to pass the map's key dynamically but I don't know how to do that. I know that you can tell the form in wich key to store the data (<netui:checkbox datasource="actionForm.map['key']".../>) but how can I add this key value as a variable? Vanessa Monteiro -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.4 - Release Date: 1/2/2005 From beehive-user-returnkatrina81@example.com Fri Feb 04 02:12:45 2005 Return-Path: <beehive-user-returnkatrina81@example.com> Delivered-To: katrina81@example.com Received: (qmail 95260 invoked from network); 4 Feb 2005 02:12:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 4 Feb 2005 02:12:45 -0000 Received: (qmail 92041 invoked by uid 500); 4 Feb 2005 02:12:44 -0000 Delivered-To: katrina81@example.com Received: (qmail 91786 invoked by uid 500); 4 Feb 2005 02:12:43 -0000 Mailing-List: contact katrina81@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:katrina81@example.com> List-Unsubscribe: <mailto:katrina81@example.com> List-Post: <mailto:katrina81@example.com> List-Id: <beehive-user.incubator.apache.org> Reply-To: "Beehive Users" <katrina81@example.com> Delivered-To: mailing list katrina81@example.com Received: (qmail 91769 invoked by uid 99); 4 Feb 2005 02:12:43 -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 katrina81@example.com designates 83.161.120.155 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 03 Feb 2005 18:12:42 -0800 Received: by rproxy.gmail.com with SMTP id r35so369641rna for <katrina81@example.com>; Thu, 03 Feb 2005 18:12:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=hVQa3B9fvMrgIHUcOlce4QqeyvvuwpiKpYQbZZzXIrc3Pmy9bjXj4ItOhcTF/rNhjJlJPyjOCuCoxPpE+aGHgyI3kUwst8FhjKZfYWjqLYe1dImY3MNYeylG3B25rMxgn1dx5FyLX5rfxBJB4UpxwV+8DRzRBAutT9dEs9nSIlY= Received: by 83.161.120.155 with SMTP id e15mr121991rng; Thu, 03 Feb 2005 18:12:40 -0800 (PST) Received: by 83.161.120.155 with HTTP; Thu, 3 Feb 2005 18:12:40 -0800 (PST) Message-ID: <katrina81@example.com> Date: Thu, 3 Feb 2005 19:12:40 -0700 From: Daryl Olander <katrina81@example.com> Reply-To: Daryl Olander <katrina81@example.com> To: Beehive Users <katrina81@example.com> Subject: Re: "dynamic" datasource In-Reply-To: <katrina81@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <katrina81@example.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm not sure exactly what you want to do here. The <netui:checkbox> is not legal inside a <netui:checkboxGroup>. It turns out there is a bug the implementation which prevents iteration over a HashMap when the HashMap is used as the optionsDataSource in a <netui:checkBoxGroup>. I've entered Jira bug 242 to address this problem. I assume what you are trying to do is something like this: <netui:checkbox dataSource="actionForm.map[${key}]" /> This is not legal today. Eddie and I looked at this and it turns out that it is legal in JSP 2.0 EL to do something like this ${pageContext.map[pageContext.key]} which will use the "key" stored in the pageContext as the key for the "map" stored in the pageContext. Eddie can provide additional details on this. We are trying to decide if we should support this or not for dataSources. So at the moment this is not legal. There is one other thing that you could do using a <netui:checkBoxGroup> <netui:checkBoxGroup dataSource="{actionForm.checkValue}" /> <netui:checkBoxOption value="${actionForm.map[pageFlow.key]}" /> </netui:checkBoxGroup> should work. It works because the value is just a standard JSP 2.0 EL expression. It doesn't do what you want because the value is not stored back into the map. Instead it would be stored as a String into the checkValue property. If you just want to create a checkbox group that contains all of the elements inside a HashMap, once we fix 242 you should be able to do that with a repeating checkBoxGroup. It should be possible using JSTL to filter the repeated items to display a subset of the items. I'll post a follow up example of that when I fix the bug. I'll try to fix it in the next couple of days. Hope this helps. Daryl On Thu, 3 Feb 2005 12:01:23 -0200, Vanessa Monteiro <katrina81@example.com> wrote: > Hi, > > I have a checkbox group binding to a HashMap property in my form bean. I > need to pass the map's key dynamically but I don't know how to do that. I > know that you can tell the form in wich key to store the data > (<netui:checkbox datasource="actionForm.map['key']".../>) but how can I add > this key value as a variable? > > > Vanessa Monteiro > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.4 - Release Date: 1/2/2005 > > From beehive-user-returnkatrina81@example.com Fri Feb 04 10:04:21 2005 Return-Path: <beehive-user-returnkatrina81@example.com> Delivered-To: katrina81@example.com Received: (qmail 15024 invoked from network); 4 Feb 2005 10:04:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 4 Feb 2005 10:04:21 -0000 Received: (qmail 82168 invoked by uid 500); 4 Feb 2005 10:04:19 -0000 Delivered-To: katrina81@example.com Received: (qmail 82144 invoked by uid 500); 4 Feb 2005 10:04:19 -0000 Mailing-List: contact katrina81@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:katrina81@example.com> List-Unsubscribe: <mailto:katrina81@example.com> List-Post: <mailto:katrina81@example.com> List-Id: <beehive-user.incubator.apache.org> Reply-To: "Beehive Users" <katrina81@example.com> Delivered-To: mailing list katrina81@example.com Received: (qmail 82128 invoked by uid 99); 4 Feb 2005 10:04:18 -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 katrina81@example.com designates 83.161.120.155 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 04 Feb 2005 02:04:18 -0800 Received: by rproxy.gmail.com with SMTP id 1so314836rny for <katrina81@example.com>; Fri, 04 Feb 2005 02:04:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=moHjYE46dBkcXrJv4rKdFG8UAyMOzSRNU32VYkasmPf/ODRYzRc0bLWbjsVTPRyuWCdnYxQHyoNY2KL61BhzJDdiTM3zhbpVoGR+D5Yt90U8d9dOTHoXp116ED+nhz/dAAN0DeP2y2glDUx/2UsnWVKxAMv5aigfTjcsd7FugSc= Received: by 83.161.120.155 with SMTP id 49mr183894rnh; Fri, 04 Feb 2005 02:04:15 -0800 (PST) Received: by 83.161.120.155 with HTTP; Fri, 4 Feb 2005 02:04:15 -0800 (PST) Message-ID: <katrina81@example.com> Date: Fri, 4 Feb 2005 11:04:15 +0100 From: Pietro Di Bello <katrina81@example.com> Reply-To: Pietro Di Bello <katrina81@example.com> To: Beehive Users <katrina81@example.com> Subject: Re: Problem using the version taken from SVN In-Reply-To: <katrina81@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Eddie, We finally resolved our problem ("Message Action 'logIn is not a valid action" in the home page), that is actually not related to the issue you've open (http://issues.apache.org/jira/browse/BEEHIVE-220): we discovered that this error message was raised only if we were pointing our browser to http://localhost:8080/SpikeLdapControl/ (that forwards to index.jsp, I guess...). While if we point directly to http://localhost:8080/SpikeLdapControl/Controller.jpf the error was not raised and everything looks ok. This might be caused, I guess, because the default begin() action *must* be called first (at least once)... is this the right guess? P.S. Our webapp is made of two simple jsp invoking (throughout a Controller) an Ldap Control for searching users in a directory server. Thanks Pietro On Tue, 01 Feb 2005 08:44:16 -0700, Eddie O'Neil <katrina81@example.com> wrote: > Pietro-- > > Yeah, I'm seeing the same thing -- either we're both doing the same > thing wrong or there's an issue here. > > I've filed this to track it: > > http://issues.apache.org/jira/browse/BEEHIVE-220 > > Eddie > > Pietro Di Bello wrote: > > Hi, > > We have fixed that problem! We've found out that it was caused by a > > missing generated file for struts: jpf-struts-config.xml. > > > > Now that we fix that issue, we encounter another. :-( > > This is the error message we got now, requesting the home page: > > **************** > > Tag Error > > Tag Form Errors 1 > > Tag Error Message Action 'logIn is not a valid action. > > **************** > > both in our project and in the beehive's petStoreWeb sample (in that > > case the invalid action is the search() one in the home page). > > > > We really cannot understand why our logIn() action is not valid... > > Do you have any idea? > > > > Thanks! > > Piero > > > > P.S. > > Our source code is still the same > > > > > > On Mon, 31 Jan 2005 09:22:12 -0700, Eddie O'Neil <katrina81@example.com> wrote: > > > >>Pietro-- > >> > >> One thing to check is that all of the generated XML, source, and > >>.class files have been deleted from your webapp. > >> > >> These would live in: > >> > >> WEB-INF/.tmpbeansrc > >> WEB-INF/.pageflow-struts-generated > >> > >>And, of course: > >> > >> WEB-INF/classes > >> > >> As far as petstoreWeb goes for the current SVN tree, I know that > >>there's an issue with finding the global "search" action in the > >>top-level shared flow. It's something that needs a bug and a fix. :) > >> > >>Eddie > >> > >> > >>Pietro Di Bello wrote: > >> > >>>Hi all, > >>> > >>>we downloaded the Beehive sources from SVN and built it successfully > >>>(including its docs). > >>>Now we are trying to update our test project (previously running with > >>>v1-alpha) that uses both controls and pageflows, but after the > >>>build&deploy, when we request our login page, we encounter the > >>>following error on the login form: > >>> > >>>************ > >>>Tag Error > >>>Tag: Form Errors: 1 > >>>Tag Error: Message Could not locate the Form's application module > >>>configuration information. > >>>************ > >>> > >>>To make up our mind, we built and deployed the petstoreWeb sample but > >>>we still have the same error, in this case on the search form in the > >>>home page. > >>> > >>> > >>>This is our index.jsp: > >>>************ > >>><%@ page language="java" contentType="text/html;charset=UTF-8"%> > >>><%@ taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" > >>>prefix="netui-data"%> > >>><%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%> > >>><%@ taglib uri="http://beehive.apache.org/netui/tags-template-1.0" > >>>prefix="netui-template"%> > >>> > >>><netui:html> > >>> <head> > >>> <title>Ldap Login</title> > >>> <netui:base/> > >>> </head> > >>> <netui:body> > >>> <h1>Ldap Login</h1> > >>> <p> > >>> <netui:form action="logIn"> > >>> <p>User:<netui:textBox dataSource="actionForm.userName"/> > >>> <p>Password:<netui:textBox password="true" > >>>dataSource="actionForm.userPassword"/> > >>> <p><netui:button type="submit">Submit</netui:button> > >>> </netui:form> > >>> </p> > >>> </netui:body> > >>></netui:html> > >>>************ > >>> > >>>and its Controller.jpf: > >>>************ > >>>import org.apache.beehive.netui.pageflow.PageFlowController; > >>>import org.apache.beehive.netui.pageflow.Forward; > >>>import org.apache.beehive.netui.pageflow.annotations.Jpf; > >>>import forms.AuthenticationForm; > >>>import forms.SearchForm; > >>>import spike.beehive.ldap.LdapAccess; > >>>import spike.beehive.ldap.LdapAccessClient; > >>>import org.apache.beehive.controls.api.bean.Control; > >>> > >>>@Jpf.Controller( > >>> simpleActions={ > >>> @Jpf.SimpleAction(name="begin", path="index.jsp") > >>> } > >>> ) > >>>public class Controller extends PageFlowController > >>>{ > >>> @Control @LdapAccess.LdapServer( > >>> userManagerName = "anyuserManagerName", > >>> userManagerPassword = "anyuserManagerPassword", > >>> serviceUrl = "ldap://anyserviceUrl:port", > >>> searchDatabase = "anysearchDatabase") > >>> private LdapAccess itsLdapAccess; > >>> > >>> @Jpf.Action( > >>> forwards={ > >>> @Jpf.Forward(name="success", path="search.jsp", > >>> actionOutputs = { > >>> @Jpf.ActionOutput(name = "searchResult", > >>> type = java.lang.String[].class, > >>> required = true) > >>> }), > >>> @Jpf.Forward(name="error", path="error.jsp") > >>> } > >>> ) > >>> public Forward logIn(AuthenticationForm form) > >>> { > >>> System.out.println("/Controller.jpf - logIn: user: " + > >>>form.getUserName()); > >>> boolean isValidUser = > >>>itsLdapAccess.logIn(form.getUserName(), form.getUserPassword()); > >>> if (isValidUser) > >>> { > >>> Forward forward = new Forward("success"); > >>> forward.addActionOutput("searchResult", new String[0]); > >>> return forward; > >>> } > >>> else > >>> return new Forward("error"); > >>> } > >>> > >>> @Jpf.Action( > >>> forwards={ > >>> @Jpf.Forward(name="success", path="search.jsp", > >>> actionOutputs = { > >>> @Jpf.ActionOutput(name = "searchResult", > >>> type = java.lang.String[].class, > >>> required = true) > >>> }) > >>> } > >>> ) > >>> public Forward search(SearchForm form) > >>> { > >>> System.out.println("/Controller.jpf - search: > >>>stringToSearch: " + form.getStringToSearch()); > >>> String[] retrievedUsers = > >>>itsLdapAccess.search(form.getStringToSearch()); > >>> > >>> Forward forward = new Forward("success"); > >>> forward.addActionOutput("searchResult", retrievedUsers); > >>> return forward; > >>> } > >>> > >>> @Jpf.Action( > >>> forwards={ > >>> @Jpf.Forward(name="success", path="search.jsp", > >>> actionOutputs = { > >>> @Jpf.ActionOutput(name = "searchResult", > >>> type = java.lang.String[].class, > >>> required = true) > >>> }) > >>> } > >>> ) > >>> protected Forward searchUsingPojo(SearchForm form) > >>> { > >>> System.out.println("/Controller.jpf - searchUsingPojo: > >>>stringToSearch: " + form.getStringToSearch()); > >>> > >>> LdapAccessClient ldapAccessClient = new > >>>LdapAccessClient("xp", "xpLAYERS"); > >>> String[] retrievedUsers = > >>>ldapAccessClient.search(form.getStringToSearch()); > >>> > >>> Forward forward = new Forward("success"); > >>> forward.addActionOutput("searchResult", retrievedUsers); > >>> return forward; > >>> } > >>> > >>>} > >>>************ > >>> > >>>Do you have any suggestions? > >>> > >>>Thanks a lot! > >>>Piero > >>> > >> > > > From beehive-user-returnkatrina81@example.com Fri Feb 04 11:10:53 2005 Return-Path: <beehive-user-returnkatrina81@example.com> Delivered-To: katrina81@example.com Received: (qmail 43139 invoked from network); 4 Feb 2005 11:10:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 4 Feb 2005 11:10:53 -0000 Received: (qmail 48938 invoked by uid 500); 4 Feb 2005 11:10:51 -0000 Delivered-To: katrina81@example.com Received: (qmail 48904 invoked by uid 500); 4 Feb 2005 11:10:51 -0000 Mailing-List: contact katrina81@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:katrina81@example.com> List-Unsubscribe: <mailto:katrina81@example.com> List-Post: <mailto:katrina81@example.com> List-Id: <beehive-user.incubator.apache.org> Reply-To: "Beehive Users" <katrina81@example.com> Delivered-To: mailing list katrina81@example.com Received: (qmail 48888 invoked by uid 99); 4 Feb 2005 11:10:50 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mvx-200-201-178-34.mundivox.com (HELO localhost.localdomain) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 04 Feb 2005 03:10:49 -0800 Received: from weblogic1 ([83.161.120.155]) by localhost.localdomain (8.11.0/8.11.0) with SMTP id j14ASlK32662; Fri, 4 Feb 2005 08:28:48 -0200 From: "Vanessa Monteiro" <katrina81@example.com> To: "Beehive Users" <katrina81@example.com>, "Daryl Olander" <katrina81@example.com> Subject: RE: "dynamic" datasource Date: Fri, 4 Feb 2005 09:11:33 -0200 Message-ID: <katrina81@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <katrina81@example.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks Daryl, To solve this a created a wrapper object put it in a collection and I'm looping over it so I have both the and values. But will something like this <netui:checkbox dataSource="actionForm.map[${key}]" /> be in a future version? -----Original Message----- From: Daryl Olander [mailto:katrina81@example.com] Sent: sexta-feira, 4 de fevereiro de 2005 00:13 To: Beehive Users Subject: Re: "dynamic" datasource I'm not sure exactly what you want to do here. The <netui:checkbox> is not legal inside a <netui:checkboxGroup>. It turns out there is a bug the implementation which prevents iteration over a HashMap when the HashMap is used as the optionsDataSource in a <netui:checkBoxGroup>. I've entered Jira bug 242 to address this problem. I assume what you are trying to do is something like this: <netui:checkbox dataSource="actionForm.map[${key}]" /> This is not legal today. Eddie and I looked at this and it turns out that it is legal in JSP 2.0 EL to do something like this ${pageContext.map[pageContext.key]} which will use the "key" stored in the pageContext as the key for the "map" stored in the pageContext. Eddie can provide additional details on this. We are trying to decide if we should support this or not for dataSources. So at the moment this is not legal. There is one other thing that you could do using a <netui:checkBoxGroup> <netui:checkBoxGroup dataSource="{actionForm.checkValue}" /> <netui:checkBoxOption value="${actionForm.map[pageFlow.key]}" /> </netui:checkBoxGroup> should work. It works because the value is just a standard JSP 2.0 EL expression. It doesn't do what you want because the value is not stored back into the map. Instead it would be stored as a String into the checkValue property. If you just want to create a checkbox group that contains all of the elements inside a HashMap, once we fix 242 you should be able to do that with a repeating checkBoxGroup. It should be possible using JSTL to filter the repeated items to display a subset of the items. I'll post a follow up example of that when I fix the bug. I'll try to fix it in the next couple of days. Hope this helps. Daryl On Thu, 3 Feb 2005 12:01:23 -0200, Vanessa Monteiro <katrina81@example.com> wrote: > Hi, > > I have a checkbox group binding to a HashMap property in my form bean. I > need to pass the map's key dynamically but I don't know how to do that. I > know that you can tell the form in wich key to store the data > (<netui:checkbox datasource="actionForm.map['key']".../>) but how can I add > this key value as a variable? > > > Vanessa Monteiro > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.4 - Release Date: 1/2/2005 > > -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.4 - Release Date: 1/2/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.4 - Release Date: 1/2/2005 From beehive-user-returnkatrina81@example.com Fri Feb 04 13:27:23 2005 Return-Path: <beehive-user-returnkatrina81@example.com> Delivered-To: katrina81@example.com Received: (qmail 97493 invoked from network); 4 Feb 2005 13:27:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 4 Feb 2005 13:27:23 -0000 Received: (qmail 148 invoked by uid 500); 4 Feb 2005 13:27:18 -0000 Delivered-To: katrina81@example.com Received: (qmail 99231 invoked by uid 500); 4 Feb 2005 13:27:15 -0000 Mailing-List: contact katrina81@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:katrina81@example.com> List-Unsubscribe: <mailto:katrina81@example.com> List-Post: <mailto:katrina81@example.com> List-Id: <beehive-user.incubator.apache.org> Reply-To: "Beehive Users" <katrina81@example.com> Delivered-To: mailing list katrina81@example.com Received: (qmail 99007 invoked by uid 99); 4 Feb 2005 13:27:14 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from ussjmh01.bea.com (HELO ussjmh01.bea.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 04 Feb 2005 05:27:13 -0800 Received: from ussjfe02.amer.bea.com (ussjfe02b.bea.com [83.161.120.155]) by ussjmh01.bea.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id j14DRA27016064 for <katrina81@example.com>; Fri, 4 Feb 2005 05:27:10 -0800 Received: from USBOEX01.amer.bea.com ([83.161.120.155]) by ussjfe02.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 4 Feb 2005 05:27:10 -0800 Received: from [83.161.120.155] ([83.161.120.155]) by USBOEX01.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 4 Feb 2005 06:27:09 -0700 Message-ID: <katrina81@example.com> Date: Fri, 04 Feb 2005 06:29:23 -0700 From: "Eddie O'Neil" <katrina81@example.com> User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Beehive Users <katrina81@example.com> Subject: Re: Problem using the version taken from SVN References: <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> <katrina81@example.com> In-Reply-To: <katrina81@example.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 04 Feb 2005 13:27:09.0607 (UTC) FILETIME=[3A799370:01C50ABD] X-PMX-Version: 83.161.120.155621, Antispam-Engine: 83.161.120.155, Antispam-Data: 283.161.120.155 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Pietro-- Yeah, in digging some more, I found the same thing you did -- hitting fooWeb/index.jsp caused that problem. Here's the JIRA bug for that: http://issues.apache.org/jira/browse/BEEHIVE-223 Glad you're up and running; thanks for the update. Eddie Pietro Di Bello wrote: > Hi Eddie, > > We finally resolved our problem ("Message Action 'logIn is not a valid > action" in the home page), that is actually not related to the issue > you've open > (http://issues.apache.org/jira/browse/BEEHIVE-220): we discovered that > this error message was raised only if we were pointing our browser to > http://localhost:8080/SpikeLdapControl/ (that forwards to index.jsp, I > guess...). > While if we point directly to > http://localhost:8080/SpikeLdapControl/Controller.jpf the error was > not raised and everything looks ok. > > This might be caused, I guess, because the default begin() action > *must* be called first (at least once)... is this the right guess? > > P.S. > Our webapp is made of two simple jsp invoking (throughout a > Controller) an Ldap Control for searching users in a directory server. > > Thanks > Pietro > > > On Tue, 01 Feb 2005 08:44:16 -0700, Eddie O'Neil <katrina81@example.com> wrote: > >>Pietro-- >> >> Yeah, I'm seeing the same thing -- either we're both doing the same >>thing wrong or there's an issue here. >> >> I've filed this to track it: >> >> http://issues.apache.org/jira/browse/BEEHIVE-220 >> >>Eddie >> >>Pietro Di Bello wrote: >> >>>Hi, >>>We have fixed that problem! We've found out that it was caused by a >>>missing generated file for struts: jpf-struts-config.xml. >>> >>>Now that we fix that issue, we encounter another. :-( >>>This is the error message we got now, requesting the home page: >>>**************** >>>Tag Error >>>Tag Form Errors 1 >>>Tag Error Message Action 'logIn is not a valid action. >>>**************** >>>both in our project and in the beehive's petStoreWeb sample (in that >>>case the invalid action is the search() one in the home page). >>> >>>We really cannot understand why our logIn() action is not valid... >>>Do you have any idea? >>> >>>Thanks! >>>Piero >>> >>>P.S. >>>Our source code is still the same >>> >>> >>>On Mon, 31 Jan 2005 09:22:12 -0700, Eddie O'Neil <katrina81@example.com> wrote: >>> >>> >>>>Pietro-- >>>> >>>> One thing to check is that all of the generated XML, source, and >>>>.class files have been deleted from your webapp. >>>> >>>> These would live in: >>>> >>>> WEB-INF/.tmpbeansrc >>>> WEB-INF/.pageflow-struts-generated >>>> >>>>And, of course: >>>> >>>> WEB-INF/classes >>>> >>>> As far as petstoreWeb goes for the current SVN tree, I know that >>>>there's an issue with finding the global "search" action in the >>>>top-level shared flow. It's something that needs a bug and a fix. :) >>>> >>>>Eddie >>>> >>>> >>>>Pietro Di Bello wrote: >>>> >>>> >>>>>Hi all, >>>>> >>>>>we downloaded the Beehive sources from SVN and built it successfully >>>>>(including its docs). >>>>>Now we are trying to update our test project (previously running with >>>>>v1-alpha) that uses both controls and pageflows, but after the >>>>>build&deploy, when we request our login page, we encounter the >>>>>following error on the login form: >>>>> >>>>>************ >>>>>Tag Error >>>>>Tag: Form Errors: 1 >>>>>Tag Error: Message Could not locate the Form's application module >>>>>configuration information. >>>>>************ >>>>> >>>>>To make up our mind, we built and deployed the petstoreWeb sample but >>>>>we still have the same error, in this case on the search form in the >>>>>home page. >>>>> >>>>> >>>>>This is our index.jsp: >>>>>************ >>>>><%@ page language="java" contentType="text/html;charset=UTF-8"%> >>>>><%@ taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" >>>>>prefix="netui-data"%> >>>>><%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%> >>>>><%@ taglib uri="http://beehive.apache.org/netui/tags-template-1.0" >>>>>prefix="netui-template"%> >>>>> >>>>><netui:html> >>>>> <head> >>>>> <title>Ldap Login</title> >>>>> <netui:base/> >>>>> </head> >>>>> <netui:body> >>>>> <h1>Ldap Login</h1> >>>>> <p> >>>>> <netui:form action="logIn"> >>>>> <p>User:<netui:textBox dataSource="actionForm.userName"/> >>>>> <p>Password:<netui:textBox password="true" >>>>>dataSource="actionForm.userPassword"/> >>>>> <p><netui:button type="submit">Submit</netui:button> >>>>> </netui:form> >>>>> </p> >>>>> </netui:body> >>>>></netui:html> >>>>>************ >>>>> >>>>>and its Controller.jpf: >>>>>************ >>>>>import org.apache.beehive.netui.pageflow.PageFlowController; >>>>>import org.apache.beehive.netui.pageflow.Forward; >>>>>import org.apache.beehive.netui.pageflow.annotations.Jpf; >>>>>import forms.AuthenticationForm; >>>>>import forms.SearchForm; >>>>>import spike.beehive.ldap.LdapAccess; >>>>>import spike.beehive.ldap.LdapAccessClient; >>>>>import org.apache.beehive.controls.api.bean.Control; >>>>> >>>>>@Jpf.Controller( >>>>> simpleActions={ >>>>> @Jpf.SimpleAction(name="begin", path="index.jsp") >>>>> } >>>>> ) >>>>>public class Controller extends PageFlowController >>>>>{ >>>>> @Control @LdapAccess.LdapServer( >>>>> userManagerName = "anyuserManagerName", >>>>> userManagerPassword = "anyuserManagerPassword", >>>>> serviceUrl = "ldap://anyserviceUrl:port", >>>>> searchDatabase = "anysearchDatabase") >>>>> private LdapAccess itsLdapAccess; >>>>> >>>>> @Jpf.Action( >>>>> forwards={ >>>>> @Jpf.Forward(name="success", path="search.jsp", >>>>> actionOutputs = { >>>>> @Jpf.ActionOutput(name = "searchResult", >>>>> type = java.lang.String[].class, >>>>> required = true) >>>>> }), >>>>> @Jpf.Forward(name="error", path="error.jsp") >>>>> } >>>>> ) >>>>> public Forward logIn(AuthenticationForm form) >>>>> { >>>>> System.out.println("/Controller.jpf - logIn: user: " + >>>>>form.getUserName()); >>>>> boolean isValidUser = >>>>>itsLdapAccess.logIn(form.getUserName(), form.getUserPassword()); >>>>> if (isValidUser) >>>>> { >>>>> Forward forward = new Forward("success"); >>>>> forward.addActionOutput("searchResult", new String[0]); >>>>> return forward; >>>>> } >>>>> else >>>>> return new Forward("error"); >>>>> } >>>>> >>>>> @Jpf.Action( >>>>> forwards={ >>>>> @Jpf.Forward(name="success", path="search.jsp", >>>>> actionOutputs = { >>>>> @Jpf.ActionOutput(name = "searchResult", >>>>> type = java.lang.String[].class, >>>>> required = true) >>>>> }) >>>>> } >>>>> ) >>>>> public Forward search(SearchForm form) >>>>> { >>>>> System.out.println("/Controller.jpf - search: >>>>>stringToSearch: " + form.getStringToSearch()); >>>>> String[] retrievedUsers = >>>>>itsLdapAccess.search(form.getStringToSearch()); >>>>> >>>>> Forward forward = new Forward("success"); >>>>> forward.addActionOutput("searchResult", retrievedUsers); >>>>> return forward; >>>>> } >>>>> >>>>> @Jpf.Action( >>>>> forwards={ >>>>> @Jpf.Forward(name="success", path="search.jsp", >>>>> actionOutputs = { >>>>> @Jpf.ActionOutput(name = "searchResult", >>>>> type = java.lang.String[].class, >>>>> required = true) >>>>> }) >>>>> } >>>>> ) >>>>> protected Forward searchUsingPojo(SearchForm form) >>>>> { >>>>> System.out.println("/Controller.jpf - searchUsingPojo: >>>>>stringToSearch: " + form.getStringToSearch()); >>>>> >>>>> LdapAccessClient ldapAccessClient = new >>>>>LdapAccessClient("xp", "xpLAYERS"); >>>>> String[] retrievedUsers = >>>>>ldapAccessClient.search(form.getStringToSearch()); >>>>> >>>>> Forward forward = new Forward("success"); >>>>> forward.addActionOutput("searchResult", retrievedUsers); >>>>> return forward; >>>>> } >>>>> >>>>>} >>>>>************ >>>>> >>>>>Do you have any suggestions? >>>>> >>>>>Thanks a lot! >>>>>Piero >>>>> >>>> > From beehive-user-returnkatrina81@example.com Fri Feb 04 21:44:10 2005 Return-Path: <beehive-user-returnkatrina81@example.com> Delivered-To: katrina81@example.com Received: (qmail 83371 invoked from network); 4 Feb 2005 21:44:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 4 Feb 2005 21:44:10 -0000 Received: (qmail 67924 invoked by uid 500); 4 Feb 2005 21:44:05 -0000 Delivered-To: katrina81@example.com Received: (qmail 67891 invoked by uid 500); 4 Feb 2005 21:44:05 -0000 Mailing-List: contact katrina81@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:katrina81@example.com> List-Unsubscribe: <mailto:katrina81@example.com> List-Post: <mailto:katrina81@example.com> List-Id: <beehive-user.incubator.apache.org> Reply-To: "Beehive Users" <katrina81@example.com> Delivered-To: mailing list katrina81@example.com Received: (qmail 67878 invoked by uid 99); 4 Feb 2005 21:44:05 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of katrina81@example.com designates 83.161.120.155 as permitted sender) Received: from pop-a065d10.pas.sa.earthlink.net (HELO pop-a065d10.pas.sa.earthlink.net) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 04 Feb 2005 13:44:03 -0800 Received: from user-0cdv4ol.cable.mindspring.com ([83.161.120.155] helo=apollo) by pop-a065d10.pas.sa.earthlink.net with esmtp (Exim 3.33 #1) id 1CxBFB-0001zN-00 for katrina81@example.com; Fri, 04 Feb 2005 13:44:02 -0800 From: "Timothy Brown" <katrina81@example.com> To: "'Beehive Users'" <katrina81@example.com> Subject: RE: Problem with declarative instantiation of a Control from a POJO Date: Fri, 4 Feb 2005 16:44:03 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <katrina81@example.com> Thread-Index: AcUIfZ99sGrXFyJiSr+AVLKR01kWcwAHSlOwAJnuSgA= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181 Message-Id: <katrina81@example.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N When I compile using apt, I get the clientInitializer class, but it is empty. Any ideas? Thanks, Tim -----Original Message----- From: Ken Tam [mailto:katrina81@example.com] Sent: Tuesday, February 01, 2005 3:33 PM To: Beehive Users; Pietro Di Bello Subject: RE: Problem with declarative instantiation of a Control from a POJO Hi Pietro, It looks like that's exactly what's going on (the control instance field is not being initialized). When you use declarative controls in a POJO, there needs to be _some_ code that does that initialization. That code is encapsulated in the org.apache.beehive.controls.api.bean.Controls helper class in a static method called "initializeClient". Basically, you need to instantiate an instance of your POJO, and then call initializeClient() on that instance (see the javadoc for more detail). One caveat is that you must be compiling your POJO with apt, so that the @Control annotation gets processed -- this will result in a <POJO>ClientInitializer.class being created along side the .class file for the POJO itself. initializeClient() depends on that ClientInitializer class to do its work. Does this make sense? Let me know if you'd like more details.. -----Original Message----- From: Pietro Di Bello [mailto:katrina81@example.com] Sent: Tuesday, February 01, 2005 8:47 AM To: Beehive Users Subject: Fwd: Problem with declarative instantiation of a Control from a POJO Sorry! I forgot to tell you that the error I got trying to use the control from that pojo was a NullPointerException (it seems that the control has not been initialized somehow...) Thanks Piero ---------- Forwarded message ---------- From: Pietro Di Bello <katrina81@example.com> Date: Tue, 1 Feb 2005 17:41:47 +0100 Subject: Problem with declarative instantiation of a Control from a POJO To: Beehive Users <katrina81@example.com> Hi all, I'm using Beehive taken from SVN two days ago and have a problem instantiating a Control within a POJO (I'm following the v1Beta docs, chapter 'Control Programming', 6.1 Declarative Instantiation). I've already used (successfully) the same beehive control from a page-flow and also with a programmatic instantiation. This is the code of the POJO, which uses an LdapAccess Control we developed: ******************* public class LdapAccessClient { @Control @LdapAccess.LdapServer( userManagerName = "xxx", userManagerPassword = "yyy", serviceUrl = "zzz", searchDatabase = "ttt") private LdapAccessBean itsLdapAccess; .... ... } ******************* Do you have any idea? Thanks a lot! Piero From beehive-user-returnkatrina81@example.com Fri Feb 04 21:47:46 2005 Return-Path: <beehive-user-returnkatrina81@example.com> Delivered-To: katrina81@example.com Received: (qmail 85185 invoked from network); 4 Feb 2005 21:47:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 4 Feb 2005 21:47:46 -0000 Received: (qmail 74962 invoked by uid 500); 4 Feb 2005 21:47:45 -0000 Delivered-To: katrina81@example.com Received: (qmail 74936 invoked by uid 500); 4 Feb 2005 21:47:44 -0000 Mailing-List: contact katrina81@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:katrina81@example.com> List-Unsubscribe: <mailto:katrina81@example.com> List-Post: <mailto:katrina81@example.com> List-Id: <beehive-user.incubator.apache.org> Reply-To:
{'source': 'Apache Software Foundation Public Mail Archives'}