English 中文(简体)
条例1.3 抗逆转录病毒
原标题:Struts 1.3 ActionErrors access

在我的行动论坛中,有有效方法:

public ActionErrors validate(ActionMapping mapping, HttpServletRequest request){

    ActionErrors errorList = new ActionErrors();
    errorList.add("myError", new ActionMessage("this is my error"));
    return errorList;
}

然后,流量将回到页表。 jsp.

I want to access that error from my form.jsp page but using JSTL s EL and not html:error tag. I know that errorList is stored as an Attribute on the requests scope but I need the exact name of the attribute. Can you tell under what name is that errorList stored on the request? Thank you!

最佳回答
问题回答

暂无回答




相关问题
Struts 1.2.9 Action Chaining

I m having trouble calling a method in one Struts action from a method in another Struts Action (I ve been told that this is possible). I m working with two Struts DynaValidatorForms - one is used to ...

Java Struts Report

I am writing an excel report using an action,controller, servlet struts framework. The report is very congested and has already around 10 separate queries. I need to add about 10 more queries due to a ...

Struts Tiles 1 - nested tiles issue

I am using Struts tiles 1 succesfully, however I have come across a problem when trying to nest tiles. I currently have a layout like so: I wish to have another template like this, for use in quite ...

array as hidden variable

can array be used as hidden variable on jsp.....like I have a form i.e a simple java class,I want it to be as hidden variable can I do it.. Thanks in advance

GZIP JSON AJAX response text is empty

I am facing a problem, while encoding the response that I send back for an AJAX request, using GZIP. Can anyone give me some pointers on this please? There is an AJAX request from the JSP, An action ...

How to prevent JPA from rolling back transaction?

Methods invoked: 1. Struts Action 2. Service class method (annotated by @Transactional) 3. Xfire webservice call Everything including struts (DelegatingActionProxy) and transactions is configured ...