1,472 questions
0
votes
0
answers
173
views
Jakarta EE 10 JSP: NoClassDefFoundError: jakarta/servlet/jsp/tagext/Tag when using JSTL
I have a Jakarta 10 application which i deploy to google app engine standard java runtime 21. With the current dependencies JSP has been working well along with jstl tags. This is a snippet of my pom....
0
votes
0
answers
45
views
Failed to load resource. 404 error. Can't load images or js files
There are link problems when loading resources. Can't figure out why.
I have a song-history.js file in /component folder and I'm trying to load it:
<script src="/components/song-history.js&...
0
votes
1
answer
32
views
Specify bundle name when using spring:message tag
Working to migrate an application from Struts 1.2.x to Spring MVC, I am stuck at a place where in JSP I have to use labels from .properties lookup files.
In the legacy code, the app has used Struts' ...
1
vote
1
answer
100
views
JSP: "object cannot be resolved to a variable" when used in nested tag
I am trying to build app pages via JSP, using nested tags within an outer tag ("page"). All of the tags need access to the same object, which is passed in from the controller.
But I can't ...
0
votes
1
answer
435
views
Cannot be resolved to a variable, expression tag is giving me an error
I'm writing JSP Code for the first time.
when I'm declaring an expression statement it's giving me an error;
sum cannot be resolved to a variable.
Here's my code for your reference:
<%@ page ...
0
votes
0
answers
42
views
Request resource is not available in servlet [duplicate]
i'm learning make crud java web using servlet.
When i access url for list data is success, but when access create data, i get an error in browser like this
When i check in netbeans, error displaying
...
0
votes
1
answer
52
views
Imported jsp project giving error SEVERE: A child container failed during start
I imported the war file for jsp project into Eclipse. When running the project it gives giving following error. How to resolve this?
I have tried to run a test jsp project with tomcat it works. But ...
-1
votes
1
answer
171
views
Why my custom tag is appearing multiple times in jsp?
I am using a custom tag in my code to take user input but the jsp page has multiple inputs. What is the reason for it?
Also please suggest me a proper documentation or any resources to learn about ...
0
votes
1
answer
124
views
Any taglib to read a text from the txt file with Markdown and render it into a jsp in Liferay
I am using liferay 6.1.1 and I want to put a text file with Markdown in the product and want to read the text from the file and needs to display the text in the terms_of_use.jsp
The Markdown in the ...
0
votes
0
answers
136
views
How to pass all URL parameters through a <jsp:include> tag?
I have a JSP page which is called with various URL parameters like this: http://myserver.com/page_A.jsp?paramA=hello¶mB=you
This page however doesn't do anything with the URL parameters; it's ...
1
vote
1
answer
252
views
How to write a generic JSP Template for Dropdowns etc.?
I want to create JSP templates, i. e. JSP files that contain e.g. a dropdown or input field, to keep the styling of the elements in one place.
Now these templates should be used in different UseCases. ...
0
votes
1
answer
49
views
org.apache.jasper.JasperException, I am noob, don't know what to do
org.apache.jasper.JasperException: An exception occurred processing [/hello.jsp] at line [3]
1: <%@ taglib uri="http://struts.apache.org/tags-html" prefix="h" %>
2:
3: <h:...
2
votes
1
answer
179
views
Use jsp include tag with "<%= ..." expression
Why is it not possible to combine a jsp include tag with an <%= ... %> expression?
<jsp:include page="pages/<%= element.convertToLowercase() %>.jsp"></jsp:include>
...
0
votes
1
answer
181
views
Dynamic content for JSP Server Error Page
I have a questions regarding on how to configure the JSP file for the 500 error page.
In this scenario, there are multiple themes with a folder structure described below.
All the themes in question ...
0
votes
1
answer
237
views
java.sql.SQLException: ORA-30081: invalid data type for datetime/interval arithmetic for the below mentioned query
PreparedStatement ps1 = con.prepareStatement("update cart set address = ?,city =?,state=?,country=?,mobileNumber=?,orderDate=SYSDATE,deliveryDate= orderDate + INTERVAL '10' DAY ,paymentMethod = ?,...
1
vote
0
answers
62
views
c:import jsp page with translation
I'm trying to load a jsp from remote during runtime. <c:import> accepts remote url and loads the file but it displays the jsp content as it is. Downloaded jsp has custom tags in it which needs ...
0
votes
1
answer
430
views
Invalid tld file, but its the filename
I'm creating a custom taglib under SpringBoot. My taglib tag is:
<%@taglib prefix="ttl" uri="/WEB-INF/tags/resourceBundle.tld" %>
I created a TLD file according to the many ...
0
votes
2
answers
253
views
How to add DataTable in Liferay custom Search container
I am trying to add a search and sort functionality on the client side using DataTable into my Liferay Search Container that brings data. However for some reason it is showing up on top of my data ...
0
votes
1
answer
74
views
jsp:include cannot include binary file
I am reading the book "Head First Servlet and JSP". There is one question I cannot fully understand.
I am not sure why the book says that "it is not possible to import the contents of ...
0
votes
1
answer
369
views
How to make a JSP page look like a desktop application?
I have seen the UI of OpenKM to prepare document management system in JSP. I am just asking how they make it looks like a desktop app with right click, drop down and so many features. Visit this site ...
0
votes
0
answers
25
views
Why do we need to use FreeMarker in Spring? [duplicate]
Why do we need to use FreeMarker to generate text output with .ftl file while we can use JSP file which includes html code?
0
votes
0
answers
114
views
Constantly getting error : Uncaught TypeError: Cannot read property 'querySelector' of undefined
I am Getting a error where it says Uncaught TypeError: Cannot read property 'querySelector' of undefined while date validation.
Any help will appreciated.
here is my JSP Page form
<form id="...
1
vote
1
answer
1k
views
<script>document.write('<base href=“' + document.location + '” />');</script>
I am getting cross-site Scripting: DOM critical issue. Please can anyone help with the alternateway of using document.write
<script>
document.write('<base href=“' + document.location + '” ...
1
vote
1
answer
855
views
Difference between jsp redirect url tag and response.sendRedirect() method
I have the following code to redirect to a new page from a jsp.
//response.sendRedirect("someJspPage.jsp");
%>
<c:redirect url="someJspPage.jsp" />
<% ...
0
votes
1
answer
380
views
ng-model not updating the value in jsp page
I am trying to calculate the values : amountBeforeTax taxAmount and amount but my input named : amountBeforeTax is not updating value to $scope.amountBeforeTax in the controller.
Versions :
Angular ...