Category "jsp"

Regex for allowing words which have only first letter as uppercase?

I am trying to make a regex which will validate if all the words have their first letter as upper case. ex like Fruits is allowed but fruits is not allowed. als

populate convas.js multi series spline chart with data from database?

I have a dataset, for which I have to build a multi series spline chart. Here I have used canvas.js. But I cannot populate this graph with data from database. I

string variable as URL to an anchor tag in a JSP

Is it possible to pass a string variable as URL to an anchor tag in a JSP which should get redirected to an external website? I am manipulating the the URL Stri

AEM TouchUI Dialog Components: Extend dam/cfm/components/cfpicker with custom filter

Content fragments of different Model Types are saved in the SAME directory without sub-directories. I know is not ideal, but this is the scenario. There could b

Make browser back button show login page without error div

I have a Login jsp that takes user email and sends it to servlet. If the email is not in database, the servlet redirects back to Login.jsp with an attribute "er

jsp:include not resolving scriptlets in path

In our application we often include a sub-section of the page by pointing to a Spring REST controller, like this: <jsp:include path="/xyz/data?id=<%=obj.t

I'm trying to add a jsp page in my Spring Boot Aplication. My problem is that every time I try to go to that page I have this:

Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Tue Apr 26 16:10:15 IRDT 2022 There was an unex

character encoding of the plain text document was not declared

I am getting "The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if t

jsp encoding display issue

I am finding a issue where the data is encoded properly in the controller and compiled jsp, but is not displaying properly within an alert statement (or on the

package javax.servlet does not exist | package jakarta.servlet does not exist

javac -classpath "/opt/tomcat/lib/servlet-api.jar" /opt/tomcat/webapps/ROOT/WEB-INF/classes/NewServlet.java I have tried replacing the javax.servlet with "jaka

Error executing DDL "drop table Player if exists" via JDBC Statement

Creating a spring mvc project with database using java configuration . The application gives error for tables operation like create, drop, alter operation for

File downloads but while extracting it gives "invalid zip file"

I am working on a jsp zip file download ,I am able to download the file but while extracing I get Invalid zip file error. In the java controller I have added @

Jetty: How do I protect unpack war file [closed]

I developed web that deploy ROOT.war through jetty(windows10) and I will deploy that to my client but I don't want to who modify my unpacked w

Spring boot, JSP file as view not loading when run in IntelliJ

I've created a simple Spring Boot Web Application in intelliJ. I've placed a simple .jsp file in the /src/main/resources/templates/ folder which contains some b

Why I am getting java.lang.IllegalStateException when the validate servlet is called?

I have a login web application. Whenever I login, the request must be validated by validate Servlet and it must be forwarded to admin.jsp Everything is fine exc

JSP is not found with error java.lang.NoClassDefFoundError after renaming it

I am facing typical issue with the simple servlet, JSP application. I have developed some JSP pages and servlet. It works fine. After it, I have changed JSP fil

Form based Authentication in Tomcat

I performed login using form based authentication in tomcat(using j_security_check). I have added jdbc realm code in server.xml and also security constrains in

how to get clicked value and pass it to another jsp page (integer)

I am working in a project in which I have a Display.jsp page which fetches all the records from mysql database and shows in a table on the page. While I want to

Spring boot: JSP not found (404)

I'm trying to create a new project with spring boot. But I'm getting Error described below. I have added my code. Error HTTP ERROR 404 page not found He

how to convert Calendar type to String?

i tried to convert calendar type to String for display the date in my jsp page here is my servlet code where i convert string to calendar type private Evaluat