write a javascript function like:
fun(){
document.getElementById('textboxId').value = "abc" //<your value here may be
string>
}
and call this function where you want.
Or you can give your textbox name as similar to the variable you are using in your action class or using in the bean.
To know more post your more details.