l a custom message for
java.lang.Integer another message and so on and if no custom message is found
the default is showed.
-Mensaje original-
De: Alfredo Manuel Osorio Martinez
Enviado el: Thursday, May 23, 2013 8:50 AM
Para: Struts Users Mailing List
Asunto: RE: Custom error message per
}
return "";
}
}
-Mensaje original-
De: Lukasz Lenart [mailto:lukaszlen...@apache.org]
Enviado el: Thursday, May 23, 2013 8:01 AM
Para: Struts Users Mailing List
Asunto: Re: Custom error message per converter
Could you show source code of your DateConverter?
Regards
Hello,
Is it possible to configure a custom error message per converter?
For example I have this in my xwork-conversion.properties:
java.util.Date=mx.com.afirme.midas2.converter.DateConverter
Whenever a Date conversion fails in any action I'd like to show a message like
this:
Incorrect format,
: Redirect and pass as a parameter the original url from an
Interceptor
On Thu, 2011-03-17 at 12:48 -0600, Alfredo Manuel Osorio Martinez wrote:
> I am implementing a Login interceptor which needs to redirect to an
> action to first authenticate the user. The problem is that I want to
>
I am implementing a Login interceptor which needs to redirect to an
action to first authenticate the user. The problem is that I want to
send as a parameter to that action the original url, the one that the
user was trying to get before the redirect to the login page.
How can I achieve that?
What's the best approach to populate a select box dynamically?
Imagine I need select boxes for the following fields (vehicle):
Make
Model
Year
Each of them are linked. If I select Make model should refresh and so
for model and year.
I was thinking about using tag to render the outp
-Mensaje original-
De: Alfredo Manuel Osorio Martinez
Enviado el: Thursday, January 20, 2011 9:05 AM
Para: 'Struts Users Mailing List'
Asunto: RE: Create/Update with nested domain objects
Any thoughts on this? Please...
Alfredo Osorio
-Mensaje original-
De: Alfredo Man
Any thoughts on this? Please...
Alfredo Osorio
-Mensaje original-
De: Alfredo Manuel Osorio Martinez
Enviado el: Tuesday, January 18, 2011 10:15 AM
Para: Struts Users Mailing List
Asunto: Create/Update with nested domain objects
Hello,
I have seen examples that show how to do CRUD
What about iterating the map and put each attribute in the HttpRequest.
Something like this:
Map myMap = getMyMap();
Set> entrySet = myMap.entrySet();
for (Map.Entry entry : myMap.entrySet()) {
request.setAttribute(entry.getKey(), entry.getValue());
Hello,
I have seen examples that show how to do CRUD with one domain object
without nested domain objects (just primitives). Giving the following
example:
@Entity
public class Person implements Serializable {
@Id
private Long id;
private String name;
private Intege
. JSR303 is an annotations based
validation
API and you could certainly add your own JSR303Interceptor at the
appropriate point in the stack.
On Mon, Dec 20, 2010 at 10:41 AM, Alfredo Manuel Osorio Martinez <
alfredo.oso...@afirme.com> wrote:
> Hello,
>
> Does Struts 2 have support f
Hello,
Does Struts 2 have support for JSR-303 Bean Validation?
Alfredo Osorio
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
Try replacing %{partnerId} with %{#session.partnerId}
Alfredo Osorio
-Mensaje original-
De: Greg Akins [mailto:angryg...@gmail.com]
Enviado el: Monday, December 06, 2010 11:16 AM
Para: user@struts.apache.org
Asunto: Question about OGNL / EL
This might not be specifically a OGNL question
Manuel Osorio Martinez
Enviado el: Monday, November 22, 2010 2:03 PM
Para: Struts Users Mailing List
Asunto: ActionErrors and ActionMessages not included in the result
generated by org.apache.struts2.json.JSONResult
Hello,
I'm trying to generate a json output with the JSONResult but the pr
Hello,
I'm trying to generate a json output with the JSONResult but the problem
is that actionMessages and actionErrors properties are not being
included.
I also tried to pass this parameter to the interceptor but it didn't
work:
actionErro
2010 1:54 PM, "Alfredo Manuel Osorio Martinez" <
alfredo.oso...@afirme.com> wrote:
> Hello Dave and thanks for your response,
>
> I think I didn't explain myself what I tried to say is whenever you
> submit to the action that will process the input data that action
M
Para: Struts Users Mailing List
Asunto: Re: Have you ever used InputConfig annotation?
On Mon, Nov 8, 2010 at 10:07 AM, Alfredo Manuel Osorio Martinez wrote:
> Are you saying that input methods shouldn't have any logic in and just
> return the string of the result. If that's the ca
then mark method with InputConfig annotation.
>
> 2010/11/5 Alfredo Manuel Osorio Martinez :
>> Hello,
>>
>> By looking at DefaultWorkflowInterceptor I saw an annotation that I
>> didn't know existed. I am talking about:
>>
>> com.opensymphony.xwork2.in
Hello,
By looking at DefaultWorkflowInterceptor I saw an annotation that I
didn't know existed. I am talking about:
com.opensymphony.xwork2.interceptor.annotations.InputConfig
I think it can be used for input repopulation and can be used as an
alternative to Preparable and .
What surprised me w
h interceptor do you mean? ChainingInterceptor?
I meant implementing a new Interceptor from scratch. Although this
issue are related to the chainInterceptor.
What interceptor stack are you using? Does your request fire
chainInterceptor?
2010/10/29 Alfredo Manuel Osorio Martinez :
--
Mauri
Which interceptor do you mean? ChainingInterceptor?
Alfredo Osorio
-Mensaje original-
De: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com]
Enviado el: Thursday, October 28, 2010 4:25 PM
Para: Struts Users Mailing List
Asunto: Re: Struts 2 s:action tag doesn't render action errors
ontrol; I don't see that you're saving much... I still believe
Preparable is a cleaner choice.
You might be able to configure the action in such a way that the
actionErrors property is filled off the value stack, but ew.
Dave
On Thursday, October 28, 2010, Alfredo Manuel Osorio Martinez
w
ag as a solution to this problem in
general; I don't think it's a good idea, and introduces more issues
than it solves, particularly since better alternatives exist.
Dave
On Thu, Oct 28, 2010 at 1:35 PM, Alfredo Manuel Osorio Martinez
wrote:
> For example I have the following:
For example I have the following:
struts.xml:
/jsp/personForm.jsp
/jsp/successSave.jsp
/jsp/personForm.jsp
/jsp/countries.jsp
personForm.jsp:
<%@ taglib prefix="s" uri="/struts-tags" %>
CountriesAction.java:
public cla
24 matches
Mail list logo