Skip to main content

All Questions

Tagged with
-1 votes
1 answer
47 views

In a JSP file use a form to call a method in a java file to create and then download a a csv file for the user [duplicate]

Having a hard time figuring out how to get my JSP file to trigger a method in my java while using a form. The method sends a query to a db, I want to take the result set from that query and turn in ...
Someone's user avatar
  • 31
0 votes
1 answer
40 views

File uploaded from jsp is not making it to servlet [duplicate]

I am attempting to upload a csv file from my JSP and used in the servlet request. I keep getting an exception in the servlet and it appears the file doesn't make it that far. Here's part of my JSP. I'...
Javajavajava's user avatar
0 votes
0 answers
38 views

How do I hand over the csrf token when I submit a form in a new window?

<body> <form:form id="gotoPopupPreview" name="gotoPopupPreview" method="post" action=""> <input type="hidden" name="...
sinichee's user avatar
0 votes
2 answers
130 views

Why the <form:hidden> value is set as empty?

On my default page, I have a hidden fields to set custody details. I've checked the HTML source and the values are coming as empty. I tried to check if the controller itself is sending null data. But,...
SnailK's user avatar
  • 11
0 votes
2 answers
46 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
1 answer
219 views

Set restrictions for user input email address

I want put a restriction so that the user inputted email address wont be accepted if it has an exclamation point. Perhaps I change type to "email" in 4th line? <label class="control-...
Saber's user avatar
  • 3
1 vote
1 answer
73 views

How to call servlet after running JavaScript verification code?

I am trying to run a character length check first and if user pass that than want to call the servlet which will return that user logged in. <html> <head><title>Login</title>&...
Arihant's user avatar
  • 15
0 votes
1 answer
54 views

XMLHttpRequest, AJAX, JSP, Load data into form

If the object contains more fields than what are referenced in the form, then it breaks, how can I prevent this (https://jsfiddle.net/a4v7p2xg/2/) the snippet below works. var data = { "...
David Garcia's user avatar
  • 3,174
1 vote
0 answers
54 views

ConcurrentModificationException on a jsp form with multiple model attributes. (Spring)

I have a chain of java classes related to each other, due to my goal of producing an xml file. I need to assign values to attributes of those classes via webapp. When trying to create a jsp form I ...
Kacper Korab's user avatar
0 votes
1 answer
293 views

How to submit data via Form in a For-Loop?

I have a method that prints a table with values of 7 columns. I wanted the data of the fifth columns to be a link, that when i click on them i get directed to another page, where I have more details ...
user avatar
0 votes
1 answer
2k views

Best way to pass query params on button clicks

I'm working on some code-base where an existing bootstrap button on a JSP page is like: <nav class="navbar navbar-dark bg-primary"> <div class="container-fluid pr0">...
Pricey's user avatar
  • 81
0 votes
2 answers
851 views

Form Action in JSP not able to call different methods

I have a code in Java that uses the Spring framework to call different methods as per form action in JSP. However, it's not working as expected. The two forms work separately i.e. when one is removed. ...
Pallab's user avatar
  • 19
-2 votes
1 answer
60 views

How would I give immediate feedback in a JSP?

I have a JSP form, that (when the user clicks the "submit" button) instantiates a Java class, and calls a method on it. This method then submits a request (in a proprietary format) to a ...
hbquikcomjamesl's user avatar
0 votes
1 answer
156 views

servlet can't get option value from jsp

I'm doing a java web application using jsp and servlets. I have a form and I retrieve different values from my db to populate an option. This is my form: <form class="form" action =&...
alesechi's user avatar
0 votes
1 answer
57 views

How do I to stop submitting in first dropdown list in .jsp?

I have a file called add.jsp that I add data to the database with Java. In this file, I bring the leagues from the database with the first dropdownlist, and the teams of that league are displayed in ...
En Büyük Fenerbahçe's user avatar

15 30 50 per page
1
2 3 4 5
56