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.

How to display a variable value in JSP file

I want to display the value of variable named "id" in my code. The code is - index.html(line 5)…

jsp scriptlet
If-then-else inside a JSP expression?

Can you do an if-then-else statement inside a JSP expression? EDIT : Specifically I was looking for a JSP solution, not …

java jsp expression
Use <c:forEach> with HashMap

I have a java class that sets an servlet attribute to a HashMap object: request.setAttribute("types", da.getSecurityTypes()); where …

java jsp jstl
How to validate/invalidate sessions jsp/servlets?

I opened the session in my servlet when the user performed a successful login: HttpSession session = request.getSession(true); session.…

jsp session servlets invalidation
Thymeleaf construct URL with variable

I have the following code setting a variable in my controller: model.set("type", type); In the thymeleaf view I …

java jsp thymeleaf
Free Java servlet hosting?

I finished to build my semester project and now I need to show it to the lecturer. This project is …

jsp tomcat servlets tomcat7 hosting
Why are my JSP changes are not reflected without restarting Tomcat?

I am editing JSP files which are residing directly inside tomcat/webapps/myapp/WEB-INF, but to see the changes, I …

jsp tomcat tomcat6
HTTP Status 404 - The requested resource (/ProjectName/) is not available

I'm getting the following error when running my Eclipse project on Tomcat server: HTTP Status 404 - The requested resource (/ProjectName/) …

eclipse jsp tomcat http-status-code-404 welcome-file
Can we redirect one jsp page to another jsp page

I want to open a jsp page without accessing my servlete code. i.e. I neither have to input my …

java javascript jsp jsp-tags
How to access a request attribute set by a servlet in JSP?

I'm trying to retrieve attribute values set by a servlet in a JSP page, but I've only luck with parameters …

java jsp servlets el