Re: Simplified usage of:@com.company.Constants.StaticCOnstants

2008-06-06 Thread Maxx
lic static singleton instance of > itself. Lets call it C. (Remember, OGNL can reference static fields) > public static final Constants C = new Constants(); > > 2. [...] And what if, as from my above explained example, you have an *interface*, not a class...? Maxx --

Re: S2 Refering to another key in the Resource Bundle?

2008-06-04 Thread Maxx
ause this resource bundle system is provided by the Java Properties class. see: http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html Maxx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Evaluate a string property containing some OGNL expression

2008-02-27 Thread Maxx
Back on this: > > testValue = // print 1 > > > testValueName = // print > testValue > > // print nothing!!! > testValue (via xxxName) = Still no idea...? Maxx -

Re: bean utils copy properties

2008-02-27 Thread Maxx
Try using the "Dozer" library on Sourceforge ( http://dozer.sourceforge.net/ ) It's test worth and even if it lacks some complex-hierarchy features, it's far advanced from BeanUtils (indeed, it uses BeanUtils for basi

Re: problem in populating Maps

2008-02-27 Thread Maxx
the same parameter (what seems to be commonly argued in this situation), why setting the value for a single String field in an Action do not lead to this exception?! Maxx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: The next version of the Struts2

2008-02-27 Thread Maxx
Hello, I just asked this a week or two ago... it's imminent but not 100% confirmed. Seems it needs to be "qualified" before getting available as a "GA". The only alternative is building it by our own using Maven. Maxx ---

Re: For s:textfield tag how to get value for title attribute from resource bundle.

2008-02-27 Thread Maxx
nd went to be replaced by XWork as part of Struts2. Check: http://blogs.opensymphony.com/webwork/2007/04/webwork_225_released.html Maxx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Nested Map & List type conversion properties settings

2008-02-27 Thread Maxx
kage.www.bean.MyBean CreateIfNull_myList=true Thanks for your help! Maxx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: struts2 design question

2008-02-21 Thread Maxx
Strangely it first freezes my browser. Re-testing it now and it's working. I also thought the three dots could come from a shortened url, while it's effectively not. Apologies. Maxx - To unsubscribe, e-mail: [EMAIL

Re: struts2 design question

2008-02-21 Thread Maxx
On Thu, Feb 21, 2008 at 2:03 AM, Jeromy Evans <[EMAIL PROTECTED]> wrote: > Just thought I'd mention that Dave followed this up for you in struts-dev: > http://www.nabble.com/StrutsStatics...-td15595866.html Just to let you know this link does not work (seems incomplete). ---

Re: Unable to make Type Conversion work in Struts2

2008-02-19 Thread Maxx
Thanks for your answer. I partially fixed this, noticing the square brackets notation is the same for Lists and Maps, which is not so clear on the related doc page (I posted a comment about this, having had a conversion with Dave Newton about this in a more recent thread on the mailing-list), as w

Availability of Struts 2.1.0? ... related to XWork 2.1.0

2008-02-18 Thread Maxx
http://jira.opensymphony.com/browse/XW-564 As it seems both (XWork 2.1.0 & current Struts2 GA = 2.0.11) are incompatible - I tested it, some XWork classes moved or disappeared -, I don't really know what to do actually. Any ideas...? Thanks, Maxx Version Notes 2.1.0 (due Oct. 29 2007) http://str

Re: S2 insertnig key and pojo(as its value) into a map

2008-02-16 Thread Maxx
several times. And unfortunately, it lacks some more explicit examples. And in my case it does not work, while I applied everything described in the famous page: http://struts.apache.org/2.0.11/docs/type-conversion.html Maxx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: S2 insertnig key and pojo(as its value) into a map

2008-02-16 Thread Maxx
On Feb 16, 2008 1:57 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Maxx <[EMAIL PROTECTED]> wrote: > > I seriously doubt it is actually really working like > > presented in the Struts doc. > > I have a three-deep nested structure with a map between IDs and obje

Re: S2 insertnig key and pojo(as its value) into a map

2008-02-15 Thread Maxx
Hello, I seriously doubt it is actually really working like presented in the Struts doc. As explained in a previous email today (entitled "Unable to make Type Conversion work in Struts2"), I'm currently facing a problem with this "Type Conversion" in a very *simple*

Unable to make Type Conversion work in Struts2

2008-02-15 Thread Maxx
ething with the OGNL expressions but could not found what...) Greets, Maxx PS: the doesn't display anything, but if you move the testList under a JavaBean (e.g. TestBean) and you change testList to testBean.testList as OGNL value everywhere it's used (esp. for the iterator), it displa

Re: Parameters in URL

2008-02-15 Thread Maxx
OK, understood. Did you try what I advised you? To make it clear, what is the JSP code of the other links/actions..? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Evaluate a string property containing some OGNL expression

2008-02-15 Thread Maxx
Currently searching, I found something that might be related : it's a security fix about "recursive OGNL parsing" http://struts.apache.org/2.x/docs/s2-001.html (related to WebWork bug WW-2030). As I can read: *As of XWork 2.0.4, the OGNL parsing is changed so that it is not recursive* ... is my pr

Re: Evaluate a string property containing some OGNL expression

2008-02-15 Thread Maxx
omeSubMap[Y](Z).subObj.fieldName ... you have to enter the WHOLE object path as "name" of the input field. That IS the problem :-p Maxx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Evaluate a string property containing some OGNL expression

2008-02-15 Thread Maxx
egories, fields...) presented in my JSP (to sum up things). Maxx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Parameters in URL

2008-02-15 Thread Maxx
ng about now ? If, as said above, it's within the other urls generated in your JSP, it's the same schema : generate them with the tag and "includeParams=none" parameter. If you want to change this globally (it really helps!), set in your struts.properties th

Evaluate a string property containing some OGNL expression

2008-02-15 Thread Maxx
NL "prefix" with a simple set and then for each property call use something like %{#myPrefix + 'fieldName'} But unfortunately I'm unable to make it work at the moment. Could please someone explain me what I'm doing wrong? Thanks, Maxx -

Re: JSP syntax errors through icnlude

2008-01-15 Thread Maxx
ing system you put > your report in and not Struts Jira? Well, I thought it might be related to the use of Struts2 tags/taglib, and then related to the translation into JSP's java code. But hey, I'm gonna try the Eclipse thing. Thanks, Maxx --

JSP syntax errors through icnlude

2008-01-14 Thread Maxx
expected - Syntax error on token "}", delete this token I first thought it could be due to the & tags not handling properly exceptions. But as there's seem to have no syntax error when putting both files (JSP & JSPF) in the same folder, I'm getting du

Re: [S2]Using javascript to hide a struts tag

2007-12-21 Thread Maxx
Of course the label can't be hidden as it's not the same element. It may also depend on the theme you're using. By default it's the xhtml one, and as this theme creates additional stuff around (which is really annoying and shouldn't be default IMHO), what you're doing is only hiding the inner stuf

Re: [S2] message properties

2007-12-21 Thread Maxx
In a JSP, it's quite easy, you just have to use a nested inside the tag refering to your message, e.g. (of course if item is available through your action via a getItem() method - same for property "name" on your "item") For the Freemarker thing, I unfortunatel

Re: Struts 2 and SSL

2007-12-19 Thread Maxx
Hello, Good idea, but when it's about "annotations", is it about Java 5? How to handle/use this in Java (1.)4 ? Thanks, Maxx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: accessing url parameters in jsp.

2007-12-19 Thread Maxx
!!! ;) http://struts.apache.org/2.x/docs/url.html Greets, Maxx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]