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.

Iterate over elements of List and Map using JSTL <c:forEach> tag

If I have a JSF backing bean return an object of type ArrayList, I should be able to use <…

list jsp foreach hashmap jstl
Use JSTL forEach loop's varStatus as an ID

I want to use the count from the JSTL forEach loop, but my code doesnt seem to work. <c:…

java jsp jstl el
How to configure welcome file list in web.xml

I have this in my web.xml document. I am trying to have a welcome list so I dont need …

jsp servlets web.xml welcome-file
What is the difference between <jsp:include page = ... > and <%@ include file = ... >?

Both tags include the content from one page in another. So what is the exact difference between these two tags?

java jsp
JSP : JSTL's <c:out> tag

Writing a JSP page, what exactly does the <c:out> do? I've noticed that the following both has …

java jsp jstl tags
How to specify the default error page in web.xml?

I am using <error-page> element in web.xml to specify the friendly error page when user encounters a …

java jsp servlets web.xml custom-error-pages
Reading a JSP variable from JavaScript

How can I read/access a JSP variable from JavaScript?

java javascript jsp
How to disable submit button once it has been clicked?

I have a submit button at the end of the form. I have added the following condition to the submit …

javascript jquery html jsp form-submit
How do I compare if a string is not equal to?

I'm trying to only show something based on if a string is not equal to: <c:if test="${content.…

java jsp jstl
How to get domain URL and application name?

Here's the scenario. My Java web application has following path https://www.mywebsite.com:9443/MyWebApp Let's say there is a …

jsp base-url