can anybody tell me how to do self posting of a form through <a href="" > ??
You can better understand my problem in following steps:
1. I want to save the data in page1.jsp in a jave file by self posting it. I am doing that stuff on page form post. 2. I want to move to page2.jsp( specified as link <a href="page2.jsp"> from page1.jsp, after the data is being posted into java file.
The design of page is having tabs for every page and upon click of any displayed number, it moves to that page through <A HREF > tag...now suppose after entering the data, he moves to another page by clicking on the link, the data of previous form should persist in the java file by first storing it in the java file by self posting the page. I hope i am able to make my problem clear...
You can't do exactly what you've described without a combination of (somewhat) complex javascript and some html tricks--either of which may not be supported, or may be supported differently--in some browsers.
Why not have the displayed number be a submit button with the form's action attribute pointing to the java code (presumably a servlet?), and just redirect to the next page in the chain from within the java code?