Javascript within XSP-Actions?
Hi all! Does anybody know if I can use javascript for writing custom xsp actions? What about the configuration? Thanks for every help. Markus I tried this but it doesn't work: map:match pattern=action-test map:act src=xsp/5791.level.1.act.xsp type=serverpages map:parameter name=programming-language value=js/ map:redirect-to uri=http://localhost/ /map:act map:redirect-to uri=http://localhost:8081/ /map:match My xsp action page: ?xml version=1.0 encoding=ISO-8859-1? xsp:page version=1.0 language=javascript xmlns:xsp=http://apache.org/xsp; xmlns:xsp-action=http://apache.org/cocoon/action/1.0; xmlns:matrix=http://schema.rheinland.net/matrix/matrix.htm; page xsp:logic if (1==1) { test = test; } else { test = false; } /xsp:logic xsp-action:set-success/ /page /xsp:page I know that I can use javascript in xsp generators. That works fine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: XSP page - dynamic link generation
Hi Stephen, when you set the link in the following way a xsp:attribute name=href xsp:expr.../xsp:expr /xsp:attribute /a you will probably get a href=%0A%09%09%09%09%09%20somepage%0A%09%09%09%09%09 try: axsp:attribute name=hrefxsp:expr.../xsp:expr/xsp:attribute/a Greetings, Markus -Ursprungliche Nachricht- Von: Stephen Greene [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 27. Juni 2003 12:31 An: [EMAIL PROTECTED] Betreff: RE: XSP page - dynamic link generation It's getting there but I'm getting some junk in the link aswell. The method getURL() returns a string which is a single word. But I'm getting: a href=%0A%09%09%09%09%09%20somepage%0A%09%09%09%09%09 How do I get rid of all the junk before and after the somepage text in the href attribute? Thanks Stephen -Original Message- From: Alexandre Victoor [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 11:17 To: [EMAIL PROTECTED] Subject: Re: XSP page - dynamic link generation Hello If think you should use xsp:attribute : a xsp:attribute name=href xsp:expr.../xsp:expr /xsp:attribute /a Alex At 11:09 27/06/2003 +0100, you wrote: Hi all, I'm trying to create a dynamic link generated by a xsp page. Inside the html code: a href=insert linkLink to some page/a I want to replace the insert link with a value passed back by a object method. E.g. This is what I trying at the moment xsp:logic //get someObject from somewhere xsp:content a href=xsp:exprsomeObject.getURL()/xsp:exprLink to some page/a /xsp:content /xsp:logic I get back a error from cocoon complaining about the '' of the xsp:expr tag. Original Exception: org.xml.sax.SAXParseException: The value of attribute href must not contain the '' character Any one any ideas how to solve this. Thanks Stephen Greene - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: book recommendations
Hi Peter, the very best book is definitively the first one the developer's handbook. Also a very good choice is the second I can advise. But don't buy the third one. It's not worth the money. Good practise :-) Markus -Ursprungliche Nachricht- Von: Peter ROSS [mailto:[EMAIL PROTECTED] Auftrag von Peter Ross Gesendet: Donnerstag, 26. Juni 2003 16:32 An: Cocoon Mailing List Betreff: book recommendations Hi, Does anyone have any recommendations of books that they found useful for learning cocoon? Here are some titles of books that I have found. * Cocoon Developer's Handbook * Cocoon: Building XML Applications * Cocoon 2 Programming: Web Publishing with XML and Java Regards, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: request parameter documentation?
It isn't quit a large info but take a look an this url: http://www.cocooncenter.de/cc/documents/resources/request-params/requestpara maction.html Greetings, Markus -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? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sendmail within xsp page under Cocoon 2.0.4 problem
Hi all, I try to get the sendmail logicsheet running within a xsp page, but it doesn't work :-( I followed the instruction under http://wiki.cocoondev.org/Wiki.jsp?page=SendingEmail and put the following code in my xsp page: sendmail:send-mail sendmail:from[EMAIL PROTECTED]/sendmail:from sendmail:to[EMAIL PROTECTED]/sendmail:to sendmail:subjecttest/sendmail:subject sendmail:smtphostmy.smtp.host/sendmail:smtphost sendmail:bodytest/sendmail:body sendmail:on-successok/sendmail:on-success sendmail:on-errorfailed/sendmail:on-error /sendmail:send-mail and set the namespace to xmlns:sendmail=http://apache.org/cocoon/sendmail/1.0;. I'm using the Cocoon 2.0.4 version and tomcat 4.1.24. I don't have a local smtp host installed, but a smtp host which is definitely allowed to send my mail from my ip adress. No log file gives me a clue of what is going wrong. What can I do? Is there anybody who can help me? Thanx, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WG: Sendmail within xsp page under Cocoon 2.0.4 problem
Sorry for my precipitate posting. I've solved the problem :-) My smpt host was the problem, sorry. I was offline and the new IP address was not allowed to give mails to my smpt host. Although I don't understand why there was no log file entry? Markus -Ursprüngliche Nachricht- Von: Markus Heussen [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 26. Juni 2003 21:35 An: [EMAIL PROTECTED] Betreff: Sendmail within xsp page under Cocoon 2.0.4 problem Hi all, I try to get the sendmail logicsheet running within a xsp page, but it doesn't work :-( I followed the instruction under http://wiki.cocoondev.org/Wiki.jsp?page=SendingEmail and put the following code in my xsp page: sendmail:send-mail sendmail:from[EMAIL PROTECTED]/sendmail:from sendmail:to[EMAIL PROTECTED]/sendmail:to sendmail:subjecttest/sendmail:subject sendmail:smtphostmy.smtp.host/sendmail:smtphost sendmail:bodytest/sendmail:body sendmail:on-successok/sendmail:on-success sendmail:on-errorfailed/sendmail:on-error /sendmail:send-mail and set the namespace to xmlns:sendmail=http://apache.org/cocoon/sendmail/1.0;. I'm using the Cocoon 2.0.4 version and tomcat 4.1.24. I don't have a local smtp host installed, but a smtp host which is definitely allowed to send my mail from my ip adress. No log file gives me a clue of what is going wrong. What can I do? Is there anybody who can help me? Thanx, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: session:getxml from an XSP page
Did you try String role = session:getxml context=request path=/parameter/role/.toString(); ? -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 12. Juni 2003 13:53 An: [EMAIL PROTECTED] Betreff: session:getxml from an XSP page Is it possible (and how) to set session:getxml context=request path=/parameter/role/ into a variable in XSP? I tried String role = session:getxml context=request path=/parameter/role/; But cocoon returns the error Type mismatch: cannot convert from void to String thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]