
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
11.10.2005, 11:41
|
|||
|---|---|---|---|
|
|||
Странное поведение Velocity ... |
|||
|
#18+
Осваиваю Velocity и вот натолкнулся на такое .... есть 2 странички, на первой форма с комбобоксом, на второй выводится табличка form.vm <table class="tableline" cellSpacing=1 cellPadding=2 border=0> <form action="list.html" method="POST"> <tr> <td> <select name="cource.id"> #foreach($cource in $cources) <option value="$cource.id">$cource.name</option> #end </select> </td> <td> <input type="submit" value="submit"/> </td> </tr> </form> </table> при сабмите получаем org.springframework.context.ApplicationContextException: Cannot find Velocity template for URL [.vm]: Did you specify the correct resource loader path?; nested exception is org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '.vm' если убрать из шаблона <table> <form action="list.html" method="POST"> <select name="cource.id"> #foreach($cource in $cources) <option value="$cource.id">$cource.name</option> #end </select> <input type="submit" value="submit"/> </form> то все прекрасно работает, может кто сталкивался? Заранее спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
11.10.2005, 12:51
|
|||
|---|---|---|---|
|
|||
Странное поведение Velocity ... |
|||
|
#18+
А если написать не Код: plaintext 1. 2. 3. 4. 5. Код: plaintext 1. 2. 3. 4. 5. --С уважением, ponomarevvb-- ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=59&mobile=1&tid=2151270]: |
0ms |
get settings: |
9ms |
get forum list: |
19ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
185ms |
get topic data: |
12ms |
get forum data: |
2ms |
get page messages: |
48ms |
get tp. blocked users: |
1ms |
| others: | 237ms |
| total: | 519ms |

| 0 / 0 |
