This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
I am new to JSP and am facing a problem to pass the values which i have defined in array in one bean and i want to pass this array in the JSP so that an drop-down list will be opened which will show the array values in them, so that one of them be selected and then passed to another bean. So that the value stored in that bean can be displayed using other JSP. I have figured out the configuration of bean but have no proper idea to pass an array from bean to JSP
posted 10 years ago
If your array is accessed via a bean accessor method, then simply add the bean to the request scope if you are pre-processing the request with a servlet, or if you just have a JSP page use the <jsp:useBean /> tag to create a new instance of the bean