powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Java [игнор отключен] [закрыт для гостей] / Form-Based Authentication
4 сообщений из 4, страница 1 из 1
Form-Based Authentication
    #33853806
babka
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
день добрый!
help me!!
беру пример из книги web.xml

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>JSP database component</web-resource-name>
            <url-pattern>/*</url-pattern>
            <http-method>GET</http-method>
            <http-method>POST</http-method>
        </web-resource-collection>

        <auth-constraint>
            <role-name>testrole</role-name>
        </auth-constraint>

        <user-data-constraint>
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>

    </security-constraint>

    <login-config>

        <auth-method>FORM</auth-method>

        <form-login-config>

            <form-login-page>/login.html</form-login-page>
            <form-error-page>/loginError.jsp</form-error-page>

        </form-login-config>

    </login-config>

у меня выскакивает 500ка
Код: plaintext
1.
2.
3.
4.
5.
6.
type Status report

message /ASKUP

description The server encountered an internal error (/ASKUP) that prevented it from fulfilling this request.


что у меня не так в tomcat-users прописал
Код: plaintext
<user name="test" password="test" roles="testrole" />
(с BASIC Authentication все работает)
...
Рейтинг: 0 / 0
Form-Based Authentication
    #33853820
Фотография Penkov Vladimir
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
код /login.html в студию
...
Рейтинг: 0 / 0
Form-Based Authentication
    #33853835
babka
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
<!DOCTYPE HTML  PUBLIC  "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
    <title>Welcome</title>
</head>

<body bgcolor="#ffffff">
<h2>Please Login to the Application</h2>

<form method="POST"  action="j_security_check">

<table border="0"><tr>
<td>Enter the username: </td><td>

<input type="text" name="j_username" size="15">

</td>
</tr>
<tr>
<td>Enter the password: </td><td>

<input type="password" name="j_password" size="15">

</td>
</tr>
<tr>
<td> <input type="submit" value="Submit"> </td>
</tr>
</table>

</form>

</body>
</html>

...
Рейтинг: 0 / 0
Form-Based Authentication
    #33853976
babka
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
может какие-то хитрости с путями!?файлы положил рядом с индексом...
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / Java [игнор отключен] [закрыт для гостей] / Form-Based Authentication
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]