문제

What is the cause of this exception, whats wrong with it? Thanks in Advance.

WARNING: No configuration found for the specified action: 'ActionAnnotation' in namespace: '/'. Form action defaulting to 'action' attribute's literal value.

HTML:

        <s:form action="ActionAnnotation" >            
            <s:submit  value="ActionAnnotation"/>
        </s:form>

Action :

@ResultPath(value="/")
@Result(name="success",location="differenactions.jsp")
public class ActionAnnotationAction extends ActionSupport{
    private String message;


    public String execute() {
        System.out.println("ActionAnnotation : Hello How are you execute() method got called.....");
        setMessage("ActionAnnotation : Hello How are you");
        return "success";

    }
도움이 되었습니까?

해결책

The following annotations needed

@Namespace("/")
@Action(value="ActionAnnotation", results=@Result(name="success", location="/differenactions.jsp"))
public class ActionAnnotationAction extends ActionSupport{
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top