Not possible to attach 2 (or more) parameters from 2 different beans to an html:link?
Hello listers. I sent an email about a week ago and haven't heard a blip. So I guess this simply isn't possible? If I have a bean user and another module and want to attach a property from each to an html:link tag, how do I do it? As I understand it if I simply put paramName it will include ALL properties for that bean, which I don't need. But if I put paramName, paramProperty and paramId twice, once for each bean/property, it only attaches one! Is there some way I can create a custom bean ... in the page, put the two properties I need inside it, and pass *it* to the html:link with paramName ? Sounds kind a less-than.perfect solution. Any takers? Thanks, syg - Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone.
html:link and bean:include with paramters?
Hello all. I am trying to do two different things, but essentially both require sending parameters, one using the Struts html:link tag, and the other using the Struts bean:include tag. I have two beans, user and module. I would like to pass user.idCourse and module.id to both of these tags, dynamically. From what I have seen, the bean:include tag doesn't even allow parameters. If I do: bean:include forward=myStrutsForward / ... I can't send it parameters. And with html:link I have tried to do something like: html:link href=myLink paramName=user paramProperty=idCourse paramName=module paramProperty=id / ... but it doesn't work. It works with one set of paramName / paramProperty tags, but not with two. I have also tried JUST putting paramName ... Supposedly this will pass all the properties in the bean. But I need properties from two different beans! If anyone can help me out with this, I would be greatly in your debt! The Struts documentation has not been very helpful, and I can't seem to find anything like this in the mailing listarchives ... Many thanks in advance, syg - Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish.
How to pass parameters to forward in bean:include?
I would like to do a bean:include id = forward= ... / ... but looking at the Struts API, something I cannot do is pass the forward parameters. If it were an struts html link tag I could do: html:link forward= paramId= paramName= ... / ... thus calling the forward with parameters. Can I not do this with the forward used in my bean:include? How the heck can I pass parameters to a forward in a bean include then? Any help much appreciated. syg - Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages!