Re: redirect in xsp

2003-01-05 Thread Antonio Gallardo
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
>
>
> -
> 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]>




-
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 and Tomcat with a Security Manager

2003-01-05 Thread Stefan Riegel
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 which entries we should make or which additional
information You need from us to give advice? We are not experienced with
security issues and Tomcat.

Regards
Stefan
--

Stefan Riegel

mailto:[EMAIL PROTECTED]

TELIG GmbH
Ziegelstraße 27
D-71063 Sindelfingen
GERMANY

Phone:  +49-7031-794-
Fax:+49-7031-794-3343


-
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]>




Re: Orion 1.5.3 and cocoon2.1 - help complete deployment

2003-01-05 Thread e nio


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 convert the war into
an ear by adding a META-INF/application.xml and repackaging the
whole thing as ear.
Anyhows, I can get to the documents/ but nothing under the
samples/ dir.  What I must do to the main sitemap.xmap or the
one located at samples/sitemap.xmap so it does not seek for a
cocoon/samples/welcome/sitemap.xmap ?  

enio
--- Lajos Moczar <[EMAIL PROTECTED]> wrote:
> 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
> > 4.1.12 but not on Orion 1.5.3.  It is only partially
> > working on Orion 1.5.3, partially since I can use
> > http://localhost:/  which becomes
> > http://localhost:/documents/index.html which is
> > the main page and I can click on all the menu items or
> > the links within the page without much of a problem. 
> > However if I typed in
> > http://localhost:/samples/welcome which should go
> > to the sample pages, I get an error instead:
> > 
> > org.apache.cocoon.ProcessingException: Failed to load
> > sitemap from
> > 
> >
>
file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/sitemap.xmap:
> >  org.apache.cocoon.ResourceNotFoundException: Resource
> > not found.:
> >  org.apache.excalibur.source.SourceNotFoundException:
> > Resource not found
> > 
> >
>
file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/sitemap.xmap
> > 
> > Steps I have done are:
> > 1. remove from /u01/OJSP/j3ee/orion/ 
> > xalan.jar,xerces.jar, and jaxp.jar and replaced those
> > with xalan-2.4.1.jar,xercesImpl-2.1.0.jar and
> > xml-apis.jar accordingly.
> > 
> > 2. put cocoon.war at
> > /u01/OJSP/j3ee/orion/applications/
> > 
> > 3. in orion/server.xml added  > name="cocoon" path="../applications/cocoon" />
> > 
> > 4. in orion/application.xml added 
> > 
> > and
> >  > path="../applications/cocoon/cocoon/WEB-INF/lib"/>
> >  > path="../applications/cocoon/cocoon/WEB-INF/classes"/>
> > 
> > 5. in orion/default-web-site.xml added
> >  > />
> > 
> > 6. in orion/lib/  I added cocoon.jar
> > 
> > 7. I think I started orion, for cocoon.war to expand
> > then stop, and restarted. Then I have to modify the
> > cocoon dir to look like this
> > 
> > orion/applications/cocoon/cocoon/<- added one dir
> > above, I dont know why I must, but I did.
> > orion/applications/cocoon/cocoon/META-INF/application.xml
> >  <-- this is not same application.xml as in
> > orion/config/, the file content is like so:
> > 
> > 
> >  > Inc.//DTD J2EE Application 1.2//EN"
> > "http://java.sun.com/j2ee/dtds/application_1_2.dtd";>
> > 
> > 
> >Cocoon servlet
> >Cocoon
> >
> >   
> >  cocoon
> >  /
> >   
> >
> > 
> > 
> > 8.  on orion/config/global-web-application.xml I
> > commented out the  xsl<...>
> > block
> > 
> > 9. downloaded the batik-all-1.5b.2.jar per
> > candlelightsotware.com to replaced the current one (I
> > did verify current one can't be unjarred)
> > 
> > 10. restarted orion and browsed http://localhost:/
> > result is posted above.
> > 
> > Am I missing a step, or botched a step here? please
> > help complete the steps. Why would the documents work
> > but the samples does not? I surmised that it does not
> > want to go to the submount, is the configs on orion
> > wrong?  This same cocoon.war works on Tomcat 4.1.12
> > without the application.xml modification I have to do
> > for orion. Fyi, I never was able to get cocoon+orion
> > before after so many tries, this time it is partial success.
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > http://mailplus.yahoo.com
> > 
> >
>
-
> > 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]>
> > 
> > 
> 
> 
> -- 
> galatea.com
> Cocoon training, consulting & support
> 
> 
>
-
> 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]>
> 


__
D

Re: Orion 1.5.3 and cocoon2.1 - help complete deployment

2003-01-05 Thread Lajos Moczar
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
4.1.12 but not on Orion 1.5.3.  It is only partially
working on Orion 1.5.3, partially since I can use
http://localhost:/  which becomes
http://localhost:/documents/index.html which is
the main page and I can click on all the menu items or
the links within the page without much of a problem. 
However if I typed in
http://localhost:/samples/welcome which should go
to the sample pages, I get an error instead:

org.apache.cocoon.ProcessingException: Failed to load
sitemap from

file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/sitemap.xmap:
 org.apache.cocoon.ResourceNotFoundException: Resource
not found.:
 org.apache.excalibur.source.SourceNotFoundException:
Resource not found

file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/sitemap.xmap

Steps I have done are:
1. remove from /u01/OJSP/j3ee/orion/ 
xalan.jar,xerces.jar, and jaxp.jar and replaced those
with xalan-2.4.1.jar,xercesImpl-2.1.0.jar and
xml-apis.jar accordingly.

2. put cocoon.war at
/u01/OJSP/j3ee/orion/applications/

3. in orion/server.xml added 
name="cocoon" path="../applications/cocoon" />

4. in orion/application.xml added 

and

path="../applications/cocoon/cocoon/WEB-INF/lib"/>

path="../applications/cocoon/cocoon/WEB-INF/classes"/>

5. in orion/default-web-site.xml added

/>

6. in orion/lib/  I added cocoon.jar

7. I think I started orion, for cocoon.war to expand
then stop, and restarted. Then I have to modify the
cocoon dir to look like this

orion/applications/cocoon/cocoon/<- added one dir
above, I dont know why I must, but I did.
orion/applications/cocoon/cocoon/META-INF/application.xml
 <-- this is not same application.xml as in
orion/config/, the file content is like so:



Inc.//DTD J2EE Application 1.2//EN"
"http://java.sun.com/j2ee/dtds/application_1_2.dtd";>


   Cocoon servlet
   Cocoon
   
  
 cocoon
 /
  
   


8.  on orion/config/global-web-application.xml I
commented out the  xsl<...>
block

9. downloaded the batik-all-1.5b.2.jar per
candlelightsotware.com to replaced the current one (I
did verify current one can't be unjarred)

10. restarted orion and browsed http://localhost:/
result is posted above.

Am I missing a step, or botched a step here? please
help complete the steps. Why would the documents work
but the samples does not? I surmised that it does not
want to go to the submount, is the configs on orion
wrong?  This same cocoon.war works on Tomcat 4.1.12
without the application.xml modification I have to do
for orion. Fyi, I never was able to get cocoon+orion
before after so many tries, this time it is partial success.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
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]>




--
galatea.com
Cocoon training, consulting & support


-
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]>




Re: Orion 1.5.3 and cocoon2.1 - help complete deployment

2003-01-05 Thread e nio

   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 from documents/
dir is okay, but anything else is not working.
There are only two  in the main
sitemap.xmap and the 2nd one basically is for the
sub-mount like so, 

533   
534 
535 
536   
537 
538

Any other ideas?


--- e nio <[EMAIL PROTECTED]> wrote:
> 
>   I tried deploying cocoon2.1 which I have recently
> downloaded and compiled, it deploys fine on Tomcat
> 4.1.12 but not on Orion 1.5.3.  It is only partially
> working on Orion 1.5.3, partially since I can use
> http://localhost:/  which becomes
> http://localhost:/documents/index.html which is
> the main page and I can click on all the menu items
> or
> the links within the page without much of a problem.
> 
> However if I typed in
> http://localhost:/samples/welcome which should
> go
> to the sample pages, I get an error instead:
> 
> org.apache.cocoon.ProcessingException: Failed to
> load
> sitemap from
> 
>
file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/sitemap.xmap:
>  org.apache.cocoon.ResourceNotFoundException:
> Resource
> not found.:
> 
> org.apache.excalibur.source.SourceNotFoundException:
> Resource not found
> 
>
file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/sitemap.xmap
> 
> Steps I have done are:
> 1. remove from /u01/OJSP/j3ee/orion/ 
> xalan.jar,xerces.jar, and jaxp.jar and replaced
> those
> with xalan-2.4.1.jar,xercesImpl-2.1.0.jar and
> xml-apis.jar accordingly.
> 
> 2. put cocoon.war at
> /u01/OJSP/j3ee/orion/applications/
> 
> 3. in orion/server.xml added  name="cocoon" path="../applications/cocoon" />
> 
> 4. in orion/application.xml added 
> 
> and
>  path="../applications/cocoon/cocoon/WEB-INF/lib"/>
> 
path="../applications/cocoon/cocoon/WEB-INF/classes"/>
> 
> 5. in orion/default-web-site.xml added
>  />
> 
> 6. in orion/lib/  I added cocoon.jar
> 
> 7. I think I started orion, for cocoon.war to expand
> then stop, and restarted. Then I have to modify the
> cocoon dir to look like this
> 
> orion/applications/cocoon/cocoon/<- added one
> dir
> above, I dont know why I must, but I did.
>
orion/applications/cocoon/cocoon/META-INF/application.xml
>  <-- this is not same application.xml as in
> orion/config/, the file content is like so:
> 
> 
>  Inc.//DTD J2EE Application 1.2//EN"
> "http://java.sun.com/j2ee/dtds/application_1_2.dtd";>
> 
> 
>Cocoon servlet
>Cocoon
>
>   
>  cocoon
>  /
>   
>
> 
> 
> 8.  on orion/config/global-web-application.xml I
> commented out the  xsl<...>
> block
> 
> 9. downloaded the batik-all-1.5b.2.jar per
> candlelightsotware.com to replaced the current one
> (I
> did verify current one can't be unjarred)
> 
> 10. restarted orion and browsed
> http://localhost:/
> result is posted above.
> 
> Am I missing a step, or botched a step here? please
> help complete the steps. Why would the documents
> work
> but the samples does not? I surmised that it does
> not
> want to go to the submount, is the configs on orion
> wrong?  This same cocoon.war works on Tomcat 4.1.12
> without the application.xml modification I have to
> do
> for orion. Fyi, I never was able to get cocoon+orion
> before after so many tries, this time it is partial
> success.
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
> 
>
-
> 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]>
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
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]>




Re: DB2 with Cocoon

2003-01-05 Thread Robert Sösemann
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 something wrong with the driver?
I have no error in the logs before.

Thank you very much,

Robert
- Original Message -
From: "Nils Leßmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 04, 2003 3:27 PM
Subject: AW: DB2 with Cocoon


Dear Robert,

without knowing anything aboout db2 or db schemas - my guess is that
this error results from Excalibur sending a "select 1" as a dummy query
to the database so the connection doesn't time out.

Try setting oradb to true in your cocoon.xconf where you configured the
connection pool. This solved the issue for me (using sapdb).

Regards, Nils



-Ursprüngliche Nachricht-
Von: Robert Sösemann [mailto:[EMAIL PROTECTED]]
Gesendet: Samstag, 4. Januar 2003 00:12
An: [EMAIL PROTECTED]
Betreff: DB2 with Cocoon

Hello,

this is my first time connecting IBMs DB2 with cocoon. Cocoon
succesfully
finds the drivers and connects correctly.

But I get strange SQL Errors like:

COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL0104N  Auf
"SELECT 1" folgte das unerwartete Token "END-OF-STATEMENT".  Zu den
möglichen Token gehören: "".  SQLSTATE=42601

Before I used MySQL, which doesn't have something like a db schema. As I
know in DB2 you always must set a correct schema before queriing.

I guess the problem causes from the fact that I didn't set a schema in
my
ESQL XSP. But how should I do that??

Who can help me out?

Rob



-
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]>


-
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]>



-
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]>




redirect in xsp

2003-01-05 Thread Juraj Misovych
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 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]>



Re: Dynamic query in xsp:logic and esql:query

2003-01-05 Thread Cocoon User
i use to build queries in in logic too , into a variable this code work
for me:



int lookup = 0;
String slookup = "";
String lookupstr = "";
String colfilter = "";

slookup = request.getParameter("lookup");
lookupstr = request.getParameter("lookupstr");

if (slookup != null){
lookup = Integer.parseInt(slookup);
}

if (lookup == 1) {
colfilter ="WHERE 
instr(fname,'".concat(lookupstr).concat("')");

}



...
...
...
select contact_id, fname, mname, 
lname from contacts
colfilter




hope can help
stavros


On Sun, 5 Jan 2003, Lajos Moczar wrote:

> Yves -
>
> Why not build your select statement as a string variable inside an
>  block after the root user tag, and then reference it thusly:
>
> 
>   myQuery
> 
>
> I do this all the time and it works perfectly.
>
> Regards,
>
> Lajos
>
>


-
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]>




Re: Dynamic query in xsp:logic and esql:query (partly solved)

2003-01-05 Thread Lajos Moczar
I can't understand what you are doing w/out seeing the whole XSP. 
Typically I do this:



 

 
  String myQuery = "select * from vwProducts";
  
 

 

 
   pierrefabre

   
 myQuery

 

   

 




Lajos


Yves Vindevogel wrote:
Hi, 

I had tried this:

			xmlns:xsp="http://apache.org/xsp";
			xmlns:esql="http://apache.org/cocoon/SQL/v2";
			xmlns:xsp-request="http://apache.org/xsp/request/2.0";
			xmlns:xsp-session="http://apache.org/xsp/session/2.0";
			create-session="true">




pierrefabre


	
	String myQuery = "select * from vwProducts" ;

			
	myQuery




And this didn't work !!  I says: variable myQuery not found in class . 
When I do this, it works :

Guess the first part of the problem already got me on the wrong way 


			xmlns:xsp="http://apache.org/xsp";
			xmlns:esql="http://apache.org/cocoon/SQL/v2";
			xmlns:xsp-request="http://apache.org/xsp/request/2.0";
			xmlns:xsp-session="http://apache.org/xsp/session/2.0";
			create-session="true">


	
	String myQuery = "select * from vwProducts" ;






pierrefabre


			
	myQuery




NOW:
When I do this:
	
	String myQuery;

myQuery = "select * from vwProducts" ;


It still gives me "class myQuery not found in class ."
It only works when I immediatly assign it (String s = "jkml";)
I can't do anything on the string afterwards ...

How is that possible ??




Yves -

Why not build your select statement as a string variable inside an
 block after the root user tag, and then reference it thusly:


 myQuery


I do this all the time and it works perfectly.

Regards,

Lajos






--
galatea.com
Cocoon training, consulting & support


-
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]>




Re: Request: XSP for quering Google Web API

2003-01-05 Thread Lajos Moczar
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?




--
galatea.com
Cocoon training, consulting & support
Book: Cocoon Developer's Handbook


http://apache.org/xsp";
 xmlns:soap="http://apache.org/xsp/soap/3.0";
>

  

  String query = "";
  try {
 query = request.getParameter("query");
  } catch (Exception e) { }


http://api.google.com:80/search/beta2";
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
  
YOUR_KEY_GOES_HERE
query
0
10
true

false
lang_en|lang_de
latin1
latin1
  

  




-
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]>


Re: i18n catalogue and sql

2003-01-05 Thread aps olute


  In an article by Steve Punte of candlelightsoftware.com, he uses


to pickoff input=5  in a url of  http://localhost/mypage?input=5

and passed it to a template like this:


  



Can anyone perhaps elaborate on how input=5 from that select? what if the the
parameters where http://localhost/mypage?input=5&input2=7  instead?

aps

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
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]>




Re: i18n Transformation problem

2003-01-05 Thread Karel Vervaeke
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 variable using 
onclick="this.form.my_var='search'" in the submit button.  


> Hello Friends,
> I am applying a i18n Transformation on the following button
> 
>i18n:attr="value">
> 
> 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 and i
> m not able to call that method.
> So what i need display value of button should change but passing value
> should always be "Search" using i18n???
> how to do this
> Thanks in advance
> 
> 
> Thanks and Regards,
> Murari Dhoot
> 


-
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]>




Re: Dynamic query in xsp:logic and esql:query (partly solved)

2003-01-05 Thread Yves Vindevogel
Hi, 

I had tried this:
http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
create-session="true">




pierrefabre



String myQuery = "select * from vwProducts" ;


myQuery




And this didn't work !!  I says: variable myQuery not found in class . 
When I do this, it works :

Guess the first part of the problem already got me on the wrong way 

http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
create-session="true">



String myQuery = "select * from vwProducts" ;






pierrefabre



myQuery




NOW:
When I do this:

String myQuery;

myQuery = "select * from vwProducts" ;


It still gives me "class myQuery not found in class ."
It only works when I immediatly assign it (String s = "jkml";)
I can't do anything on the string afterwards ...

How is that possible ??



> Yves -
>
> Why not build your select statement as a string variable inside an
>  block after the root user tag, and then reference it thusly:
>
> 
>   myQuery
> 
>
> I do this all the time and it works perfectly.
>
> Regards,
>
> Lajos

-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
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]>




Request: XSP for quering Google Web API

2003-01-05 Thread Lenya L. Khachaturov
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]

-
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]>




Re: Dynamic query in xsp:logic and esql:query

2003-01-05 Thread Lajos Moczar
Yves -

Why not build your select statement as a string variable inside an 
 block after the root user tag, and then reference it thusly:


 myQuery


I do this all the time and it works perfectly.

Regards,

Lajos

--
galatea.com
Cocoon training, consulting & support
Book: Cocoon Developer's Handbook (SAMS)


Yves Vindevogel wrote:
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)

			
	select * from vwProducts
	where upper(name) like 
upper('%%')
and typeoid = 



This works 

Unfortunately, the combobox must be filled out.  That's not exactly what I 
want because the user may let this one empty (selecting all with a certain 
name without regard to the type)

In that case, my query should be (empty combobox)
select * from vwProducts where upper(name) like 
upper('%%')


Something like this works too:
			
	
		   "select * from vwProducts where typeoid = " + 

 



If I try this, I get errors :  (Starts when I use an if-clause)
			

if (.equals("0"))
{
		"select * from vwProducts"
}
else
{	
		"select * from vwProducts where name like 
('%product%')"
} ;


I've tried several methods, I get:
Illegal start of expression on line . 
Method ValueOf() missing 


Anyone can help me out ??




-
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]>




Dynamic query in xsp:logic and esql:query

2003-01-05 Thread Yves Vindevogel
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)


select * from vwProducts
where upper(name) like 
upper('%%')
and typeoid = 



This works 

Unfortunately, the combobox must be filled out.  That's not exactly what I 
want because the user may let this one empty (selecting all with a certain 
name without regard to the type)

In that case, my query should be (empty combobox)
select * from vwProducts where upper(name) like 
upper('%%')


Something like this works too:


   "select * from vwProducts where typeoid = " + 

 



If I try this, I get errors :  (Starts when I use an if-clause)


if (.equals("0"))
{
"select * from vwProducts"
}
else
{   
"select * from vwProducts where name like 
('%product%')"
} ;


I've tried several methods, I get:
Illegal start of expression on line . 
Method ValueOf() missing 


Anyone can help me out ??

-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
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]>




Re: i18n Transformation problem

2003-01-05 Thread Cocoon User

i have a similar problem solved using child element and not attributes


some text


then i have 2 step transformation
first i18n transformation to replace i18n tags with the right content
secend xslt tranformation to generete the element i want with attributes




maybe this can help you

regards
Stavros

On Sun, 5 Jan 2003, Murari Dhoot wrote:

> Hello Friends,
> I am applying a i18n Transformation on the following button
>
>i18n:attr="value">
>
> 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 and i
> m not able to call that method.
> So what i need display value of button should change but passing value
> should always be "Search" using i18n???
> how to do this
> Thanks in advance
>
>
> Thanks and Regards,
> Murari Dhoot
>
>
>
> -
> 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]>
>
>


-
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]>




Re: i18n catalogue and sql

2003-01-05 Thread Cocoon User
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 action just like in i18n example from
2.1 version of cocoon but i'm wondering if there is another way to do this
without action)

thnx stavros


On 5 Jan 2003, Martin Lüthi wrote:

>
> You can use the request parameter like this:
>
>   
>  
>  
>   
>
> Cheers Martin
>
>
> Cocoon User <[EMAIL PROTECTED]> writes:
>
> > i know how to make a src file selection based to requested url using
> > matches
> >
> > http://./el/test
> > http://./en/test
> >
> > 
> > 
> > 
> >
> > but how can do  something similar using parameter?
> >
> > http:///test?locale=el
> > http:///test?locale=en
> >
> > using {1} or {2} i refer to first or second * in pattern
> > but how can i refer to locale prameter value inside  ?
>
>


-
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]>




Re: i18n catalogue and sql

2003-01-05 Thread Martin Lüthi

You can use the request parameter like this:

  
 
 
  

Cheers Martin


Cocoon User <[EMAIL PROTECTED]> writes:

> i know how to make a src file selection based to requested url using
> matches
> 
> http://./el/test
> http://./en/test
> 
> 
>   
> 
> 
> but how can do  something similar using parameter?
> 
> http:///test?locale=el
> http:///test?locale=en
> 
> using {1} or {2} i refer to first or second * in pattern
> but how can i refer to locale prameter value inside  ?

-- 
Martin Lüthi [EMAIL PROTECTED]



-
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]>




i18n Transformation problem

2003-01-05 Thread Murari Dhoot
Hello Friends,
I am applying a i18n Transformation on the following button

  

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 and i
m not able to call that method.
So what i need display value of button should change but passing value
should always be "Search" using i18n???
how to do this
Thanks in advance


Thanks and Regards,
Murari Dhoot



-
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]>