Thank you so much to anyone who can give me some solid guidance/examples. [ April 07, 2005: Message edited by: Bear Bibeault ]
Now when the user selects a value I want to drop that value into another sql call to finish the page.
You have a common misconception as to how JSP works. JSP is merely a template engine that allows you to dynamically build an HTML page to send to the browser. Once the page is sent to the browser, there is no way to get any code on the server to execute without submitting another request. You cannot just execute snippets of Java in response to a user's action.
Upon the user's selection, you must submit back to the server and re-render the page to make any changes.
OK...so how would you do it then? I noticed the original author of the code used Iframes to just hold sections of java code to execute and had the Iframes hidden...I don't know if I am coming across...I'm just frustrated because I can not figure out how to make something seamingly as simple as this work. If you could elaborate more or direct me to a good how to do it for dummies web-site I would appreaceate it.
The easiest method is what I previously mentioned: repost back to the server and refresh the entire page with appropriate changes.
Joined: Feb 04, 2005
OK, I am doing an onchange in my combo box and then I will forward to another page (identicle to the original) but how do I pass the selected value to the duplicate page...I mean what is teh call to pass it and then how do I get it back out?
Pat, I would strongly recommend taking some time away from this project to follow a few JSP/Servlet tutorials. There is a chapter in "Core Servlets And Java Server Pages" devoted to explaining how HTML forms work. Without understanding some of the fundamental concepts of web programming all the explanations you get from people in this forum will only confuse you further.