AW: request parameter documentation?

2003-06-27 Thread Stephan Niedermeier


-Ursprüngliche Nachricht-
Von: Dominic Chambers [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 26. Juni 2003 16:07
An: [EMAIL PROTECTED]
Betreff: request parameter documentation?


I need to learn exactly what names can be used to access the various
request parameters from the sitemap (e.g. {request:serverName} and
{requestQuery}. Sorry for not RTFM on this one, but I can't find the
info I want anywhere on the site, although others seem to know bits
about it, so it must exist.

Can anyone point me in the right direction here?

Hello,

please have a look into the J2EE API doc of the class Request or see
http://wiki.cocoondev.org/Wiki.jsp?page=FOM_request. I assume that the names
of request:xxx are corresponding to the method names of the class Request.

Regards
Stephan


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



[XSP] not for int?

2003-04-02 Thread Stephan Niedermeier
Hello,

the following XSP causes an LanguageException:



http://apache.org/xsp";>

 
  int value = 1;
  value = value + 1;
 

 
  PageTitle
  
   1 + 1 = value
  
 


The exception says:

org.apache.cocoon.components.language.LanguageException: Error compiling
xsptest_xsp:
Line 69, column 22:  expected
Line 69, column 16: class value not found in class
org.apache.cocoon.www.xsptest_xsp
Line 0, column 0:
2 errors

After changing the type from int to String, the XSP works:



http://apache.org/xsp";>

 
  String value = "1";
  value = "2";
 

 
  PageTitle
  
   1 + 1 = value
  
 


Why? Doesn't  automatically convert int to String?

Thank you!

Regards
Stephan



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



BestPractice: Navigation

2003-03-20 Thread Stephan Niedermeier



Hello,
 
I would like to realize a layer based navigation. 
Each entry may have 0...n sublevels. The XML, which describes this navigation 
looks like the following:
 

    http://foo" name="Foo">
    
http://bar" name="Bar" 
/>
    

 
Secondly, there exists an XML, which describes the 
content of the page itself:
 

    
Blabla
    This is the 
content

 
Now, I have got problems to bring the 
navigation informations dynamically into the XSL. I would like to describe each 
site in the sitemap and aggregate the navigation-XML and the 
page-XML:
 

    
        
        
    

    
    

 
Now, I would like to get the name of the actual 
position on the page. Like this: "You are in area: Foo". Therefore I have 
to compare the given navigation path with the navigation.xml and extract the 
content of a element called "name" or/and "url" for example.
 
In my own opinion, I have two choices but I 
don't know which one of these works well...
 
The first one is to give the XSL the actual path of 
the position via  in . Is this 
possible?
 
The second one is to write an own action class/XSP, 
which gets the actual path via parameter, extracts the necessary informations 
from the navigation.xml and returns the values as attributes.
 
The main question is: How can I extract the 
specified content of navigation.xml depending on a parameter?
 
Is there a better way, to realize this? A best 
practice?
 
Thank you very much.
 
Regards
Stephan Niedermeier
    


Re: Postcript, XLS files....

2003-03-18 Thread Stephan Niedermeier




  Ferran Urgell wrote:> Hello Cocooners!> > I'm 
  interested to do Postcript and XLS files...But I don't know how> to 
  do...> > Which type of Serializer I have to use in the sitemap ? 
  Where I can> get information about Xsl-Fo, to transform Xml into a XLS 
  or> Postcript files ?> > Thanks> > 
  Ferran
A good introduction into XSL-FO can be found on http://www.ibiblio.org/xml/books/biblegold/chapters/ch18.html
 
You Need:
- A XML-File with data.
- A XSL-FO file which describes the layout.
- FileGenerator = To generate SAX-Events of the XML-File.
- TraxTransformer = Transform XML to XSL-FO
- FOPSerializer = Serializes XSL-FO to PDF, PostScript, ...
 
Best regards 
Stephan Niedermeier


Re: SendMailAction?

2003-03-18 Thread Stephan Niedermeier
> On Tue, 18 Mar 2003 12:14:18 +0100
> Scherler <[EMAIL PROTECTED]> wrote:
> 
> > Hi Stephan,
> > 
> > I never heard about the sendmailaction. Sorry, but if you have to pass
> > the email body as a sitemap parameter I think it is not really allways
> > the way to go.
> > http://www.mail-archive.com/[EMAIL PROTECTED]/msg12040.html
> > 
> 
> Hi,
> 
> I've worked on the sendmail.xsl logicsheet and the SendmailAction.java
> in the past weeks. My work is currently with Christian Haul for review.
> If he finds it acceptable, I would think, that it will end up in CVS
> sometime soon.
> 
> If you are interested, I can send you copy directly. This includes 
> documentation for logicsheet and action.

Hello,

I'am very interested. Would you send a copy to me?

Thank you very much.

Best regards
Stephan Niedermeier


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



Link:http://www.logabit.com/consulting/cocoon/CocoonTutorial.html Guide:A Cocoon 2 introduction and tutorial

2003-03-18 Thread Stephan Niedermeier



Hello,
 
I have written an introduction for Cocoon 2 in 
german language. This tutorial is not complete yet, but I'm updating this site 
every 1-2 days.
 
There are an PDF-Version avaiable, too: http://www.logabit.com/consulting/cocoon/CocoonTutorial.pdf.php
 
It would be nice, to add this tutorial to the 
Cocoon 2 linklist. Thank you.
 
Best regards
Stephan Niedermeier


Re: SendMailAction?

2003-03-18 Thread Stephan Niedermeier
> That you need for it:
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg18506.html
>
> How it work wih java:
> http://www.javacommerce.com/articles/sendingmail.htm
>
> About the sendmail logicsheet:
> http://members.iinet.net.au/~xions/jigsaws/sendmail.html
>
> you wrote:
>
> I'm sorry, but I'm searching for the Action (Java class) not for the
> logicsheet.
>
> -> the logicsheet is an implementation of JavaMail API:
> http://java.sun.com/products/javamail/JavaMail-1.2.pdf
>

I thought, that there is a SendMailAction I can use as action. Please have a
look into the mailarchive:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg12026.html

I didn't find additional informations about this strange SendMailAction.


Best regards
Stephan



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



Re: SendMailAction?

2003-03-18 Thread Stephan Niedermeier
> Stephan Niedermeier wrote:
>
> > Hello,
> >
> > i couldn't find the SendMailAction in the cocoon.jar. Can anyone tell
> > me, where I can found this class?
> >
> > Thanks.
> >
> > Greetings
> > Stephan
>
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104790860126005&w=2

I'm sorry, but I'm searching for the Action (Java class) not for the
logicsheet.

Thank you.

Best regards
Stephan



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



SendMailAction?

2003-03-18 Thread Stephan Niedermeier



Hello,
 
i couldn't find the SendMailAction in the 
cocoon.jar. Can anyone tell me, where I can found this class?
 
Thanks.
 
Greetings
Stephan