By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,148 Members | 774 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,148 IT Pros & Developers. It's quick & easy.

html:link paramProperty Problem

P: 15
I'm having issues with my html:link tag. I've tried this two ways.

1) This gets me to my proper dispatch action with the bean:
[HTML]<html:link forward="editMyInfo"
paramId="<%=BeanNames.MY_BEAN_ID%>"
paramName="myBean">Edit</html:link>[/HTML]

2)This also gets me to my proper dispatch action without the bean, and without the id:
[HTML]<html:link forward="editMyInfo"
paramId="<%=BeanNames.MY_BEAN_ID%>"
paramName="myBean"
paramProperty="id">Edit</html:link>[/HTML]

My forward tag in struts config is:
[HTML]<forward name="editMyInfo" path="/secure/editMyInfo.do?dispatch=edit"/>[/HTML]

I do notice the following -

For example 1 the generated html is:
[HTML]<a href="/mywebsite/research/secure/editMyInfo.do?dispatch=edit&myBean=com.mywebsite.s truts.research.primate.gorilla.MyBean%401563e06">E dit</a>[/HTML]


For example 2 the generated html is:
[HTML]<a href="/mywebsite/research/secure/editMyInfo.do?dispatch=edit">Edit</a>[/HTML]

What I want is to get to my dispatch action (edit) with just the id stored in the bean, and not the whole bean. Can anyone tell what I'm doing wrong?


After beating my head against the wall I discoverd that in one my test case where I declared bean1, bean2, and bean3 I was setting bean1 3 times.

Let's hear if for copy and paste mistakes. WooooHooooo!!
Jul 31 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.