Hello i am New jsp i want to check condition in jsp. whether value is null or not.? i have write following code in jsp page
<% String s = request.getParameter("search"); %>
<%=s %>
<% if (<%=s ==null) { %>
<div>textbox is empty</div>
<% } else { %>
<div>textbox value..
<% } %>
i get textbox value in variable if textbox value is null then it should display first message othervise second. tell me how to do?