@RequestMapping("/toTicketRuleSetting/{ticketTypeId}")
public String goToAssistSecretary(@PathVariable("ticketTypeId") long ticketTypeId, ModelMap model) {
model.put("ticketTypeId", ticketTypeId);
model.put("tabId", 0);
return "backend/basic/ticketRuleSetting";
}
在spring mvc中,模型中的tabId会返回jsp页面,我想通过javascript获取jsp页面中的tabId,我该怎么办?这是我的jsp页面中的javascript代码:
window.onload = function (){
<c:set var="tabId" value="${tabId}"/>
<c:if test = "{tabId.value==5}">
$("#tabs").tabs( "option", "active", 5 );
</c:if >
};
请帮我 !