|
|
|
jsp:include: как узнать значение page
|
|||
|---|---|---|---|
|
#18+
пусть есть сервлет FileContent, замапенный на *.htm допустим со страницы index.jsp я делаю Код: plaintext 1. соответственно вызывается метод doGet() у FileContent. как теперь в нем получить test.html? request.getRequestURI(), request.getServletPath() возвращают index.jsp, хотя в дебагере у request есть упоминание про test.html. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.01.2006, 14:47 |
|
||
|
jsp:include: как узнать значение page
|
|||
|---|---|---|---|
|
#18+
вызываю конечно же не test.html, а test.htm ----------------------------------- The Bat + My Gate Posted via ActualForum NNTP Server 1.3 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.01.2006, 14:51 |
|
||
|
jsp:include: как узнать значение page
|
|||
|---|---|---|---|
|
#18+
наверно стоит добавить, что все крутится под jboss-3.0.4_tomcat-4.1.12 ----------------------------------- The Bat + My Gate Posted via ActualForum NNTP Server 1.3 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.01.2006, 15:04 |
|
||
|
jsp:include: как узнать значение page
|
|||
|---|---|---|---|
|
#18+
А если так попробовать в Код: plaintext Код: plaintext 1. 2. 3. 4. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.01.2006, 15:12 |
|
||
|
jsp:include: как узнать значение page
|
|||
|---|---|---|---|
|
#18+
сработало, а где про это почитать? ----------------------------------- The Bat + My Gate Posted via ActualForum NNTP Server 1.3 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.01.2006, 15:21 |
|
||
|
jsp:include: как узнать значение page
|
|||
|---|---|---|---|
|
#18+
Вы будете смеяться, но в спецификации Sun :-)) Мне просто тоже недавно понадобилось, и нашёл в Java™ Servlet Specification Version 2.3 SRV.8.3.1 Included Request Parameters Except for servlets obtained by using the getNamedDispatcher method, a servlet being used from within an include has access to the path by which it was invoked. The following request attributes are set: javax.servlet.include.request_uri javax.servlet.include.context_path javax.servlet.include.servlet_path javax.servlet.include.path_info javax.servlet.include.query_string These attributes are accessible from the included servlet via the getAttribute method on the request object. If the included servlet was obtained by using the getNamedDispatcher method these attributes are not set. Скачайте по адресу: Java™ Servlet Specification Version 2.3 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.01.2006, 15:29 |
|
||
|
jsp:include: как узнать значение page
|
|||
|---|---|---|---|
|
#18+
почему-то так и подумал. жаль что в книгах этот пунктик не описан. спецификация-то давно скачана, только не прочитана. надо бы полистать ----------------------------------- The Bat + My Gate Posted via ActualForum NNTP Server 1.3 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.01.2006, 15:34 |
|
||
|
|

start [/forum/topic.php?fid=59&fpage=756&tid=2150457]: |
0ms |
get settings: |
11ms |
get forum list: |
17ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
39ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
42ms |
get tp. blocked users: |
2ms |
| others: | 246ms |
| total: | 375ms |

| 0 / 0 |
