I would like to get text from textarea and send it as a parameter in form action.
So, I have page showarticle.jsp which show me all article's comments. Firstly, I call it on index.jsp with parameter comment_ref=null(it means that I don't want to add comment for the first time)
<a href="showarticle.jsp?id=${row.id}&comment_ref=null">${row.title}</a>
In showarticle.jsp I have a form for adding new comment
<form action="showarticle.jsp?id=${id_param}&comment_ref=${comment_text_aria_cur}" method="post">
<textarea name="comment_text_aria_cur" rows="4" cols="50"></textarea>
<input type="submit" name ="submit" value="Send">
</form>
and here I again call showarticle.jsp, but here I want to add text from text area as a parameter comment_ref.
I've tried that
<form action="showarticle.jsp?id=${id_param}&comment_ref="<%=request.getParameter("comment_text_aria_cur") method="post">
but still doesn't work. In this case I can see only previous value. For example,
I write comment "aaa" and press submit -> comment_ref = null. I write comment "bbb" and press submit -> comment_ref = aaa.
I'm sure solution is very simple.Thank you!