Re: validation checkboxlist

2018-01-09 Thread José Antonio Delgado Trujillo
e receiving this message because you are a customer of SGI. If you do > not wish to receive promotional messages via email, click here > <https://mysgi.sgi.sk.ca/afOnlineServices/onlineservices/public/customerUnsubscribe.do> > to unsubscribe (but you'll be missing out!) > > >&g

Re: validation checkboxlist

2018-01-09 Thread José Antonio Delgado Trujillo
solved!!! It was a problem with unbalanced ] Un saludo, José A.

Re: validation checkboxlist

2018-01-08 Thread José Antonio Delgado Trujillo
Thanks a lot Lukasz, I had the same like the example except the expression of the validation. I misunderstood the param-name=“expression” - It was the expression to evaluate!!! (i was thinking about the expression to fail the validation) >> [!CDATA[#personBean.levels.length==0]]>> [!CDATA[per

Re: Annotation validation setter level

2018-01-08 Thread José Antonio Delgado Trujillo
el Person.getEmail > > see > https://depressedprogrammer.wordpress.com/2007/05/10/struts-2-validation-using-annotations/ > > Regards > Hedju Hor > > On 2018-01-05 19:50, José Antonio Delgado Trujillo > wrote: >> Annotations validations an alternative way of XML

Annotation validation setter level

2018-01-05 Thread José Antonio Delgado Trujillo
Annotations validations an alternative way of XML validation or the simplest way to implement the validate method. Yo have two options: At method level At setter level In the second if you don’t have the setter in the Action class because it is a property of an object, where do i put the annot

Re: validation checkboxlist

2018-01-05 Thread José Antonio Delgado Trujillo
> “personBean.levels.isEmpty” Yes, it’s empty an in the form the first time rendered all the options are unchecked. > > You should use "name" instead of "key" Why not key? i have the correspondan property files personBean.levels=Cursos I also see the label Cursos and the options The proble

Re: validation checkboxlist

2018-01-04 Thread José Antonio Delgado Trujillo
OK, Thanks for your explanation, i see clearer to use modeldriven or not. My problem is not about the populate the options of the checkboxlist but the exception rule you must select at least one. In the XML file i have [!CDATA[#personBean.levels.length==0]]>> You must

Re: validation checkboxlist

2018-01-04 Thread José Antonio Delgado Trujillo
In the docs about model driven https://struts.apache.org/core-developers/model-driven.html It is said that you must to implement the MovelDriven interface just the method getModel() to give an Object in which Struts populate with the

validation checkboxlist

2018-01-03 Thread José Antonio Delgado Trujillo
I have a form with a checkboxlist linked to a bean with an array of string properties. I want the user must select at least one option. Looking for the documentation, i think this is possible with field expression, but it requires ONGL expression. I did it so: FORM … … BEAN public cl

Re: exclude params submit

2018-01-03 Thread José Antonio Delgado Trujillo
But it must fix with exclude param https://struts.apache.org/getting-started/exclude-parameters.html <https://struts.apache.org/getting-started/exclude-parameters.html> > On 3 Jan 2018, at 05:48, Yasser Zamani wrote: > > > > On 1/2/2018 10:38 PM, José Antonio Delgado

Re: Populate nested properties

2018-01-03 Thread José Antonio Delgado Trujillo
n 1/3/2018 1:30 AM, José Antonio Delgado Trujillo wrote: >> Suppose that i have a nested Bean in a model class. >> >> >> public Class Bean_B{ >>private String text; >>private int number; >> ... >> } >> >> p

Re: Instancia the bean

2018-01-03 Thread José Antonio Delgado Trujillo
OK thanks Lukasz, i hadn’t put the default constructor in the model class. Now it works! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Instancia the bean

2018-01-02 Thread José Antonio Delgado Trujillo
I think Strus2 don’t instantiate the bean so you must instantiate perhaps in the prepare method or in the definition of the property class. > On 2 Jan 2018, at 21:38, José Antonio Delgado Trujillo > wrote: > > If you have a form linked to a bean using key attribute, then when you

Populate nested properties

2018-01-02 Thread José Antonio Delgado Trujillo
Suppose that i have a nested Bean in a model class. public Class Bean_B{ private String text; private int number; ... } public Class Bean_A{ private Bean_B beanB; ... } A form … When i submit the form the action class populate the nested properties text and

Instancia the bean

2018-01-02 Thread José Antonio Delgado Trujillo
If you have a form linked to a bean using key attribute, then when you submitted, must you instantiate the bean before the call action populate the properties? Or Strust2 instantiate automatically after you call the action. //The method execute of the A class action public class A e

exclude params submit

2018-01-02 Thread José Antonio Delgado Trujillo
I have a form with several tags using the attribute key. As it is said in getting started / message resource file Key is used to substitute tag’s value and label attributes. For example: To put the tag label Struts2 look for property file. To put the tag value Struts2 look for setName of a bean

Re: log4j problem

2017-12-30 Thread José Antonio Delgado Trujillo
Thanks Yasser, Fix-it with debug-level Un saludo, José A. > On 30 Dec 2017, at 09:10, Yasser Zamani wrote: > > > > On 12/30/2017 12:43 AM, José Antonio Delgado Trujillo wrote: >> The log that is expected is ... > > Default level is `info` [1]. Please change

Re: log4j problem

2017-12-30 Thread José Antonio Delgado Trujillo
I cloned the GithHUb struts-example https://github.com/apache/struts-examples.git > > Probably because a browser is requesting "/" to check something and as there > is no action named "" you see the error. > ?? localhost:8080/basic-strust/ind

Re: log4j problem

2017-12-29 Thread José Antonio Delgado Trujillo
> MG>before you restart did you deploy your struts-basic*.war to > server/default/deploy folder? JD> mvn wildly:deploy put the war in the folder deploy > MG>display struts.xml to determine mapping for namespace “/ JD> I clone the trust-exmple GitHub. I haven’t modify anything. > MG>namespac

Re: log4j problem

2017-12-29 Thread José Antonio Delgado Trujillo
I don’t know how to recompile lot with runtime jdk provided by JBOSS I rm log, data, tmp folders restart wildfly, clean and deploy basic-struts, and when i put in the browser localhost:8080/basic-struts/index.action I see the Welcome to Struts 2 jsp But i read in the console of wildly the next ..

Re: log4j problem

2017-12-29 Thread José Antonio Delgado Trujillo
After clone the GitHub and deploy basic-struts in Wildly: log4j is in lib folder It isn’t any log4j output after test in the browser (localhost:8080/basic-struts/index.action) I don’t think is a level problem in WildFly because... If i did manually the first project basic-struts i can see more i

log4j problem

2017-12-29 Thread José Antonio Delgado Trujillo
I was testing the tutorial Getting Started, i cloned the GitHub strut-examples in Eclipse and i am using Wildly container (i only change the POM plugin to use wildly-maven-plugin). I can deploy an run correctly the most of module but i can’t see any log information in the server console. What ca

Re: Unable to load configuration

2016-06-08 Thread José Antonio Delgado Trujillo
und Log4j class. - Something wrong with the struts.xml Thanks for your time (both Martin and Lukasz) Regards 2016-06-08 18:21 GMT+01:00 Lukasz Lenart : > 2016-06-08 18:40 GMT+02:00 José Antonio Delgado Trujillo < > jadt...@gmail.com>: > >>How did you deploy your app to Wildfly? L

Re: Unable to load configuration

2016-06-08 Thread José Antonio Delgado Trujillo
Upss if i created first the war (maven install) and then add in the server maybe run correctly. if i use Run on server failed. Is it the problem the missing of wildfly-maven-plugin in the POM in the build section? 2016-06-08 17:40 GMT+01:00 José Antonio Delgado Trujillo : > >How did you

Re: Unable to load configuration

2016-06-08 Thread José Antonio Delgado Trujillo
p?Linea Nueve>where is verysimple.jsp? verysimple.jso is in under folder src/main//webapp/WEB-INF/jsps Thanks Lukasz and Martin Regards José A. 2016-06-08 5:41 GMT+01:00 Lukasz Lenart : > 2016-06-07 23:10 GMT+02:00 José Antonio Delgado Trujillo < > jadt...@gmail.com>: > > *Stack Trace*

Unable to load configuration

2016-06-07 Thread José Antonio Delgado Trujillo
I have been wasted all this afternoon with a strange error. My app only have an action called VerySimpleAction. I configured in the struts.xml - http://struts.apache.org/dtds/struts-2.3.dtd";> /WEB-INF/jsps/verysimple.jsp --

Re: Convention plugin

2016-03-25 Thread José Antonio Delgado Trujillo
> On 25 Mar 2016, at 06:29, Lukasz Lenart wrote: > > I don't really understand what do you mean by that, In the example annotations there are two index.jsp files (one in the /webapp and another in /webapp/content). The first redirect the response to “index” i suppose that this redirect to /w

Re: Spring Struts problem

2016-03-24 Thread José Antonio Delgado Trujillo
> > You must define also scope="prototype" as Struts actions cannot be singletons > There is nothing about that in the tutorial https://cwiki.apache.org/confluence/display/WW/Spring+and+Struts+2 > You shouldn't mix Struts vers

Convention plugin

2016-03-24 Thread José Antonio Delgado Trujillo
I was trying with the convention plugin and the example in the gitHub. My actions class are in the package pfc.struts2.annotations.actions so the namespaces of the URL is /annotations/actions. I put the files jsp in /webapp/content/annotations/actions except the second index.jsp which is in/weba

Re: Spring Struts problem

2016-03-24 Thread José Antonio Delgado Trujillo
> > Can you share your config? My applicationContext.xml is… http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org

Re: Specific Exception Handling

2016-03-22 Thread José Antonio Delgado Trujillo
OK, I saw in the github the URL cause actions exceptions in the index,jsp but i dont't still understand the two result in the actionspecificexption. 2016-03-22 20:13 GMT+00:00 José Antonio Delgado Trujillo : > In the example of exception - handling explains how to configure an &g

Specific Exception Handling

2016-03-22 Thread José Antonio Delgado Trujillo
In the example of exception - handling explains how to configure an specific exception for an action. It is simple, only write the exception-mapping into the action node. But i don't know how it works and why we need two result nodes. [image: Imágenes integradas 1] I understood that if the metho

Re: Log4j dtd

2016-03-22 Thread José Antonio Delgado Trujillo
t find did file in the log4j.jar? > > Is there an important difference between log4j and log4j2? > > > > > > > > > On 21 Mar 2016, at 19:44, Lukasz Lenart > wrote: > > > > > > 2016-03-21 19:00 GMT+01:00 José Antonio Delgado T

Re: Log4j dtd

2016-03-21 Thread José Antonio Delgado Trujillo
? > On 21 Mar 2016, at 19:44, Lukasz Lenart wrote: > > 2016-03-21 19:00 GMT+01:00 José Antonio Delgado Trujillo : >> Hi, >> >> i’m doing the getting started struts2 tutorial and i have a warning message >> with log4j.xml file. >> >> In

Log4j dtd

2016-03-21 Thread José Antonio Delgado Trujillo
Hi, i’m doing the getting started struts2 tutorial and i have a warning message with log4j.xml file. In the tutorial the second line in log4j.xml is but eclipse can’t located log4j.dtd in my workspace. How can i fix the problem? isn’t there a external place to locate log4j.dtd?

Re: Annotation example

2015-11-10 Thread José Antonio Delgado Trujillo
> response.sendRedirect("/index"); %>) - thanks Chris! > > 2015-11-10 9:04 GMT+01:00 José Antonio Delgado Trujillo : >> I use mvn package and then put the war in the deployment folder of wildfly >> 9. >> El 10/11/2015 6:42, "Lukasz Lenart" escr

Re: Annotation example

2015-11-10 Thread José Antonio Delgado Trujillo
I use mvn package and then put the war in the deployment folder of wildfly 9. El 10/11/2015 6:42, "Lukasz Lenart" escribió: > 2015-11-09 21:13 GMT+01:00 José Antonio Delgado Trujillo < > jadt...@gmail.com>: > > i have the same in the /webapp/index > > But i h

Re: Annotation example

2015-11-09 Thread José Antonio Delgado Trujillo
ter/annotations/src/main/webapp/index.jsp> > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > <http://www.lenart.org.pl/> > > 2015-11-09 20:00 GMT+01:00 José Antonio Delgado Trujillo <mailto:jadt...@gmail.com>>: > I don`t kno

Re: Annotation example

2015-11-09 Thread José Antonio Delgado Trujillo
hy the error message NOT FOUND? > On 09 Nov 2015, at 07:02, Lukasz Lenart wrote: > > 2015-11-08 22:03 GMT+01:00 José Antonio Delgado Trujillo : >> I’ve problem with the annotation example. >> >> I’ve added the convention-plugin dependency in my POM. >> But when i

Re: Annotation example

2015-11-09 Thread José Antonio Delgado Trujillo
OK, In the example annotations of Getting started tutorial the POM set the default All the jsp are into /WEB-INF/content > On 08 Nov 2015, at 23:47, Martin Gainty wrote: > > – By default, this is set to > ${basedir}/src/main/webapp. If your static sources are in a different > location, set

Annotation example

2015-11-08 Thread José Antonio Delgado Trujillo
I’ve problem with the annotation example. I’ve added the convention-plugin dependency in my POM. But when i put localhost:8080/annotations/index tsp the result is NOT FOUND PAGE However when i copy the index.jsp in /src/main/webapp all is correct. I’m using wildly 9 as server. My POM is: http:/

Re: Default action method for unmatched wildcard actions

2014-05-28 Thread Antonio Sánchez
https://issues.apache.org/jira/browse/WW-4353 El mar 27 may 2014 11:58:45 CEST, Lukasz Lenart escribió: Yes, please! Thanks! 2014-05-27 11:48 GMT+02:00 Antonio Sánchez : JIRA? El mar 27 may 2014 11:45:28 CEST, Lukasz Lenart escribió: 2014-05-27 11:43 GMT+02:00 Antonio Sánchez : I believe

Re: Default action method for unmatched wildcard actions

2014-05-27 Thread Antonio Sánchez
JIRA? El mar 27 may 2014 11:45:28 CEST, Lukasz Lenart escribió: 2014-05-27 11:43 GMT+02:00 Antonio Sánchez : I believe that is not a Conventions feature, but would be great to be. Yeah... just looking into code and looks doable, the problem is it will probably break backward compatibility

Re: Default action method for unmatched wildcard actions

2014-05-27 Thread Antonio Sánchez
El 27/05/14 08:27, Lukasz Lenart escribió: 2014-05-27 8:21 GMT+02:00 Antonio Sánchez : El mar 27 may 2014 08:04:48 CEST, Lukasz Lenart escribió: 2014-05-26 18:00 GMT+02:00 Antonio Sánchez : That's not working for me. OK: /person -> com.myapp.actions.PersonAction#execute

Re: Default action method for unmatched wildcard actions

2014-05-26 Thread Antonio Sánchez
El mar 27 may 2014 08:04:48 CEST, Lukasz Lenart escribió: 2014-05-26 18:00 GMT+02:00 Antonio Sánchez : That's not working for me. OK: /person -> com.myapp.actions.PersonAction#execute (SUCCESS) -> person.jsp FAILS: /person-edit -> com.myapp.action.PersonAction#edit ->

Re: Default action method for unmatched wildcard actions

2014-05-26 Thread Antonio Sánchez
practical using Conventions plugin for designing generic actions. I would be forced to overload and annotate each action method. El 26/05/14 18:00, Antonio Sánchez escribió: That's not working for me. OK: /person -> com.myapp.actions.PersonAction#execute (SUCCESS) -> perso

Re: Default action method for unmatched wildcard actions

2014-05-26 Thread Antonio Sánchez
Thanks, let me try that. El 26/05/14 13:16, Christoph Nenning escribió: I'm trying to define a generic/abstract action and extend or instantiate it with specific actions. Say a generic/abstract CRUDaction and have UserAction, InvoiceAction etc... to instantiate/extend it. I don't see the way

Re: Default action method for unmatched wildcard actions

2014-05-26 Thread Antonio Sánchez
t; com.myapp.actions.Person#execute (SUCCESS) -> person.jsp /person-edit -> com.myapp.action.Person#edit -> person-edit.jsp /person-submit -> com.myapp.actions.Person#submit -> person-submit.jsp || person-input.jsp 2014-05-26 11:41 GMT+02:00 Antonio Sánchez: I'm trying to de

Re: Default action method for unmatched wildcard actions

2014-05-26 Thread Antonio Sánchez
nvention Plugin? 2014-05-23 10:58 GMT+02:00 Antonio Sánchez : Hello. Given: /WEB-INF/jsp/editPerson.jsp /WEB-INF/jsp/persons.jsp And url: http://localhost:8080/appctx/Person No matching is found and Struts redirects to

Default action method for unmatched wildcard actions

2014-05-23 Thread Antonio Sánchez
Hello. Given: method="{1}"> name="input">/WEB-INF/jsp/editPerson.jsp name="success">/WEB-INF/jsp/persons.jsp And url: http://localhost:8080/appctx/Person No matching is found and Struts redirects to "input" result directly. In

Re: ModelDriven and ParamsPrepareParams

2014-05-18 Thread Antonio Sánchez
-08 9:27 GMT+02:00 Antonio Sánchez : Hello. I have found problems using MD and PPP together, Struts2 complains (and errors are displayed in view) that no setter method was found because at first Params run, model is not yet instantiated. I am asking for which of the following approaches is the

ModelDriven and ParamsPrepareParams

2014-05-14 Thread Antonio Sánchez
Hello. I have found problems using MD and PPP together, Struts2 complains (and errors are displayed in view) that no setter method was found because at first Params run, model is not yet instantiated. I am asking for which of the following approaches is the most recommended one: 1. Define a

Re: Grouping same type validators

2014-05-05 Thread Antonio Sánchez
Sorry, this is the right one: https://issues.apache.org/jira/browse/WW-4340 El lun 05 may 2014 18:39:59 CEST, Antonio Sánchez escribió: https://issues.apache.org/jira/browse/WW-3993 El lun 05 may 2014 13:34:51 CEST, Lukasz Lenart escribió: Sure thing, but it will be rather postponed till 2.5

Re: Grouping same type validators

2014-05-05 Thread Antonio Sánchez
https://issues.apache.org/jira/browse/WW-3993 El lun 05 may 2014 13:34:51 CEST, Lukasz Lenart escribió: Sure thing, but it will be rather postponed till 2.5 2014-05-05 13:31 GMT+02:00 Antonio Sánchez : Would it worth the while to post an enhancement request? El lun 05 may 2014 10:17:09 CEST

Re: Grouping same type validators

2014-05-05 Thread Antonio Sánchez
Would it worth the while to post an enhancement request? El lun 05 may 2014 10:17:09 CEST, Lukasz Lenart escribió: It isn't supported and I don't see simple way to achieve this. 2014-05-03 23:33 GMT+02:00 Antonio Sánchez : Hello. in a middle sized application there may be h

Re: Grouping same type validators

2014-05-05 Thread Antonio Sánchez
I don't think so. That code validates a filed named person.lastNameAndFirstName for a sequence of blank separated words. I'm asking for for an abbreviated syntax for defining required validations, or once for all defining validations that will be present all along the project. MG> person.

Grouping same type validators

2014-05-03 Thread Antonio Sánchez
Hello. in a middle sized application there may be hundreds of required fields, and maybe dozens of some other validator type, which are all very verbose to define. For instance: guess a big form with many required fields: person.firstName First name is required.

Re: Getting Value from Id in a LIst

2014-05-01 Thread Antonio Sánchez
oading then it's done via a standard Ajax call and you can pass IDs or whatever else you want to the server side. Dave On Thu, May 1, 2014 at 2:59 PM, Antonio Sánchez wrote: Yes, that the obvious way. Thank you. But guess there is some situation where the view needs asking to the contr

Re: Getting Value from Id in a LIst

2014-05-01 Thread Antonio Sánchez
. Dave On Thu, May 1, 2014 at 10:58 AM, Antonio Sánchez wrote: Hello. Person CRUD. Person bean has name, age... and "countryId". Country bean has countryId and countryName. In persons.jsp all persons are listed, displaying rows for each person, and columns for name, age... but countr

Getting Value from Id in a LIst

2014-05-01 Thread Antonio Sánchez
Hello. Person CRUD. Person bean has name, age... and "countryId". Country bean has countryId and countryName. In persons.jsp all persons are listed, displaying rows for each person, and columns for name, age... but countryName must be displayed instead of countryId: I can display countr

Re: CRUD through RESTful

2014-04-25 Thread Antonio Sánchez
Right: "struts2-rest-showcase" works fine with tomcat 7 and 8.0.5. Thank you :) El vie 25 abr 2014 12:41:16 CEST, Lukasz Lenart escribió: 2014-04-25 10:28 GMT+02:00 Antonio Sánchez : 1. So, RESTful plug-in is just for implementing web services in Struts2, isn't it? Basical

Re: CRUD through RESTful

2014-04-25 Thread Antonio Sánchez
nart escribió: 2014-04-24 20:16 GMT+02:00 Antonio Sánchez : Hello. 1. Nowadays: Is RESTful the most recommended approach for implementing CRUD applications with Struts2? Or is it equivalent to old CRUD style? What are you doing in your new projects? No, if your application is a simple CRUD I

CRUD through RESTful

2014-04-24 Thread Antonio Sánchez
Hello. 1. Nowadays: Is RESTful the most recommended approach for implementing CRUD applications with Struts2? Or is it equivalent to old CRUD style? What are you doing in your new projects? 2. Where can I find detailed documentation about RESTful with Struts2? IMHO, current REST plugin docum

Re: XML Validation bug in examples and documentation

2013-11-12 Thread Antonio Sánchez
: You mean in the source code of those apps? I have checked the source and looks ok. 2013/10/31 Antonio Sánchez : "Preparable" and "exclude parameters" examples (at least) in: http://struts.apache.org/release/2.3.x/docs/getting-started.html should be Documentation: http

Re: Struts 2 Examples Updated

2013-10-31 Thread Antonio Sánchez
Will documentation be updated too? Do I create an issue in JIRA? El Jueves, 31 de Octubre de 2013 09:55:54 a.m., bphill...@ku.edu escribió: I updated the Struts 2 examples to test using the new release (2.3.15.3). I also fixed those examples that were still using name="expression" for regex X

Re: Antwort: About struts.mapper.action.prefix.enabled

2013-10-31 Thread Antonio Sánchez
lmost always use forms. -- I still believe there must be a strong reason why action prefix is disabled by default. Thanks and regards. Antonio - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional com

About struts.mapper.action.prefix.enabled

2013-10-31 Thread Antonio Sánchez
As far as I know the only way to render a cancel button inside a form is this: action="cancelFormAction"/> This requires struts.mapper.action.prefix.enabled = true. I can't imagine a middle-high size development which does not use a single cancel button. Shouldn't 'struts.mapper.action.p

Re: XML Validation bug in examples and documentation

2013-10-31 Thread Antonio Sánchez
Please remove link to annotations above from the list: http://struts.apache.org/development/2.x/xwork-core/apidocs/com/opensymphony/xwork2/validator/annotations/RegexFieldValidator.html El Jueves, 31 de Octubre de 2013 08:27:49 a.m., Antonio Sánchez escribió: "Preparable" an

XML Validation bug in examples and documentation

2013-10-31 Thread Antonio Sánchez
"Preparable" and "exclude parameters" examples (at least) in: http://struts.apache.org/release/2.3.x/docs/getting-started.html should be Documentation: http://struts.apache.org/release/2.3.x/xwork-core/apidocs/com/opensymphony/xwork2/validator/validators/RegexFieldValidator.html http://str

Re: "Cancel" button is not redirecting

2013-10-16 Thread Antonio Sánchez
Thanks! El 16/10/2013 07:37 a.m., Lukasz Lenart escribió: Yes, I have downgraded to 2.3.15.1 and it will be fixed in 2.3.15.3 2013/10/16 Antonio Sánchez : So, is it still possible to render a cancel button in 2.3.15.2? Or must downgrade to 2.3.15.1? Will the bug be fixed in 15.3? El

Re: "Cancel" button is not redirecting

2013-10-16 Thread Antonio Sánchez
So, is it still possible to render a cancel button in 2.3.15.2? Or must downgrade to 2.3.15.1? Will the bug be fixed in 15.3? El Miércoles, 16 de Octubre de 2013 02:35:06 a.m., Lukasz Lenart escribió: 2013/10/15 Antonio Sánchez : Set to false. But having same results set to true. I'm

Re: "Cancel" button is not redirecting

2013-10-15 Thread Antonio Sánchez
ot;cancel" and use a redirectAction result. On Tue, Oct 15, 2013 at 12:53 PM, Antonio Sánchez wrote: Hi. Simple CRUD sample application, paramsPrepareParams, wildcard method selection. Cancel button in edit form, when reached for creating a new employee bean, is not cancelling and redirecti

Re: "Cancel" button is not redirecting

2013-10-15 Thread Antonio Sánchez
ot; and use a redirectAction result. On Tue, Oct 15, 2013 at 12:53 PM, Antonio Sánchez wrote: Hi. Simple CRUD sample application, paramsPrepareParams, wildcard method selection. Cancel button in edit form, when reached for creating a new employee bean, is not cancelling and redirecting to in

"Cancel" button is not redirecting

2013-10-15 Thread Antonio Sánchez
Hi. Simple CRUD sample application, paramsPrepareParams, wildcard method selection. Cancel button in edit form, when reached for creating a new employee bean, is not cancelling and redirecting to index, but actually performing form action, which is "save". Conversely, cancel is working pro

Re: Error in struts2-archetype-starter

2013-10-11 Thread Antonio Sánchez
El 11/10/2013 12:33 a.m., Lukasz Lenart escribió: And you can start working on that issue [2] which contains link to Wiki page with example CRUD app - O was planning add it as a part of Struts distribution. Started. Please check comments in issue. ---

Re: Error in struts2-archetype-starter

2013-10-10 Thread Antonio Sánchez
0 de Octubre de 2013 07:30:57 a.m., Lukasz Lenart escribió: 2013/10/10 Antonio Sánchez : I've selected it in the struts maven catalog: mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ It seems using the catalog the replacement is not performed. Please create an issue

Re: Error in struts2-archetype-starter

2013-10-10 Thread Antonio Sánchez
I've selected it in the struts maven catalog: mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ It seems using the catalog the replacement is not performed. El Jueves, 10 de Octubre de 2013 12:10:15 a.m., Lukasz Lenart escribió: How did you use that archetype? mvn archetype:

Error in struts2-archetype-starter

2013-10-09 Thread Antonio Sánchez
I'm using Netbenas and Tomcat. Trying to run, browser displays: Unable to instantiate Action, ${package}.IndexAction, defined for 'index' in namespace '/'${package}.IndexAction Root cause: java.lang.ClassNotFoundException: ${package}.IndexAction in struts.xml: /jsp/in

Re: Question about "Form Validation Using XML" example

2013-10-04 Thread Antonio Sánchez
Same behavior in private mode. I believe it has to do with Prepare (preparable and exclude-paras use Preparable) and interceptors stack, but I'm not sure. Still a mystery for me, because the code is almost identical. El 02/10/2013 11:46 p.m., Lukasz Lenart escribió: Maybe your browser is fil

Question about "Form Validation Using XML" example

2013-10-02 Thread Antonio Sánchez
I can't see what's going on behind the scenes in this example so I'm asking for help in order to understand the Strtus process. I run the example, leave empty "First Name" to make validation fail, and submit. Then go back to index: http://localhost:8084/form_xml_validation and click on edit.

Re: HTML code not displaying in site documentation

2013-08-12 Thread Antonio Sánchez
http://struts.apache.org/development/2.x/docs/struts-2-spring-2-jpa-ajax.html El Martes, 30 de julio de 2013 20:55:20 Lukasz Lenart escribió: > 2013/7/30 Antonio Sánchez : > > http://struts.apache.org/development/2.x/docs/processing-forms.html > > > > I believe all or

Re: Broken link to OGNL

2013-08-02 Thread Antonio Sánchez
e S2-specific OGNL info. We should links to the project, > but not at the expense of removing information that isn't part of OGNL > itself. > > Dave > On Aug 2, 2013 3:26 PM, "Antonio Sánchez" wrote: > > > In > > > > http://struts.apache.o

Broken link to OGNL

2013-08-02 Thread Antonio Sánchez
In http://struts.apache.org/development/2.x/docs/ognl.html link to OGNL should be updated to be http://commons.apache.org/proper/commons-ognl/ The same for all pages where OGNL is linked.

Re: Translating submit tag

2013-08-01 Thread Antonio Sánchez
Thank you :) El Jueves, 1 de agosto de 2013 11:02:41 Lukasz Lenart escribió: > 2013/7/31 Antonio Sánchez : > > Sorry, what do you mean with Submit class? > > Submit component behind submit.ftl > > > Use case is simple login. The exception is thrown when the form does

Re: Keeping current locale after logging out

2013-08-01 Thread Antonio Sánchez
That works. Thank you very much. El Jueves, 1 de agosto de 2013 07:43:26 Lukasz Lenart escribió: > 2013/7/31 Antonio Sánchez : > > At logging out, session is invalidated and redirected page is displayed in > > default language. > > > > Say: default language: Spanish

Keeping current locale after logging out

2013-07-31 Thread Antonio Sánchez
At logging out, session is invalidated and redirected page is displayed in default language. Say: default language: Spanish; current language: English; logging out and resulted page is in Spanish, but should be English. . This is not working (code in action class): public String closeSes

Re: Translating submit tag

2013-07-31 Thread Antonio Sánchez
nlUtil.java:234) at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:183) at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:170) ... 53 more El Martes, 30 de julio de 2013 20:34:29 Lukasz Lenart escribió: > 201

Re: Translating submit tag

2013-07-31 Thread Antonio Sánchez
.java:183) at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:170) ... 53 more El Martes, 30 de julio de 2013 20:34:29 Lukasz Lenart escribió: > 2013/7/30 Antonio Sánchez : > > I'm using: > > > > > > This is exactly the

Translating submit tag

2013-07-30 Thread Antonio Sánchez
I'm using: Trying to simplify: Displays a warning of unexpected exception ('enter' method not found) in JSP display, via . Is it possible to avoid evaluation expression for setting the text from resource bundle? Maybe excluding parameters? Any other method? Thanks.

Re: HTML code not displaying in site documentation

2013-07-30 Thread Antonio Sánchez
http://struts.apache.org/development/2.x/docs/processing-forms.html I believe all or almost all of getting started tutorial have the problem. El Martes, 30 de julio de 2013 11:30:56 Lukasz Lenart escribió: > Updating > > 2013/7/30 Antonio Sánchez : > > Als

Re: HTML code not displaying in site documentation

2013-07-30 Thread Antonio Sánchez
Also: http://struts.apache.org/development/2.x/docs/struts-control-tags.html El Viernes, 19 de julio de 2013 23:26:20 usted escribió: > El Viernes, 19 de julio de 2013 12:45:20 Lukasz Lenart escribió: > > I made a change to the page and right now exporting it, please check > > after some time. Th

Iterating constants in iterator tag

2013-07-29 Thread Antonio Sánchez
Given: Use it in: ... How to? Injecting with @Inject? Any direct access method from OGNL? Thanks. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.

Re: Changing locale for any current request

2013-07-25 Thread Antonio Sánchez
_only_locale=en_US > your locale would not be stored in the session, it's just for this request > > > > On Thu, Jul 25, 2013 at 10:15 AM, Antonio Sánchez > wrote: > > I will include a header in all pages that displays links for translating > > current page (

Changing locale for any current request

2013-07-25 Thread Antonio Sánchez
I will include a header in all pages that displays links for translating current page (at any moment) to different locales. Something like: ES | EN | IT These links will render current page (query, action... ) in the requested locale. How is this usually performed? I guess I must remember all

Re: Defining actions for i18n

2013-07-24 Thread Antonio Sánchez
I have both defined and . I need both because I'm using as a welcome action. In more complicated cases I can always define a 'localize' method. Thank you very much. El Miércoles, 24 de julio de 2013 15:10:36 Lukasz Lenart escribió: > > /WEB-INF/jsp/I18nedPage.jsp > > > This way sho

Re: Using Util class inside JSP

2013-07-24 Thread Antonio Sánchez
th arbitrary static method access. > > Personally, I wouldn't, and would instead defer things like that to a > custom tag or, as you said, a method in the base class, properly named, > allowing simple getter access without the parens. > > Dave > > > > On Tue, Ju

Defining actions for i18n

2013-07-24 Thread Antonio Sánchez
Hello. I'm defining some actions with no logic, they only result in some JSP. Usually this is defined like this: /WEB-INF/jsp/Page.jsp But l10n is required, so I'm doing this: /WEB-INF/jsp/I18nedPage.jsp /WEB-INF

Re: Using Util class inside JSP

2013-07-23 Thread Antonio Sánchez
s > > > > On Tue, Jul 23, 2013 at 7:27 AM, Antonio Sánchez > wrote: > > > Hi. > > > > How can I use utilities classes inside JSPs? > > > > For instance, currently I'm using: > > > > > > > > for asking if user is in sessio

Using Util class inside JSP

2013-07-23 Thread Antonio Sánchez
Hi. How can I use utilities classes inside JSPs? For instance, currently I'm using: for asking if user is in session, but I wan to use a Java method instead. One option is defining a basic Action class and make all action extend it, but in some cases I rather prefer something like: Util.i

Re: HTML code not displaying in site documentation

2013-07-19 Thread Antonio Sánchez
El Viernes, 19 de julio de 2013 12:45:20 Lukasz Lenart escribió: > I made a change to the page and right now exporting it, please check > after some time. The original url will be updated with new release. > > [1] http://struts.apache.org/development/2.x/docs/message-resource-files.html At this m

  1   2   3   4   5   6   7   8   9   10   >