Rev 1312 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1312 | jmachado | 1 | <%@ page import="pt.estgp.estgweb.web.utils.RequestUtils" %> |
2 | <%@ page import="pt.utl.ist.berserk.logic.serviceManager.IServiceManager" %> |
||
3 | <%@ page import="pt.utl.ist.berserk.logic.serviceManager.ServiceManager" %> |
||
4 | <%@ page import="pt.utl.ist.berserk.logic.serviceManager.exceptions.FilterChainFailedException" %> |
||
5 | <%@ page import="pt.estgp.estgweb.web.UserSessionProxy" %> |
||
6 | <%@ page import="java.util.HashMap" %> |
||
7 | <%@ page import="java.util.Map" %><% |
||
8 | Map<String,Object> parameters = new HashMap<String,Object>(); |
||
9 | parameters.put("contextPath",request.getContextPath()); |
||
10 | IServiceManager sm = ServiceManager.getInstance(); |
||
11 | String[] names = new String[]{}; |
||
12 | Object[] args = new Object[]{"topMenus",parameters}; |
||
13 | |||
14 | |||
15 | if(UserSessionProxy.loadUserSessionFromRequest(request).getUser() == null) |
||
16 | { |
||
17 | parameters.put("authenticated",false); |
||
18 | } |
||
19 | else |
||
20 | { |
||
21 | parameters.put("authenticated",true); |
||
22 | } |
||
23 | |||
24 | try |
||
25 | { |
||
26 | |||
27 | //language here |
||
1830 | jmachado | 28 | String topMenusHtml = (String) sm.execute(RequestUtils.getRequester(request, response), "LoadDirectoryServiceHtml", args, names); |
1312 | jmachado | 29 | %> |
30 | |||
31 | |||
32 | <div class="row" style="margin-top: 20px"> |
||
33 | <div class="col-xs-12 col-sm-12"> |
||
34 | <div class="container" style="padding-left: 0;padding-right: 0"> |
||
35 | <jsp:include page="/layout/searchForm.jsp"/> |
||
36 | </div> |
||
37 | </div> |
||
38 | </div> |
||
39 | <!--<div class="row hidden-lg hidden-md hidden-sm" style="margin-top: 10px"> |
||
40 | |||
41 | </div>--> |
||
42 | <div class="row" style="margin-top: 10px"> |
||
43 | <div class="col-xs-12 col-sm-12"> |
||
44 | <div class="container"> |
||
45 | <%=topMenusHtml.trim()%> |
||
46 | </div> |
||
47 | </div> |
||
48 | </div> |
||
49 | |||
50 | |||
51 | <% |
||
52 | |||
53 | |||
54 | } |
||
55 | catch (FilterChainFailedException e) |
||
56 | { |
||
57 | throw e; |
||
58 | } |
||
59 | catch (Throwable e) |
||
60 | { |
||
61 | throw e; |
||
62 | } |
||
63 | %> |
||
64 |