AFAIK, you can't. The best way I think to handle this is to add some fields in your ActionForm and set them before forwarding to the
JSP. Be careful when you use this approach though because if you forward to another Action, the form may lose any values you set before you forward to it. In this case, the alternative approach is to put an object into one of the context collections, e.g. request.setAttribute() or request.getSession().setAttribute().