Skip to content

Instantly share code, notes, and snippets.

@codemariner
Created March 20, 2013 22:04
Show Gist options
  • Select an option

  • Save codemariner/5208951 to your computer and use it in GitHub Desktop.

Select an option

Save codemariner/5208951 to your computer and use it in GitHub Desktop.
@RequestMapping("/_topnav")
public class NavController extends YBTVBaseController {
@RequestMapping("/{cid}")
public String mainNav(Locale locale, Model model, HttpServletRequest pRequest) {
model.addAttribute("channels",null);
model.addAttribute("newsClips", null);
model.addAttribute("topics", null);
model.addAttribute("regions", null);
return "_topnav";
}
}
// in jsp...
<jsp:include page="/_topnav/${channel.key}"/>
// or it can just pick up the channel based on the request so...
<jsp:include page="/_topnav"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment