I am doing a project in which i have developed a search page which returns the search results(i.e various products), now from this page i have a facility to compare the various products, once the user selects the products to be compared & clicks a compare page, a comparisionPage.jsp is forwarded (using <jsp: forward> tag) which will display comparision of different columns. I compare the products vertically ( one column for one product). I have set a limit that maximum columns that can be displayed on a single page to 7. So products exceeding this numbers are displayed on the following pages. I have provided next page , previous page ,first page & last page buttons which will take me to the required page. Now my problem is that for the first time when the compare page is forwarded i get the desired display ( it will display the first page by default for the first time), but when i click any of the button my controls go back to the search Page from which this compare page was forwarded (I came to know about this by inserting System.out.println() in search page & compare page). I have checked my form tag & it has no action attribute specified in it. I submit the same form i.e the form made in compare page. So I dont have any clue why the control goes back to search page.(is their any problem with <jsp:forward > tag ???). please help. thanx in advance, Apurva.
subject: problem with jsp : forwar> tag(please help)