Re: [Stripes-users] is Stripes suitable?

2008-10-08 Thread Philip Constantinou
Stripes users - I've been meaning to write up a more elaborate posting about our use of stripes but I wanted to give you another datapoint and more kudos to stripes. My company, Evernote, has been using stripes for over a year -- I started using it after a number of successful smaller

Re: [Stripes-users] is Stripes suitable?

2008-10-08 Thread Philip Constantinou
On Oct 8, 2008, at 8:27 AM, Chris Herron wrote: On Oct 8, 2008, at 10:07 AM, Philip Constantinou wrote: Stripes is incredibly hard to use if you use it wrong I hope that doesn't scare anybody off! ;) There are some best- practices to follow that will help make things easier, but I

Re: [Stripes-users] Chart Libraries

2008-12-01 Thread Philip Constantinou
One other option is Google Charts: http://code.google.com/apis/chart/ I haven't done more than a few experiments but it's produced good results. On Dec 1, 2008, at 7:55 AM, Evgeny Shepelyuk wrote: > Hello guyz > > +1 on this approach :) > >> Hi Ross, >> >> I am currently using JFreeChart+JCo

Re: [Stripes-users] File Download in Stripes

2008-12-09 Thread Philip Constantinou
Did you try: > return new StreamingResolution("audio/mp3", ); looks like you're not providing a valid mime type. On Dec 9, 2008, at 10:28 AM, arnab_ghosh wrote: > > Hi All, > > I am trying to implement file download in Stripes. Presently I am > generating > a FileInputStream from the File UR

[Stripes-users] posting to SSL

2009-01-23 Thread Philip Constantinou
Hey folks - Are there any best practices out there for dealing with switching the browser between HTTP and HTTPs. I'd added some subclasses of stripes:for, stripes:link and RedirectResolution that take a secure=true/false parameter but the 1.5 upgrade seems to break them a little in some

Re: [Stripes-users] posting to SSL

2009-01-24 Thread Philip Constantinou
meantime have a look here: > >http://www.stripesframework.org/jira/browse/STS-239 > > Bye > > Karsten > > Philip Constantinou schrieb: >> Hey folks - >> >> Are there any best practices out there for dealing with switching the >> browser between HTTP and HT

Re: [Stripes-users] Passing Stripes name to JS

2009-03-20 Thread Philip Constantinou
One other way that I've done this (for more complex Javascript data structures) is to use the JSON libraries with a JSTL function. It's nice and general. Create a JSTL function object like this: public static final String json(String key, Object value) { JSONObject json = new JSONObject

Re: [Stripes-users] Reading a properties file

2009-03-31 Thread Philip Constantinou
Apache Commons configurations: http://commons.apache.org/configuration/howto_properties.html Is a really nice set of libraries that is a bit better than just using java.util.Properties. It's abstraction also makes it easier to change your mind about where you're putting your properties. If I

Re: [Stripes-users] Accessing StripesResources.properties within the action bean

2009-04-01 Thread Philip Constantinou
This is what I do: String defaultName = StripesFilter.getConfiguration() .getLocalizationBundleFactory().getFormFieldBundle( getContext().getLocale()).getString("defaultName"); getContext().getLocale() returns the locale based on the browser settings. On Apr 1, 2009,

[Stripes-users] Good design patterns for multiple presentation layers with Stripes

2009-04-28 Thread Philip Constantinou
Hey folks - I'm was wondering if anyone has come up with an elegant solutions to handle multiple presentation layers with stripes. We have a web and mobile web versions of our application (sometimes a JSON version too). Many of the functions, login, forgot password, etc. take the same para

Re: [Stripes-users] accessing action bean context from outside of an action

2009-05-23 Thread Philip Constantinou
We do similar stuff by adding these helper methods to our ActionBeanContext subclass. Your tag should have enough information from the page context to call getOrMakeContext(...). /** * If an My context has already been set, this will grab it, otherwise * this will make a new con

[Stripes-users] XSS?

2009-07-20 Thread Philip Constantinou
Hey folks - I'd like to see if I'm missing something regarding Stripe's XSS support. I had (falsely) assumed that the stripes:form tag's addition of: would protected against XSS requests because it would sign form submissions. Is there anyway to explicitly take advantage of this for validat

Re: [Stripes-users] Prefered Resolution to serve a zip file ?

2009-08-24 Thread Philip Constantinou
If you have the zip file in RAM you can construct a ByteArrayInputStream(); something like this: byte a[]= "foo".getBytes(); ByteArrayInputStream i = new ByteArrayInputStream(a); return new StreamingResolution("application/zip", i); If the file is static and stored within th

[Stripes-users] Localization and MessageFormat

2009-09-29 Thread Philip Constantinou
Hey folks - I'm trying to get a better understanding of how the StripesResources file works. I've been using it for a while but I've recently run into the problem with the ' character. Looking through the code hasn't been very helpful. Here's the problem. In my StripesResources.properties fi

Re: [Stripes-users] Localization and MessageFormat

2009-09-30 Thread Philip Constantinou
Thanks Freddy - So I'm still trying to figure out what all the rules are and when i use: ' vs '' USE ' USE '' -- USE ' -- '' USE '' Is that right? Blurg On Sep 30, 2009, at 9:31 AM, Freddy Daoud wrote: > Hi Philip, > >> In my JSP's I have: >> >> >> >> >> >> The page returns: >>

Re: [Stripes-users] Feature Request for label selection

2009-11-26 Thread Philip Constantinou
Hey Simon - You've got lots of options... one would be to just use HTML: "/> This will invoke the same event but set the value to be the localization string passed in by the JSTL localization tag. There's nothing too magical about the stripes:submit tag. You could even use: On Nov 26, 20

Re: [Stripes-users] Stripes and GWT

2010-10-25 Thread Philip Constantinou
Evernote (4.7+ million users to date) uses both GWT and Stripes in our web app. We basically use them as two totally independent components -- they don't interact at all aside from using Stripes to generate the page that references the GWT resources. We haven't had any problems but generally th

Re: [Stripes-users] Anyway to Redirect to an external page?

2011-01-21 Thread Philip Constantinou
In your example you're changing the host name in the URL (not the path). This really can only be done using a "redirect" (technically an HTTP response code 303 or 301) since the client is essentially talking to a different host. In your LoginAction class you'll want a method that looks like this

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

2011-02-04 Thread Philip Constantinou
Daniil -- We're doing all the same stuff and haven't encountered any problems. Here's a few tidbits from our configuration. In our mySQL connector we use: In the tomcat container new add: nano $CATALINA_HOME/conf/server.xml: Hi there, > > So I'm sure there's someone out there who has m