Re: Serialization of stackTrace in REST-plugin

2011-05-18 Thread Stefan Magnus Landrø
Hi there, I'm not sure if you're right. It seems like our exception result is never returned, only the exception itself, including the stacktrace. Cheers, Stefan On Wed, May 18, 2011 at 5:51 PM, Martin Gainty wrote: > it appears you have encountered a bug here is why: > http://download.oracle.

Serialization of stackTrace in REST-plugin

2011-05-18 Thread Stefan Magnus Landrø
Hi there, We are seeing some serialized stacktraces in addition to our custom exception result in our json-output after upgrading to 2.2.3. Is there a way to turn it off? Cheers Stefan -- BEKK Open http://open.bekk.no - To un

Re: how could i place sign # on redirectAction param?

2011-05-16 Thread Stefan Magnus Landrø
You can't - they are client-side only Den 16. mai 2011 kl. 09:24 skrev "mersenne.fang" : > please refer to following setting in struts.xml > > >PostedEassy >${classId} >${curriculumId}#${topicId} > > > > the result will product the result: > PostedEassy.act

Re: Struts2 - duplicate submit problem

2011-05-13 Thread Stefan Magnus Landrø
Have you had a look at the csrf-protection? Not sure if it is request or session oriented. http://nickcoblentz.blogspot.com/2008/11/csrf-prevention-in-struts-2.html On Thu, May 12, 2011 at 10:42 PM, Rajeev430 wrote: > Hi, > > How I can stop duplicate submit in Struts2? Is there any working examp

Re: could not deserialize the context attribute "org.apache.struts.action.ACTION_SERVLET" java.io.NotSerializableException

2011-05-06 Thread Stefan Magnus Landrø
Did some quick checking. weblogic probably serializes your context during shutdown. however, the actionservlet is not serializable. Check source repository. Why not use struts 2 instead of 1? Cheers Stefan --- A few more details: public static final java.lang.String ACTION_SERVLET_K

Struts 2 convention-plugin / rest-plugin

2011-05-03 Thread Stefan Magnus Landrø
Hi there, We're using the Struts 2 convention-plugin in conjunction with the rest-plugin, and are using JSON as the default content-type >From time to time, we get the following in our logs: WARN net.sf.json.JSONObject - Property 'container' has no read method. SKIPPED However, the only part o

Re: Implmentation of RESfull ecache in S2-REST

2010-11-06 Thread Stefan Magnus Landrø
you will typically have to use something like axis or jersey to put / get cache entries from the ehcache server (instead of using the standard ehcache api) Stefan On Fri, Nov 5, 2010 at 6:41 AM, Frans Thamura wrote: > hi all > > just got this > > http://ehcache.org/documentation/cache_server.h

struts rest plugin, json and escaping

2010-10-29 Thread Stefan Magnus Landrø
Hi there, We're using the struts rest plugin for our ajax driven site. It seems like the JsonLibHandler performs no javascript escaping - thus exposing us to XSS. Any thought on this, anyone? Stefan -- BEKK Open http://open.bekk.no

REST plugin and validations

2010-10-21 Thread Stefan Magnus Landrø
Hi there, I'm trying to add validation to a REST-plugin based struts2 application. I'm using using jsr 303 for the POST validation, and setting a model with validation info. The model is then marshalled to json, and written to the resonse, but I can't see the response in firebug. What could be goi

REST and i18n

2008-03-05 Thread Magnus Haraldsen Amundsen
Hi, Using the REST-plugin (Struts 2.1.1) and with a requirement for i18n URLs. Is it possible to have a single action that maps to different URLs using the REST-plugin? Ie. OrdersController.index() kicks in on both the english and the norwegian word in the URL: /orders --> OrdersControll

Struts 2: Designing faceted search - a general architecture/design issue

2008-03-03 Thread Magnus
m aware of Solr, but want to do it from "scratch". - Magnus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Validator not validating

2004-09-13 Thread Magnus
played. This was the simplest thing I could think of to start with :) regards, /Magnus Sjöstrand Luis Urueña Frías wrote: Hello: To perform a validation over an action, it's required to enable the validation attribute, is'n it? validate=true like follows [ some forwards ] Regards

Validator not validating

2004-09-13 Thread Magnus
;s wrong. My validation.xml looks like: min 10 max 20 My ActionMapping looks like: [ some forwards ] My Action