Re: [Stripes-users] Stripes Today

2018-10-12 Thread Janne Jalkanen
I have a fairly large production installation running on Stripes serving ~billion API calls/month, so it’s very much in active use. Works great! :-) May you have energy and success! /Janne > On 12 Oct 2018, at 15:56, DJDaveMark via Stripes-users > wrote: > > Hi, > > Just wondered how many

Re: [Stripes-users] Stripes and Paypal IPN

2017-05-28 Thread Janne Jalkanen
Looking at our own codebase (which isn’t unfortunately public), it seems to be a fairly straightforward POST handler. All you need to do is to parse the IPNMessage out of the request, and you should be fine, and luckily Paypal provides a library to do just that. Basically we have something lik

Re: [Stripes-users] CMS Integration with Stripes

2015-03-03 Thread Janne Jalkanen
nd they will be automatically >> called. It also uses Stripes' own internal Javascript builder and has a new >> JsonResolution to create JSON-based responses. >> >> Give it a look if you are interested. I have been using it in production >> for quite awhile and it works

Re: [Stripes-users] CMS Integration with Stripes

2015-02-28 Thread Janne Jalkanen
We’ve just been lazy and done public Resolution foo() { switch( getContext().getRequest().getMethod() ) { case “post”: return doPost(); case “get” return doGet() case “delete”: return doDelete(); def

Re: [Stripes-users] Stripes Ajax calls on error

2014-09-30 Thread Janne Jalkanen
I suppose you mean validation errors in particular? We use something like this in our AbstractApiActionBean from which all our Api beans inherit from: /** * Normally Stripes turns validation errors into HTML, but since this is an API, * we turn it into JSON. Returns a JSON or

[Stripes-users] Github?

2014-06-03 Thread Janne Jalkanen
In fixing http://www.stripesframework.org/jira/browse/STS-919 I got a suggestion from Remi to make a pull request on github. However, I cannot find a reference to the official Stripes github project on stripesframework.org. In fact, I can only find links to Sourceforge, and even from the offici

Re: [Stripes-users] validation return url

2014-06-01 Thread Janne Jalkanen
Yup. In your ActionBean, try something like this: @Override public Resolution handleValidationErrors( ValidationErrors errors ) throws Exception { return new ForwardResolution(“/MainForm?id=3"); } /Janne On 2 Jun 2014, at 04:23, Joaquin Valdez wrote: > Hello! > > Is

Re: [Stripes-users] StreamingResolution, byte[] and (char) 26

2014-05-24 Thread Janne Jalkanen
You’re right, this probably is not a Stripes issue, but the client does not like what you’re sending. It’s hard to say what’s going on without seeing the client code… My guess is that the parser at the client end is not very permissive, and it’ll choke if you just have a wrong byte sequence.

Re: [Stripes-users] StreamingResolution, byte[] and (char) 26

2014-05-24 Thread Janne Jalkanen
This typically happens when there’s an exception or something that would cause the server to return an error code - but it cannot because it has already sent the 200 OK line. Sometimes it masks an exception; try putting a try-catch around your output.write() and log the exception to see what’s

Re: [Stripes-users] Upload status

2014-05-19 Thread Janne Jalkanen
Something like this is probably the easiest way: https://github.com/blueimp/jQuery-File-Upload /Janne On 19 May 2014, at 09:43, Heather and Jon Turgeon wrote: > Hi all, well I finally got my app deployed, now just waiting for the users to > pour in ;-) > > Anyway, one of the features that

Re: [Stripes-users] switch to https

2013-04-19 Thread Janne Jalkanen
I just simply inherited StripesFormTag to provide my own SecureStripesFormTag which is smart enough to force SSL in form submission if it's not enabled before. The code looks like this public class SecureFormTag extends FormTag { @Override protected String buildAction() { S

Re: [Stripes-users] how to properly assign ActionBean to root url?

2012-12-29 Thread Janne Jalkanen
Can you post your web.xml config, please? My suspicion is that there may be a problem with the configuration. /Janne On Dec 29, 2012, at 21:40 , Noobmeter Admin wrote: > Yes, I'm using it. But it doesn't seem to help. > > Any other ideas? > > Regards, > Jo

Re: [Stripes-users] how to properly assign ActionBean to root url?

2012-12-29 Thread Janne Jalkanen
You have to use the DynamicMappingFilter. http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/controller/DynamicMappingFilter.html /Janne On Dec 29, 2012, at 12:50 , Noobmeter Admin wrote: > I'm trying to display some dynamic information on the > http://www.mywebsite.

Re: [Stripes-users] Ajax Form Validation

2012-09-03 Thread Janne Jalkanen
I use something like this from an AbstractApiActionBean /** * Normally Stripes turns validation errors into HTML, but since this is an API, * we turn it into JSON. Returns a JSON or JSONP resolution with a single * field "error" which then contains a number of errors.

Re: [Stripes-users] Layout reuse "like a component"

2012-01-31 Thread Janne Jalkanen
e way that code > worked. I'm considering reverting to the original and providing the streaming > version with a different URL. > > On Tue, Jan 31, 2012 at 8:47 AM, Janne Jalkanen > wrote: > > Ditto. We can't upgrade out of 1.5.3 :-/ > > (Can we please get

Re: [Stripes-users] Layout reuse "like a component"

2012-01-31 Thread Janne Jalkanen
Ditto. We can't upgrade out of 1.5.3 :-/ (Can we please get the old layout code back as an option, please?) /Janne On 31 Jan 2012, at 15:38, Mike McNally wrote: > Since 1.5.4, using nested layouts has been somewhat problematic. My > site works in 1.5.3 but fails all over the place in any of t

Re: [Stripes-users] Restricting action invocation by HTTP method

2011-12-29 Thread Janne Jalkanen
Since this is probably like a common thing that most of us have to do at some point, would it be possible to have it as a feature on Stripes directly? Would be glad to contribute a patch if someone specs how it should look-n-work. /Janne On Dec 29, 2011, at 15:57 , Mike McNally wrote: > In my

Re: [Stripes-users] Code obfuscation

2011-11-25 Thread Janne Jalkanen
Make sure that your setters aren't mangled either, or your parameters won't be transmitted. /Janne On 25 Nov 2011, at 14:14, Sylvain Brejeon wrote: > no need to be sorry mate. > the two of you convinced me that it ought to be that the method names have > changed. > of course it can't be other

Re: [Stripes-users] Code obfuscation

2011-11-25 Thread Janne Jalkanen
Um... Why would you obfuscate a web app? If an attacker has enough access to your server to read your JAR files, you've already got way worse problems than having the user decompile your app... Anyway, Stripes uses Reflection quite heavily and depends on the method and field names to be the sa

Re: [Stripes-users] Two way type conversion possible?

2011-11-13 Thread Janne Jalkanen
Date formatting is usually something that's done by the view component in a typical MVC model. I'm not sure that the Stripes ActionBean is the right place to solve this problem. What we usually do is that we take the Date object up and until the view layer, then format it with JSTL on our JSP

Re: [Stripes-users] What is the proper empty resolution for an ajax update?

2011-09-30 Thread Janne Jalkanen
Unfortunately not all Javascript frameworks like this. I've just been returning a StreamingResolution("application/json", "{}"); that seems to work across everything. (JSONP requires then also the callback and a different MIME type.) /Janne On 30 Sep 2011, at 05:02, Freddy Daoud wrote: > You

Re: [Stripes-users] SCMWeb Runtime Exception - PHA - SAVOYM - QA

2011-06-09 Thread Janne Jalkanen
List > Subject: Re: [Stripes-users] SCMWeb Runtime Exception - PHA - SAVOYM - QA > > Yes, you need to clean up the cached compiled JSPs. There have been changes > in the 1.5.x series to the layout tags. Some of them now implement BodyTag > that did not before and vice vers

Re: [Stripes-users] SCMWeb Runtime Exception - PHA - SAVOYM - QA

2011-06-08 Thread Janne Jalkanen
Clean your servlet container compiled JSP pages. (e.g. empty the "work" directory from $TOMCAT_HOME, other containers may differ) and ensure your stripes.jar is not corrupted (jar tvf stripes-1.5.5.jar). I've seen this occasionally too, though only on dev systems. It's usually a configuration/

Re: [Stripes-users] "plugin" strategies?

2011-04-20 Thread Janne Jalkanen
> As for the GIt conversion, I don't get it. We're not the Linux kernel. There > aren't zillions of patches pending to be applied every day. In fact, there > are pretty much zero patches. If folks want to make changes, and make a > difference, then make or find an issue on Jira, and submit a pat

Re: [Stripes-users] Calling methods from JSP

2011-04-02 Thread Janne Jalkanen
You can create EL functions: http://download.oracle.com/javaee/5/tutorial/doc/bnahq.html#bnaiq /Janne On Apr 2, 2011, at 20:43 , Thomas Menke wrote: > Hi @ll, > > in one of my JSP files I want to do somthing that looks like this > (simplified): > > > > test="actionBean.isSelected(p

Re: [Stripes-users] layout problem...

2011-03-24 Thread Janne Jalkanen
I've seen this on occasion. So far I've been able to resolve it simply by clearing Tomcat's work directory, i.e. the compiled JSP files. /Janne On Mar 24, 2011, at 19:36 , Joaquin Valdez wrote: > Hello! > > I am receiving this error after replacing my 1.5.5. jar with 1.5.6 jar file. > What

Re: [Stripes-users] re quest/response scoping

2011-03-03 Thread Janne Jalkanen
> Again, I'm not attempting to "prove" that SpringMVC is better than Stripes, > the question of interest is whether Stripes encourages bad practice from an > OO point-of-view? I suppose it depends on your definition of OO - I use subclassing in my ActionBeans so that I can share common parameters

Re: [Stripes-users] UTF8 from form to mySQL

2011-02-06 Thread Janne Jalkanen
I did to enable UTF-8 support in reply to the OP. > > Cheers, > > --Nikolaos > > > > Janne Jalkanen wrote: >>> Basically, in addition to the other things I mentioned there indeed is one >>> Stripes configuration that I set... by creating a custom Local

Re: [Stripes-users] UTF8 from form to mySQL

2011-02-06 Thread Janne Jalkanen
> Basically, in addition to the other things I mentioned there indeed is one > Stripes configuration that I set... by creating a custom LocalePicker > subclass that picks the character encoding "UTF-8"... and dropping it the > configured Stripes extensions folder... the relevant code is as follo

Re: [Stripes-users] UTF8 from form to mySQL

2011-02-05 Thread Janne Jalkanen
> Really??? A filter just to set character encoding??? Although I imagine it > would work isn't that a little sledge hammer-ish ;-) I seem to recall it was the recommended practice. > > Why not just put the following at the top of each of your JSPs (or tweak as > necessary): > <%@ page langu

Re: [Stripes-users] UTF8 from form to mySQL

2011-02-04 Thread Janne Jalkanen
Simple solution: declare the accept-charset value on all your forms to be "UTF-8" (and *only* UTF-8), then put up a simple Filter in front of your chain which says "request.setCharacterEncoding("UTF-8"). This should ensure that you get full unicodes to the ActionBean, and then you only have to

Re: [Stripes-users] HTTPS to HTTP switching

2011-01-31 Thread Janne Jalkanen
> 1) Logging in. The login action should be https so username and password are > encrypted, but once i pass the login, the first page the user sees does not > need to be secure, hence switching from https to http And that's exactly when your site stops being secure, and the user session can be

Re: [Stripes-users] HTTPS to HTTP switching

2011-01-30 Thread Janne Jalkanen
I know this isn't particularly helpful, but if you do switch from https to http AND keep the same session identifier, you *do* have a need for encryption, and hence shouldn't be switching to http. The reason for this is that session id hijacking is ridiculously easy these days, so having http

Re: [Stripes-users] MockRoundTrip:: ActionBean Testing UrlBinding and ActionBeanContext

2011-01-24 Thread Janne Jalkanen
I'm using something like this to set up Stripes (JUnit 4, then use standard MockRoundtrip()). You should be able to replace the ActionBeanContext here with whatever you like. @BeforeClass public static void mockUp() { MockServletContext context = new MockServletContext("test"

Re: [Stripes-users] decode

2011-01-11 Thread Janne Jalkanen
BTW, this reminds me... If your Stripes app needs security, using Apache Shiro together with Stripes is a breeze. http://www.ecyrd.com/ButtUgly/wiki/Main_blogentry_100910_1 /Janne On 11 Jan 2011, at 00:12, Joaquin Valdez wrote: > Hello! > > In the Stripes book there is an example of encoding

Re: [Stripes-users] Stripes 1.5.5 released

2011-01-04 Thread Janne Jalkanen
Thank you! Seems to solve all the weird-o layout issues I was having with 1.5.4 that I never got around to debugging... /Janne On Jan 4, 2011, at 20:17 , Ben Gunter wrote: > Stripes 1.5.5 is available for Download from Sourceforge. Maven users will > find it in the central repository. > > Fo

Re: [Stripes-users] UrlBinding to /

2010-12-30 Thread Janne Jalkanen
his is very common and the best practice way should be in the doco > somewhere. > > -Original Message- > From: Janne Jalkanen [mailto:janne.jalka...@ecyrd.com] > Sent: Wednesday, December 29, 2010 6:36 PM > To: Stripes Users List > Subject: Re: [Stripes-users] UrlBinding to

Re: [Stripes-users] UrlBinding to /

2010-12-29 Thread Janne Jalkanen
et=UTF-8" > pageEncoding="ISO-8859-1"%> > > > BTW, the comment in your JSP says "redirect" instead of "forward." > > -Ben > > On Wed, Dec 29, 2010 at 6:26 AM, Janne Jalkanen > wrote: > Folks, > > to follow up on this, it see

Re: [Stripes-users] UrlBinding to /

2010-12-29 Thread Janne Jalkanen
t to WEB-INF... there's a thread > on this in the list archives if you dig. It worked, but I didn't measure > performance. Really if we were to have a serious conversation about ways to > improve performance, it would be a very very long discussion, with a lot to > say abou

Re: [Stripes-users] UrlBinding to /

2010-12-29 Thread Janne Jalkanen
nto infinite loops, which were severely detrimental to the performance of my web site. So just map the filters you need properly for *.jsp and you should be fine.) This change alone bumped my Yottaa score up by 10 notches compared to just blindly mapping action/mybean as a welcome-file. :-) /Ja

[Stripes-users] UrlBinding to /

2010-12-28 Thread Janne Jalkanen
Hi folks! I need to map the root of my site to a particular ActionBean. Now, the simple way to do this is of course to use a welcome-file-list in web.xml (Tomcat 6.0.x): action/mybean but unfortunately this carries a fairly heavy performance penalty: compared to accessing action/mybean di

Re: [Stripes-users] Stripes' new streaming layout

2010-12-28 Thread Janne Jalkanen
OK guys, you got me excited. Is this documented somewhere and do I have to do anything to get it turned on? :-D /Janne On 23 Dec 2010, at 18:14, Ben Gunter wrote: > Thank you so much for the positive feedback. I worked really hard to get that > done, and it's nice to know people are benefitin