2 files register.jsp in trunk/struts2examples/message_resource

2013-10-29 Thread Chris
Hello, About asf/struts/sandbox/trunk/struts2examples/message_resource : There are two files register.jsp in the message_resource sample https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2examples/message_resource/src/main/resources/org/apache/struts/register.jsp https://svn.apache.o

Re: CodeBehind @ParentPackage annotation seems to not work in struts 2.3.15.1

2013-10-29 Thread Lukasz Lenart
2013/10/29 Greuel, Jim : > Our real app has numerous cases where the URL namespace doesn't match the > Java package structure. I was hoping we could make this work without > restructuring the application and/or modifying URLs. Is this something > that is fixable, i.e., should I submit a jira tick

Re: CodeBehind @ParentPackage annotation seems to not work in struts 2.3.15.1

2013-10-29 Thread Greuel, Jim
Our real app has numerous cases where the URL namespace doesn't match the Java package structure. I was hoping we could make this work without restructuring the application and/or modifying URLs. Is this something that is fixable, i.e., should I submit a jira ticket, or do I need to just bite the

Re: [ANNOUNCEMENT] Struts2-JSR303-Validation-Plugin available

2013-10-29 Thread Umesh Awasthi
Thanks for the post and everything seems to be in-place :) One point which even i missed on plugin page is about using XML file for validation. Will update plugin page soon with this information. Thanks Umesh On Tue, Oct 29, 2013 at 7:13 PM, bphill...@ku.edu wrote: > Umesh: > >Here is the

Re: [ANNOUNCEMENT] Struts2-JSR303-Validation-Plugin available

2013-10-29 Thread bphill...@ku.edu
Umesh: Here is the link to the blog entry I wrote: http://www.brucephillips.name/blog/index.cfm/2013/10/29/New-Struts-2-Plugin-For-JSR-303-Bean-Validation Please let me know if I need to make any changes. Thanks again for all the work you put into creating this plugin. Bruce --

Re: CodeBehind @ParentPackage annotation seems to not work in struts 2.3.15.1

2013-10-29 Thread Lukasz Lenart
The problem is with @Namespace annotation in HelloWorldAction which doesn't play well with init-param actionPackages. Simple move HelloWorkAction to package org.apache.struts.helloworld.test and set actionPackages tp org.apache.struts.helloworld and remove @Namespace annotation. Regards -- Łukas

Re: How to handle business exceptions from service layer in struts 2 at only one place

2013-10-29 Thread Lukasz Lenart
2013/10/29 Vaishampayan, Shailesh Arvind : > ClientAction extends ActionSupport throws Exception{ > > > > try{ > > clientService.searchClient(); > > }catch(InvalidClientSearchCriteriaException e){ > > addActionMessage("Invlid Search Crit

Re: How to handle business exceptions from service layer in struts 2 at only one place

2013-10-29 Thread Antonios Gkogkakis
Have a look at the ExceptionMappingInterceptor, with a bit of tweaking I believe you can achieve what you want. http://struts.apache.org/release/2.0.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/ExceptionMappingInterceptor.html Antonios On 29 October 2013 10:15, Vaishampayan, Shail

How to handle business exceptions from service layer in struts 2 at only one place

2013-10-29 Thread Vaishampayan, Shailesh Arvind
I am working with an application involving Struts2 in web layer and Spring in business layer. I also have BusinessException class which will be used by all business services to create business related validation failures which must go up to web layer and should be shown to users as validati

Re: Skip evaluation of ${...} and %{...} in TextParseUtil

2013-10-29 Thread Umesh Awasthi
Can try with that. But that means putting extra data in value-stack as constranitsViolation map provided by bean validation contains other information as well. I will look in to way to provide your custom text-provider . On Tue, Oct 29, 2013 at 3:57 PM, Christoph Nenning < christoph.nenn...@lex-

Re: "DelegatingValidatorContext.getText and Jetty

2013-10-29 Thread Umesh Awasthi
Hi Lukasz, i used everything same as we have https://github.com/lukaszlenart/struts2-jsr303-example All I added few examples and tried t0 run those using jetty. On running those, i was getting no messages, but message keys as output and on debugging it , i found that validatorContext.getText(ke

Re: "DelegatingValidatorContext.getText and Jetty

2013-10-29 Thread Lukasz Lenart
2013/10/25 Umesh Awasthi : > Do i need to add anything extra in Jetty configuration? > I am using org.mortbay.jetty plugin for Maven Can you share how do you setup the plugin? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ -

Re: Skip evaluation of ${...} and %{...} in TextParseUtil

2013-10-29 Thread Christoph Nenning
> In order to fetch values for ${min} and ${max} from underlying bean > validation API, i need these placeholder names (min,max) as BeanValidator > hold these values in a Map with {min} and {max} as keys. > As far as I understand it, it should work when you push that map on ValueStack before re