This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I am new to Spring Web flow (and Spring in general).
I have a page where i can select a name from a drop down (search criteria)
there is a button which on clicking invokes another action which displays the results in another page.
Now even if there are no results for the name selected in the drop down, my application opens up the other page which i don't want.
I was thinking of the following approach -
I add a decision state after search -> check the size of the result object -> if size >0 transition to the other page. If size=0 i stay on the same page and display a pop up on the same page.
Now I don't want to display the pop up in another page. rather stay on the same page.
I tried adding transition to the same page page if size=0 , this gives a stack overflow exception. Also I am afraid I'll lose the chosen search criteria in this case.