1
How could you get inside a Receive Data controller via Post (in Spring MVC) and write this data to a TXT?
Later, in Model open this TXT and send to View.
Would anyone have any example?
1
How could you get inside a Receive Data controller via Post (in Spring MVC) and write this data to a TXT?
Later, in Model open this TXT and send to View.
Would anyone have any example?
0
Create a method in your control that receives a post type request with the data you want to save as parameter. Create a Txtdao for the CRUD you want to perform on top of that txt. The request delivers to the controller that delivers to the dao, this applies the action you want and returns the result. In fact it is the same analogy that would make in a DAO for database, soh that in the connector, instead of having a database, you would build the DAO for file.
Browser other questions tagged java spring
You are not signed in. Login or sign up in order to post.