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

2008-06-06 Thread Maxx
. In your Constants *class*, create a public 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
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]

Nested Map List type conversion properties settings

2008-02-27 Thread Maxx
=com.mycompany.somepackage.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: 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
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]

Re: problem in populating Maps

2008-02-27 Thread Maxx
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: 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 basic operations). Maxx

Re: Evaluate a string property containing some OGNL expression

2008-02-27 Thread Maxx
!!! testValue (via xxxName) = s:property value=%{%{#testValueName}} / Still no idea...? Maxx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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: 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 PROTECTED

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

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

2008-02-18 Thread Maxx
://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://struts.apache.org/2

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 objects and it works fine. I would seriously

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

2008-02-16 Thread Maxx
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

Evaluate a string property containing some OGNL expression

2008-02-15 Thread Maxx
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 - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Evaluate a string property containing some OGNL expression

2008-02-15 Thread Maxx
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
within the other urls generated in your JSP, it's the same schema : generate them with the s:url tag and includeParams=none parameter. If you want to change this globally (it really helps!), set in your struts.properties the following line: struts.url.includeParams=none Maxx

Re: Evaluate a string property containing some OGNL expression

2008-02-15 Thread Maxx
or myObj.someSubList(X).someSubMap[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

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

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]

Unable to make Type Conversion work in Struts2

2008-02-15 Thread Maxx
with the OGNL expressions but could not found what...) Greets, Maxx PS: the s:iterator 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 displays the values

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* example... Greets, Maxx

Re: JSP syntax errors through icnlude

2008-01-15 Thread Maxx
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 - To unsubscribe, e

JSP syntax errors through icnlude

2008-01-14 Thread Maxx
.x)!! So what's the problem with the validation (JSP Syntax validator)? Any idea..? Thanks in advance... Maxx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] message properties

2007-12-21 Thread Maxx
In a JSP, it's quite easy, you just have to use a nested s:param inside the tag refering to your message, e.g. s:text name=message.remove s:param name=value value=item.name / /s:text (of course if item is available through your action via a getItem() method - same

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 trtd stuff around (which is really annoying and shouldn't be default IMHO), what you're doing is only hiding the inner

Re: accessing url parameters in jsp.

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

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]