Noam Nevo
Noam Nevo

Reputation: 3081

Using both @RequestBody and normal parameters

I am using spring 3 controllers with a flex client. I am now using @RequestBody in order to pass xml's to the server. How can i pass additional parameters?

Thank you.

Upvotes: 0

Views: 1662

Answers (1)

skaffman
skaffman

Reputation: 403441

You can mix and match easily enough:

public String handle(@RequestBody String xml, @RequestParam String x, @RequestParam String y) {
   ...
}

Upvotes: 1

Related Questions