Well, I'm blocked with this, I have a .jsp with 2 forms, one of them is to look for pets according to an id of the customer, and the other is to register a service for one of those pets, so the problem is that when I look for the pets with the following form, which is linked to a PetsAction:
<input type="text" name="customer.id" class="form-ontrol">
As far as both actions return the same result JSP which contains a select tag and different action classes hold the action method you have to write
prepare() in both classes. Otherwise you can use one action class for both actions/methods. The exception is thrown because the
list attribute of the
s:select tag couldn't be
null. You should properly initialize the variable used for the tag before returning a result that has references to that variable.