Re: Submit with several methods in Struts 2.2

2010-09-14 Thread hernan gonzalez
Has it been included in the JIRA tracker? https://issues.apache.org/jira/browse/WW https://issues.apache.org/jira/browse/WWI don't see it Hernán On Tue, Sep 14, 2010 at 6:18 AM, Maqsud Mohammad maqsud.moham...@ratedpeople.com wrote: i raised this issue as a bug but havent got any updates

Submit with several methods in Struts 2.2

2010-09-13 Thread hernan gonzalez
This pattern (submit tag with method specified) http://struts.apache.org/2.2.1/docs/html-form-buttons-howto.html worked for me in my previous version (from Struts 2.1.6). Now (in Struts 2.2.1), I can't make it work. It always calls execute. The only workaround I found was to set

Re: [s2] broken documentation in web site

2010-06-15 Thread hernan gonzalez
More than 40 days passed, and still broken. http://struts.apache.org/2.1.8.1/docs/tag-reference.html http://struts.apache.org/2.1.8.1/docs/tag-reference.htmlThis is getting depressing, it makes Struts2 look as an dying project. Hernán

Re: Online docs messed up

2010-05-19 Thread hernan gonzalez
Still broken. On Mon, May 17, 2010 at 12:39 PM, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2010/5/14 nuwan chandrasoma mymail...@gmail.com: I also noticed that, i think the wiki .css is messed up, It's because of new Confluence and auto export plugin :-( I can restore the previous

Re: java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable

2010-05-17 Thread hernan gonzalez
Are you placing your struts jars in the tomcat lib directory ? If so, try removing from there and placing them inside the war (web application) On Mon, May 17, 2010 at 4:16 PM, Emi Lu em...@encs.concordia.ca wrote: The most similar question I could find is:

Re: java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable

2010-05-17 Thread hernan gonzalez
You are doing a hot deploy of your full webapplication inside a Tomcat tree, without restarting it ? If that's the case, I'm not much surprised, hot deploys are rather fragile with respect to class loading issues in my experience. I restart Tomcat in each deploy. On Mon, May 17, 2010 at 5:11 PM,

Re: [s2] broken documentation in web site

2010-05-06 Thread hernan gonzalez
...@googlemail.com wrote: 2010/5/6 hernan gonzalez hgonza...@gmail.com: Uhmm CSS stuf is still broken for me -as detailed in previous post. And further, there's a #editReport()  thing near the header in most pages, for example here http://struts.apache.org/2.x/docs/getting-started.html You meant

Re: [s2] broken documentation in web site

2010-05-06 Thread hernan gonzalez
Not a cache issue on my side, I try this on several servers around the world and get the same: [vps1]~ $ wget --quiet -O- http://struts.apache.org/2.x/docs/resources/space.css | grep resource /* Could not locate resource: /includes/css/master.css */ /* Could not locate resource:

[s2] broken documentation in web site

2010-05-05 Thread hernan gonzalez
Since several days ago, the docs in the webpage of Struts2 are badly broken, in particular the examples and code. Examples https://cwiki.apache.org/WW/stream-result.html http://struts.apache.org/2.x/docs/stream-result.html http://struts.apache.org/2.x/docs/writing-interceptors.html Compare the

Re: [s2] broken documentation in web site

2010-05-05 Thread hernan gonzalez
It seems quite probable that all will get fixed when the docs are regenerated. Can somebody force a full regeneration? On Wed, May 5, 2010 at 12:00 PM, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2010/5/5 Lukasz Lenart lukasz.len...@googlemail.com: Hmm something strange, the code is

struts 2.1.6 verbose logging

2009-03-18 Thread hernan gonzalez
Struts 2.1 introduces more verbose logging than Struts 2.0. While extremely valuable, some users may find these annoying. http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html The extremely annoying thing is that struts 2.1 emits those warnings (apparently)

Re: Possible to return ibatis query in xml file?

2009-03-04 Thread hernan gonzalez
If I understand right, the answer is no (and the question is not related to struts, but only to ibatis). You can't get (AFAIK) the sql generated/executed by ibatis, and there are good reasons for that. If you are debugging some sql problem, your database should allow you to turn on full logging of

Re: Struts 2 - After validation failure populating the drop downs

2009-03-03 Thread hernan gonzalez
You should tell us how the dropdowns were populated in the first page. If only one Action class is involved, and the dropdowns are populated by reading some attribute of it (eg: getOptionListForDropDown() which looks at the optionListForDropDown list ) you should fill that list, not in the

Re: Best Practices for Forms

2009-03-02 Thread hernan gonzalez
To avoid the problem of duplicated submissions (not only when refreshing the result page, but also when double clicking the submit button, or going back to the submited form and submitting again) you should take a look at the TokenSessionStoreInterceptor. But that is complementary with the other

[s2] accesing params from s:include tag

2009-02-27 Thread hernan gonzalez
I'm struggling with s:include + s:param in struts 2.0.14 The docs for the include tag http://struts.apache.org/2.0.14/docs/include.html states: How To access parameters Parameters are passed as request parameters, so use the ${param.ParamName} notation to access them. Do not use the property

Re: [s2] accesing params from s:include tag

2009-02-27 Thread hernan gonzalez
I was not able to do it, despite trying a million different forms as well as suggestions by some folks in strust mailing list. I do not think you will be able to access the param value passed to s:include within struts tag [clearly an obvious shortcoming]. Your best bet is using jsp

Re: Form validation: how can khow in jsp that my action validation failed?

2009-02-27 Thread hernan gonzalez
Your jsp has access to your action, in the valuestack. So, you should be able to ask s:if test=hasActionErrors() /s:if Beware: for validation errors, besides hasActionErrors() you might want to ask hasFieldErrors(). Or use hasErrors() , that includes both Hernán J. González

S2 - Errors in tags documentation

2009-01-21 Thread hernan gonzalez
The docs for the iterator tag, http://struts.apache.org/2.0.11.2/docs/iterator.html has an error, IMO (apart from the unfortunate confusion over the 'id' vs 'var' attributes, which actually apply to struts 2.1) : It says: var : Name used to reference the value pushed into the Value Stack

Re: S2 - Errors in tags documentation

2009-01-21 Thread hernan gonzalez
the stack. The docs seem (to me?) to imply that the name is used for pushing it onto the stack (which doesnt make sense). On Wed, Jan 21, 2009 at 5:58 PM, Dave Newton newton.d...@yahoo.com wrote: (Forgot to add that the same is true for the bean tag as well.) Dave Newton wrote: hernan gonzalez

Re: [ANNOUNCE] Struts 2.1.6 GA Release

2009-01-15 Thread hernan gonzalez
Thats fixed Another related issue: The releases notes for 2.1.6 has a (correct) link to releases notes for previous - 2.1.5 , and so on. This seems to be the only (is it?) way of look at the changes from 2.0. Besides being a little involved (I believe the changes from 2.0.x should be more

Re: [ANNOUNCE] Struts 2.1.6 GA Release

2009-01-14 Thread hernan gonzalez
The link to Releases notes in the main download page is broken. -- Hernán J. González http://hjg.com.ar/ On Wed, Jan 14, 2009 at 12:19 PM, Musachy Barroso musa...@gmail.com wrote: The Apache Struts group is pleased to announce that Struts 2.1.6 is available as a General Availability

Re: struts 2.1.5 listed on http://struts.apache.org/2.x/

2009-01-10 Thread hernan gonzalez
Another issue with the web site (probably it has been already noted) : The Recent Threads box, in prominent place in the main page http://struts.apache.org/ has not been updated in more than a year (!) Hernán J. González http://hjg.com.ar/

Re: OGNL exceptions are swallowed by struts2

2009-01-09 Thread hernan gonzalez
I agree, Struts2 sucks big time in this regard while being an excellent framework otherwise. Robert Judging from my (not very long) experience with Struts2, I agree wholeheartedly with that. It really seems badly broken that the framework (OGNL, in this case) swallows exceptions (even if we

Re: struts 2.1.5 listed on http://struts.apache.org/2.x/

2009-01-07 Thread hernan gonzalez
Now it says 2.1.6 ... Please fix it, it's the first page that Googles shows searching by struts2. Hernán J. González http://hjg.com.ar/ On Mon, Jan 5, 2009 at 4:37 PM, Chris Pratt thechrispr...@gmail.com wrote: That is the official page, in fact 2.1.5 isn't actually on the page that button

Re: How traumatic is to migrate from struts version 1.2 to struts version 2.0 ???

2008-11-07 Thread hernan gonzalez
S2 and S1 are entirely different frameworks. The migration involves rewriting a lot, actions and jsp. They can coexist, though, and you can migrate gradually, by steps. We are doing that: two related webapps; the small one (25 actions, 70 jsp) is fully done, the other is about twice bigger and

Re: struts2 validation failed method

2008-11-03 Thread hernan gonzalez
The quick answer: in the default configuration, when the validation fails the result INPUT (input) is returned. You frequently define a mapping for this action and result in your struts.xml which renders the original jsp (the input) so that the user can see the errors (eg: s:actionerrors /) and

Re: [S2]Multiple Form Submission

2008-10-30 Thread hernan gonzalez
On Wed, Oct 29, 2008 at 8:06 PM, Jishnu Viswanath [EMAIL PROTECTED] wrote: In some case I am getting Map session = ActionContext.getContext().getSession(); And the session contains a key called Unless you are doing some research to understand struts internals or deal with some very

Re: [S2]Multiple Form Submission

2008-10-29 Thread hernan gonzalez
http://struts.apache.org/2.0.11.2/docs/token-interceptor.html http://struts.apache.org/2.0.11.2/docs/token-session-interceptor.html http://www.planetstruts.org/struts2-showcase/token/index.jsp Hernán J. González http://hjg.com.ar/

Re: How to recover the action's name executed

2008-10-29 Thread hernan gonzalez
If you need to execute different validation for each method, would'n it be more pertinent to validate programatically, invoking the corresponding validation method from each action method ? On Wed, Oct 29, 2008 at 10:55 AM, Juanjo Cuadrado [EMAIL PROTECTED] wrote: Hi, I need to know how to

Re: How to putt objects on the valuestack from INSIDE an action?

2008-10-29 Thread hernan gonzalez
A suggestion, which might or not be adequate for your case: If every action/jsp of your webapplication share that behaviour, and if your actions presently just extend ActionSupport, you might want to change that so that they extend instead a MySiteAction class (which extends ActionSupport and

Re: How to recover the action's name executed

2008-10-29 Thread hernan gonzalez
() { ... } public void validate () { // common validation for every method } } On Wed, Oct 29, 2008 at 11:52 AM, Juanjo Cuadrado [EMAIL PROTECTED] wrote: uuummm... yes... but.. how? have you documentation this? 2008/10/29 hernan gonzalez [EMAIL PROTECTED] If you need to execute different

Re: [S2]Multiple Form Submission

2008-10-29 Thread hernan gonzalez
:: PASSION :: EXCELLENCE -Original Message- From: hernan gonzalez [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2008 7:04 PM To: Struts Users Mailing List Subject: Re: [S2]Multiple Form Submission http://struts.apache.org/2.0.11.2/docs/token-interceptor.html http

Re: [S2]Multiple Form Submission

2008-10-29 Thread hernan gonzalez
- 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: hernan gonzalez [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2008 11:26 PM To: Struts Users Mailing List Subject: Re: [S2]Multiple

Re: [S2] actions responding only to POST/GET methods

2008-10-28 Thread hernan gonzalez
Don is right. No security issue here (and absolutely nothing to do with PHP's register_globals). I see little use in trying to discriminate between GET and POST in the action side, at least not in relation with security. Of course, you should never use GET when submitting a password, but that's a

struts2 mailing list?

2008-10-23 Thread hernan gonzalez
Sorry if this has been discussed/answered before, but: Wouldn't it be nice to split the mailing list, so that Struts2 has its own list? Really, we all know that Struts2 and Struts1/Classic are very different frameworks, and the user interest in the messagges about s2 have, in all probability,

s2: Simple 'show empty form' flow

2008-05-22 Thread hernan gonzalez
In any webapp the most typical and simple form flow involves two steps: (from the serverside point of view) 1) show an empty form for the user to fill the fields 2) receive the data, validate ; if ok, process it and show response page; if not, show the same previous form with error messages In

Re: Clean some characters in request parameters

2008-04-15 Thread hernan gonzalez
There's nothing in Struts that will take care of this directly. Ideally your users should be able to enter whatever characters they want; I would be looking at how to get the database layer to cooperate, instead of imposing arbitrary input restrictions based on the current database

Clean some characters in request parameters

2008-04-14 Thread hernan gonzalez
Assume I have a lot of html forms with text inputs, and I want to palce some restrictions for the set of allowed chars. Sort of a sanity check, at the charset level. For a concrete example, my storage (db) uses LATIN9 (iso-8859-15), and the user sometimes can enter the non-allowed acute-accent

Clean some characters in request parameters

2008-04-14 Thread hernan gonzalez
Assume I have a lot of html forms with text inputs, and I want to palce some restrictions for the set of allowed chars. Sort of a sanity check, at the charset level. For a concrete example, my storage (db) uses LATIN9 (iso-8859-15), and the user sometimes can enter the non-allowed acute-accent

Re: s2: Including Freemarker templates from JSP

2008-03-31 Thread hernan gonzalez
/component.html hernan gonzalez wrote: I have some freemarker templates (general purpose, i.e. not specifically for struts2) that generate html fragments, which I would like to include in some jsp pages (in a struts2 environment). Which are my alternatives? At first I tought of making

Re: s2: Including Freemarker templates from JSP

2008-03-31 Thread hernan gonzalez
/component.html hernan gonzalez wrote: I have some freemarker templates (general purpose, i.e. not specifically for struts2) that generate html fragments, which I would like to include in some jsp pages (in a struts2 environment). Which are my alternatives? At first I tought of making

s2: Including Freemarker templates from JSP

2008-03-28 Thread hernan gonzalez
I have some freemarker templates (general purpose, i.e. not specifically for struts2) that generate html fragments, which I would like to include in some jsp pages (in a struts2 environment). Which are my alternatives? At first I tought of making a general jsp jsp:include

Re: s2 : checkbox and checkboxlist : dynamic lists

2008-01-14 Thread hernan gonzalez
Does not work for me. Does that work on struts 2.0.x ? Did you find documented somewhere ? Some special interceptor o configuration ? Hernán J. González On Jan 11, 2008 4:23 PM, Rubbinio [EMAIL PROTECTED] wrote: Actually you can do something like this s:checkbox name=selectedGroup

s2 : checkbox and checkboxlist : dynamic lists

2008-01-11 Thread hernan gonzalez
Disclaimer: I'm fairly new to Struts2, so I may me wrong. But: I feel the behaviour of checkbox tag lacking. I dont think there is a straighforward way to do a common web-application case: a form with a dynamic list of N records (rows), each of which can be selected by the user by a checkbox.

struts2: some action mapping clarificacions needed

2007-11-14 Thread hernan gonzalez
I have a wildcard mapping, say action name=CarCRUD_* method={1} class=myCarCRUAction If I have a form s:form action=CarCRUD_load... which results in (html stripped) form action=/Presentation/test/CarCRUD_load.do2 and inside I have some submit buttons which go to other methods (besides load) I