|
|
|
Странное поведение 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, 11:41 |
|
||
|
Странное поведение Velocity ...
|
|||
|---|---|---|---|
|
#18+
А если написать не Код: plaintext 1. 2. 3. 4. 5. Код: plaintext 1. 2. 3. 4. 5. --С уважением, ponomarevvb-- ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.10.2005, 12:51 |
|
||
|
|

start [/forum/topic.php?fid=59&fpage=777&tid=2151270]: |
0ms |
get settings: |
7ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
44ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
40ms |
get tp. blocked users: |
1ms |
| others: | 261ms |
| total: | 384ms |

| 0 / 0 |
