[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 l

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 wrote: > 2010/5/5 Lukasz Lenart : >> Hmm something strange, the code is there but highlighting doesn't >> work any more :-( > >

Re: [s2] broken documentation in web site

2010-05-06 Thread hernan gonzalez
5/6 hernan gonzalez : >> 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: /includes/css/wiki

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 wrote: > The most similar question I could find is: > > https://issues.apache.org/jira/browse/WW-2921 > > But did

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: Online docs messed up

2010-05-19 Thread hernan gonzalez
Still broken. On Mon, May 17, 2010 at 12:39 PM, Lukasz Lenart wrote: > 2010/5/14 nuwan chandrasoma : >> 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 version of the css file but it looks like > e

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 This is getting depressing, it makes Struts2 look as an dying project. Hernán

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 DynamicMethodIn

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 I 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

struts2: some action mapping clarificacions needed

2007-11-14 Thread hernan gonzalez
I have a wildcard mapping, say If I have a form ... which results in (html stripped) and inside I have some submit buttons which go to other methods (besides load) I can accomplish that by using the "method" and "action" attrbiute of the "submit" struts-tag, eg (case 1)

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. (E

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 > > > > And in the action class you ca

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, lit

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 p

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

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 impl

Re: How to recover the action's name executed

2008-10-29 Thread hernan gonzalez
void validate2() { ... } 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 <

Re: [S2]Multiple Form Submission

2008-10-29 Thread hernan gonzalez
29) >at > org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) > > Powered by Jetty:// > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Techno

Re: [S2]Multiple Form Submission

2008-10-29 Thread hernan gonzalez
t is complete, and then instead of >> returning the invalid.token code" >>Second there was no double post, none of my pages are loading when I >> added this interceptor. >> >> Regards, >> >> Jishnu Viswanath >> >> Software Engineer >&

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: 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: ) and reenter the dat

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 al

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 wrote: > That is the official page, in fact 2.1.5 isn't actually on the page that > button is linked to. My g

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 i

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: [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 wrote: > The Apache Struts group is pleased to announce that Struts 2.1.6 is > available as a "General Availability" release. The GA des

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 visibl

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 Bu

Re: S2 - Errors in tags documentation

2009-01-21 Thread hernan gonzalez
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 wrote: > (Forgot to add that the same is true for the bean tag as well.) > > Dave Newton wrote: >> >>

[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 ex

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 Beware: for validation errors, besides hasActionErrors() you might want to ask hasFieldErrors(). Or use hasErrors() , that includes both Hernán J. González http://hjg.com.ar/ On Fri, Feb 27, 2009

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

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 action

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

struts 2.1.6 jar sizes

2009-03-18 Thread hernan gonzalez
I've just upgraded from 2.0.14 to 2.1.6. Everything smooth so far. I'm a little concerned about the jar sizes. Previuosly, we had a huge struts2-core-2.0.14.jar, 2.21 MB, most of it from the static/ folder (for dojo); now that dojo has been factored out from the core (wise move) struts2-core-2.1.

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) f

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 where includeFreemark

Re: s2: Including Freemarker templates from JSP

2008-03-31 Thread hernan gonzalez
/struts.apache.org/2.x/docs/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 envi

Re: s2: Including Freemarker templates from JSP

2008-03-31 Thread hernan gonzalez
/struts.apache.org/2.x/docs/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 envi

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 (ins

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 (ins

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 configu

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 St