Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Spring
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Spring
How do I add request attributes from my spring controller?
Dave Alvarado
Ranch Hand
Posts: 436
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I'm using Spring 3.0 with all the fancy annotations. From a particular method in my controller ...
@RequestMapping(value="/mypage/index.jsp", method=RequestMethod.GET) public void setupForm() { // Set request attribute here }
I would like to add the attribute "promoTypes" to the request object. How do I do that?
Thanks, - Dave
Mark Spritzler
ranger
Posts: 17347
11
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Define attribute. I am a little confused, but might have an answer.
Are you looking for the annotation @RequestParam? to get the value from a request parameter into the controller methods parameters.
Mark
Perfect World Programming, LLC
-
iOS Apps
How to Ask Questions the Smart Way FAQ
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to pass data from onSubmit to referenceData?
MVC 2.5 - How to get the MessageCodesResolver from within a Controller?
Output messages in Spring
Possible to submit a GET request that will create a ModelAttribute ?
Integration Spring Security+Simple form controller
More...