Re: javascript -Java

2014-09-27 Thread Jos Snellings
Hi Peter, Try in your javascript/flowscript: var imagescaled = Scalr.resize(imagein, size); without the new keyword. reason: You try to call a so-called static method. Hope that helps. Jos On Fri, Sep 26, 2014 at 10:30 PM, Peter Sparkes pe...@didm.co.uk wrote: Hi, Cocoon 2.1.12 Ref

Re: javascript -Java

2014-09-27 Thread Peter Sparkes
Hi Jos Thanks for the suggestion, unfortunately it made no difference Peter On 27/09/2014 07:23, Jos Snellings wrote: Hi Peter, Try in your javascript/flowscript: var imagescaled = Scalr.resize(imagein, size); without the new keyword. reason: You try to call a so-called static method.

javascript -Java

2014-09-26 Thread Peter Sparkes
Hi, Cocoon 2.1.12 Ref http://cocoon.apache.org/2.1/userdocs/flow/java.html Please how do I associate importClass(Packages.org.imgscalr.Scalr); with its jar file imgscalr-lib-4.2.jar which I put in WEB-INF/lib Regards Peter

Re: best way to show login page when session expires? (Javascript/Java based Cocoon app.)

2011-05-19 Thread Thorsten Scherler
On Wed, 2011-05-18 at 10:45 -0400, Paul Joseph wrote: Hi there, I have a Cocoon app that has numerous pages...I use Javascript (flowscript) to do the display and Java to do the business logic. In the Java layer, I have code to detect when the session expires and this works nicely and so

Re: best way to show login page when session expires? (Javascript/Java based Cocoon app.)

2011-05-19 Thread Andre Juffer
On 19/05/11 13:38, Paul Joseph wrote: HI Thorsten, Thank you much for your two suggestions. I will proceed with your second course as it is very easy to do that given the way the app is written. Just like to add that the Auth approach basically works in the same way. An action is

Re: best way to show login page when session expires? (Javascript/Java based Cocoon app.)

2011-05-19 Thread Paul Joseph
You are correct--I will go this route--I now realize that it is the right thing to do! On 5/19/2011 6:57 AM, Andre Juffer wrote: On 19/05/11 13:38, Paul Joseph wrote: HI Thorsten, Thank you much for your two suggestions. I will proceed with your second course as it is very easy to do that

best way to show login page when session expires? (Javascript/Java based Cocoon app.)

2011-05-18 Thread Paul Joseph
Hi there, I have a Cocoon app that has numerous pages...I use Javascript (flowscript) to do the display and Java to do the business logic. In the Java layer, I have code to detect when the session expires and this works nicely and so I am able to maintain a count of currently logged in

Re: best way to show login page when session expires? (Javascript/Java based Cocoon app.)

2011-05-18 Thread Andre Juffer
Paul, you could use Auth: http://cocoon.apache.org/2.2/blocks/auth/1.0/1236_1_1.html I have used this with 2.2 and does seem to work fine. One can test in flowscript whether or not a request is send while the session was expired/closed. Testing whether or not the session expired does not

Re: best way to show login page when session expires? (Javascript/Java based Cocoon app.)

2011-05-18 Thread Paul Joseph
Hi Andre, Thank you kindly for your reply. I guess I could implement cocoon-auth, but am a bit reluctant to at this point as it looks like a substantial change. I figure, I know already when the server expires the session via HttpSessionBindingListener and have a method around this already

Re: best way to show login page when session expires? (Javascript/Java based Cocoon app.)

2011-05-18 Thread Paul Joseph
I think I should use this: http://wiki.apache.org/cocoon/ErrorHandling On 5/18/2011 11:22 AM, Andre Juffer wrote: Paul, you could use Auth: http://cocoon.apache.org/2.2/blocks/auth/1.0/1236_1_1.html I have used this with 2.2 and does seem to work fine. One can test in flowscript whether or

Re: best way to show login page when session expires? (Javascript/Java based Cocoon app.)

2011-05-18 Thread Andre Juffer
On 05/18/2011 07:18 PM, Paul Joseph wrote: I think I should use this: http://wiki.apache.org/cocoon/ErrorHandling Not sure, never used it. On 5/18/2011 11:22 AM, Andre Juffer wrote: Paul, you could use Auth: http://cocoon.apache.org/2.2/blocks/auth/1.0/1236_1_1.html I have used this