. 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
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]
=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]
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
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]
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]
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
!!!
testValue (via xxxName) = s:property value=%{%{#testValueName}} /
Still no idea...?
Maxx
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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).
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
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
://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
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
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
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
in my JSP (to sum up things).
Maxx
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
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]
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
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
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
.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]
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
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
://struts.apache.org/2.x/docs/url.html
Greets,
Maxx
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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]
28 matches
Mail list logo