Announcement Announcement Module
No announcement yet.
Spring MVC decoding Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring MVC decoding

    Hi All,
    I have a decoding problem in spring MVC, From the iPhone App i am trying to send the session Id (which contains all characters, special characters ) after decoding the "+" symbol is replaced with " "(space ) . Can some one please help me in this?

    Below is the controller class

    public class LoginController {

    private LoginServiceImpl loginService;

    @RequestMapping(value = "/getUserDetails", method = RequestMethod.POST)
    public @ResponseBody
    LoginData getUserDetails(@ModelAttribute LoginDetails loginDetails) {
    LOGGER.debug("Service Token = " + loginDetails.getServiceToken());

    Web.xml file

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi=""
    xmlns="" xmlns:web=""
    id="WebApp_ID" version="3.0">
    <filter-class>org.springframework.web.filter.CharacterEnco dingFilter</filter-class>
    <servlet-class>org.springframework.web.servlet.DispatcherSe rvlet</servlet-class>

  • #2
    Nice post. Truly inspiring and I also like the language used. Just felt like it transported me to another world. Keep it up. Thanks for a new update.
    Last edited by jer; Mar 4th, 2013, 01:09 AM.