java - Using Spring, return view on success, plain text String on fail -


i have spring controller , returns string interpreted jsp view. if method fails, return plain text string fail message (as if using @responsebody annotation).

is possible? need presence of @responsebody dynamic.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -