Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 35456 invoked by uid 500); 5 Nov 2002 21:40:29 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 35397 invoked from network); 5 Nov 2002 21:40:24 -0000 From: "Senhaji" To: Subject: RE: Authentication Resource Date: Tue, 5 Nov 2002 22:43:55 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I get it. You should use request.getParameter("user") rather than parameters.getParameter("user") in your XSP server page to access the user information. Below the XSP code that works org.apache.avalon.framework.parameters.ParameterException private String getUserName () { try { return request.getParameter("myName"); }catch (ParameterException pe) { return "xxxxx" ; } } private String getPassword () { try { return request.getParameter("myPass"); }catch (ParameterException pe) { return "xxxxx" ; } } Processing the beginning of the authentication page portal SELECT id,password,color from PORTALUSER_TABLE where id = 'getUserName()' and password = 'getPassword()' getLogger().debug("UserName::" + getUserName() + " password::" + getPassword()); Processing the end of the page Enjoy Senhaji -----Message d'origine----- De : Senhaji [mailto:osenhaji@wanadoo.fr] Envoy� : mardi 5 novembre 2002 16:55 � : cocoon-users@xml.apache.org Objet : RE: Authentication Resource Thanks Mark I'll try this. I didn't try the getParameter method yet -----Message d'origine----- De : Markdelanoy@aol.com [mailto:Markdelanoy@aol.com] Envoy� : mardi 5 novembre 2002 16:20 � : cocoon-users@xml.apache.org Objet : Re: Authentication Resource You'll need to confirm this but look in cocoon's sitemap.log. You should see the pipeline parameters being passed around. in the sitemap your passing cocoon parameters but in the XSP your looking in the HTTP request. Try looking in the parameters, e.g. parameters.getParameter( name ); parameters.getParameter( pass ); the names of the username password duo are the same spelling as in the sitemap. also make sure your login page widget id/name s are the same as request:.. in the sitemap and then look for cocoon parameters named the same as the sitemap instead of http request parameters named as you have in your login page. so try that. md --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: