Size: a a a

Spring Framework and more

2020 June 08

LL

Lionel Lawrence in Spring Framework and more
<form method="POST" enctype="multipart/form-data"
             th:action="@{'/image/'+ ${image.id} + '/' + ${image.title} + '/comments'}">
           <fieldset id="sign_up" class="ba b&#45;&#45;transparent ph0 mh0">
               <div class="mt3">
                   <label class="db fw6 lh-copy f6" for="comment">Write a comment</label>
                   <textarea class="pa2 input-reset ba w-100" rows="5" name="comment" id="comment"></textarea>
               </div>
           </fieldset>
           <div>
               <input class="b ph3 pv2 input-reset ba b&#45;&#45;black bg-transparent grow pointer f6 dib" type="submit"
                      value="Submit">
           </div>
       </form>
источник

LL

Lionel Lawrence in Spring Framework and more
this is what I have used
источник

LL

Lionel Lawrence in Spring Framework and more
maks
th:action="'/image/'+ ${image.id} + '/' + ${image.title} + '?comments=firstcomment'">
using the question mark would resolve this issue?
источник

m

maks in Spring Framework and more
Yes, question mark will solve your problem.
источник

LL

Lionel Lawrence in Spring Framework and more
okay i will try
in the controller, do i need to change the mapping?
источник

m

maks in Spring Framework and more
Nope, there is no reason for that. Just try
источник

LL

Lionel Lawrence in Spring Framework and more
okay
источник

R

Richard H. McDill in Spring Framework and more
источник

C

Cyclone in Spring Framework and more
Товарищи, есть человеческий способ потестить java-код взаимодействия с БД, если запросы основаны на oracle plsql функциях?
В h2 поддержки такого синтаксиса я не обнаружил.
Тестконтейнер с Oracle XE поднимать?

Запрос вида
select t.*
from table(cast(схема.пакет.функция(
параметры => :параметры) as схема.тип)) t
источник

TS

Timur Shaidullin in Spring Framework and more
Привет
maven-sql-plugin попробуй
источник

C

Cyclone in Spring Framework and more
Timur Shaidullin
Привет
maven-sql-plugin попробуй
Use this plugin to execute SQL statements
Чем это поможет?
источник

LL

Lionel Lawrence in Spring Framework and more
2020-06-08 19:49:47.663 ERROR 22037 --- [nio-8080-exec-6] org.thymeleaf.TemplateEngine             : [THYMELEAF][http-nio-8080-exec-6] Exception processing template "images/image": Exception evaluating SpringEL expression: "comment.text" (template: "images/image" - line 75, col 57)

org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "comment.text" (template: "images/image" - line 75, col 57)


Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'text' cannot be found on object of type 'ImageHoster.model.Comment' - maybe not public or not valid?


2020-06-08 19:49:47.688 ERROR 22037 --- [nio-8080-exec-6] s.e.ErrorMvcAutoConfiguration$StaticView : Cannot render error page for request [/images/4/vfv] and exception [Exception evaluating SpringEL expression: "comment.text" (template: "images/image" - line 75, col 57)] as the response has already been committed. As a result, the response may have the wrong status code.
источник

LL

Lionel Lawrence in Spring Framework and more
can someone help me make sense of this error?
источник

C

Cyclone in Spring Framework and more
Lionel Lawrence
2020-06-08 19:49:47.663 ERROR 22037 --- [nio-8080-exec-6] org.thymeleaf.TemplateEngine             : [THYMELEAF][http-nio-8080-exec-6] Exception processing template "images/image": Exception evaluating SpringEL expression: "comment.text" (template: "images/image" - line 75, col 57)

org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "comment.text" (template: "images/image" - line 75, col 57)


Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'text' cannot be found on object of type 'ImageHoster.model.Comment' - maybe not public or not valid?


2020-06-08 19:49:47.688 ERROR 22037 --- [nio-8080-exec-6] s.e.ErrorMvcAutoConfiguration$StaticView : Cannot render error page for request [/images/4/vfv] and exception [Exception evaluating SpringEL expression: "comment.text" (template: "images/image" - line 75, col 57)] as the response has already been committed. As a result, the response may have the wrong status code.
ImageHoster.model.Comment does not have public getText() method which is clearly stated in error message.
источник

LL

Lionel Lawrence in Spring Framework and more
My bad. Thanks👍
источник

AE

Alexandr Emelyanov in Spring Framework and more
Cyclone
Товарищи, есть человеческий способ потестить java-код взаимодействия с БД, если запросы основаны на oracle plsql функциях?
В h2 поддержки такого синтаксиса я не обнаружил.
Тестконтейнер с Oracle XE поднимать?

Запрос вида
select t.*
from table(cast(схема.пакет.функция(
параметры => :параметры) as схема.тип)) t
А тестконтейнер с ораклом есть? Если да, то самый верный вариант
источник

C

Cyclone in Spring Framework and more
Alexandr Emelyanov
А тестконтейнер с ораклом есть? Если да, то самый верный вариант
Как будто есть, но документ по нему, как и всё оракловое, очень замудрёный. Плюс я опасаюсь, что XE не сумеет в pipelined функции.
Хотелось выехать на H2, но фиг. (
источник

AE

Alexandr Emelyanov in Spring Framework and more
Cyclone
Как будто есть, но документ по нему, как и всё оракловое, очень замудрёный. Плюс я опасаюсь, что XE не сумеет в pipelined функции.
Хотелось выехать на H2, но фиг. (
H2 плохой выбор
источник

C

Cyclone in Spring Framework and more
Alexandr Emelyanov
H2 плохой выбор
бекоз?
источник

AE

Alexandr Emelyanov in Spring Framework and more
Cyclone
бекоз?
М? Что это
источник