Hello Friends,
I am applying a i18n Transformation on the following button
input value=Search type=submit name=cocoon-action
i18n:attr=value/input
Actually depending upon the value of Button i.e. Search , i am calling a
method, but if i apply i18n transformaion the value of button changed
You can use the request parameter like this:
map:transform src=stylesheets/mystyle.xsl
map:parameter name=use-request-parameters value=true/
map:parameter name=region value={request:locale}/
/map:transform
Cheers Martin
Cocoon User [EMAIL PROTECTED] writes:
i know how to make
hi martin this is a way to send a parameter inside your xsl file (pretty
good) but i need something else
i want to use a request parameter as a variable inside my sitemap
example
if i have http://../...?locale=el
src={locale}_data.xml
point to el_data.xml
(i have do something similar using a
i have a similar problem solved using child element and not attributes
input
valuei18n:text i18n:key=key_textsome text/i18n:text/value
/input
then i have 2 step transformation
first i18n transformation to replace i18n tags with the right content
secend xslt tranformation to generete the
Hi,
I've got a form with one textbox (name) and a combobox (type)
When the user presses submit, a searchpage is called where I execute this
query (on postgres db)
esql:query
select * from vwProducts
Yves -
Why not build your select statement as a string variable inside an
xsp:logic block after the root user tag, and then reference it thusly:
esql:query
xsp:exprmyQuery/xsp:expr
/esql:query
I do this all the time and it works perfectly.
Regards,
Lajos
--
galatea.com
Cocoon training,
Hello,
I've discovered that there exists an XSP for quering Google Web API. It
was posted to this list by Ugo Cei at 04.19.2002. Could someone please
send it to me? Or maybe there exist more advanced variants?
--
Lenya Khachaturov
mailto:[EMAIL PROTECTED]
Hi,
I had tried this:
xsp:page language=java
xmlns:xsp=http://apache.org/xsp;
xmlns:esql=http://apache.org/cocoon/SQL/v2;
xmlns:xsp-request=http://apache.org/xsp/request/2.0;
A possible solution for this problem can be found at
http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_10148478.html
(it's the first page that http://google.com/search?q=javascript+button+pressed gives
me :)
In short, you add a hidden variable to the form, and you change that
In an article by Steve Punte of candlelightsoftware.com, he uses
xsl:value-of
select=/http:request/http:requestParameters/http:parameter/http:value/
to pickoff input=5 in a url of http://localhost/mypage?input=5
and passed it to a template like this:
xsl:call-template name=factorial
Attached is one from my and Jeremy's book.
Lajos
Lenya L. Khachaturov wrote:
Hello,
I've discovered that there exists an XSP for quering Google Web API. It
was posted to this list by Ugo Cei at 04.19.2002. Could someone please
send it to me? Or maybe there exist more advanced variants?
--
I can't understand what you are doing w/out seeing the whole XSP.
Typically I do this:
xsp:page language=Java ... /
html !-- This is your root user tag --
xsp:logic
String myQuery = select * from vwProducts;
!-- Or whatever logic you need to build the query string --
/xsp:logic
!--
i use to build queries in in logic too , into a variable this code work
for me:
xsp:logic
int lookup = 0;
String slookup = ;
String lookupstr = ;
String colfilter = ;
Hi,
I try to use xsp-response sendredirect , but it is not implemented in
cocoon(i have 2.0.4),
i want use simple xsp instead of action, but now i dont know how to do it.
Have somebody any ideas?
Thanks
-
Please check that
Thanks for answering.
Could you send me the relevant parts of your xconf because I am not sure
where to add the oradb attribute. By the way the comments in my xconf say to
do this only for ORACLE ?!!
And why do you think, that Cocoon sends dummy queries? To hold the pool? Or
do you think I made
Anyone idea at all why the
http://localhost:/samples/welcome/ would be
seeking for the sitemap.xmap like so?
file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/sitemap.xmap
The main sitemap.xmap is stock from the compilation of
2.1dev. The way it display anything
Don't know if you've checked this out already, but Steve Punte has
Cocoon-Orion integration instructions at
http://www.candlelightsoftware.com/orion-cocoon.html.
Regards,
Lajos
e nio wrote:
I tried deploying cocoon2.1 which I have recently
downloaded and compiled, it deploys fine on Tomcat
Thank you for the response, yes I have looked at Steve's
procedure, I mentioned it in step 9 of my original post. Someone
also have mentioned to me that since orion is an app server I
have to have that application.xml added to make the package
looked like an .ear. Effectively I have to
Hi,
we have to deploy our Cocoon application on a machine running Tomcat with a
Security Manager. It is a Ensim WEBppliance for Linux. It is not possible to
start Tomcat without the -security option.
We did not succeed with the configuration of the catalina.policy file.
Could anybody tell us
use Javascript to do that.
Antonio
Juraj Misovych dijo:
Hi,
I try to use xsp-response sendredirect , but it is not implemented in
cocoon(i have 2.0.4),
i want use simple xsp instead of action, but now i dont know how to do
it. Have somebody any ideas?
Thanks
20 matches
Mail list logo