I have a Spring-based java project. At frontend I have jQuery. The main jQuery compoinent is Tabs, so access to my main page can be http://myIp/project/myController#Tab1
I need to ways to go to this page:
via redirect: redirect:/myController#Tab1 (and this case works)
[when validation fails] I need to pass them back via
return "adminOperations#Tab1"
(and this case doesn't work)
Definition of 'adminOperations':
<definition name="adminOperations" extends=".mainTemplate" >
<put-attribute name="title" value="Admin page" type="string" />
<put-attribute name="content" value="/jsp/admin.jsp" />
<put-list-attribute name="scripts" inherit="true">
<add-attribute value="admin.js" type="string" />
</put-list-attribute>
</definition>
Template Page content:
<html>
<head>
<title><tiles:getAsString name="title" /></title>
<tiles:useAttribute id="scripts" name="scripts" classname="java.util.List" />
<!-- processing script & styles data -->
</head>
<body>
<div id="header">
<div id="headerTitle"><tiles:insertAttribute name="header" /></div>
</div>
<div id="content">
<tiles:insertAttribute name="content" />
</div>
<div id="footer">
<tiles:insertAttribute name="footer" />
</div>
</body>
</html>
How to implement correct processing of '#' symbol in this tiles?