hi, i dont know the exact answer for your problem.but check the following things in your program 1) your configuration file for the mappings 2)in your action class after setting the value to the formbean property , whether you are setting that to the request i mean if you have done something like as follows formobj.setName("somename");//this you want to get displayed on the button then you have to set the formbean object which holds the value to the request , to get that in the jsp. so set your formbean object to the request as request.setAttribute("formobj",formObj); Then in your jsp you can display this as the value of the button .please refer struts user guide for more explanation for this part. hope it will help you try like this all the best
The html:hidden tag works because Struts tags automatically search all contexts by default for the named bean. Scriptlets, on the other hand, need to have the bean available in the page context by something like jsp:useBean.
Also, the value of your property attribute is invalid. The property attribute must be the name of the ActionForm field that will receive the value associated with the button. Struts will not be able to match "Add New" with any property in your ActionForm.
Try this (you need to give a valid value for property):