In my index.jsp page(The portal page of my site), I like to have a drop down list box listing all the product categories so that the use can choose one category and search.
So in my javabean, let us call DataManagerBean, I have function public Collection getProductCategories(), which retrieving the categories from database table.
Now in my index.jsp page; I have something like
------------------------------------------
<html:form action="/SeachProducts.do">
<html:select property="prodCategory" size="1" >
<htmlption value="0"> Select Category</htmlption>
<htmlptions> ??? ( I like to list all the products categories by calling getProductCategories()???
</html:select>
<html:submit value="Submit"/>
</html:form>
----------------------------------------------
I am confused because this is index page, I don't have any formbean associated with this. How can I accomplish this??? Any help would be great apprecated!!!
So in my javabean, let us call DataManagerBean, I have function public Collection getProductCategories(), which retrieving the categories from database table.
Now in my index.jsp page; I have something like
------------------------------------------
<html:form action="/SeachProducts.do">
<html:select property="prodCategory" size="1" >
<htmlption value="0"> Select Category</htmlption>
<htmlptions> ??? ( I like to list all the products categories by calling getProductCategories()???
</html:select>
<html:submit value="Submit"/>
</html:form>
----------------------------------------------
I am confused because this is index page, I don't have any formbean associated with this. How can I accomplish this??? Any help would be great apprecated!!!