Re: Reuse of Actions trough s:action. Objectives and inconveniences.

2012-04-23 Thread Josep García
I think you can specify the inteceptor list at action level in struts.xml. Cheers, Josep El 23 de abril de 2012 10:05, JOSE L MARTINEZ-AVIAL escribió: > Hi, > We are developing an web application that uses Struts2 + Tiles + JSP, > plus Dojo for the UI. The application uses the JSON plugin, sinc

Re: Data Grids & Excel Exports

2012-04-13 Thread Josep García
Use conditionals in you jsp, combined with displaytag. For instance, I use this: <% if (request.isUserInRole("ROLE_ONE")) { %> <% } %> As for performance, did you try external sorting and pagination? Cheers, Josep El 12 de abril de 2012 21:30, CRANFORD, CHRIS escribió: > I'm actually usi

Re: Struts2 w/freemarker and internationalization

2012-02-29 Thread Josep García
Try with: <@s.text name="welcome.message"/> Cheers, Josep 2012/2/29 Tom Hjellming > I'm trying to internationalize a simple Struts2-based webapp that uses > Freemarker as the view technology. The usage of freemarker templating > pulling values from the Action object is working fine. > > But

Re: Hide .do [S 1.3.8]

2012-02-10 Thread Josep García
The urlrewrite filter can help you with that. Take a look at AppFuse 2.0: appfuse.org This appfuse version shows .html extensions in the url, instead of .do or .action. Cheers, Josep 2012/2/10 Anjib Mulepati > Hi All, > > I am getting odd situation in Struts 1.3.8 application. > I have differen

struts2 jquery plugin requirements

2012-02-09 Thread Josep García
Hi, Does anyone know which minimum struts2 version can I use for the struts2 jquery plugin? http://code.google.com/p/struts2-jquery Cheers, Josep

Re: Returning additional data to the AutocompleterTag

2012-02-07 Thread Josep García
Maybe you should try by opening an issue in struts2-jquery site? http://code.google.com/p/struts2-jquery/ 2012/2/3 Bruno Klava > Hi everyone, > > concerning the usage of the AutocompleterTag from the struts2-jquery > plugin: > > instead of returning just the autocomplete values (I'm returning

Re: Dynamically setting the template directory in an Action

2011-12-09 Thread Josep García
re-building the whole app. > > Thanks > Gurcharan > > On Mon, Nov 21, 2011 at 1:19 PM, Josep García wrote: > > > What I have achieved is to set the template Dir for freemarker result > type, > > in web.xml: > > > > > > &g

Re: [OT] Searching for data access framework.

2011-12-05 Thread Josep García
Use spring-security. 2011/12/5 Balwinder > Hi All, > > Can anyone suggest me a framework that can abstract the data call and its > source, if there exists any? Example if I want to authenticate a user then > my query shall not depend upon the data source, it could be any LDAP > server, database

Re: using xwork validator programatically?

2011-12-01 Thread Josep García
Regarding: 2011/12/1 Josep García > > In order to validate dynamic form input fields (based on freemarker's > ability to render input fields from xml tree), I've also had to code my own > field validator, because my action does not have getter/setter for the > dynamic

Re: using xwork validator programatically?

2011-12-01 Thread Josep García
JIRA created: https://issues.apache.org/jira/browse/WW-3715 2011/12/1 Łukasz Lenart > 2011/12/1 Josep García > > > Basically, validatorKey build from clazz AND context. > > > > final String validatorKey = buildValidatorKey(clazz, context); > > >

Re: using xwork validator programatically?

2011-12-01 Thread Josep García
str = null; } } return str; } I fear I'll probably have to rewrite xml*fieldvalidator for other validator types. If you can think of a better alternative, let me know. Cheers, Josep 2011/11/30 Łukasz Lenart > 2011/11/30 Josep García > > > This way, it works, but th

Re: using xwork validator programatically?

2011-11-30 Thread Josep García
name, and not on the context. :-( Any suggestion about this? J. 2011/11/28 Łukasz Lenart > 2011/11/28 Josep García : > > I have tried this option, not without a few workarounds: I had to add a > > param to struts.xml so validation files are loaded during runtime: > > >

Re: using xwork validator programatically?

2011-11-28 Thread Josep García
lidatorManager instance (@Inject in to > an action) and try to use one of its methods. > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > Warszawa JUG conference - Confitura http://confitura.pl/ > > > 2011/11/16 Josep García : > > Is ther

Re: Jenkina and hudson in s2

2011-11-25 Thread Josep García
Have a look at AppFuse: appfuse.org. It generates a basic Struts2 app, with unit testing, integration testing. Cheers, 2011/11/24 Frans Thamura > will u share us the code? > > so we can add to our blueoxygen/cimande project. > > > On Wed, Nov 23, 2011 at 3:36 PM, Josep García

Re: Jenkina and hudson in s2

2011-11-23 Thread Josep García
We use unit testing and, for integration testing, canoo webtests integrated in the maven lifecycle. Cheers, Josep 2011/11/23 Frans Thamura > Hi all > Can share ur experience related to test struts2 app in jenkins or hudson. > > I want my project all tested there. > > Can help? > > Frana >

Re: Dynamically setting the template directory in an Action

2011-11-20 Thread Josep García
What I have achieved is to set the template Dir for freemarker result type, in web.xml: templatePath ${form.templateDir} with ${form.templateDir} being replaced by maven at compile or packaging phases. Cheers, Josep 2011/11/21 Li Ying > (1)I believe the word [t

using xwork validator programatically?

2011-11-16 Thread Josep García
Is there any documentation on how to call xwork validation programatically? The context: I have a dynamic form, which is a freemarker template, which can have any fields that are then saved as xml in my Struts action. I would like to have the possibility to call validation with a specific *-valida

Re: Problem with S2 form parameters encode

2010-09-28 Thread Josep García
I suggest you fix the Java encoding, -encoding, with JAVA_OPTS Josep 2010/9/27 Oscar > I gonna try that. Also, right now i tried using a different charset: > > <%@ page contentType="text/html; charset=ISO-8859-1" %> > > and it works! > > 2010/9/27 Maurizio Cucchiara > > > You can also try to ad

order of plugin-struts.xml and struts.xml

2010-09-22 Thread Josep García
We are currently using struts 2.0.14 with Spring. Is there any way of modifying the order of the config files for Struts2 plug-in modules? Currently, we have a "Basic" web app with a "default" package in which we define an "adminCheck" interceptor stack. Besides, we have an "Advanced" web app, wh