POST « MVC Controller « Spring Q&A





1. Apache HttpClient making multipart POST to Spring @Controller class    stackoverflow.com

It seems like there are several posts such as here asking how to use Apache Commons HTTPClient libraries in Java to do a POST to a Servlet. However, it ...

2. How do you post a form field collection to a Spring controller?    stackoverflow.com

Suppose I have form such as this:

<form method="post" action="/create">

    <input type="text" name="title.0" value="Curious George" />
    <input type="text" name="author.0" value="H.A. Rey" />
    <input ...

3. Spring @Controller Separating GET and POST mappings    stackoverflow.com

I am using Spring MVC with annotation configuration. I have a controller class for handling HTTP GET calls:

@Controller
@RequestMapping("/form")
public class FormController {

    @RequestMapping(value = "/{table}/{identifier}/edit", method = RequestMethod.GET)
 ...

4. Spring WebFlow: POST from flow to MVC Controller    stackoverflow.com

I have MVC Controller as below and mapped /home to that controller. To redirect to /home from flow i use externalRedirect:contextRelative:/home in view attribute. Is possible to pass some data to ...

5. How do I post a checkbox array to a Spring 3 MVC controller?    stackoverflow.com

I have a html form which has a dynamic amount of checkboxes in it. How do I post these checkboxes as an array, and how do I recieve them in my ...

6. Spring mvc form post to different controller, or overthinking this    stackoverflow.com

I made this way more confusing than it needed to be. Here is the simplified version. 1 - I have a drop down and a submit button on every page in the ...

7. Controller it not responding to POST request    forum.springsource.org

HTML Code: @RequestMapping(value = "/New", method = RequestMethod.POST) public String add(@ModelAttribute("licCommerciale") Licenzecommerciali newLicenza, @RequestParam(value="servicesSelected", required=true) String stringServices) { logger.debug("START /NEW .POST"); logger.debug(stringServices); ArrayList servicesSelected = new ArrayList(); StringTokenizer tokens = new ...

8. Spring MVC 3: Handling individual POST request methods in the controller.    forum.springsource.org

Spring MVC 3: Handling individual POST request methods in the controller. Hi, I'm fairly new to the Spring web MVC framework... I have created an application that at the moment which ...

9. Pre and Post form controllers    forum.springsource.org

Pre and Post form controllers If im understanding Spring correctly all requests to do something go through the DispatcherServlet and are handled by a controller before a response comes back (as ...





10. SimpleFormController to support both get and post request    forum.springsource.org

SimpleFormController to support both get and post request Hi I want to change the behavoir of SimpleFormController to handle both get and post request instead of only post request. i.e i ...

11. How to change POST controller request method into a GET one ?    forum.springsource.org

How to change POST controller request method into a GET one ? Hi I have a special usecase, where all my form controllers are currently called using a POST method, not ...

12. Annotation controller - 2 methods with RequestMethod.POST possible?    forum.springsource.org

Annotation controller - 2 methods with RequestMethod.POST possible? Hello everybody, i have a controller with annotation to edit a user form. One little question. Is it possible to handle 2 "RequestMethod.POST" ...

13. SimpleForm Controller GET and POST request    forum.springsource.org

SimpleForm Controller GET and POST request Hi All, I have a form with 3 fields, 2 are text inputs and 1 is a drop down list. User needs to enter values ...

14. AbstractWizardFormController POST for new form    forum.springsource.org

AbstractWizardFormController POST for new form Hi, I'll try and explain what I'm trying to acheive, and then how I'm currently attempting it... We have a multipage form which works fine. However, ...

15. Form Controller to handle both GET and POST the same?    forum.springsource.org

Form Controller to handle both GET and POST the same? Closest I've been able to find to what I need is AbstractCommandController, but I don't know how to get exactly right. ...

16. limit controllers to only accept POST    forum.springsource.org

is this the appropriate way to make a controller only accept a POST? Code: also is there a way to make it ...





17. [MVC][Controller] Read xml from POST request    forum.springsource.org

[SOLVED] [MVC][Controller] Read xml from POST request Hi everybody, I use org.apache.commons.httpclient.HttpClient to write a client who send XML to a Controller with a POST request : Code: final URL url ...

18. Post from one Controller to another Controller    forum.springsource.org

Hi, I am looking for way on how to do a POST from one controller to another controller. I am using a SimpleFormController. On onSubmit method I want to perform some ...

19. POST called in controller instead of GET!    forum.springsource.org

POST called in controller instead of GET! I've just noticed a bug in a fairly simple system I built using Spring security/Spring MVC. Here's a bit of background about what the ...

20. Different representation for POST in Controller    forum.springsource.org

Is it possible to have a unique post method to handle different content type as input. Code: @RequestMapping(value = "new", method = RequestMethod.POST) public String processEditNew(@ModelAttribute Speaker speaker, BindingResult result, SessionStatus ...

21. how to explicitly create an internal POST request in spring controller    forum.springsource.org

Hi All I was wondering if there was a way of explicitly creating a POST request without using the

method attribute. Basically, I have a page which contains some parameters ...

22. Reading and unmarshalling xml from HTTP POST in spring mvc controller    forum.springsource.org

Reading and unmarshalling xml from HTTP POST in spring mvc controller Hi, im a newbie here so please forgive the question if it seems obvious. We are using spring web-services extensively. ...

23. Spring3 multiple post methods in 1 controller    forum.springsource.org

hi, I am new to Spring3, started working on a project in spring3. I am having problem in multiple post methods in a single controller. I am not able to find ...

24. Setting findAllMethod="" removes POST methods in Controller    forum.springsource.org

Hi folks, I was playing around with setting various methods in a Entity so that they would not be used, e.g. Code: @RooEntity(finders = { "findSubscribersByMsisdnEquals"}, countMethod="") will remove the count ...