Hi,
I tried to migrate a site from struts 1 to struts 2. I finally gave up very
quiclky due to the following.
1) Struts 2 throws a hole bunch of null pointer exceptions as soon as you try
using domain objects (which they recommand).
2) To limit the number null exceptions you'll get, you need to
] On Behalf Of Poitras Christian
Sent: Wednesday, March 26, 2008 5:43 PM
To: 'Stripes Users List'
Subject: Re: [Stripes-users] Stripes vs. Struts 2
Hi,
I tried to migrate a site from struts 1 to struts 2. I finally gave up very
quiclky due to the following.
1) Struts 2 throws a hole bun
Is the listener registered in web.xml?
Christian
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Farouk Alhassan
Sent: Monday, April 07, 2008 4:55 PM
To: Stripes Users List
Subject: Re: [Stripes-users] Accessing HttpSession stripes(method attached)
I've tried accessing an attribute set by one of my session listener. It works
well. I have revision 868.
You can checkout stripes latest version from svn and see if it's related to
stripes.
Christian
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf O
Hi,
Is there only one converter per request?
Or do converters get shared by some request?
Christian
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still ti
To answer my own question, when DefaultActionBeanPropertyBinder and
DefaultTypeConverterFactory are used, a new instance of converter is created
for every parameter to convert.
Christian
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Poitras
Just to mention, I've used the idea in Ben's link.
http://www.telio.be/blog/2006/01/05/ajax-upload-progress-monitor-for-commons-fileupload/
Christian.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zenin, Ruslan
Sent: Monday, April 28, 2008 9:00 A
I've coded something last friday.
The best advantage of my method is that it will surely work if javascript is
disabled (althought, progress bar is not shown).
Since there is no frame stuff, you can return a Resolution from your handler
and it works without any twist in action bean. You only need
Can you use javascript?
Or do you really need to pass through an action bean?
Christian
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SivaKumarl
Sent: Saturday, April 26, 2008 2:05 AM
To: stripes-users@lists.sourceforge.net
Subject: [Stripes-users] his
Tim, I've already programmed something close to this.
It's an interceptor that returns a different resolution if handle errors method
returns a Resolution.
Of course, you can also change validation errors during method execution if you
like.
So you can have things like:
@HandlesErrors publi
Hi,
When my action bean uses @Wizard and I return a RedirectResolution from and
event, it tries to call the same event again causing an exception. Removing
@Wizard prevents the exception.
return new RedirectResolution(this.getClass(), "done").flash(this);
net.sourceforge.stripes.exception.Stri
Done this.
I've attached the code. Once update is called, update is called again on the
redirect.
Here's the logs beginning when update is called.
2008-05-13 09:59:00,383 - TRACE - logEvent - update -
ca.qc.ircm.proteus.web.user.result.UntreatedRelationAction - (poitrac[P:1]) -
107
2008-05-13
D] [mailto:[EMAIL PROTECTED] On Behalf Of Poitras Christian
Sent: Tuesday, May 13, 2008 10:00 AM
To: 'Stripes Users List'
Subject: Re: [Stripes-users] RedirectResolution calls wrong event with wrizard
Done this.
I've attached the code. Once update is called, update is called again on t
27;s ActionBeanContext in
DispatchHelper's resolveHandler method.
Path is included in email.
Christian
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Poitras Christian
Sent: Tuesday, May 13, 2008 11:08 AM
To: 'Stripes Users List'
Subject
Christian, please update and try this again. We made some changes to how
flashed beans are handled that should fix both of the event-related problems
you reported recently.
-Ben
Poitras Christian wrote:
Hi,
When my action bean uses @Wizard and I return a RedirectResolution from and
event, it
Would that be a problem to encode urls? What are the downsides?
Christian
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Gunter
Sent: Friday, May 16, 2008 11:40 AM
To: Stripes Users List
Subject: [Stripes-users] More feedback needed
We have an
Hi,
I have an action bean with a field
This one is doesn't work.
public class ReadRelationVisibilityAction extends
BaseActionBean {
private Rel relation;
When I pass a value for relation, it doesn't get converted by my
RelationConverter which is
public class RelationConverter implements Ty
:689)
at java.lang.Thread.run(Thread.java:595)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Poitras Christian
Sent: Monday, May 26, 2008 5:41 PM
To: 'Stripes Users List'
Subject: [Stripes-users] Converter not used for wilcard types
H
card types
Christian,
Can you log a JIRA issue for this? I'll try to look into it later today.
Aaron
Poitras Christian wrote:
> Hi,
>
> I have an action bean with a field
> This one is doesn't work.
> public class ReadRelationVisibilityAction extends
> BaseActionBean {
&g
Which version of Stripes are you using?
These have changed a lot from 1.4.3 to 1.5. I think the behaviour in 1.5 is
more natural.
In Stripes 1.5, @DontValidate will not run validations during binding.
Take a look at this thread :
http://article.gmane.org/gmane.comp.java.stripes.user/6269
Chris
If this doesn't happen to often, make your action beans implement
ValidationErrorHandler. You can then remove duplicates in ValidationErrors.
http://stripes.sourceforge.net/docs/current/javadoc/
If this happens often, you can use an interceptor that will remove any errors
by first for each key/
>From what I read in the s:label tag doc
>(http://stripes.sourceforge.net/docs/current/taglib/),
I doubt you want to put s:text in s:label since s:text could be skipped by the
content of the for attribute.
The value of the label is set by searching for a non-null value in the
following order:
What version are you using?
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Newman, John W
Sent: Monday, July 07, 2008 4:53 PM
To: Stripes Users List
Subject: Re: [Stripes-users] @DefaultHandler tag just stopped working...
Did something here change
I've just updated documentation for @Session plugin on Stripes web site.
The documentation now contains information on the new interceptor I've work on
for the session plugin. The new version is available in Stripes Stuff project.
Christian
From: [EMAIL PROTECTE
Hi Farouk,
The source link was not intuitive...
I've updated the source code link so that it shows the svn command to use.
Christian
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Porter
Sent: Monday, August 04, 2008 2:19 AM
To: Stripes Users Lis
farouk alhassan
Sent: Monday, August 04, 2008 3:11 PM
To: Stripes Users List
Subject: Re: [Stripes-users] Where is stripes session plugin
thanks but do I have to check it out and compile or there is a compiled
version. Dont mind doing it tho
--- On Mon, 8/4/08, Poitras Christian <[EMAIL PROTE
Are you using tag to get http://host/foo?
Christian
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joel Truher
Sent: Wednesday, August 13, 2008 1:59 PM
To: Stripes Users List
Subject: [Stripes-users] UrlBinding => sourcePage?
Hi,
Apologies in advance
s this way. I'm just having trouble combining that idea with bound Urls.
Is there a "standard"
way to do it?
On Wed, Aug 13, 2008 at 11:24 AM, Poitras Christian <[EMAIL PROTECTED]> wrote:
> Are you using tag to get http://host/foo?
>
> Christian
>
> -
If i'm guessing correctly, you're currently trying to validate the PAGE_SIZE
property of a java.lang.String. This is incorrect.
ValidateNestedProperties is used to validate sub properties of an object (if
indexed, the ? in List, if mapped the ? in Map).
Christian
___
Can you explain what you are trying to validate? I'll try to help you write an
appropriate validate annotation.
Christian
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Poitras Christian
Sent: Tuesday, August 19, 2008 12:39 PM
To: 'Str
Map map;
Again, this works partially. So I'm not sure that the annotations are the
problem, but please feel free to educate me :)
On Tue, Aug 19, 2008 at 8:44 PM, Poitras Christian <[EMAIL
PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:
Can you explain what you are trying to vali
You might need to change 3 things.
First, don't use tag in home.jsp unless you really want
to instantiate another action bean in the jsp. Your HomeActionBean will be
available in the jsp as a request attribute under ${actionBean}.
Second, make sure stripes handles the "/" url. You will need to
You should use
Note that you should replace '.friendlyCode' by the property you want to set.
Christian
-Original Message-
From: Tiffany [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2008 7:42 AM
To: stripes-users@lists.sourceforge.net
Subject: [Stripes-users] I need help with
Could this be because you use set instead of list?
Stripes is not supposed to support set...
Christian
From: Newman, John W [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2008 2:13 PM
To: Stripes Users List
Subject: Re: [Stripes-users] Collections, textarea
Cheers,
Freddy
http://www.stripesbook.com
On Thu, 2 Oct 2008 15:13:29 -0400, "Poitras Christian"
<[EMAIL PROTECTED]> said:
> Could this be because you use set instead of list?
> Stripes is not supposed to support set...
>
> Christian
>
> _
I think the only way to acheive this is by using a validation method.
@ValidationMethod
public void validateMyMap() {
for (Enum e : myEnum) {
if (!myMap.contains(e)) {
context.getValidationErrors().add("myMap[" + e + "]", new
LocalizableError(".myMap." + e + ".invalidNumber"));
}
You can make your action bean implement ValidationErrorHandler.
Then simply write this in your action bean.
public Resolution handleValidationErrors(ValidationErrors errors) {
errors.clear();
errors.addGlobalError(new LocalizableError("errorMessage"));
return context.getSourcePageResol
If you want to submit all fields, you should use a submit button.
If you really need to use a link, use javascript to do a post request instead
of a get. Then you'll just have to add all fields using either Prototype or
jQuery form.serialize() method.
Christian
-Original Message-
From
Did you create the
net.sourceforge.stripes.examples.quickstart.CalculatorActionBean class (it's
not included with Stripes)?
If so, did you include
ActionResolver.Packages
net.sourceforge.stripes.examples
in the St
use is used
in the current quickstart.
See it at http://www.stripesframework.org/display/stripes/Quick+Start+Guide
Christian
-Original Message-
From: Poitras Christian [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2008 4:39 PM
To: 'Stripes Users List'
Subject: Re: [Stripes
I know Eclipse europa shows these errors very often when validating pages with
el expression.
I've never been able to find exactly what type of expression does this, but
${pageContext.request.contextPath} gives me a warning in Eclispe europa.
I suggest you investigate further and report this bug
I believe the error is caused by the impossibility to convert "new" and
"existing" to an instance of Client. Do you have an appropriate converter? Or
do you really want "new" and "existing" as a Client?
Here's your code that breaks :
I don't known why you have no error messages. The only think I
You can use DynamicMappingFilter instead of StripesDispatcher. Then you can
define any UrlBinding.
Take note that you still need to declare StripesFilter (for Stripes settings)
when using DynamicMappingFilter.
Dynamically maps URLs to ActionBeans.
Stripes Dynamic Mapping Fil
Is it possible to specify an order for custom validation methods to be called?
Christian
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK
Personnaly, I would prefer to clearly separate model from Stripes.
project-name
-- models
- User.java
-- stripes-app
controllers
--- LoginAction.java
views
--- Login.jsp
And if you want to put your JSPs in WEB-INF, it would look like.
project-name
-- models
- User.java
--
Hi,
I have multiple validation methods that needs to be executed before the event
executes.
I would like to perform all custom validations even if other custom validations
failed. I would also like my custom validation to be called only if binding
succeeded.
When I try to execute the event, th
If you use @StrictBinding, check if you have a @Validate tag for values field.
You can also check if you have a setter for values.
Christian
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2008 10:11 AM
To: Stripes Users List
Subject:
The correct syntax is {event}.
Christian.
From: Jeroen van Wilgenburg [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 22, 2008 11:11 AM
To: stripes-users@lists.sourceforge.net
Subject: [Stripes-users] {$event} cannot be the first element in UrlBinding
Hi,
I'm
It seems a problem with the EL expression. If I'm right, your EL expression
${candidate.id} never gets evaluated even with plain HTML:
So the problem is not Stripes, but your container.
Unfortunetly, I have no idea of why this expression doesn't get evaluated when
other expression are evaluated.
Can you check what happens if you try scripting?
Christian
From: ping lu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2008 4:34 PM
To: user stripes
Subject: Re: [Stripes-users] issues with stripes indexed check box
Christian,
you are exactly right.
I
Hi,
I have experienced problems with events when I had a property with the same
name as an event.
I can't remember what happened back then, but I might been what you describe.
Christian
-Original Message-
From: KenBarnesJr [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2008 8:10
Is there a reason why you need to keep the indexes?
I may miss something, but using checkbox and indexes does not seem to be a good
implementation since, upon submission, unchecked checkboxes are not submitted...
Christian
-Original Message-
From: Nathan Maves [mailto:nathan.ma...@gmail.
The s:param seems wrong.
It should be
Christian
-Original Message-
From: Richard Hauswald [mailto:richard.hausw...@googlemail.com]
Sent: Friday, February 20, 2009 11:27 AM
To: Stripes Users List
Subject: [Stripes-users] Encryption of nested ids within forEach
Hello,
I want to encrypt th
Hi,
1) You can use @Validate(encrypted=true) in your first action bean to encrypt
user.id and user.email fields. You can also use a suctom formatter and
converter to use your secret code mechanism.
If you user UrlBinding("/somelink.action/{user.id}/{user.email}"), it will hide
the parameter nam
Hi,
You have a many possibilities. But unless you put the ActionBean in session
(@SessionScope), a new instance will be created for each request.
1) Use @SessionScope. See
http://www.stripesframework.org/display/stripes/annotation+reference#annotationreferen...@sessionscope
Only one instance of
Hi,
Personally, I use Spring as my DAO framework. So it seems logical to me to
initialize iBATIS in Spring. This allows me to initialize the database either
in a web app or on a local app in the same way.
If you want to initialize iBATIS in a web app, I would prefer to use a
SerlvetContextList
Hi Daniil,
There is no simple way of accessing session in a TypeConverter. I've achieved
this by using Spring with a session bean. Unfortunetly, I've been forced to do
some hacking with Spring so it's context is saved in a static variable.
One you do this hack, simply have a TypeConverterFactory
Another way would be to link session to a ThreadLocal inside an interceptor.
Christian
From: Daniil Sosonkin [mailto:dan...@orbisfn.com]
Sent: Monday, June 08, 2009 10:30 AM
To: Stripes Users List
Subject: Re: [Stripes-users] access session from a TypeConverter
T
If you have a property and a method with name "itemNumMfr", this sort of
messages can appear.
Christian
-Original Message-
From: Savoy, Melinda [mailto:melindasa...@texashealth.org]
Sent: Friday, June 19, 2009 8:03 AM
To: 'Stripes Users List'
Subject: Re: [Stripes-users] BeanFirstPopulat
Hi,
Try to create a converter/formatter for your enum and make sure it is in found
by Stripes. Then you can convert/format your enum with ordinal instead of name.
Christian
-Original Message-
From: massive.boisson [mailto:massive.bois...@gmail.com]
Sent: Monday, August 03, 2009 4:47 PM
Full details are here :
http://www.stripesframework.org/display/stripes/Save+ActionBean+fields+in+session
You can remove the object from session either by setting it to null or removing
it from session by it's key.
Remove objects from session
Just calling session.removeAttribute(key) will not
Is it possible that your population strategy is set to
net.sourceforge.stripes.tag.DefaultPopulationStrategy (default value)?
If so, I suggest you use
net.sourceforge.stripes.tag.BeanFirstPopulationStrategy.
You can add this to your web.xml StripesFilter configuration:
PopulationStrategy.Clas
Hi Swarna,
There are two problems with your approach.
First, @Session cannot be used with checkboxes since unchecked checkboxes are
not submitted when not checked. It may work, but it's not a supported feature
since it is very likely to fail.
Second, if a field with the same name is submitted as
Another option is to extend AnnotatedClassActionResolver or
NameBasedActionResolver and save the submitted event name in request/session.
Christian
-Original Message-
From: DaveMark [mailto:djdavem...@yahoo.co.uk]
Sent: Friday, January 08, 2010 9:20 AM
To: stripes-users@lists.sourcefor
Check "CoreInterceptor.Classes" init-param in stripes configuration reference
page http://www.stripesframework.org/display/stripes/Configuration+Reference.
Here org.stripesstuff.plugin.waitpage.WaitPageInterceptor will be executed
first.
CoreInterceptor.Classes
org.stripesstuff.plugin.wait
Hi Sadly,
You can use ${fn:length(actionBean.x)} to obtain the length of an array or
collection.
All you need is import JSTL functions in your JSP.
Christian
From: Aaron Stromas [mailto:passog...@gmail.com]
Sent: Monday, April 26, 2010 3:21 PM
To: Stripes Users
Hi Laurent,
I've looked at the source code of SecurityInterceptor.
As long as binding does not generate an error, CustomValidation step is
executed prior to checking access.
After validation, access is checked only if CustomValidation step generates an
error.
On EventHandling step, access is ch
What you are experiencing is exactly was is obtained with Firefox on any web
site with a file input.
The only you can obtain a similar behaviour to what you want is by saving the
file on the server and show that a file was already uploaded and that the
server will use that file if no other file
Hi,
I didn't read everything in this post since it's very long, but I will repeat
what has been said in the MyBatis mail list. I think it might help to have
additional ideas.
The MyBatis developers agreed to add more developers in the framework. That was
one reason for moving from Apache to Goo
Aaron, that's great!
I've also documented StripesStuff's plugins for @Session and @WaitPage on the
Stripes site.
http://www.stripesframework.org/display/stripes/Save+ActionBean+fields+in+session
http://www.stripesframework.org/display/stripes/Wait+Page+for+Long+Events
Christian
-Message d'o
You may need to convert the result of CryptoUtil.encrypt() to base64 before
adding the parameter.
Christian
De : Damien Bastin [mailto:banana.ch...@rocketmail.com]
Envoyé : September-16-10 10:12 PM
À : stripes-users@lists.sourceforge.net
Objet : [Stripes-users] MockRoundtrip doesn't work with wi
Thanks!
It would be great to add the solution to the wiki too!
Christian
De : Damien Bastin [mailto:banana.ch...@rocketmail.com]
Envoyé : September-21-10 4:17 AM
À : Stripes Users List
Objet : Re: [Stripes-users] MockRoundtrip doesn't work with wizard action
beans, kinda
Thanks for your suggest
A problem with the Spring approach is that parameter names are not accessible
by reflection.
The consequence is that if you have method like
public void substract(int param1, int param2)
It will be difficult to pass the parameters in the right order. You will need
either the source code to find t
l be bound correctly without the need for the annotations.
Or is that what you meant by "you will need the source code"?
Cheers,
Freddy
On Tue, 5 Oct 2010 08:36:43 -0400, "Poitras Christian"
said:
> A problem with the Spring approach is that parameter names are not
> accessi
egards,
>
> --Nikolaos
>
>
>
>
> Evan Leonard wrote:
>> Here's an interesting approach from the waffle framework. It uses
>> annotations, but lists all the parameter names in a single annotation.
>>
>> @ActionMethod(parameters = {"fi
ality.
On Oct 5, 2010, at 2:36 PM, Poitras Christian wrote:
> The downside of using 2 binders is that it's difficult to mix both approach.
>
> Still, it would seem bizarre to have both approach in the same program...
>
> -Message d'origine-
> De : Evan Leona
Hi,
Errors don't survive the redirect. Only messages do.
One thing you can do is to save errors in context.getMessages("errors") and get
them back on the next request. This solutions may force you to create a
subclass of MessagesTag.
Another option is to save errors in flash scope and get them b
Hi Tony,
Personally, I would code the action bean differently making it look almost
exactly like the Spring version.
// ANNOTATIONS, GETTERS AND SETTERS OMITTED FOR BREVITY
class MyActionBean extends BaseActionBean {
private User user;
Resolution deleteUser() {
user
Maybe a better solution is to provide default values as empty/null strings in
the action bean's property.
So if your property look like
private List messages;
Try adding an initialisation method like
@Before(stages=LifecycleStage.BindingAndValidation)
public void populateDefaultMessages() {
Hi,
As a side note, getters and setters are optional for public attributes.
So this kind of validation will work.
@Validate(required=true, on="myEvent")
public String myProperty;
// No getter/setter.
Christian
-Message d'origine-
De : Thomas Menke [mailto:stripe...@cipher-code.de]
Envo
As an additional information, Stripes uses the value of a tag only if it cannot
find a suitable value in your action bean. Since the lidNumber property has a
value of 0, it is considered suitable and value is ignored.
The best way to initialize properties of an ActionBean is with a method
annota
Hi Nathan,
I can commit the change if you plan to build it from source.
Christian
De : Nathan Maves [mailto:nathan.ma...@gmail.com]
Envoyé : October-04-11 12:17 PM
À : Stripes Users List
Objet : [Stripes-users] Stripes Stuff Security manager
Not sure if anyone is still working on this project.
break;
}
}
}
}
On Oct 4, 2011, at 11:28 AM, Poitras Christian wrote:
Hi Nathan,
I can commit the change if you plan to build it from source.
Christian
De : Nathan Maves [mailto:nathan.ma...@gmail.com]
Envo
break;
}
}
}
}
On Oct 4, 2011, at 11:28 AM, Poitras Christian wrote:
Hi Nathan,
I can commit the change if you plan to build it from source.
Christian
De : Nathan Maves [mai
Hi,
I've managed to create a workarounf for this a while ago.
I thought about adding it to StripesStuff project, but it would be better if it
was in Stripes itself.
I think it would be easy to change it so that we won't need to add a "[0]" at
the end of the name element.
In the ActionBean:
7 PM, Mike McNally
mailto:emmecin...@gmail.com>> wrote:
whoa that's awesome ... I'll def. give that a try.
Thanks!!!
On Thu, Jan 12, 2012 at 1:19 PM, Poitras Christian
mailto:christian.poit...@ircm.qc.ca>> wrote:
> Hi,
>
> I've managed to create a workarounf for th
Hi,
To answer to your questions:
1. Yes, it's the intended behaviour. As it's specified in most Stripes' tags
like text
(http://stripes.sourceforge.net/docs/current/taglib/stripes/text.html), Stripes
tag uses the value attribute only if the ActionBean's properties is unavailable.
2. As you can
oyé : February-11-12 7:08 PM
À : Stripes Users List
Objet : Re: [Stripes-users] Stripes:select: force to use the value attribute?
On 02/10/2012 02:55 PM, Poitras Christian wrote:
> Hi,
>
> To answer to your questions:
> 1. Yes, it's the intended behaviour. As i
Hi,
For binding Stripes always binds shortest parameters first.
So if you have these two bindings:
"customer" will always be bound before "customer.name".
This makes sense to me.
Christian
De : Rick Grashel [mailto:rgras...@gmail.com]
Envoyé : April-03-12 8:52 AM
À : Stripes Users List
Objet
StripesStuff 0.3 is available for download from Sourceforge. This is a minor
bug fix release.
Sourceforge download:
https://sourceforge.net/projects/stripes-stuff/files/StripesStuff/
Christian
--
Live Security Virtual Co
inters too.
Christian
-Message d'origine-
De : Nathan Maves [mailto:nathan.ma...@gmail.com]
Envoyé : May-01-12 2:47 PM
À : Stripes Users List
Objet : Re: [Stripes-users] StripesStuff 0.3 released
awesome news thanks!
On Tue, May 1, 2012 at 11:36 AM, Poitras Christian
wrote:
> S
Hi,
You can add this kind of code in your action bean to fake a 404 until the bug
is solved.
if (!context.getRequest().getServletPath().equals("/")) {
return new ErrorResolution(HttpServletResponse.SC_NOT_FOUND);
}
Christian
-Message d'origine-
De : gshegosh
Hi,
I think it's possible even though I didn't try myself.
The trick is to use the "path" attribute to return some content to Ajax to
indicate that the event is currently being executed.
This path should also return validation errors so that your Ajax code can
update the page and show the error
Hi,
I usually use @Before(stages=LifecycleStage.ResolutionExecution) to populate
the values that will appear in a select.
That way, my values are always present even if the validation fails and my
handler is not invoked.
Christian
De : Aaron Stromas [mailto:passog...@gmail.com]
Envoyé : Augus
Hi,
I don't think it's currently possible for @WaitPage to run on multiple server.
It was not programmed to support a multi-server environment.
I don't think it can support sticky sessions right now, but it may be possible
to change the code to make it work.
The best thing you can do is look at
Hi,
What is the method that seems to be the problem?
If it's the addProduct method, then something is wrong in your code sample
because you cannot redirect to a resource under the WEB-INF folder. Only
Forwards are allowed.
public Resolution addProduct() {
// Removed irrelevant code.
Hi,
Maybe the Interceptors are not run for JSPs because it's not an ActionBean
instance. I guess most lifecycle stages are skipped because they simply don't
make sense.
In such a case, you may have better luck using the RequestInit and
RequestComplete lifecycle stages.
Christian
De : Marcus K
Hi,
Try to call super.init(configuration) here:
public void init(Configuration configuration) throws Exception {
super.init(configuration); }
Christian
De : Venkat Ravuri [mailto:ravuri.ven...@gmail.com]
Envoyé : February-11-13 6:41 PM
À : stripes-users@lists.sourceforge.net
Objet : [Stripes-us
Hi,
FlashScope is meant to be used for the Redirect-After-Post pattern, basically :
1) ActionBean changes something on the server (usually database).
2) ActionBean redirects to another/same ActionBean to prevent double submit if
user press refresh. Current ActionBean wants to save information for
Hi,
Can you post you JSP page and ActionBean? That will help to find the problem.
Christian
-Message d'origine-
De : - [mailto:grandebu...@gmail.com]
Envoyé : March-05-13 9:17 AM
À : Stripes Users List
Objet : Re: [Stripes-users] Encrypted field by stripes
Can someone help me with a so
1 - 100 of 112 matches
Mail list logo