Hi Friends,
I am new to Spring Mvc. I tried on HTML form using @RequestParam annotation in Spring Mvc. But Output is not displaying in view page. Please help me.
Prasad Krishnegowda wrote:Can you change the method below
to
Ichanged method. but it saying no such method found.
System.out.println("Name:"+name); // Here printed what i entered in form.for exmaple i enter surendra. here that name printed. is Empty method also printing false
where it is telling nosuchmethod?Did you notice the change i have made in the method?
Remove the ModelAndView reference, we are now using ModelMap directly and returning the view as String.
Your code is absolutely fine which you have send, the reason why you are not able to get the desired output on browser is because you have imported the portlet package in the controller instead of servlet
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database