Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
how to implement search pointing to same results page from various request mapping methods? ex: /favorites?q=compiler
I was able to implement seperate uri: "http://localhost:8080/search?q=compiler" but how to make search form in various html thymeleaf template point to same search page view from various controllers.
The best way I can think of is to add a @RequestParam("q") String searchTerm in every function that returns a list of gifs in every page, making the search very contextual; this is technically possible because submitting the <form> in every page simply adds a ?q="" to the url.