>> I still wonder how Struts can possibly know that the
>> objects I've put in my HashMap are of my InfoObject type.
>
> Why would it need to?
To be able to execute the getState method that belongs to the
InfoObjects. But maybe Struts 2 is that "smart" so it can do that
anyway.
But what matters is
--- On Wed, 8/20/08, Ylva Degerfeldt wrote:
> I still wonder how Struts can possibly know that the
> objects I've put in my HashMap are of my InfoObject type.
Why would it need to?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTE
Yes, I tried:
but it doesn't write anything at all.
I still wonder how Struts can possibly know that the objects I've put
in my HashMap are of my InfoObject type. (I'm not so good at
reflection) When I created that HashMap, first I just did "HashMap
myMap = new HashMap()", but I tried changing
No, it will use reflection to find the property so typing is not the
issue, I think. Have you tried to just print out the value of the
state property with a tag?
On Aug 19, 2008, at 10:22 AM, Ylva Degerfeldt wrote:
Thanks for the tip, Dustin, but it's not working.
Though, I omitted the "
Thanks for the tip, Dustin, but it's not working.
Though, I omitted the "information" part because that was only meant
to temporarily save a reference to the object that the Map returns -
an object of type InfoObject which has get- and set methods for the
property state. So I tried:
but that st
Everything is fine except try:
you don't need the %{#thisValue}, its already being evaluated. You
also don't need the set, just navigate the object graph in your test.
On Aug 19, 2008, at 5:43 AM, Ylva Degerfeldt wrote:
Hi,
First of all: This problem is about jsp tags. Secondly: This
I tried to show the value of "information" using s:property but it
didn't show anything. So there must be something wrong with my code.
What's the right way to get an object instance from a Map (like this)
and use one of its properties in S2?
Please help!
/Ylva
On Tue, Aug 19, 2008 at 2:53 PM, D
--- On Tue, 8/19/08, Ylva Degerfeldt wrote:
>
> [...]
> About the s:set tag, I'm not sure if that's the way to do it
> but I don't know how to check if it's correct when debugging.
Why not just display the contents of the variable you think you're setting?
Dave
Hi,
First of all: This problem is about jsp tags. Secondly: This is a
problem which has several steps and I don't know which step I've done
wrong so I'll just show you what I've tried to do:
.
Explanation: I iterate through a Set of Strings and call each
9 matches
Mail list logo