Top "Jsp" questions

JSP (JavaServer Pages) is a Java-based view technology running on the server machine which allows you to write template text in (the client side languages like HTML, CSS, JavaScript and so on) and interact with backend Java code.

What is the difference between response.sendRedirect() and request.getRequestDispatcher().forward(request,response)

I have got a problem with my page jump when I use JAVA, if I use: response.sendRedirect("login.jsp") …

java jsp request response forward
Selected value for JSP drop down using JSTL

I have SortedMap in Servlet to populate drop down values in JSP and I have the following code SortedMap<…

jsp drop-down-menu jstl retain
Evaluate list.contains string in JSTL

I need to hide an element if certain values are present in the JSP The values are stored in a …

java jsp jstl
EL access a map value by Integer key

I have a Map keyed by Integer. Using EL, how can I access a value by its key? Map<…

java jsp jstl el
Differences between cookies and sessions?

I am training in web developement and am learning about JSP & Servlets. I have some knowledge of HttpSession - …

jsp session servlets cookies
Where can I download JSTL jar

Does anyone know because all the places I've tried seem to timeout!

java jsp jakarta-ee jstl
How do you get the contextPath from JavaScript, the right way?

Using a Java-based back-end (i.e., servlets and JSP), if I need the contextPath from JavaScript, what is the recommended …

javascript jsp servlets
Using if-else in JSP

I'm using the following code to print the name of the user on the browser: <body> <form&…

jsp if-statement scriptlet
Declaring functions in JSP?

I come from PHP world, where declaring a function in the middle of a php page is pretty simple. I …

jsp function
RequestDispatcher.forward() vs HttpServletResponse.sendRedirect()

What is the conceptual difference between forward() and sendRedirect()?

jsp redirect servlets forward