requestparamater is property of bean

Discussion in 'Java' started by GuyBrush Treepwood, May 10, 2005.

  1. I'm building a webapplication using struts and ibatis.
    In one of my views I want to have a link like this:

    <html:link
    page="/service/showTreeLevel.do?currentFolderId=...">Bookmarks</html:link>


    At the place of the points, I want the value of a property of another
    bean.
    Something like placing <bean:write name="accountBean" property="rootId">
    instead of the points, but of course this doesn't work.
    Any suggestions?

    --
    "Don't worry about people stealing your ideas. If your ideas are any good,
    you'll have to ram them down people's throats."
    -- Howard Aiken
     
    GuyBrush Treepwood, May 10, 2005
    #1
    1. Advertising

  2. On Tue, 10 May 2005 02:52:34 +0200, GuyBrush Treepwood wrote:

    > I'm building a webapplication using struts and ibatis.
    > In one of my views I want to have a link like this:
    >
    > <html:link
    > page="/service/showTreeLevel.do?currentFolderId=...">Bookmarks</html:link>
    >
    >
    > At the place of the points, I want the value of a property of another
    > bean.
    > Something like placing <bean:write name="accountBean" property="rootId">
    > instead of the points, but of course this doesn't work.
    > Any suggestions?


    Ok, I found it. I use the paramId, paramName and paramProperty
    attributes of the link tag.

    --
    "Don't worry about people stealing your ideas. If your ideas are any good,
    you'll have to ram them down people's throats."
    -- Howard Aiken
     
    GuyBrush Treepwood, May 10, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Benjamin Stewart

    To bean or not to bean...

    Benjamin Stewart, Jun 30, 2003, in forum: Java
    Replies:
    0
    Views:
    828
    Benjamin Stewart
    Jun 30, 2003
  2. David Thielen
    Replies:
    2
    Views:
    834
    Marek Lange
    Sep 12, 2003
  3. Markku Salminen
    Replies:
    3
    Views:
    5,891
    Michael Borgwardt
    Jan 21, 2004
  4. Takeshi
    Replies:
    0
    Views:
    546
    Takeshi
    Jan 28, 2004
  5. kumar
    Replies:
    1
    Views:
    577
    Wendy S
    Feb 13, 2004
Loading...

Share This Page