This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I have a JSP page (page1.jsp)that is opened in a window with menu bar, button bar and Address field. In this JSP page, there is a form from which I submit another JSP page (page2.jsp). I want page2.jsp opens in the same window as page1.jsp, but without menu bar, button bar and Address field in the window. Can someone tell me how to do it?
I really don't think this is possible. And more, I don't think it's wise either. Can you tell us what you hope the benefit of hiding the commonly available button and address bars would be for the users your application?
Because page2.jsp is only used for user to input some data and submit the data. So I don't users to other buttons. After the data is submit, it will return to page1.jsp that has all the commonly used features. Do you have some better ideas?
Joined: Jan 07, 1999
Another top trick for preventing duplicates which I hardly ever see used is to generate a unique "transaction number" in a hidden field of the form each time the form is sent to the client. Then if a user submits the form more than once (deliberately, or as a result of a page refresh, etc.) the server can recognize that the form with that "transaction number" has already been processed, and handle it appropriately.
There is always the world of cookies if you want to do it client side. There are problems with cookies not being enabled or person clearing them out, but an easy way around a server side solution. Session Cookies are a great thing!!
Joined: Nov 17, 2001
Thank you all for your useful input. I have another question: when I update the data in the table, and refresh the page, I always get message like "This page cannot be refreshed without resending ....". Users have to press "Retry" so that the page can be reloaded. Is it possible to get rid of this message or write code to do the same thing as clicking "Retry". [ July 08, 2002: Message edited by: Mike Yu ]