Hamza06/11/2018, 9:12 AM
I’m using javalin, and here is how i retrieve the information from the form:
<input type="text" name="subjects" placeholder="Subjects" autocomplete="off">
Looking good, right? Well, with apache velocity, here is how i display the subjects:
val subjects = ctx getParam "subjects"
Every time, the table row is empty. anyone got any clue?
#if($book.subjects) <tr> <th>Subjects</th> #foreach($subject in $book.subjects.split(","))) <td>$subject</td> #end </tr> #end