Необработанная строка ответа Java MVC Struts ⇐ JAVA
-
Anonymous
Необработанная строка ответа Java MVC Struts
First of all I'm not a java developer and have no experience
But have a java project made in Struts (MVC) where I need to send a response as a raw string
struts.xml
/WEB-INF/app/index.jsp /WEB-INF/app/index.jsp In the I want to repond with a raw string I define without using the index.jsp file as model
I still want some.class.path.mvc.ServiceTestAction to handle the request, but want to write directly to the response writer
And at the same time I want to set the HTTP code of the response. In case it's an error I want to respond with HTTP 400 and write the body directly to the response writer
Источник: https://stackoverflow.com/questions/780 ... raw-string
First of all I'm not a java developer and have no experience
But have a java project made in Struts (MVC) where I need to send a response as a raw string
struts.xml
/WEB-INF/app/index.jsp /WEB-INF/app/index.jsp In the I want to repond with a raw string I define without using the index.jsp file as model
I still want some.class.path.mvc.ServiceTestAction to handle the request, but want to write directly to the response writer
And at the same time I want to set the HTTP code of the response. In case it's an error I want to respond with HTTP 400 and write the body directly to the response writer
Источник: https://stackoverflow.com/questions/780 ... raw-string
Мобильная версия