Antonio Gallardo Rivera wrote: > > Thanks Carsten after thinking about that all the afternoon and > half of the > night fighting with the 2 pipelines (curently 1:00 a.m here). I > comes to the > same place .( > I need a logicsheet since I am working with XSP. I am trying to > working on > this logicsheet since 9:00 p.m. > > BTW, I think many people using XSP (like me) need this > logicshhet. I thinked > about to write it and (if you want) built-in into Cocoon like an standard > logicsheet that will do the same work as the well knowed > <session:getxml>. > What about that? > Sounds great!
> My main problem is how to get the SessionContext from Java in a xsl from > scratch. I am reading and reading the Cocoon API. > > Now I know the packages are the: > > org.apache.cocoon.webapps.authentication > org.apache.cocoon.webapps.authentication.acting > org.apache.cocoon.webapps.authentication.components > org.apache.cocoon.webapps.authentication.context > org.apache.cocoon.webapps.authentication.generation > org.apache.cocoon.webapps.authentication.selection > > and maybe more, who knows.... > > I am also going into and trying to understand the Cocoon Java > code and trying > to write it. But I dont know how. Anyway I am a very hardhead ;) :) > I will try > until I will get this, because I need it to check the permission > of the user > for more than 120 pages. Its a database application in Cocoon. > Also it can > help me to change password, etc. Maybe this can be my mastering > in Cocoon! > Who knows :) Time will tell. > > > I know you are very busy, but can you help me a little more just > some tips, > please. > In fact, it's not so difficult. 1. You need a component manager in your XSP - I'm not sure, but I think it's somehow available - I never wrote any XSP... 2. Lookup a session manager (org.apache.cocoon.webapps.session.components.SessionManager) 3. Invoke the getContextFragment(String contextName, String path) method with contextName="authentication" and path="/???" 4. You get a DOM and have to convert it 5. Release the session manager. HTH Carsten --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>