Thanks Sami, That did definetely help, was just what I was looking for!
> In Struts2, properties are accessed using the OGNL language Somehow I haven't really realized what this actually means... Torsten Sami Dalouche schrieb: > Hi, > > Not sure if I understand your question correctly, but it seems you are > trying to make a Java method call from your View. > > In Struts2, properties are accessed using the OGNL language. The OGNL > reference is available from http://www.ognl.org/. > > In particular, it is possible to make any method call using OGNL, using > the simple syntax : > myMethod(param1, param2) > > so, in your case, it could be > getVehicles('car') > > Hope that helps, > Regards, > Sami Dalouche > > Le dimanche 27 mai 2007 à 20:15 +0200, Torsten Römer a écrit : >> I guess this has been asked before but I have trouble finding an answer, >> if it is somehow possible to give arguments to property calls in tags. >> For example, if I'd have "vehicles" as list attribute in <s:select>, >> that I could give literal arguments like "car" or "motorcycle" and have >> a method like getVehicles(String type) { ... } in my backing bean. >> >> A simple "yes" or "no" would already be very helpful :-) >> >> Torsten >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]