I have two JSP pages PageOne.jsp and PageTwo.jsp.
On the PageOne.jsp I have TextBoxOne and TextBoxTwo.
Next to each of these textboxes there is a "Wizard1" button and "Wizard2" button.
When the user clicks any of these "Wizard" buttons it will take him to PageTwo.jsp by popping up a new jsp window (PageTwo.jsp).
On this PageTwo.jsp the user will need to fill out a form and then click "Done" button.
After he clicks the "Done" button I need to close the PageTwo.jsp, and take the user back to the PageOne.jsp and populate one of the textboxes (depending on which Wizard Button was clicked).
One of the Wizard buttons already works and populates the TextBoxOne. Now I need to get the second Wizard botton working without creating a new JSP page and a new servlet.
I'm thinking about puting an IF stetement on to my PageTwo.jsp, which will look something like this:
if (Wizard1 was clicked)
{
Populate TextBoxOne
}
If (Wizard2 was clicked)
{
Polulate TextBoxTwo
}
Now, my question is, I want to know what is the syntax for writing this IF statement? How can I find out which button was clicked?
Thanks,
On the PageOne.jsp I have TextBoxOne and TextBoxTwo.
Next to each of these textboxes there is a "Wizard1" button and "Wizard2" button.
When the user clicks any of these "Wizard" buttons it will take him to PageTwo.jsp by popping up a new jsp window (PageTwo.jsp).
On this PageTwo.jsp the user will need to fill out a form and then click "Done" button.
After he clicks the "Done" button I need to close the PageTwo.jsp, and take the user back to the PageOne.jsp and populate one of the textboxes (depending on which Wizard Button was clicked).
One of the Wizard buttons already works and populates the TextBoxOne. Now I need to get the second Wizard botton working without creating a new JSP page and a new servlet.
I'm thinking about puting an IF stetement on to my PageTwo.jsp, which will look something like this:
if (Wizard1 was clicked)
{
Populate TextBoxOne
}
If (Wizard2 was clicked)
{
Polulate TextBoxTwo
}
Now, my question is, I want to know what is the syntax for writing this IF statement? How can I find out which button was clicked?
Thanks,
Comment