I want to parametrify a very simple tag with a collection 'ID like the following:
& lt; S: url action = "activity" name space = "/" include mercury = "all" id = "histURL" & gt; & Lt; S: Ultimate name = "source" value = "source. {Id}" & gt; & Lt; / S: Ultimate & gt; & Lt; / S: URL & gt; $ {HistURL}
If I said that there are three source objects defined in my action class, then if I have the 1,2 and 3 ID, I think, the histle output will be like SG: < / P>
http: // localhost: 8080 / myproject / theaction and formula = 1 & amp; Source = 2 & Source = 3
but it does not work, it displays:
http: // localhost: 8080 / myproject / actionaction
Another sign:
& lt; S: url verb = "activity" name space = "/" include mercury = "all" id = "histURL" & gt; & Lt; S: Ultimate name = "source" value = "source" & gt; & Lt; / S: Ultimate & gt; & Lt; / S: URL & gt; $ {HistURL}
In the results
http: // localhost: 8080 / myproject / theaction and sources. Com.mycompany.Source@32324&sources = ...
So a paramater works as a collection, I just assumed that the job was well, but buggy seems is. Or am I missing something? Is this OGNL exactly? :)
Thank you for your reply!
I am dumb This is the only way, I remember that I had used the wrong class, which did not have any ID. It's definitely OGNL and it works like a charm :)
Comments
Post a Comment