aspose file tools*
The moose likes JSP and the fly likes problem with jsp : forwar> tag(please help) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "problem with jsp : forwar> tag(please help)" Watch "problem with jsp : forwar> tag(please help)" New topic
Author

problem with jsp : forwar> tag(please help)

apurva mehta
Ranch Hand

Joined: Nov 21, 2001
Posts: 35
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with jsp : forwar> tag(please help)
 
Similar Threads
Display an image when the request is processing
how do I get around "onLoad" in my app
Dynamically generate jsf components
Autopupulate of the jsp page using values from th FormBean
Passing Values.....