java - Action not found, why not? -


i have created action method below:

public class nomenclatureaction extends actionsupport {      // ...      @actions({       @action(value = "ajaxdostuff",               results = {                     @result(name = actionsupport.success, location = "success.jsp"),                     @result(name = actionsupport.input, location = "fail.jsp")                }),       @action(value = "index.action",               results = {                     @result(name = actionsupport.success, location = "success.jsp"),                     @result(name = actionsupport.input, location = "fail.jsp")                })     })     public final string dostuff() {         // ...         return actionsupport.success;     }  } 

i want call same method dostuff 1 of urls below:

so far, works first 2 urls not last 2 ones.
missing?

the value attribute should not contain extension.

@action(value = "index.action",   results = {         @result(name = actionsupport.success, location = "success.jsp"),         @result(name = actionsupport.input, location = "fail.jsp")    })  

you might try http://my-server.com/public/namespace should handled convention uknown handler, enabled default.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -