Category : jsp

I want to set a button visibility based on what I retrieve from a session attribute in window.onload.. The alert appears so the button should become invisible.. Please let me know why it is still visible. <button type="button" id="ex" onclick="">Ex</button> <script> window.onload = function(){ <% Object ex = session.getAttribute("ex"); if (ex == null) { %> ..

Read more

I want to use the content of an ArrayList saved in session object attribute in a servlet in a jsp file within a javascript function. Please let me know how it should be done. Thank you. Servlet: session.setAttribute("personsF", personsF); request.getRequestDispatcher("/PrintP.jsp").forward(request, response); Jsp and javascript function: <!DOCTYPE html> <html> <head> <%@ page import="dao.Person" %> <%@ page ..

Read more

<div class="col-md-6 left_content"> <div class="row form-group"> <div class="col-md-6"><label for="start_time" style="margin-right:50px";> Start Time <span class="star_design">*</span></label></div> <input type ="time" id="start_time" name="start_time" min="09:00" max="20:00" required Style="margin-left: 15px;"> <div class="col-md-6 left_content"> <div class="row form-group"> <div class="col-md-6"><label for="end_time" style="margin-right: 30px";> End Time <span class="star_design">*</span></label></div> <input type ="time" id="end_time" name="end_time" min="09:00" max="20:00" required Style="margin-left: 19px;"> <div class="col-md-6 left_content"> <div class="row form-group"> ..

Read more