Cameron,
The reason the entire frame changes to listRoomPath is because the target on that form says "top".
I think it will work as you want if you have the target on that form as "self" i.e
<FORM METHOD="POST" ACTION=response.encodeURL(listRoomPath)
TARGET="_self">
Hope that helps.
Chuck
Originally posted by Cameron Park:
I have the following snippet in the second form:out.println("<HTML>");
out.println("<BODY>");
out.println("<FORM METHOD=\"POST\" ACTION =\""+response.encodeURL(chatRoomPath)+
"\" TARGET=\"_top\">");
out.println("<p>Enter your message:</p>");
out.println("<INPUT TYPE NAME=\"msg\" SIZE=\"30\">");
out.println("<INPUT TYPE=SUBMIT VALUE ='Send Message'>");
out.println("</FORM>");
out.println("<FORM METHOD=\"POST\" ACTION = \""+response.encodeURL(listRoomPath)+
"\" TARGET=\"_top\">");
out.println("<INPUT TYPE=SUBMIT VALUE=Exit>");
out.println("</FORM>");
out.println("</BODY></HTML>");
When I press the Exit button, the entire frame changed to listRoomPath.
Please help me understanding what is going on.