I'm writing an action method that will store a new object in a database. Once this is done, I want to navigate to view that newly created object. To do this, I was planning to include a querystring or some sort of parameter in the return String of the action method, but I can't figure out how. If I append a query string manually, it appears that it's being ignored. Also, manually adding parameters by concatenating strings doesn't seem like a good idea to me. Is it possible to do this in a type-safe manner?
相关问题
- How can I create this custom Bottom Navigation on
- java.lang.NullPointerException at java.io.PrintWri
- h:selectOneMenu in p:dataTable doesn't submit
- onSupportNavigateUp() function not working?
- PrimeFaces block UI does not work when the compone
相关文章
- How to allow numbers only using f:validateRegex
- JSF 2.0: ajax request when press ENTER
- Android Navigation Drawer Show Up Indicator for Lo
- How to Setup Jetpack Navigation with material.Bott
- Formatting a double in JSF
- How do I navigate through a method call hierarchy
- Jquery: When Hover on Menu Item, Display Text
- UINavigationItem with prompt and activity indicato
The way I've always handled this is to get a reference to the bean which provides the content for the page you'll be displaying, and just set its properties directly. The navigation string returned from an action method isn't meant for passing parameters, but you don't need it to; all they'd be used for is setting bean properties anyway.