Open Emerjoin opened 7 years ago
To be able to have one AjaxController and one regular controller mapped to the same path but with different actions:
@AjaxController @Mapping("/order") public interface OrderAjaxController { void items(); void checkout(); } @Mapping("/order") public class OrderController extends Controller { public void cancel() throws MvcException{ this.callView(); } }
Both controllers expose actions accessible using the following URLs:
The views of both controllers must be located under webapp/views/order/ directory.
Why do we need URL Mapping?
To be able to have one AjaxController and one regular controller mapped to the same path but with different actions:
Example
Both controllers expose actions accessible using the following URLs:
The views of both controllers must be located under webapp/views/order/ directory.