using indexed property of javabean in <jsp:............/>

Discussions

Web tier: servlets, JSP, Web frameworks: using indexed property of javabean in <jsp:............/>

  1. Hi All,

    I want to use <jsp:getproperty> or <jsp:setproperty> tags to access indexed property of my bean.
    Can anyone please tell me how to set the index value for the bean in these tags?

    Thanks,
    Srinivas.J
  2. Srinivas, the jsp:get/setProperty tags don't allow indexed properties. You'll be better off rolling your own custom tags to provide for calling parameters. Or, resort to using:
    <%= object.getSomething(index) %>

    Gordon.