I have a JSP page named User_Ref.jsp
whcih has a datepicker. When I click on submit on that page, it is redirected to another JSP page named ref_time_current.jsp
. In this JSP page I have used a scriptlet to hold the value which was selected by user from the calendar, i.e. datepicker. The scriptlet is
<%
Ref_log_current obj = new Ref_log_current();
String str= request.getParameter("datepicker");
ref.refarray_vac1(str);
%>
Now I want to use this str
variable defined in scriptlet in this way in same JSP page
<c:out value="${ref.refarray_vac1(str)}"></c:out>
But When I execute this
refarray_vac1(String Date)
method which return list is showing an empty list. I think I'm using the str
variable in wrong way. Please correct me.