I have a situation whereby I need to keep track of a thread and perform 2 actions:
start and stop, only after a click or selection has been done. In order to perform a start or stop
action on the next page, I would need to pass the thread object to the next page.
Is there any way that objects can be passed on to the next page?
Is "session.setAttribute("objectname", object)" workable to pass the THread to the next page?
Below are some codes tried out:
SendRecvThread t = new SendRecvThread();
<form action="startThreadAction.jsp" method="post">
<p>Click Start to Start Thread</p>
<INPUT type="submit" value="Start" name="startButton" > </p>
<%}//thread set alive
<form action="stopThreadAction.jsp" method="post">
<p>Click Start to Stop Thread</p>
<INPUT type="submit" value="Stop" name="stopButton" ></p>
}//thread to be destroyed