Revision 4856bcbf
b/ear/META-INF/application.xml | ||
---|---|---|
10 | 10 |
<module> |
11 | 11 |
<web> |
12 | 12 |
<web-uri>gss-admin.war</web-uri> |
13 |
<context-root>/admin</context-root> |
|
13 |
<context-root>/pithos-admin</context-root>
|
|
14 | 14 |
</web> |
15 | 15 |
</module> |
16 | 16 |
<module> |
b/src/gr/ebs/gss/admin/client/ui/HeaderPanel.java | ||
---|---|---|
30 | 30 |
|
31 | 31 |
@Override |
32 | 32 |
public void onSuccess(Void result) { |
33 |
Window.open("/admin", "_self", null);
|
|
33 |
Window.open(GWT.getHostPageBaseURL(), "_self", null);
|
|
34 | 34 |
|
35 | 35 |
} |
36 | 36 |
|
b/src/gr/ebs/gss/client/Configuration.properties | ||
---|---|---|
7 | 7 |
apiPath=rest/ |
8 | 8 |
webdavUrl=/webdav/ |
9 | 9 |
tokenTTLNote=The token is valid for 30 days. |
10 |
version=1.4.0.1 |
|
10 |
version=1.4.1 |
/dev/null | ||
---|---|---|
1 |
/* |
|
2 |
* Copyright 2010 Electronic Business Systems Ltd. |
|
3 |
* |
|
4 |
* This file is part of GSS. |
|
5 |
* |
|
6 |
* GSS is free software: you can redistribute it and/or modify |
|
7 |
* it under the terms of the GNU General Public License as published by |
|
8 |
* the Free Software Foundation, either version 3 of the License, or |
|
9 |
* (at your option) any later version. |
|
10 |
* |
|
11 |
* GSS is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with GSS. If not, see <http://www.gnu.org/licenses/>. |
|
18 |
*/ |
|
19 |
package gr.ebs.gss.server.admin; |
|
20 |
|
|
21 |
import java.io.IOException; |
|
22 |
|
|
23 |
import javax.servlet.http.HttpServlet; |
|
24 |
import javax.servlet.http.HttpServletRequest; |
|
25 |
import javax.servlet.http.HttpServletResponse; |
|
26 |
|
|
27 |
|
|
28 |
/** |
|
29 |
* @author kman |
|
30 |
* |
|
31 |
*/ |
|
32 |
public class LogoutServlet extends HttpServlet { |
|
33 |
|
|
34 |
@Override |
|
35 |
protected void service(HttpServletRequest request, HttpServletResponse response) throws IOException { |
|
36 |
request.getSession().invalidate(); |
|
37 |
response.sendRedirect("/admin"); |
|
38 |
} |
|
39 |
} |
b/waradmin/WEB-INF/web.xml | ||
---|---|---|
10 | 10 |
<servlet-name>adminServlet</servlet-name> |
11 | 11 |
<servlet-class>gr.ebs.gss.server.admin.AdminServiceImpl</servlet-class> |
12 | 12 |
</servlet> |
13 |
<servlet> |
|
14 |
<servlet-name>logoutServlet</servlet-name> |
|
15 |
<servlet-class>gr.ebs.gss.server.admin.LogoutServlet</servlet-class> |
|
16 |
</servlet> |
|
17 | 13 |
|
18 | 14 |
<servlet-mapping> |
19 | 15 |
<servlet-name>adminServlet</servlet-name> |
20 | 16 |
<url-pattern>admin</url-pattern> |
21 | 17 |
</servlet-mapping> |
22 |
<servlet-mapping> |
|
23 |
<servlet-name>logoutServlet</servlet-name> |
|
24 |
<url-pattern>logout</url-pattern> |
|
25 |
</servlet-mapping> |
|
26 | 18 |
<welcome-file-list> |
27 | 19 |
<welcome-file> |
28 | 20 |
index.html |
b/waradmin/login.jsp | ||
---|---|---|
19 | 19 |
<tr> |
20 | 20 |
<td width="100%" height="100%" align="center" valign="middle"> |
21 | 21 |
<p> </p> |
22 |
<form method="post" action="/admin/j_security_check">
|
|
22 |
<form method="post" action="j_security_check"> |
|
23 | 23 |
<table width="300" border="0" cellspacing="0" cellpadding="0" class="jspTable"> |
24 | 24 |
<tr> |
25 | 25 |
<td height="35" align="center" valign="middle" class="jspHeader"><%= GSSConfigurationFactory.getConfiguration().getString("serviceName") %> Administration</td> |
Also available in: Unified diff