I don't know the answer to your question, but I suspect that you're asking the wrong question. The right question is "How do I accomplish what I want to accomplish by putting all my Java code in the Action class?". I believe if you ask yourself this question, you will find a better solution than if you answer your original question.