Stripes uses Commons Logging to abstract away from specific logging
implentations, so simply using the Log4j2 implementation of that API should
do the trick: http://logging.apache.org/log4j/2.x/log4j-jcl/index.html
Regards,
Levi
2014-03-25 15:35 GMT+01:00 Jens Grüntjes
in this message are those of the individual
sender and may not necessarily reflect the views of PT GASI.*
On Sun, Oct 20, 2013 at 6:23 AM, Levi Hoogenberg levihoogenb...@gmail.com
wrote:
You could replace your (div and) jsp:include with a c:import (to an
action that provides the popup div
You could replace your (div and) jsp:include with a c:import (to an action
that provides the popup div). This way, reusing the jsp with the popup form
becomes easier as well (when a submit results in validation errors for
instance).
Alternatively, you could remove the import altogether and load
Or you could implement ELResolver and register it with the
JspApplicationContext inside a ServletContextListener.
2011/11/20 ted_smith2...@comcast.net
in the view when I need to reference a property in action bean, I must
always use
${actionBean.propertyName}
Is there any setting to enable
Newer EL versions do support method calls, but I don't think that's the
problem here [yet ;)]. OP, are you using version 2.3 of the servlet spec (in
web.xml)? It should be at least 2.4.
Op 24 jul. 2011 13:33 schreef Thomas Menke stripe...@cipher-code.de het
volgende:
The more (most? I'm not sure) recent EL versions do allow method invocation,
by the way... so if you can upgrade, you don't have to use any workarounds.
Op 2 apr 2011 23:43 schreef Freddy Daoud xf2...@fastmail.fm:
Nice writeup Joel and good to have for a quick reference.
Thomas, I know your
Isn't there a second constructor that accepts a boolean value, /prepend
context path/?
Op 22 jan 2011 09:18 schreef Yee yeec...@gmail.com:
No luck yet. I tried doing
return new
RedirectResolution(https://subdomain1.mydomian.com/myApp/userHome.action;).
It gives an error that says:
The
Why are you using {_eventName} instead of {$event}?
Op 20 nov 2010 19:29 schreef Nikolaos Giannopoulos
nikol...@brightminds.org:
gshegosh,
Much Appreciated. The following was 99% there:
return (new RedirectResolution(ArticleActionBean.class,
view).addParameter(authorId,
An alternative would be to setup a custom repository - that way, the only
step that's necessary but wouldn't be when synching to Maven central is
adding that repository to the POM file (a really small nuisance if you ask
me). Of course, if a synch with the default repository is possible, that
The only way to do this (AFAIK) is to create a LocalizationContext with your
custom resource bundle and invoke Config.set [
http://download-llnw.oracle.com/javaee/5/jstl/1.1/docs/api/javax/servlet/jsp/jstl/core/Config.html#set(javax.servlet.ServletContext,%20java.lang.String,%20java.lang.Object)]
the population strategy, it's a global change for
the whole application. It might affect something else, if I do so and I'll
need to do regression testing, correct?
-a
On 13 July 2010 14:00, Levi Hoogenberg levihoogenb...@gmail.com wrote:
You can change the population strategy to bean first
the strategy indeed affects
something else? It would have to be recoded. Is there no way of avoiding the
global change, to restricting its scope?
On 13 July 2010 14:36, Levi Hoogenberg levihoogenb...@gmail.com wrote:
Yes, that's correct. Yet another reason to be disciplined when it comes
You could run each test inside a transaction - just rollback after each test
[method] and you're golden.
On Tue, Jul 13, 2010 at 11:01 PM, Lev d...@plektos.com wrote:
On Tue, Jul 13, 2010 at 1:31 PM, Oscar Westra van Holthe - Kind
os...@westravanholthe.nl wrote:
On 13-07-2010 at 12:01,
This doesn't work, since the value of the src attribute should be a URL that
points to image data, not the data itself. Fortunately, there's an easy way to
create this mapping. In your action bean, you need an event handler that
streams the image data:
@HandlesEvent(image)
public Resolution
Which version of Stripes are you using? It sounds like you would like to use
the BeanFirstPopulationStrategy (the default in recent versions), but are using
the former default, the name of which I can't remember. That, or you're missing
a hidden field.
Op 23 jun. 2010 om 14:42 heeft David
This is normal behaviour (not related to Stripes) and is the way it is for
security reasons.
Op 23 jun. 2010 om 16:19 heeft Ravinder Kumar ravinder@gmail.com het
volgende geschreven:
Hi,
m very new to stripes. m facing an issue related to file upload.
1. i have a web form in which
You could use a ServletContextListener and store your configuration in the
servlet context in contextInitialized(). Action beans can access the servlet
context via their action bean contexts.
Regards,
Levi
On Wed, Apr 28, 2010 at 2:25 PM, essey es...@hotmail.com wrote:
Hi,
how would I
I was about to post the same, but Eclipse accepts this without complaints.
On Mon, Dec 28, 2009 at 8:24 PM, Ben Gunter gunter...@gmail.com wrote:
Doing so would break existing code because if we add any new elements
to the @UrlBinding annotation then the shorthand form
@UrlBinding(/blah)
Something like SettingsMenuAction.class.getAnnotation
(UrlBinding.class).value() should do the trick.
Levi
Op 14 dec 2009 om 23:49 heeft Nathan Maves nathan.ma...@gmail.com
het volgende geschreven:\
right now I have an action like
@UrlBinding(/settings)
public class
There are a couple of Stripes classes that assume a one on one relationship
between action beans and URL bindings. One example is the URL binding
factory. This is a design choice that's probably hard to change - one
implication of allowing multiple URL bindings per action bean is ambiguity
when
I don't see why a body would be more important than an attribute; do
you have an example of a tag for which this is the case?
What you could do is use a regular HTML input tag; that way, you can
be certain that Stripes won't change its value.
Levi
Op 17 sep 2009 om 05:09 heeft Brandon
Depending on which EL version you're using, you could also extend ElResolver
(and register it). Not sure if that would be worth the trouble, though.
On Thu, Aug 13, 2009 at 9:50 PM, M@ Hunter technologyro...@gmail.comwrote:
Hi,
I'm trying to add the value of a constant from my action bean to
Hello,
this is caused by the fact that Stripes performs a
System.getProperties() call the StripesFilter. There are two ways
around it:
- subclass StripesFilter to avoid the call;
- edit your security settings to allow the call. I'm no
SecurityManager expert, but the line you need
A few corrections to my previous mail: the offending line is a
System.getProperty(...) call and is done by the BootstrapPropertyResolver.
So that's the class to subclass (and configure) if you would like to
override the behaviour.
On Wed, Aug 12, 2009 at 8:25 PM, Levi Hoogenberg
levihoogenb
Hi John,
I've done this for my personal website. I'm not using FreeMarker, though;
it's based on Jelly. The nice thing about it is apart from that you can test
that no exceptions are thrown while executing the templates (as you
mentioned), you can check the output as well (e.g. when there hasn't
On Wed, Apr 1, 2009 at 12:03 AM, marc marcv...@hotmail.com wrote:
If i turn cookies off, the jsessionid shows up
again for all links generated using a stripes:link tag.
And you'd like to have these gone as well? You do use the session, right?
Then the jsessionid parameter is a (very small)
Does it make any difference whether you name your getter *isApricot*?
On Thu, Mar 19, 2009 at 5:12 PM, Mike McNally emmecin...@gmail.com wrote:
On Thu, Mar 19, 2009 at 11:01 AM, Ben Gunter gunter...@gmail.com wrote:
Do you get the same behavior using both DefaultPopulationStrategy and
Hi Melinda,
I guess that the *fields present*-parameter (_fp) is causing this behaviour
- it contains the names of all of the fields that are used in the current
wizard step.
I haven't been using wizards much, so I'm not sure how you could work around
this. Maybe someone else could shine a light
Hi Dan,
when you do
private Firm firm = (Firm)
getContext().getDataContext().newObject(Firm.class);
firm is being assigned a value as soon as the action bean is instantiated.
That means that Stripes has not had the chance to set a context when you try
to retrieve it.
A number of options to
Hi,
this is normal behaviour when using frameworks that create classes on the
fly - each loaded class takes a part of the permanent heap space (which does
not expand and doesn't reclaim memory after old classes unload). Both
Hibernate (entities) and Stripes-Reload (action beans) redefine classes
Long shot: are you using Stripes 1.5 and declaring
BeforeAfterMethodInterceptor inside web.xml under the key
Interceptor.Classes?
On Fri, Feb 20, 2009 at 9:23 PM, zkn z...@abv.bg wrote:
Hi,
in my application all methods annotated with @Before ot @After are being
executed twice. The full log
You have to make sure that your event getter (on SwitchEventActionBean)
returns the current project. You can do this in a before method (a method
that's marked with @Before) or in a pre-action, if you have any.
Regards,
Levi
On Sat, Feb 14, 2009 at 4:16 PM, Eric Palmitesta
Since 1.5, the BeforeAfterInterceptor is a core interceptor (you can
configure those with the CoreInterceptor.Classes parameter). You don't have
to configure it as a regular interceptor anymore. In fact, I think that was
the whole point of making it a core interceptor - so that you don't have to
You can access the HTTP session from within action beans by doing the
following:
getContext().getRequest().getSession(false)
It will return null if there's no session (yet). You can also pass true as
parameter or use the getSession() method which will create a session if it
isn't available. On
I've been thinking about this lately - an @AutoloadOrder(int value) would
solve this quite nicely (and has the added benefit of being so generic that
it could be used for other autoloaded, ordered configurable components as
well).
Levi
On Wed, Dec 3, 2008 at 5:46 PM, Nathan Maves [EMAIL
-guicer plugin - that interceptor doesn't have any
dependencies; all it cares for is that it's the first one to run.
Levi
On Wed, Dec 3, 2008 at 8:32 PM, Oscar Westra van Holthe - Kind
[EMAIL PROTECTED] wrote:
On 03-12-2008 at 19:54, Levi Hoogenberg wrote:
I've been thinking about this lately
Something that may or may not be a disadvantage of using Google Charts is
that you have to be on line to be able to use it.
On Mon, Dec 1, 2008 at 5:22 PM, Philip Constantinou
[EMAIL PROTECTED] wrote:
One other option is Google Charts:
http://code.google.com/apis/chart/
I haven't done more
I think the problem is that your container does not evaluate EL (your ${
candidate.id}). Are you by any chance using a web.xml that targets version
2.3 of the servlet spec?
On Thu, Nov 20, 2008 at 11:15 PM, ping lu [EMAIL PROTECTED] wrote:
Hi, all,
while playing with Stripes indexed check
Though there is a difference between Stripes' wiring and Spring's: if you
have the same dependency in a class and its superclass, Stripes will not
inject the superclass. (I'm talking about field injection here.)
On Mon, Nov 17, 2008 at 5:50 AM, Gregg Bolinger
[EMAIL PROTECTED]wrote:
The only
You might want to look into type converters (see
http://www.stripesframework.org/display/stripes/Validation+Reference, the
Type Conversion section). That way, the ID (or any other unique field that
you choose) is indeed enough and you can have a setter that accepts the
entity.
I believe that the
Could you give an example of a limitation you ran into? I've read your mail
a couple of times now and I don't understand what a context object would
add. (It could be the type parameter for the ManageEntityActionBean, but I'm
not sure.)
Another question: what functionalities would this
Alright, then I see your point.
I don't know how many entities you would like to manage, but creating a
subclass per entity would work around it, of course (not that you hadn't
thought of that yourself). That'd be very KISS as well - I get
the impression that your current approach could be doing
Exactly. (I'd write getProperty a bit differently though.) You could call
setBootstrapPropertyResolver from the constructor or from within init().
On Fri, Oct 31, 2008 at 9:32 AM, dbrownell83 [EMAIL PROTECTED]wrote:
Thanks for the help on this one. It looks like I might eventually get my
app
Or you could subclass FreemarkerServlet and test wether the response has
been forwarded or not. The code inside doGet/doPost would look something
like
if (request.getAttribute(javax.servlet.forward.servlet_path) == null)) {
response.sendError(HttpServletResponse.SC_NOT_FOUND);
} else {
Hi,
I'm having a feature request and before filing an issue, I would like to
have other users' opinions on its necessity.
Anyway, in clean URLs you can use defaults for parameter values:
@UrlBinding(/members/{page=1})
This default value helps when building an URL (e.g. with the stripes:url and
And if you use Spring, you can use their request context holder (
http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/context/request/RequestContextHolder.html).
I tend to pass the current user from my action beans to my services when
needed, though.
On Mon, Oct 6,
There's no stopping people from replying to your e-mail, no :)
On Wed, Oct 1, 2008 at 12:53 AM, smox [EMAIL PROTECTED] wrote:
Is there a way to close a thread when it has become answered?
-
This SF.Net email is sponsored
Depending on your target audience, setting a padding-left/-right on option
tags works in Firefox (but not in Safari or IE6 - IE7 I can't tell at the
moment).
On Wed, Aug 27, 2008 at 2:56 PM, Eirik Lied [EMAIL PROTECTED] wrote:
Hello.
I have been using stripes:option and
Or you could use the optgroup tag, if that suits your situation.
On Wed, Aug 27, 2008 at 3:29 PM, Levi Hoogenberg
[EMAIL PROTECTED]wrote:
Depending on your target audience, setting a padding-left/-right on option
tags works in Firefox (but not in Safari or IE6 - IE7 I can't tell at the
moment
Followup: Stripes *does* process the validation annotations, but adds
validation errors under the key preferences.PAGE_SIZE instead of the
expected preferences[PAGE_SIZE].
On Mon, Aug 18, 2008 at 10:38 PM, Levi Hoogenberg
[EMAIL PROTECTED]wrote:
Hi,
today I've been binding into a Map
?
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Levi
Hoogenberg
*Sent:* Tuesday, August 19, 2008 2:27 AM
*To:* Stripes Users List
*Subject:* Re: [Stripes-users] maps and @ValidateNestedProperties
Followup: Stripes *does* process the validation annotations, but adds
If
varStatus=loop
is the only attribute you're passing to c:forEach, then you're missing some
attributes: either begin/end or items. The 'var' attribute is optional, but
can be handy.
On Mon, Aug 18, 2008 at 5:56 PM, Stripes-payal [EMAIL PROTECTED] wrote:
Thanks for the reply...
has one
I must say that that it's a very cool idea to rewrite framework classes to
avoid having to patch them. Even more fine-grained than an AOP approach.
@Freddy: I haven't had time to look at the source code, but how will
stripes-reload handle session-scoped action beans? I figured that that would
be
On Sun, Aug 10, 2008 at 9:54 PM, Gregg Bolinger
[EMAIL PROTECTED]wrote:
IDE's refactor you know. So this shouldn't be a problem. Plus, how
often do you really move a class around?
They do? That sounds great, I really should look into that ;)
I do tend to rename some of my classes, yes - I
You could try a redirect resolution?
On Mon, Aug 11, 2008 at 9:42 PM, Stripes-payal [EMAIL PROTECTED] wrote:
hi,
i have a page called test.jsp having submit button and text fields,
related
action class.
after subbmiting the page i forward it to the same page using forward
Resolution.
it
Either using OnwardResolution#set/addParameter, or (it's more likely that
you mean this) using the flash scope. See
http://stripesframework.org/display/stripes/State+Management.
On Mon, Aug 11, 2008 at 10:01 PM, Stripes-payal [EMAIL PROTECTED] wrote:
thanks for y'r replies,
one more thing How
The validation errors are stored in the action bean context, so a simple
c:if test=${not action.context.validationErrors.empty
!-- display errors --
/c:if
should do the trick. Alternatively, you could use the stripes:errors tag
with nested errors-header, errors-footer and individual-error
On Sun, Aug 10, 2008 at 9:32 PM, Gregg Bolinger
[EMAIL PROTECTED]wrote:
Well, there are a couple of things here.
First, you should really use the beanclass attribute of the s:form tag.
Stripes will then determine your action for you. That way, if you
decide to change your UrlBinding you
Well, does StripesResources.properties contain the key?
On Fri, Aug 8, 2008 at 7:22 PM, Stripes-payal [EMAIL PROTECTED] wrote:
I added the annotaion validation in bean class
say:
@Validate(required=true)
private String username;
but when i try executing my jsp,with username as a blank
Ah! What happens when you move it to WEB-INF/classes?
On Fri, Aug 8, 2008 at 10:55 PM, Stripes-payal [EMAIL PROTECTED] wrote:
Yes ,I checked property file it has the key and value both...
I am using eclipse and keeps the property file in WEB_INF lib
levi_h wrote:
Well, does
You have two options (depending on your servlet container, though):
- you can do a meta refresh or a c:redirect from your actual home page;
- you can change your welcome file to Home.action - for this to work, you'll
have to create a file named Home.action, which can be empty.
Levi
On Wed,
Well, that makes it a no-brainer then... but is this since Tomcat 6, or has
it always worked that way?
On Wed, Aug 6, 2008 at 7:54 PM, Oscar Westra van Holthe - Kind
[EMAIL PROTECTED] wrote:
On 06-08-2008 at 14:37, Levi Hoogenberg wrote:
You have two options (depending on your servlet
You could also take a look at the expression property of @Validate:
http://stripesframework.org/display/stripes/[EMAIL
PROTECTED](expression%3D%22%24\%22)
On Sat, Jul 26, 2008 at 6:56 AM, Brian Wawok [EMAIL PROTECTED] wrote:
Ah good Idea, I didn't think about working backwards and removing the
You mention that it took some time to get the deployer JARs right - I'm not
exactly sure what you mean by that, but I do think that that's the source of
your problems. If you download a Tomcat ZIP from tomcat.apache.org, extract
it, and deploy the quickstart application that comes with Stripes (by
Hi Freddy,
the response header seems to be the most suitable option. Setting it should
be as easy as
return new ForwardResolution(/path/to/your/page.jsp) {
@Override
public void execute(HttpServletRequest request,
HttpServletResponse response) throws
When you define an Interceptor, Stripes passes an ExecutionContext. This
object contains the resolution. I'm not sure, but I don't think that the
BeforeAfterMethodInterceptor hands @Before/@After methods the execution
context (it would be nice, though, to have the interceptor support an
optional
that intercepts like this:
@Before(LifecycleStage.ResolutionExecution)
Will the method be called when there's a binding/validation error, or is it
totally skipped?
--
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Levi
Hoogenberg
*Sent
Something else that might work for you is using validation expressions:
@Validate(expression = (not includeName) or (includeName ne null))
public String getName() {return name;}
(See http://mc4j.org/confluence/display/stripes/Validation+Reference)
The disadvantage, however, is that you have to
Then you'd probably want to use @DontBind rather than @DontValidate
(see http://mc4j.org/jira/browse/STS-288).
On Thu, May 29, 2008 at 11:38 AM, SivaKumarl
[EMAIL PROTECTED] wrote:
Hi Friends,
I have a field with int datatype in action,while i submitting form with
the string value its
I'm sorry, the second one is rubbish, of course.
On Thu, May 22, 2008 at 1:45 PM, Levi Hoogenberg
[EMAIL PROTECTED] wrote:
Probably something like
((no1 eq 1) or (no2 eq 2)) ? (this gt 1) : (this ge 1)
or, if that won't work for some reason,
(((no1 eq 1) or (no2 eq 2)) and (this gt 1
Probably something like
((no1 eq 1) or (no2 eq 2)) ? (this gt 1) : (this ge 1)
or, if that won't work for some reason,
(((no1 eq 1) or (no2 eq 2)) and (this gt 1)) or (this ge 1)
On Thu, May 22, 2008 at 1:00 PM, SivaKumarl
[EMAIL PROTECTED] wrote:
Hi friends,
I want to validate a
Hi,
a possible alternative could be to roll your own and still encode
URLs, but only for a subset of the characters that URLEncoder escapes.
Kind regards,
Levi
We have an open issue requesting that clean URL parameters be URL-encoded.
http://stripesframework.org/jira/browse/STS-559
This
72 matches
Mail list logo