Hi Alpana,
Look here first: http://cocoon.apache.org/2.1/developing/webapps/authentication.html
Some of the info on that page is outdated, which has been driving me crazy trying to figure out some errors. Couple of things to remember:
--Use the "request-param" input module, not "request", as in {request-param:userName}, etc.
--The <session:getxml .../> is inserted into XML docs you generate to be transformed by the Session transformer later in your pipeline. Also, use this URI for it in your XML doc:
xmlns:session="http://apache.org/cocoon/session/1.0"
--When specifying the "path" attribute in the <session:getxml> tag don't do "/authentication/data/...", but do "/data/..."
--If you get a NullPointerException when you try to submit your login page (like on line 290 of class PipelineAuthenticator, which is called by LoginAction), this indicates that something went wrong generating the XML from the auth resource. The NPE shouldn't get thrown, and Carsten was kind enough to submit a patch for this (presumably to throw a ProcessingException? not sure) 2 days ago, which should be in the latest CVS release.
Also, definitely take a look at the auth sample in cocoon/samples/authenticaton-fw. The sitemap code in that directory will help.
HTH,
Sonny
From: "alpana" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> Subject: Cocoon 2: Authentication Framework: Session handling Date: Thu, 28 Aug 2003 19:38:06 -0400
I am actively learning cocoon, and have been looking at the User guides and documents. because I am a newbie I am getting confused with the
authentication, session contexts and handlers
can somebody provide me a good site map example which
1. displays login page,
2. performs login validation, (using a Java Action class {custom built retrieves
the parameters from the request attribute and performs validation)
3. creates a session when user is authenticated {done in sitemap}
4. displays a protected document
5. if invalid login id, password , displays an error page.
and if I close the browser and try to access any protected pages , it should display
the login page.
I know this is very simple for users who have already done these.. but it will help me a long way in understanding cocoon.
any link will also do, I have gone thru the apache.org. . but I need a complete example
thanks in advance
_________________________________________________________________
Help protect your PC: Get a free online virus scan at McAfee.com. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
