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.
52,149
questions
0
votes
0
answers
24
views
Why CSS file is not load in Spring MVC
I'm working on Spring MVC project with JSP. While I'm running my project css file is not loading. I'm googling from last one hours but nothing i would found.
Here down is my jsp file
<%@ page ...
0
votes
0
answers
15
views
The content of element type "servlet" must match error
I just create a new Servlet and I have an error of this exact type: The content of element type "servlet" is incomplete, it must match "(icon?,servlet-name,display-name?,description?,(...
0
votes
0
answers
25
views
How to use Servlet? [closed]
I am working on a project for creating an Online food ordering website I want to know how to get the content from database and put it in html.
I have a Menu page which is visible to users and an admin ...
0
votes
0
answers
21
views
What is the best way to display a persistent notification until dismissed?
I have a webpage that is accessible from 1-4 computers per server. Every once in a while I need to display and alert or notification or something along those lines with a message "Recipe xfg has ...
-1
votes
0
answers
11
views
I want to use the ids from index.jsp?ids=(number) with in same jsp file and get it as a request parameter. How can I do that?
I am getting java.lang.NumberFormatException: Cannot parse null string error.
I am trying to read the url to get request parameter with in a jsp file. How can I solve this issue. Can any body help? ...
0
votes
0
answers
12
views
Cascading Dropdown using ajax from single database table?
I want to create two cascading dropdowns from single table from my database.
The first dropdown which is Main Category is working perfectly. i.e it's populating all the data in the dropdown using AJAX....
-1
votes
0
answers
31
views
getting js error whit combine.js file, not working for me but individual js file working fine
In my project if I build with all individual js files like in our local code base it working fine but when i try to build with combine.js file it is getting me below error message in console.
I tried ...
-1
votes
0
answers
8
views
Jsp button doesnt redirect
So I have some views. One of them is delete-form:
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
Created by IntelliJ IDEA.
User: PC
...
0
votes
0
answers
7
views
I have a question about the 'resources' folder for applying css to the spring mvc project in intellij
I want to apply Bootstrap's css file when creating spring mvc project in intellij, but I have a question.
In the Project Structure, the path is set to src\main\webapp\WEB-INF\web.xml, and the ...
0
votes
1
answer
28
views
In a table i have a list of files.If the file exists,the row bg color should be green or else red
<tr><th>s.no</th>
<th>File name</th>
<th>Date and time</th>
<th>Show</th></tr>
<%
while(rs.next()){
String id=rs.getString(1);
String ...
-1
votes
0
answers
15
views
VSC, there is a problem with importing the java file from the jsp file. Please help me [closed]
everyone. I'm nervous because it's my first question in Korea. Thank you.
I connected to the Ubuntu 16.04 (64-bit) with Tomcat by SSH connection from Visual Studio Code. And there was a problem ...
-3
votes
0
answers
29
views
how to resolve "cleartext submission of sensitive information" of owasp? I am getting this in JSP page
We are printing credit information by using out.println method in JSP, but as per checkmarx it's security issue as we are transferring secure data over internet.
Sample Code -
if(creditAmount != null &...
-1
votes
0
answers
23
views
how to manage / structure files and folders in a multi-directory web application with java [closed]
*My original question is down there, I just need to clarify it a bit
EDIT 2:
I want to create a web app to manage hotels and their rooms. Room is part of Hotel. Suppose my web is abc.com. I want a ...
0
votes
0
answers
16
views
Migrating from strut 1 to strut 2 how we will write the below tag
Below is the code code that will redirect to the welcome global forward if get success in login action class.
This tag is written in jsp page under some conditions that if session is valid it will ...
1
vote
0
answers
16
views
IBM JSF Date Picker hx:inputHelperDatePicker Accessibility Issue
I'm using the IBM JSF to build the application, and I found that there's a bug with the little calendar date picker component hx:inputHelperDatePicker, which is that the Date picker icons can only be ...
0
votes
1
answer
24
views
JQuery Data table can not get value from row
I am trying to get value from row and call a function with onClick
{
mDataProp: null,
"sClass": "left",
"render": function ...
0
votes
0
answers
22
views
How to print a list of posts created by a user
I want to print list posts created by users.
like this => enter image description here (Forced the user_name in .xml)
I have already implemented login and pass the session value as well.
But, I ...
0
votes
0
answers
28
views
JSP EL doesn't evaluate static fields in Weblogic
I'm using Weblogic 12c, the webapp is of servlet version 3.1.
I struggle how to evaluate static fields by EL.
Java Class:
package com.example;
public class MyClass {
public static final String ...
0
votes
0
answers
9
views
Not able to understand how tag value is included from jsp page to js file
I am facing a problem where I have button in jsp page if i click it then it opens the dialogue and for the first time I am opening it , it shows the title of the dialogue box but from the second time ...
-3
votes
0
answers
17
views
Getting Errors in solving like Correct HTML Component [closed]
I'm getting errors like these
Fail 1 - Correct HTML Component with the name 'username / password' must have appropriate name
Fail 2 - Correct HTML Component with the name 'userName' must be used with ...
0
votes
0
answers
19
views
javax.el.PropertyNotFoundException I get this exception saying I don't got a getter?
This is the error I keep getting:
javax.el.PropertyNotFoundException: Property [getWedstrijd] not found on type [domain.WedstrijdTicket]
at javax.el.BeanELResolver$BeanProperties.get(...
0
votes
0
answers
20
views
404 error,not displaying view content in jsp java spring boot
so I have some JSP views in my Spring Boot code, one of them which I have a problem with is showInfo.jsp:
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" ...
0
votes
1
answer
34
views
Using image with text in navbar
I just started using HTML and CSS. And I need help.
I want to use images and also text(for the title) in my header. So I used navbar.
If I make my window smaller, I want the text to move with the ...
0
votes
0
answers
22
views
Reflection Exception by request.getParameter
Recently we got a review by the audit team, There we have seen the Reflection XSS vulnerability
String s=request.getParameter("sname");
and we have tried with StringEscapeUtils.escapeHtml
...
-1
votes
0
answers
7
views
How to get the open id redirected url and it's response
I have openId user login url like xyz. when I put user name and password it take me to the another page that have abc url .. where I get a option to continue actually this is first redirected url soo ...
0
votes
0
answers
10
views
How JSP Container finds which class file is oldest and newest [Struts2]?
I have been learning JSP for a while now and I was curious in knowing how JSP files are converted into HTML. While learning about that process, I came into this concept that JSP files are generated to ...
0
votes
0
answers
10
views
how to make not display variables in url if there are no transmitted values
I made a board that can search and filter
However, even if do not use search and filter, the url will contain unnecessary values when click on the pagination
like this
http://localhost:8081/dictionary?...
0
votes
0
answers
25
views
how to get login redirected url of openId connect response and header
In Jsp I am redirect through
response.sendRedirect(open id login url).
That url is redirected and a new page of openId connect that have user name and a button for continue but after continue I want ...
0
votes
0
answers
21
views
Define the parameter babelfy.key in babelfy.properties in the config folder
These past months I've been coding up a dynamic web project on Eclipse. The aim of the project is to create a web where users can enter a little poem to adapt it to the Easy to Read methodology (it ...
-5
votes
0
answers
16
views
What is the vulnerability in this JSP code? [closed]
JSP ode
which parameters is vulnerable here
0
votes
1
answer
31
views
Href isn't redirecting
I have this code in JSP:
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@ taglib prefix="security" uri="http://www....
-1
votes
0
answers
21
views
ClassNotFoundException for a updated Applet Jar file despite the class file existing and the older version still working
I'm working on a assignment to reverse engineer an old applet application in order to recreate the code that's been lost, given the application is still in use.
Currently I've been able to test and ...
-1
votes
1
answer
17
views
How to pass the value (j.getJob_id()) to servlet from Jsp page [duplicate]
Jsp File
I want to pass the value j.getJob_id() to servlet page ,ie if there are two rows in the page if i press on the first row apply button , i want the id of the first row to be passed to the ...
0
votes
0
answers
12
views
request.getParameter() returns null when making a PUT ajax request in a Java servlet
I just started learning JSP and Java servlets and I stumbled upon an issue. I will use a simple example to show this unexpected behavior.
I have a .jsp file which has a button and makes an ajax ...
0
votes
0
answers
38
views
jstl variable is not even removed after setting it to null or using the c:remove
im trying to remove a session variable using the c:remove or c:set to ${null} but it did not work. I'm expecting the variable will be removed once I refresh the page but it didn't.
my servlet will set ...
0
votes
0
answers
14
views
Invalid Class name driver JDBC SQLite
I have this error "Unable to get connection, DataSource invalid:
"java.sql.SQLException: No suitable driver found for /Users/testdb.db" when trying to select query from a database in ...
0
votes
0
answers
13
views
How JSP get Data from SQL server using Tag
I am trying to get the resultList to my jsp using tag.
public class DBUtil {
public String getData()throws SQLException, ClassNotFoundException{
String resultList = "";
...
0
votes
0
answers
21
views
Populating table in JSP page from servlet [duplicate]
I am trying to get a table in my JSP page to show data from my get method in servlet, but I am getting a NullPointerException. I don't know why it is not connecting to my servlet method. I also linked ...
0
votes
0
answers
15
views
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 have added the JSP code below:
<%@...
-3
votes
0
answers
10
views
Features in web browser that helps in web application development? [closed]
I am working in a team where we are trying to integrate some of the existing features that are provided by web browser(google chrome/ Microsoft edge) in web application development to overcome UI ...
0
votes
0
answers
7
views
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 String to add parameters obtained from the ...
0
votes
0
answers
11
views
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 be a lot of different content fragments ...
0
votes
0
answers
40
views
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
@RequestMapping("/upload")
...
0
votes
2
answers
50
views
How to delete HTML table row with stored <td> index variable
I have a web page that lists multiple rows to a table. Each row has a button that is used to open a confirmation modal if the user wants to remove the row.
Is there any way to pass the row information ...
0
votes
0
answers
17
views
Is there EL / JTSL tag-ish for PHP display pages?
So I have studied Java-based web app in my Uni, where I use Servlets for backend and JSP for frontend display
Now I decided to learn PHP.
I notice that PHP use similar concept like "scriplet"...
-1
votes
1
answer
33
views
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 war file.
and I want to protect my unpacked war file
...
0
votes
0
answers
22
views
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 web.xml file. But even after giving ...
0
votes
0
answers
30
views
Java ArrayList from request.getAttribute is not displayed in jsp page [duplicate]
This is my ajax code and jstl code. I get the request attribute passed by the controller. The request was printed using "System.out.println("im here1: "+value);", but the value are ...
0
votes
0
answers
35
views
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 click on record id which I fetched and ...
0
votes
0
answers
17
views
Where are the project files Tomcat saves and how can I delete them?
I have created multiple Tomcat projects and only after a lot of debugging I have found that Tomcat saves the projects/files I have worked on and makes them available for future use. This is really ...