Access properties of 1 java bean in session using c:out tag
I am trying to output text value of a property of a bean in session in a
JSP. I need to output it between tag. I am struck up on the syntax. Here
is my code till now
<%EditTicketBean etlBean=
(EditTicketBean)session.getAttribute("etBeanInServlet");
<textarea><c:out value = "${etlBean.ticketDesc}" />
However this does not work. If I use out.println it works
<textarea><%out.println(etlBean.getTicketDesc());%> </textarea>
What is the correct syntax for using this JSTL tag
No comments:
Post a Comment