You don't need struts, struts can't solve this problem as well.
Since you have the javascript to render the textbox and button when selecting the select box, what you need is to execute the javascript during page load (<body onload="..">) and pass in the value of the select box from request parameter/attribute, if the value from request is empty then dont do anything in the javascript.
Main Topics
Browse All Topics





by: design_webPosted on 2007-08-06 at 11:51:21ID: 19640638
Or I can use Struts if that would be better. Even though I don't know Struts well either.