|
|
|
Cannot find any information on property 'userId'
|
|||
|---|---|---|---|
|
#18+
--- JSP --- <jsp:useBean id = "_UserOptions" class = "my.util.UserOptions" scope = "session"/> <html> The value is <jsp:getProperty name="_UserOptions" property="userId"/> </html> --- JAVA -- package my.util; public class UserOptions { private String userId = "UserIDVALUE"; public UserOptions() { } public String getUserId() { return this.userId; } } Результат: org.apache.jasper.JasperException: Cannot find any information on property 'userId' in a bean of type 'my.util.UserOptions' в чем грабли? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.04.2005, 10:06 |
|
||
|
Cannot find any information on property 'userId'
|
|||
|---|---|---|---|
|
#18+
что-то ты пропустил. tomcat 5.5.9: UserOptions.java Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. test.jsp Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. -- html-source (браузер) -- Код: plaintext 1. 2. 3. 4. 5. 6. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.04.2005, 10:23 |
|
||
|
Cannot find any information on property 'userId'
|
|||
|---|---|---|---|
|
#18+
Дружище zirex, используй пожалуйста src,согласись так гораздо прозрачнее: Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.04.2005, 10:27 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=33032636&tid=2152506]: |
0ms |
get settings: |
10ms |
get forum list: |
19ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
45ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
51ms |
get tp. blocked users: |
2ms |
| others: | 245ms |
| total: | 396ms |

| 0 / 0 |
