0

I got two pages that one displays data and other serves as an edit page of fields. I display model data in my first view. If a user clicks edit button, then other view takes control. Here is my problem: hence I dont need any form element in my first displayer page, I can not pass model data to the second view (editter page). Is there any efficient way of passing data from view to controller without adding form element?

1 Answer 1

1

Spring MVC pass same object between controller

The best rated answer in this thread might give you a clue.

Sign up to request clarification or add additional context in comments.

1 Comment

adding @ModelAttribute("attributeName") to my second view handler controller (edit page) solved the problem. Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.