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.
is it possible to make the action page the calling page?
Could you be more explicit about what you mean by "action" and "calling" pages? (If you just want the page to submit to itself using the same URL, I think that leaving off the action attribute of the form tag may accomplish that, but that might be a better question for the HTML forum). bear
Well, PHP users do this a lot because PHP is like using JSP without actual Servlets. This is not a good idea, but can be done. You will need a lot of logic and scriplets in your JSP page to detmerine when to do what with any data you may or may not have. A better approach would be the following: I have a form called employeelookup.jsp. It begins with a text field for the employee ID. When I click the Lookup button I call a Servlet that gets the employee info from a DB and fills an EmployeeBean with some initial data. I then forward back to employeelookup.jsp. I have another form on that same page that is encoumpassed with jstl's c:test= where I test for the presence of that EmployeeBean. If it exists, I display some info about the employee for verification and also provide a Continue button to move on to the Call Log form. [ January 16, 2004: Message edited by: Gregg Bolinger ]