html:link paramProperty Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NamelessNumberheadMan
    New Member
    • Jul 2007
    • 15

    html:link paramProperty Problem

    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="editMy Info"
    paramId="<%=Bea nNames.MY_BEAN_ ID%>"
    paramName="myBe an">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="editMy Info"
    paramId="<%=Bea nNames.MY_BEAN_ ID%>"
    paramName="myBe an"
    paramProperty=" id">Edit</html:link>[/HTML]

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

    I do notice the following -

    For example 1 the generated html is:
    [HTML]<a href="/mywebsite/research/secure/editMyInfo.do?d ispatch=edit&my Bean=com.mywebs ite.struts.rese arch.primate.go rilla.MyBean%40 1563e06">Edit</a>[/HTML]


    For example 2 the generated html is:
    [HTML]<a href="/mywebsite/research/secure/editMyInfo.do?d ispatch=edit">E dit</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!!
    Last edited by NamelessNumberheadMan; Jul 31 '07, 03:20 PM. Reason: resolved the issue
Working...