Why are my JSP changes are not reflected without restarting Tomcat?

In the tomcat docs, see the development setting. It must be set to true in order to have jsps reloaded. development – Is Jasper used in development mode? If true, the frequency at which JSPs are checked for modification may be specified via the modificationTestInterval parameter.true or false, default true. This is in your CATALINA_HOME/conf/web.xml … Read more

Include JSTL dependency with Maven

The dependencies mentioned above is not enough for me(using Tomcat 5.x as servlet container, which doesn’t provide JSTL implementation itself). It just imports the according JSTL interface package into project, and will cause a runtime error in Tomcat. Here is the dependency part used in my project, hopefully can help others out. The hardest part … Read more

Making HTML page zoom by default

Solved it as follows, in CSS #my{ zoom: 100%; } Now, it loads in 100% zoom by default. Tested it by giving 290% zoom and it loaded by that zoom percentage on default, it’s upto the user if he wants to change zoom. Though this is not the best way to do it, there is … Read more

HttpServlet cannot be resolved to a type …. is this a bug in eclipse? [duplicate]

You have to set the runtime for your web project to the Tomcat installation you are using; you can do it in the “Targeted runtimes” section of the project configuration. In this way you will allow Eclipse to add Tomcat’s Java EE Web Profile jars to the build path. Remember that the HttpServlet class isn’t … Read more

Get all parameters from JSP page

<%@ page import = “java.util.Map” %> Map<String, String[]> parameters = request.getParameterMap(); for(String parameter : parameters.keySet()) { if(parameter.toLowerCase().startsWith(“question”)) { String[] values = parameters.get(parameter); //your code here } }

mvn spring-boot:run vs java -jar

Short answer: spring-boot:run is a java -jar command on steroïd running as part of your Maven build, ensuring all required parameters are passed to your app (such as resources). spring-boot:run will also ensure that your project is compiled by executing test-compile lifecycle goals prior to running your app. Long answer: When you run java -jar, … Read more

difference between eq and == in JSP

eq exists (as well as ne, lt, etc) so you can avoid using XML entity references (< is an XML character and would need to be escaped as &lt;, for example), but they do the same thing. See Comparison operators in JSP for more info.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)