All Questions
2,048
questions
-1
votes
1
answer
78
views
Why "HTTP Status 500 - Internal Server Error" happened after I clicked the Update button? [duplicate]
This error happens when I tried to edit the profile in the JSP work.
Error Message
The error shown below in NetBeans:
|#]
org.apache.catalina.util.Enumerator@3b90e68c|#]
StandardWrapperValve[...
-1
votes
1
answer
51
views
I feel like the server cannot find my file even though the file path is correct
My plan is to check all textfields whether they are empty or not. If empty I want to display an error message and keep displaying the SignUp.jsp. This is the code:
if (uEmail.isEmpty() || uFName....
0
votes
0
answers
38
views
Connection error with mysql and servlet based project [duplicate]
I am currently undertaking a course project where I am developing a recipe website using HTML, JSP, and Servlet. To streamline the retrieval of recipe data, I am attempting to establish a connection ...
0
votes
0
answers
21
views
jsp toggle button, save the corresponding value to DB
I am currently working on a smart farm project with my team members using jsp.
I'm trying to create a toggle button on the main page so that a specific value of on:255 / off:0 is stored in the DB. I ...
-2
votes
1
answer
69
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
...
1
vote
1
answer
50
views
How to insert value into a record in mySQL
I'm trying to make email subscription , where user enters in their email and the 'null' field in mySQL gets updated to the email address provided. Here's what I have so far:
public boolean ...
-2
votes
2
answers
81
views
Else statement's code is also printing even though if statement is true
This is the code:
<%
try
{
String enteredOtp = request.getParameter("otps");
String actualOtp = (String) session.getAttribute("OTP")...
0
votes
1
answer
215
views
Issue to load data from java servlet after clicking submit button
I am using j2e. I have my .jsp where I have some select-options, some information that I get from a database, and a submit button that permit to update the database with the information I choose on ...
0
votes
1
answer
64
views
How can I display the data from Mysql table in jsp
Please, HELP!
Many days I try to display the data from Mysql Data. I tried to display data by may different ways. But no succcess. I connected to Mysql DB. I can extract it like ArrayList using ${} ...
-1
votes
1
answer
51
views
Error: javax.servlet.ServletException: java.sql.SQLException: Before start of result set root cause java.sql.SQLException: Before start of result set
<%Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/mysql","root","12345");...
0
votes
1
answer
171
views
How to use form values from a JSP file into <sql:query> tag in another JSP file?
I get the below error:
I am able to see the user input but the sql is not taking in the value?
The error is as below:
org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet....
1
vote
0
answers
168
views
How to retrieve data from MySQL database and place in a HTML Form using Soap Web Services using Java ,
I attempted to retrieve user information from the MySQL database, but when I ran my program and searched for the user by name, nothing appeared in the HTML table. I can't figure out what's the issue. ...
0
votes
0
answers
29
views
Multiple inline insert using Ajax & JSP [duplicate]
I wanted to inline multiple inserts using Ajax & Jsp. It's working but inserting like comma separated Value, please see the image. But I want to insert into a database split value. like
Student ...
1
vote
0
answers
54
views
Saving an image inserted by user in a folder under WEB-INF in a jsp project
I am trying to save an image inserted by an <input> field in a form by the user to a folder named imgs under the WEB-INF folder and store in the table column of the product the path of that ...
-1
votes
1
answer
340
views
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure. The driver has not received any packets from the server
I have a Servlet and jsp project in which it takes the name and pass. when I want it to save it in the MySQL database using JDBC mysql-connector, it shows this error. Please help me I'm stuck in this ...