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.

Is there a good JSP editor for Eclipse?

I need a nice JSP editor plugin for Eclipse. What are my choices?

eclipse jsp editor eclipse-plugin
Servlet returns "HTTP Status 404 The requested resource (/servlet) is not available"

I have an HTML form in a JSP file in my WebContent/jsps folder. I have a servlet class servlet.…

html forms jsp servlets http-status-code-404
XSS prevention in JSP/Servlet web application

How can I prevent XSS attacks in a JSP/Servlet web application?

java security jsp servlets xss
How to access at request attributes in JSP?

Currently I use: <% final String message = (String) request.getAttribute ("Error_Message"); %> and then <%= message %> However I …

jsp jstl el
How do you get the length of a list in the JSF expression language?

How would I get the length of an ArrayList using a JSF EL expression? #{MyBean.somelist.length} does not work.

java jsp jsf jstl el
Set HTML dropdown selected option using JSTL

In the same context i have another query <select multiple="multiple" name="prodSKUs"> <c:forEach items="${productSubCategoryList}" …

java html jsp jstl el
How is using "<%=request.getContextPath()%>" better than "../"

I have worked on number of J2EE projects where the view layer is JSP. In most projects, I have …

jsp contextpath
What's the difference between including files with JSP include directive, JSP include action and using JSP Tag Files?

It seems that there are two methods for templating with JSP. Including files with one of these statements <%@ include …

java jsp include jsp-tags tagfile
Pass Hidden parameters using response.sendRedirect()

How would I pass hidden parameters? I want to call a page (test.jsp) but also pass 2 hidden parameters like …

java jsp servlets post url-parameters
Correct syntax to compare values in JSTL <c:if test="${values.type}=='object'">

I have an if statement that I am trying to perform with JSTL. My code is below (the variables values …

jsp if-statement jstl el