Re: [Stripes-users] SecurityManager throws JspTagException when using security:allowed

2012-01-13 Thread M.C.S.
Hello, I know - ld topic, but after a long time I had to touch this piece of code again because Weblogic still does not like the tag. I have a big problem with the InstanceBasedSecuritymanager described in Freddy's StripesBook: Using the security-tags, I get this unfriendly exception:

Re: [Stripes-users] Simple Stripes Example

2011-07-24 Thread M.C.S.
Just a blind shot: Did you create the JSP file with some kind of HTML/JSP editor? Maybe the ${} part has been escaped by the editor so it is not replaced by the JSP engine. A quick ciew to the real source code should reveal this. Another simple test: Place ${'Test'} somewhere in the HTML body to

Re: [Stripes-users] Security and Authentication

2011-01-23 Thread M.C.S.
Hi Thomas, http://www.stripesframework.org/display/stripes/Security+Interceptor+for+custom+authorization [...] I added to my web.xml: init-param param-nameInterceptor.Classes/param-name param-value org.stripesstuff.plugin.security.SecurityInterceptor /param-value

Re: [Stripes-users] Trouble with MockServletContext Spring

2010-09-26 Thread M.C.S.
Hello, on 26.09.2010 12:08, Florian Falkner wrote: mockServletContext.addInitParameter(contextConfigLocation, /WEB-INF/applicationContext.xml); This used to happen to me too, so I just pass the absolute paths to the servletContext. well, if this happens in your environments, I

Re: [Stripes-users] Another beginner's question: setting UrlBinding to the URL of the JSP page

2010-09-14 Thread M.C.S.
Hi, answers inlined. On 14.09.2010 09:24 Antti Sykäri wrote: Another thing I bumped into when playing with the calculator example and wanted to make the URLs generated by Stripes prettier. I tried this (actually, with the URL /calc), but it the resulting page is not found: HTTP

Re: [Stripes-users] stripes:hidden

2010-07-29 Thread M.C.S.
Hi Aaron, Am 29.07.2010 12:50, schrieb Aaron Stromas: Let me get back on topic by rephrasing my original question: why the value of the value attribute disappears from the generated HTML? Documentation states that, if present, the value attribute provides A default value for the

Re: [Stripes-users] stripes:hidden

2010-07-28 Thread M.C.S.
Hi Nikolaos, Am 28.07.2010 21:08, schrieb Nikolaos Giannopoulos: Aaron Strmas wrote: I think that in this case my initial design is better, because I have to change the JSP later anyway, and it would be only change to the JSP only. Now I have to make change in two places But I'm curious

Re: [Stripes-users] Stripersist.getEntityManager() -- NullPointerException

2010-07-06 Thread M.C.S.
Hi, Aaron Porter wrote: If you're using Eclipse I recommend creating a source directory named resources and then creating a subdirectory named WEB-INF and placing persistence.xml in there. Surely just a typo, but it surely should be named META-INF. I really hate these standard folder

Re: [Stripes-users] Concurrent call problem with @SessionScope annotation

2010-06-09 Thread M.C.S.
Hi Erkan, Am 09.06.2010 14:30, schrieb Erkan Kör: I have an action bean with the @SessionScope annotation. In the ActionBean constructor I do few initializations. When I now login to my app it does 3 ajax calls to the action bean (almost concurrently). But somehow the constructor is

Re: [Stripes-users] SecurityManager.Class not called on @ValidationMethod(on = ...) method, is it a bug ?

2010-06-02 Thread M.C.S.
Hi Laurent, I had the same issue, so I built my own release of StripesStuff with a changed Interceptor. I asked a long time ago one of the authors, but never got an answer why the SecurityInterceptor intercepts that late. Regards Marcus Am 02.06.2010 17:47, schrieb Laurent Perez: Hello My

Re: [Stripes-users] Memory Usage: Stripes Layout vs. Tiles

2010-05-12 Thread M.C.S.
Hi Ben, could you please check in the patch into the 1.5.x and, if needed, the 1.4.x branches? Currently we are not using the version on trunk, but also would like to benefit from the fix asap. Marcus Am 11.05.2010 17:10, schrieb Ben Gunter: I did a little poking around and found that

Re: [Stripes-users] Using mock objects in ActionBeans together with MockRoundtrip?

2009-11-21 Thread M.C.S.
, OneOfYourActionBean.class); // add parameters trip.execute(); // assertions } -- It's a little bit annoying that I have to prepare all the spring beans manually. If you find a easier way to do this, please let me know. Hope this helps, Iwao on 09/11/21 6:19 M.C.S. said

Re: [Stripes-users] What's the best way to initialize an actionBean?

2009-11-19 Thread M.C.S.
Hi Karen, I put this initialization code in a separate init method and annotated the method by: @After(stages = LifecycleStage.BindingAndValidation) This works as expected, the parameters are bound and does also execute when I have an validation error (when no event handler is executed).

Re: [Stripes-users] Testing Wizard Forms using MockRoundtrip

2009-09-29 Thread M.C.S.
Christopher Maier wrote: I'm trying to write some tests of a Wizard form using the Stripes mocks. Right now I'm just trying to verify that the events I expect to be start events for the Wizard are indeed the only ones that are set up to be start events. I guess I could easily do this by just

Re: [Stripes-users] stripes:hidden binding order (and boolean properties)

2009-09-17 Thread M.C.S.
Hi Levi, using the regular HTML tag results in losing encrypted fields. I would be glad if there was a way to use the s:hidden field like a regular tag (value over bean field) - to be able to use the encryption support. Marcus Levi Hoogenberg schrieb: I don't see why a body would be more

Re: [Stripes-users] Why is a Stripes Interceptor a singleton?

2009-06-24 Thread M.C.S.
Hi, IMHO instantiating new objects is default behavior unless mentioned other in the documentation. The fact that there is only one instance means that interceptors must be implemented thread safe. I ask myself why interceptors should have something like a state, because that is the only

Re: [Stripes-users] Inquiry

2009-06-24 Thread M.C.S.
Hi Myles, Kadusale, Myles schrieb: Good Day to All! Is bugzooky updated to the latest stripes features? Thanks and Regards, Myles it works fine for me, if I _copy_ the whole src-folder into WEB-INF. The shipped web.xml is up-to-date and contains e.g. an encryption key. Greetings,

[Stripes-users] Solved: SecurityManager throws JspTagException when using security:allowed

2009-03-25 Thread M.C.S.
Hi all, Marcus Kraßmann schrieb: Using the security-tags, I get this unfriendly exception: javax.servlet.ServletException: javax.servlet.jsp.JspTagException: Since tag class org.stripesstuff.plugin.security.AllowedTag does not implement BodyTag, it cannot return BodyTag.EVAL_BODY_BUFFERED

Re: [Stripes-users] Problems with @ValidationMethod

2009-03-20 Thread M.C.S.
Hi, I think I have a similar problem, at least the stack trace looks like mine. At me this only happens if Stripes' SourcepageResolution points to a JSP with nested stripes layouts. My (ugly) fix: I put the validation logic into the handler method. If I want to trigger a validation error, I

Re: [Stripes-users] Problems with @ValidationMethod

2009-03-20 Thread M.C.S.
Hi Yee, CN Yee wrote: Now I am doing the validation in event handler - but the error messages are not showing up! I did a test, where I add a validation error I also add a message. The message is showing up but not the error. I am returning a ForwardResolution to the jsp. Is this a bug

Re: [Stripes-users] Problems with @ValidationMethod

2009-03-20 Thread M.C.S.
Hi Yee, CN Yee wrote: public Resolution save() { ... check for error... if (errorFound) { SimpleError error = new SimpleError(Error found!); getContext().getValidationErrors().addGlobalError(error); SimpleMessage msg = new SimpleMessage(Double check);

Re: [Stripes-users] Problems with @ValidationMethod

2009-03-20 Thread M.C.S.
Hi John, in general I would agree with you, but in this special case (using layout-render) the usage of getContext().getSourcePageResolution() raises the described exception. By using a forward resolution to a concrete view, no exception is thrown. Surely a workaround, but it works ;-)

[Stripes-users] Resumable StreamingResolution?

2009-02-14 Thread M.C.S.
Hello, I am looking for some kind of StreamingResolution that allows resuming aborted downloads by an external download manager. Before I reinvent the wheel, I ask you if someone has already implemented something like this. Some background (maybe there is another, better way to solve my issue):

Re: [Stripes-users] File Download in Stripes using HttpClient

2009-01-20 Thread M.C.S.
Hi Arnab, arnab_ghosh wrote: I have used HttpClient for getting the InputStream from a web service. Will the StreamingResolution also release the connection? after streaming the StreamingResolution will close any InputStream you pass on to it. It does not matter where you obtained the