I'm sure that it's on the stack. I am using another method call via OGNL where I do <s:property value="getMovieCategory(category)"/> and that works fine. But when I write <s:textfield value="getMovieCategory(category)"/> it only prints out "getMovieCategory(category)". Is this expected behaviour or a bug?
Thanks! Felipe Rodrigues wrote: > > Is the method you're calling binded in some action that result in this > form? > I mean, to call some method by OGNL this method should be on the stack. > > Make sure it is on the stack, if it is and keeps not working, post the > code of your action and your form here. > > Regards, > > Felipe > > > meeboo wrote: >> >> Hey all >> >> I am trying to populate the value of a s:textfield with some data from a >> method via OGNL. I tried value="getTagsAsString(movie.id)" which doesn't >> work at all (the textfield is populated with >> "getTagsAsString(movie.id)"). Then I tried the JSTL approach, by writing >> value="%{#getTagsAsString(movie.id)}" but that doesn't return a result at >> all. It seems as if the method getTagsAsString isn't called - shouldn't >> you be able to do this via the value parameter of a s:textfield? I have >> pulled it off before with s:property. >> >> Thanks! >> > > -- View this message in context: http://www.nabble.com/%3Cs%3Atextfield%3E-question-tf3657820.html#a10220153 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]