Questions tagged [jsp]

JSP (Jakarta Server Pages, formerly JavaServer Pages) is a Java-based view technology running on the server machine which allows you to write template text in client side languages (like HTML, CSS, JavaScript and so on) and interact with backend Java code.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
12 views

MSAL4J API with Azure AD B2C - Pure J2EE

Is there any example of working with Microsoft Authentication Library for Java using an application without Spring-Boot?. I'm working on a legacy application and it doesn't use Spring-Boot, it uses ...
Aldo Inácio da Silva's user avatar
-1 votes
0 answers
21 views

how to call java class method from a JSP page with query parameter ? The below code is not properly calling the intended method

I have a dataprocessor.jsp which has HTML content for a select box and a button. My task is to give an alert message when the button clicked with the select box text and once the alert is closed , it ...
JeyanthiRanjit's user avatar
0 votes
0 answers
26 views

Inadequate cookie attributes in spring application

In spring MVC application the cookie attribute- path is set to root(/) and should be configured with the cookie attribute path to a specific domain path. In web.xml file made the below changes. But ...
SYED WASEEM AHMED's user avatar
-1 votes
0 answers
38 views

On Upgrading tomcat 8.5.23 to 8.5.91 jsp include js and css files blocked due to mime type converted html [duplicate]

I have existing web application which contains JSP files using Struts framework. While running that application on Tomcat version 8.5.23 its working fine. If I am upgrading to Tomcat 8.5.91 using ...
Bhoomika's user avatar
-1 votes
1 answer
24 views

Unable to get data from controller on my jsp page [closed]

I am working on SpringMVC and created a SearchApp small project SearchApp img and here its handler's code: handler method code @RequestMapping(path = "/searchOnGoogle", method = ...
monukd01dev's user avatar
0 votes
1 answer
21 views

"org.apache.tiles.request.render.CannotRenderException: Cannot render an attribute that is not a string, toString returns: null" in Struts 2 app [duplicate]

I am working on a Struts 2 application that is integrated with the Tiles plugin. It works fine on my local computer. But when I deploy it to a UNIX server and try to navigate past the login page to an ...
Paul's user avatar
  • 1
-1 votes
1 answer
31 views

Spring mvc redirect from one controller to another works but another controller don't open page

The problem is following. I have one controller-class with post-method that redirect to another controller-class with get-method. In debugging mode i step into post-method then it redirect to get-...
shurikin's user avatar
-1 votes
0 answers
14 views

<form class="navbar-form navbar-left"> [closed]

Invalid location of tag (form). I am getting http 404 error on running the web app. everything is correct except this warning. does the dependencies of pom.xml file versions of spring dependency etc. ...
N D's user avatar
  • 1
-1 votes
0 answers
31 views

STS doesn't recognize internal backslashes in jsp, so i can't use double quotes within double quotes

I imported the gradle project in STS4, but an error occurred in the jsp file. I put a backslash in front of the double quotation mark, but it seems to be recognized as a double quotation mark and an ...
KKwak's user avatar
  • 1
0 votes
0 answers
10 views

Session Management when multiple requests are sent to servlet [duplicate]

The flow of the my code is: html page1 -> servlet1 -> html page2 -> servlet2 Code for html page1: <!DOCTYPE html> <html> <head> <meta name="viewport" ...
pranay agrawal's user avatar
-2 votes
1 answer
29 views

How to parse image from browser post

I’m trying to capture image data posted to a JSP page in order to send it to AWS using their S3 PutObject API. I have a JSP web app and when a client browser uploads a selected image file, I want to ...
glez's user avatar
  • 1,164
-1 votes
0 answers
27 views

sqlmap finds multiple wrong dbms and can't retrieve table names

I have a simple database to get to know sqlmap, just one table with a bunch of color names + random ids, the dbms is MariaDB. For browser viewing and interaction, I use jsp with a servlet to retrieve ...
G Knucklez's user avatar
0 votes
1 answer
51 views

How to access <sql:query> result set of jsp inside <script>

I am trying to use FullCalendar library to design an interactive calendar where user can click on a date to see the corresponding course schedule/ event. For this I need to populate the events in this ...
bear bear's user avatar
-1 votes
0 answers
23 views

How ${pageContext.request.contextPath} is interpreted in spring webflow JSP

i am working on jsp project that i want to make in spring Webflow (2.5.0RELEASE) i have jsp that return the path normaly with <form action="${pageContext.request.contextPath}/myTest.do" ...
Abderrahmane BECHIKH's user avatar
-1 votes
0 answers
16 views

How to get user input from a form as variables to search SQL database and print output in a specific div on the same page as the form

I am having a lot of issues. I am trying to search mySQL database by using either the user's email or an ID and print the results on the same page that the form is on; however, I am having issues with ...
AK123's user avatar
  • 1
-2 votes
0 answers
36 views

New NetBeans Spring Web MVC project

I downloaded and installed the latest JDK 20 and NetBeans IDE 19. After creating a new Java Web Application project with Maven, I right click on the project, go to properties, frameworks, and select ...
securityauditor's user avatar
-1 votes
0 answers
15 views

How to create a new JSP in HCL web sphere commerce

Hello guys Please help me creating a new jsp page in Web sphere commerce. i want to create a system where i am able to send mail to the user once i got the success message. what steps i already ...
Kritika Rohilla's user avatar
0 votes
0 answers
57 views

Deployed war file not working in external tomcat 10: unable to start web server in deploying war file in webapps folder

Deployed war file not working in external tomcat 10 It's just a simple test with jsp page and spring boot Software: Eclispe IDE (ultima versione) Java 17 Tomcat 10 SpringBoot 3.1 Maven Details -0....
Andrea's user avatar
  • 1
-2 votes
0 answers
8 views

How to convert code from JSP to HTL and Sling Model

`I am relatively new to AEM . Can anyone help me converting below lines of jsp into sling model. href="<%= properties.get("morelink", "/content/abc/search.html") I tried ...
user3883736's user avatar
-3 votes
0 answers
10 views

board Add row Post a post

enter image description here Hello, I'm asking a question because I've been Googling and searching for a week and can't find it. enter image description here It was originally registered in this ...
재토이's user avatar
0 votes
2 answers
41 views

Spring MVC Java why are extra request params being added to my url?

I have a website, called website.com. I have a form which looks like this: <form:form method="get" id="profileForm" modelAttribute="profile" onsubmit="...
sebbington's user avatar
0 votes
0 answers
15 views

Java Project SQL Server Update Query Not Updating Table, No Errors [duplicate]

I'm working on a Java project that interacts with a SQL Server database. I'm trying to perform an update operation on a table using a SQL update query, but it doesn't seem to update the table, and I'm ...
Vinish's user avatar
  • 1
-1 votes
1 answer
81 views

JSP is not rendering on Spring Boot version 2.7.15

I have a Spring Boot application running on Java 17 with packaging type war, but it does not render the jsp pages. Here is my pom.xml file regarding spring dependencies: <dependency> ...
Lia's user avatar
  • 1
0 votes
2 answers
61 views

JSP question about accessing keys in an object?

Let's say you have something like this: <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <table> <c:forEach items="${products}" var=&...
EtherealCodingPro's user avatar
0 votes
0 answers
11 views

Scriptlet does not work in JSP and Tomcat throws java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.views.login_jsp [duplicate]

I am a beginner in the development of Java-Web applications. I put a **scriptlet **in my login.jsp. I save the file and tried to deploy it. But it did not work. Here is my scriptlet: Eclipse IDE 2023-...
OliI's user avatar
  • 1
-1 votes
1 answer
18 views

Images in JSP page do not display on first load (cleared cache)

I have a web app running on tomcat that requires a user to login via j_security_check. The page redirects the user to a login.jsp page if they are not logged in. I added some images to the jsp and ...
Dan's user avatar
  • 57
0 votes
0 answers
23 views

Migrating from AEM 6.2 to 6.5 and updating the Maven archetype problems

So the setup is that I am working on migrating an old AEM 6.2 archetype to the AEM archetype 40 with more segmentation of the code and profiles that will build the projects and perform the deployment ...
Robert Harper's user avatar
0 votes
1 answer
63 views

Java Servlet HTTP Status 405 Method Not Allowed

I'm working on a Java Servlet Web Application where I want to create a login for the management. For that, I used mapping /management/login to render the login page and the same route to post the ...
0xdw's user avatar
  • 3,755
0 votes
1 answer
54 views

Setting up VS Code for Java web development

I want to setup my pure Java web project in VS Code. My project directory looks like this: .vscode WEB-INF ..../classes/com/example/HelloWorldServlet.java ..../lib/servlet-api.jar ....web.xml ....
Shoone's user avatar
  • 11
0 votes
0 answers
40 views

Why Spring Framework doesn´t find my jsp?

I am trying to understand how Spring Framework process a JSP manually without Spring Boot and current example is not working. public class Main { public static void main(String[] args) throws ...
jabrena's user avatar
  • 1,166
0 votes
0 answers
23 views

ContextListener Class Not Found [duplicate]

INFO: Starting Servlet Engine: Apache Tomcat/7.0.10 Aug 23, 2023 11:49:10 AM org.apache.catalina.loader.WebappLoader setClassPath INFO: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@...
Maltesh B K's user avatar
0 votes
0 answers
25 views

Mobile phone authentication browser problem

I'm using the mobile phone authentication function. In Chrome, Whale, and Samsung Internet browsers, callback is not made from a white window to an application after authentication. However, it runs ...
허지훈's user avatar
-1 votes
1 answer
37 views

Getting class Not Found Issue [duplicate]

Aug 22, 2023 9:01:02 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class [com.linkdom.intercom.listener.ContextListener] java.lang....
Maltesh B K's user avatar
0 votes
2 answers
72 views

Servlet not invoked [duplicate]

I am trying to make a simple Login form. User must enter the email and password, click the login button and after that he must be redirected to the home page. The Login jsp website loads, but the ...
Jack Cumber's user avatar
0 votes
0 answers
12 views

A problem was encountered using TagExtraInfo class org.apache.taglibs.standard.tei.ForEachTEI for c:forEach' (c:out is still working perfect) [duplicate]

enter image description here Currently I'm using: Eclipse Version: 2023-06 Tomcat v10.1.12 web.xml file <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https:/...
GinQt's user avatar
  • 1
0 votes
0 answers
19 views

JSP/Tomcat site has Checksum error but works in Firefox/Chrome Incognito

We have a legacy JSP/Tomcat application that has been running fine until a recent AD update. Since that occurred, this has been returning the following error: HTTP Status 500 - GSSException: Failure ...
SausageBuscuit's user avatar
0 votes
1 answer
30 views

JSTL Increment date string in forEach loop

I have this <c:forEach> loop in JSTL. The date string is in the format MM/dd/yyyy and at the end of the for loop I would like to increment the day by 1 each time. <c:set var="currentDate&...
Rhett Harrison's user avatar
-3 votes
1 answer
53 views

Is there a way to ignore compilation error for a JSP file [closed]

I have to intentially ignore Compilation error in a jsp file. What is being implemented? for a use-case, i have to override tag in a service which is defined in other service. We have an in house ...
VIVEK SHARMA's user avatar
-1 votes
1 answer
44 views

JSP and Servets: using HTML table with JDBC database activity [closed]

I want to make a bank manegment system so I writing all the code but the last code (using HTML table with JDBC database activity) doesn't work, so my program doesn't work there is my code Userdb.java ...
Ali Turgut's user avatar
0 votes
1 answer
36 views

CSS not refreshing on JSP page even after adding more lines and clearing cache. After clearing cache on Chrome none of the CSS pages are working

Everything seemed to work properly after I added a couple of lines of CSS to a stylesheet that already worked, and it would not refresh and include the new lines, it would only show the ones from ...
Filip M.'s user avatar
0 votes
0 answers
22 views

How can I show and hide in JSP not included afterimage

Well, I do maintain the Jsp file. You can see above the picture. a, b, c is a same file and d is another file. You should write and submit like a -> b -> c -> d. We have two buttons. One is '...
HUDUNY's user avatar
  • 11
0 votes
1 answer
16 views

request.getparameter returns null value in JSP

I want to get the details from one page to another but first I´m checking if the requested parameters are correct. All the values come back correct, except for the url2. I want to concatenate the name ...
valeria's user avatar
0 votes
0 answers
48 views

How to properly escape this JSP code to avoid Stored XSS valnerabilities?

These are flagged as having "Stored XSS vulnerabilities". Need to know how to properly escape the following to address this type of cross site scripting vulnerability? out.print("<td ...
Wes's user avatar
  • 1,183
0 votes
0 answers
14 views

I am trying to insert data using JSP (Eclipse) into database (XAMPP, MySQL) [duplicate]

After submitting the data in my html page, it takes to a blank page and the data was not recorded into my database.My html file name is index.html and jsp file is J3.jsp. I already have the ...
Vignan Sai Kammila's user avatar
0 votes
0 answers
27 views

figuring out method return type change

I have the following class inside an Order class and I want to return an object instead of string from the following method. public String getCarLocationDisplay() { String result = "&...
Tan's user avatar
  • 1,431
0 votes
0 answers
19 views

Has Tomcat changed the way it handles absolute/relative paths between 9.0.20 and 9.0.63

I upgraded my Tomcat from 9.0.20 to 9.0.63 (the latest available in Azure SaaS, at the time of writing) My application breaks, and Tomcat seems unable to resolve includes <%@ include file="../....
gordon613's user avatar
  • 2,770
-1 votes
1 answer
56 views

Spring boot / Jsp exception - java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.views.homePage_jsp

I have a SpringBoot, JSP and Maven application running on app server. I restarted the server and application stopped working. On browser it's showing 404 error. Server logs showing this exception - *...
Zulu's user avatar
  • 150
-1 votes
1 answer
22 views

I created table in Postgresql which has 4 columns want to authenticate my login from this table of column 1 and 4 but it give c index out of rang [closed]

The following code not working properly in my Servlet PreparedStatement ps=con.prepareStatement("SELECT uname,upass FROM shams WHERE uname=? and upass=? "); ps.setString(1, name); ps....
M Shams's user avatar
0 votes
1 answer
62 views

Tomcat: The origin server did not find a current representation for the target resource

I'm trying to write my first program in SpringMVC and Tomcat, but when I open the page, it just doesn't find it. What could be the reason? I am using Tomcat version 9.0.78. I've just started taking a ...
Артем Лебідь's user avatar
0 votes
1 answer
108 views

How to add root context to spring boot application except for /login?

I am working on a Spring Boot application with JSP as UI. Where I had to add a root-context /applicationName for the entire application except for /login. I tried to added the below code to the ...
Raja's user avatar
  • 41

1
2 3 4 5
1044