Antwort: Retrieving init parameters via HttpContext in Cocoon2

2002-11-20 Thread michael_hampel

Hello,

  For us the following works, in your web.xml you have to specify your 
 parameters like:

        
                    whatever
                    whateverValue
                    whatever description
            

 Then we use context.getInitParameter("whatever") to retrieve a
 parameter.

 HTH,

 miHam

session timeout and XML Forms

2002-11-07 Thread michael_hampel

Hello,

   i have the following problem:

   I set my session timeout in the web.xml to 1 minute (only to try),
   but as soon as I am in my registration flow I am never loosing
   the session.
   I am using XML Forms with  name="xmlform-scope" value="session" />
   If I change the scope to "request" the session times out after one minute, but not
   if its set to "session".
   Is there always a new session crated in the session scope or is it using its own session?
   Do I have to set the timeout then  differently?

   Thanx again for any help,


   miHam

Antwort: XMLForm and textbox: how to protect

2002-11-05 Thread michael_hampel

Hello,

  you do this in your xslt stylesheet:

 e.g.:
         name="whatever" type="textbox" value="whatever" disabled="disabled">

the disabled should to the trick,

 Hope that helps,


mh

Antwort: accessing Authentication Session Context with java

2002-10-10 Thread michael_hampel

Hello,

  I found our problem...


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




accessing Authentication Session Context with java

2002-10-09 Thread michael_hampel

Hello,

   I am trying to get the user data stored in the authentication session
context in an action.
   I tried:
  SessionManager.getContext("authenticate");
   and:
 SessionContextProviderImpl.getSessionContext
("authenticate", ...);

   Both methods return a context and if I do
  context.getName();

   it returns "authenticate".

   The problem is that in both cases if I try to get the xml with
for example:
  context.getXML("/authentication");
the returned document fragment is always null.

I have done this for the temporary session context as well and there it
worked.
I got the data with e.g.:
  context.getValueOfNode("/data/source");

Please tell me what I am doing wrong here.

Thanx again for any help.


 miham


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




authentication session context

2002-09-25 Thread michael_hampel

Hello,

   we have the following problem:
   We have an application where we use the authentication framework for
login.
   At successful authentication we write the user data to the
authentication context.
   After the user is logged in we like to work with the stored data in the
session context like following:
   The user clicks a link  and we have to load information from a database.
   Therefore we wrote a generator which gets out the user information from
the authentication
session context, queries the database and returns xml.
This works fine as long as we are not using aggregation or the cocoon
Protocol.
   (we don´t really know in the moment where the problem lies).
   Here is the part of the sitemap:

   
  


  
  


  
  

  
  
  
  



  
  


  


  

  


If we request gallery.xml after login from the browser everything works
fine.
If we try the same thing with the aggregation and the cocoon protocol, we
get an empty map
in our generator when doing:
AuthenticationManager.createMap();
meaning are not getting the data from the authentication session context.

Anybody tried something like this before - or is there a beter way to do
it?

Thanx again for any help,


miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




authentication framework and bea weblogic

2002-08-20 Thread michael_hampel

Hello,

   after trying out the Authentication Framework on Tomcat and everything
worked fine,
   we now deployed on BEA Weblogic 6.1 SP1 on Solaris.
   There, we unfortunately get the following error message, where we
couldn´t find out
   where the error is coming from.
   We think that we get the error when the application tries to access the
xml which gets
   written into the session context (either authentication or temporary
context) by the
   authentication resource.
   Maybe someone else has had problems with this and is able to give us a
hint
   where to start.

   Thanx again for any help,

   miHam


  java.lang.NullPointerException
 at
org.apache.cocoon.webapps.session.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)

 at
org.apache.cocoon.webapps.session.xml.XMLUtil.getNodesFromPath(XMLUtil.java:873)

 at
org.apache.cocoon.webapps.session.xml.XMLUtil.getNodesFromPath(XMLUtil.java:873)

 at
org.apache.cocoon.webapps.session.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:838)

 at
org.apache.cocoon.webapps.session.context.SimpleSessionContext.getXML(SimpleSessionContext.java:173)

 at
org.apache.cocoon.webapps.authentication.context.SessionContextImpl.addParametersFromAuthenticationXML(SessionContextImpl.java:225)

 at
org.apache.cocoon.webapps.authentication.context.SessionContextImpl.createParameters(SessionContextImpl.java:829)

 at
org.apache.cocoon.webapps.authentication.components.AuthenticationManager.createParameters(AuthenticationManager.java:1457)

 at
org.apache.cocoon.webapps.authentication.components.AuthenticationManager.createParameters(AuthenticationManager.java:1400)

 at
org.apache.cocoon.webapps.authentication.components.AuthenticationManager.createMap(AuthenticationManager.java:1422)

 at
org.apache.cocoon.webapps.authentication.acting.AuthAction.act(AuthAction.java:124)

 at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:127)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:157)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:158)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152)

 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:327)

 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309)

 at org.apache.cocoon.Cocoon.process(Cocoon.java:587)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)

 at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)

 at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)

 at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)

 at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)






-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Antwort: Re: cocoon on bea - problems with xsps

2002-08-15 Thread michael_hampel

Hello,

  thanx for the reply.
  Unfortunately, I have to use servicepack 1.
  Any idea?

  Thanx again for any help,


   miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




cocoon on bea - problems with xsps

2002-08-15 Thread michael_hampel

Hello,

  I ran into a new problem when using cocoon on bea 6.1 servicepack 1 on
Solaris.
  The problem is, that the java code from my xsps is not created
completely.
 (it stops somewhere in the middle with  characters("  )
  I had the same problem on bea 6.2 with servicepack2, but there putting
  Xerces.jar and XML-apis.jar in the classpath before weblogic.jar and
moving the
  two jars two another folder than the lib folder solved the problem.
  Unfortunately this does not work with servicepack 1.
  Probably someone else has had this problem too and found a solution or
has
  a hint what to try.


  Thanx again for any help,


  miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




cocoon-users@xml.apache.org

2002-08-01 Thread michael_hampel

Hello,

   if I call a resource with ,
   is this then generating a new request?


  Thanx for any help,


   miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Antwort: RE: Redirecting

2002-07-31 Thread michael_hampel

Hello,

  I already tried
  Context context = ObjectModelHelper.getContext(objectModel);
  String param = context.getInitParameter("param_one");

but also there my String is null.

Is there another way?

Thanx again for any help,


miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Redirecting

2002-07-31 Thread michael_hampel

Hello,

  I have two question and hope somebody can help me:

  1.) Are there any examples how to redirect with an Action that inherits
   from AbstractXMLFormAction - how do I get the Redirector there -
   if this is the right object to redirect?

  2.) How do I access the init-parameters of my web.xml in an action.
   I tried:
 HttpContext context =
  (HttpContext)ObjectModelHelper.getContext(objectModel);

  and
  objectModel.get("httpservletcontext");

   but that did not work.


Thanks in advance for any help,


miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




XML Forms and i18n

2002-07-29 Thread michael_hampel

Hello,

   first I want to thank you for your great help in the last days.
   We have solved the problem now with your proposed
   solution: tagging the xml with a stylesheet.
   Our xml now looks like this:


  

  



  

  

  



  


  


Thanx again,

 miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




XML Forms and i18n

2002-07-26 Thread michael_hampel

Hello,

I was just trying to change the XMLFormTransformer to add an
 tag, when the Transformer is dealing with violations.
I tried the following in the startElementViolations method:

  1.) I tried to add the tag like this:

  // render  tag
super.startElement(uri, TAG_VIOLATION, NS_PREFIX + ":" +
TAG_VIOLATION, attributes );
 // set message
   String startInter = "";
String endInter = "";
String vm = nextViolation.getMessage();
   String result = startInter + vm + endInter;
super.characters( result.toCharArray(), 0, result.length());

super.endElement(uri, TAG_VIOLATION, NS_PREFIX + ":" +
TAG_VIOLATION);

  2.) and like this:

  INTER_PREFIX = "i18n"
  TAG_VIOLATION="text"
  Here I thought that I could create the i18n tag like the
xf:validation tag is created

  // render  tag
super.startElement(uri, TAG_VIOLATION, NS_PREFIX + ":" +
TAG_VIOLATION, attributes );
AttributesImpl emptyAttributes = new AttributesImpl();
super.startElement(null, null, INTER_PREFIX + ":" + TAG_INTER,
emptyAttributes);
String vm = nextViolation.getMessage();
super.characters( vm.toCharArray(), 0, vm.length());
super.endElement(null, null, INTER_PREFIX + ":" + TAG_INTER);
super.endElement(uri, TAG_VIOLATION, NS_PREFIX + ":" +
TAG_VIOLATION);

Both ways did not work. In the first case I got an error message like this:
  error_message
but it was not translated - so I think that there were no real tags.
The second case was ignored completely  - according to the log.

Maybe somebody can advise if I do this at the right place, or if I should
try somewhere else
or how the Transformer works regarding the super.startElement() - if this
is the way how
to add a new element to the xml or if this is done differently?

thanx again for any help,

miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




XML-Forms and i18n

2002-07-25 Thread michael_hampel

Hello,

I was just trying to change the XMLFormTransformer to add an
 tag, when the Transformer is dealing with violations.
I tried the following in the startElementViolations method:

  1.) I tried to add the tag like this:

  // render  tag
super.startElement(uri, TAG_VIOLATION, NS_PREFIX + ":" +
TAG_VIOLATION, attributes );
 // set message
   String startInter = "";
String endInter = "";
String vm = nextViolation.getMessage();
   String result = startInter + vm + endInter;
super.characters( result.toCharArray(), 0, result.length());

super.endElement(uri, TAG_VIOLATION, NS_PREFIX + ":" +
TAG_VIOLATION);

  2.) and like this:

  INTER_PREFIX = "i18n"
  TAG_VIOLATION="text"
  Here I thought that I could create the i18n tag like the
xf:validation tag is created

  // render  tag
super.startElement(uri, TAG_VIOLATION, NS_PREFIX + ":" +
TAG_VIOLATION, attributes );
AttributesImpl emptyAttributes = new AttributesImpl();
super.startElement(null, null, INTER_PREFIX + ":" + TAG_INTER,
emptyAttributes);
String vm = nextViolation.getMessage();
super.characters( vm.toCharArray(), 0, vm.length());
super.endElement(null, null, INTER_PREFIX + ":" + TAG_INTER);
super.endElement(uri, TAG_VIOLATION, NS_PREFIX + ":" +
TAG_VIOLATION);

Both ways did not work. In the first case I got an error message like this:
  error_message
but it was not translated - so I think that there were no real tags.
The second case was ignored completely  - according to the log.

Maybe somebody can advise if I do this at the right place, or if I should
try somewhere else
or how the Transformer works regarding the super.startElement() - if this
is the way how
to add a new element to the xml or if this is done differently?

thanx again for any help,

miHam




-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Schematron Validation 2

2002-07-24 Thread michael_hampel

Another question:

   I also have non mandatory fields - but if
   the user gives an input I want to validate the input.
   So, is there a way in Schematron to say
   if(input is not empty)
  assert

   Can I do something like nested asserts?

Thanx again for any help,


 miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Schematron validation

2002-07-23 Thread michael_hampel

Hello,

   please advise if the I can do the following with Schematron:

   I want to use Schematron validation with my XML-Forms.
   eg.: The user has to input a Login Name.
   For this field I have several error messages:
  LoginName must not be null,
Login Name has to have between 5 and 20 characters
and so on..

Now my problem is to display the error messages separated,
as when I check if the String is empty all other assertions are true as
well and I will see all error messages.

Is there a way to solve this problem ?


thanks in advance for any help,

miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




xml-forms

2002-07-22 Thread michael_hampel

Hello,

   i have a new problem:)
   In my FormAction I want to send back a request parameter with my page to
use
  this parameter in a xsl-stylesheet.
  Therefore I tried the following:
   if(view == first)
  if(cmd == next)
request.setAttribute("show", "no");
return(NEXT_PAGE);


Then I would like to use this parameter in the stylesheet for NEXT_PAGE.
Am I doing here something completely wrong?

Thanks for any help,

miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




[SUMMARY]XMLForm, extended validation and error messages

2002-07-19 Thread michael_hampel

Hi Ivelin,

   thanks again for your provided solution.
   Before summing up what I did, please change the code that you provided,
as if
   it is used as is you will get a Null Pointer Exception, due to the
following
   code:
  public void addViolations( List newViolations )  {
if (violations_  == null)
...
  }
Please change to:
if(violations_ != null)

The rest is really easy to do:

In the perform() method of your RegistrationAction just do your customized
validation and then
create a new Violation and send back the actual page again:

  Violation v = new Violation();
  v.setMessage(errMsg);
  v.setPath("/firstName");
  violations.add(v);
  getForm().addViolations(violations);
  return page(getFormView());

Thanks again for your great help,

miHam







-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




error using XmlFormTransformer

2002-07-18 Thread michael_hampel

Hello,

   I get the following error when using the XmlFormTransformer in my
pipeline.
   I have to add, that I get this error only with one xml file, which is
quite large.
   So is there a known problem with large file?

  java.util.EmptyStackException
  at java.util.Stack.peek(Stack.java:82)
  at
org.apache.cocoon.transformation.XMLFormTransformer.startTransformingElement(XMLFormTransformer.java:409)

Thanks in advance for any help,


miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Schematron

2002-07-16 Thread michael_hampel

Hello,

   is there a way to use regular expressions with Schematron?
  (like with an descriptor xml match-regex)

  thanks for any help,


  miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Antwort: Re: XML Form, extended validation and error messages

2002-07-15 Thread michael_hampel

Hello,

   thanks for your answer and providing the new feature.
   In the moment I am setting the error message in the perform() method
   by calling setValue of the appropriate Form and then output the
   message with xf:output referencing the appropriate path.

   i will try out your solution as well and will come back to you if it
  worked or not.

  Thanxs again,

   miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




XML Form, extended validation and error messages

2002-07-14 Thread michael_hampel

Hello,

  i again have a question concerning validation in connection with XMl
forms.
  Is there a standard way how to handle validation, that cannot be done
with
  the Schematron approach?

 I mean something like validating if a password is already existing in a
 database or running a Luhn Test for credit card validation.

 In the moment I would do this validation in my Action that I provide for
 the form handling (e.g.: the perform() method).

What I would like to find out now is how to get error messages back
to the page where the wrong input came from, if the validation fails.

Can I access the xml file and  add an error?

How is it supposed to be done?


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




XML Form, extended validation and error messages

2002-07-12 Thread michael_hampel

Hello,

  i again have a question concerning validation in connection with XMl
forms.
  Is there a standard way how to handle validation, that cannot be done
with
  the Schematron approach?

 I mean something like validating if a password is already existing in a
 database or running a Luhn Test for credit card validation.

 In the moment I would do this validation in my Action that I provide for
 the form handling (e.g.: the perform() method).

What I would like to find out now is how to get error messages back
to the page where the wrong input came from, if the validation fails.

Can I access the xml file and  add an error?

How is it supposed to be done?

By the way I got the FormTransformer plus the Schematron error messages
running with i18n and will post how it worked for me next week (after
I tested it a liitle bit more)

Thanks in advance for any help!

miHam




-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Authentication Framework

2002-07-09 Thread michael_hampel

Hello Carsten,

  thanks again for your patch for the Authentication Framework.
  I tried it out and now can access my error messages with the
  temp session context.
  On the other side - with the new LoginAction.java I was not able to login
  anymore - the authentication always failed.
  So, I did some debugging and noticed, that the values of the parameters
  I give with "request:nickname" and "request:password" were not
  substituted

  MyLoginAction: * param: request:password **
MyLoginAction: * param: request:nickname
**

So I looked at the code and changed the new part back to the old and then
everything worked again.
The part I changed is:

  if (enum != null) {
for(int i = 0; i < enum.length; i++) {
final String key = enum[i];
if ( key.startsWith("parameter_") ) {
  authenticationParameters.setParameter( key.substring
("parameter_".length()),

par.getParameter(key));

back to:

  if (enum != null) {
for(int i = 0; i < enum.length; i++) {
final String key = enum[i];
if ( key.startsWith("parameter_") ) {
String value = par.getParameter(key);
if ( value.startsWith("request:") ) {
value = request.getParameter( value.substring(
"request:".length()) );
this.getLogger().debug("* param: " + value
+ " **");
if (value == null) value = "";
}
authenticationParameters.setParameter( key.substring(
"parameter_".length()),
   value);
}
}

}

I think you don´t get the values of the request parameters in the new
version.

If I am wrong, please tell me

Thanks,

miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Antwort: Re: XML-Forms

2002-07-05 Thread michael_hampel

Hello,

   I have another question concerning xmlForms:
   When I have finished my form processing and mapping to the Bean, I would
like to store the
   results in different databases.
   So, if I click "finish" on the last page I would have to call an Action,
which does the
   database storing for me.
   My question now: how do I access the Bean with all the information
stored in my
   Action?
   Is the bean stored in the session and can I access it this way or is
there
   another way?

   Thanks again for any help,

   miHam



-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Antwort: RE: Authentication Framework

2002-07-04 Thread michael_hampel

In my example I redirect back to the login page with the  login form and
 want to display an error message there.
  If I understand you right, then I would -  instead of doing a redirect  -
generate the
 login page again - if login fails -  and would then have access to the
temporary
session context, as I am still working with the same request object.

If this works , I think this would be a great solution.

By the way thanks for your answer on my first mail.
I will try to get out the XML from the request attribute - as I am a quite
new
Cocoon user, I probably will have to ask for your help again to do so:)

Thanks again,

miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




XML-Forms

2002-07-04 Thread michael_hampel

Hello,

   Before I start working with the xml-form implementation in Cocoon,
   I want to find out if it is possible to use xml_form together with the
   i18n Transformer to display
  First Name
   in different languages:
  firstName

   Also, how can I use Internationalisation with Schematron error messages?
   Will it work, if I specify the key of the message as the Schematron
Error message
  
 Error121

  and in the xml File I do:
  
  
  

  If this works when will I run the i18n Transformer - before or after the
XMLFormTransformer?

  Thanks very much for any help!!

   miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Antwort: RE: Authentication Framework

2002-07-04 Thread michael_hampel

Could a possible solution be to create a "Authentication Error" session
context,
  which stores the Error xml and so can then be accessed?

  miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




XML-Forms

2002-07-04 Thread michael_hampel

Hello,

   Before I start working with the xml-form implementation in Cocoon,
   I want to find out if it is possible to use xml_form together with the
   i18n Transformer to display
  First Name
   in different languages:
  firstName

   Also, how can I use Internationalisation with Schematron error messages?
   Will it work, if I specify the key of the message as the Schematron
Error message
  
 Error121

  and in the xml File I do:
  
  
  

  If this works when will I run the i18n Transformer - before or after the
XMLFormTransformer?

  Thanks very much for any help!!

   miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




XML-Form

2002-07-04 Thread michael_hampel

Hello,

   Before I start working with the xml-form implementation in Cocoon,
   I want to find out if it is possible to use xml_form together with the
   i18n Transformer to display
  First Name
   in different languages:
  firstName

   Also, how can I use Internationalisation with Schematron error messages?
   Will it work, if I specify the key of the message as the Schematron
Error message
  
 Error121

  and in the xml File I do:
  
  
  

  If this works when will I run the i18n Transformer - before or after the
XMLFormTransformer?

  Thanks very much for any help!!

   miHam


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Authentication Framework

2002-07-04 Thread michael_hampel

   
   
   
   
   
   
   
   
 Hello,
   
   
   
 I am trying out the authentication framework with Cocoon 2.1 dev. 
   
 Everything runs fine so far - I only have one problem:
   
 If the login fails due to a wrong username I want to redirect the user to 
   
 the login page displaying an error message why the login failed.  
   
 In my authentication resource I create an XML like:   
   
   
   
     
   
 Wrong username 
   
    
   
      
   
 My question now is - where does this xml go to??? 
   
 As I understand from the doc, I only will have an authentication  
   
 session context for successful login - how can I access the   
   
 information of the xml when login failed??
   
   
   
 Thanks very much for any help!
   
   
   
 miHam 
   
   
   
   
   





-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>