Questions tagged [jsp]

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

-1
votes
1answer
10 views

Why my DownloadServlet class download zip file instead of xlsx file

I'm trying to download xlsx file using DownloadServlet class with http://*****/download?file_id=1&file_type=xlsx but the file downloaded in chrome as .zip file firefox without extension ...
0
votes
0answers
14 views

tag <c:forEach/> si not doing anything

I am trying to show through JSP code the value of some variables stored in in ArrayList money. I am using Java for this project. The thing is that when I try to do: <c:forEach var="pos" items="${...
0
votes
0answers
20 views

How to filter out a single, specfic value in the autopopulate using IF condition

What would be the if statement code for filtering out a single word example "Generic" so it will not show on the auto populate field? I don't have a clue on what if statement codes shall I use. ...
0
votes
0answers
16 views

my Servlet code not work in bootstrapvalidator remote

What should I do if I want to send remote information generated by the bootstrap validationer to the @WebServlet(name="check")? @WebServlet(name="check") public class IdCheck extends HttpServlet { ...
2
votes
0answers
31 views

Setting a block of html code inside a value

I'm trying to store a block of html code inside a variable. I'm wondering if i can set it like this set var="html" value="i get this value from a controller ${controllerValue}" Do you guys know any ...
1
vote
0answers
25 views

html tags using printwriter from servlet to jsp [duplicate]

I want to build simple tags in servlet and later use it in my jsp page on a specific place. I am trying to build such a "system" that, if I read data from database later, for every row which will be ...
-3
votes
0answers
14 views

Webcam light comes on when making a video calls, but nothing is displayed [on hold]

Through my JSP page I want to make a video call. I have got code for the JSP page. The webcam light is on,but the display is not captured on the JSP page. I copied the source code from the net. I am ...
0
votes
0answers
7 views

Login Page should show only Once in the App spring 5

I am making a webApplication on Spring mvc with hibernate. I am facing a problem . I want that the user should not be able to see login page after successfull login once. What should i write in my ...
-1
votes
0answers
22 views

If condition on how for filtering out a specfic value in auto populate

What would be the if statement code for filtering out a single word example "Generic" so it will not show on the auto populate field? function autocompleteDrugs($input, onSelect, onSelectNone) { $...
0
votes
0answers
26 views

Empty Space not working After decreasing Font Size (Ctrl - or Ctrl +)

I am trying to move the excel Icon little bit right, i used <span style="display:inline-block; width: 430;"></span> it worked perfectly Stays on Right if the Page is at 100% But when ...
0
votes
0answers
22 views

How to get data from properties file inside JavaScript in a maven dynamic web project

My project is a maven dynamic web project. I have a drop-down for usernames and a text box for password in JSP file. Based on the selection of the user name in the drop-down, I need to auto-fill ...
-1
votes
0answers
23 views

How to do google search from my own web page? [duplicate]

I need to get a keyword from my user and the webpage should google it and should display the results in the current page.
0
votes
0answers
7 views

How to fix “ uploading the image through image” java [duplicate]

I am trying to upload the image file into the database with a form,but there is an exception "Unable to process parts as no multi-part configuration has been provided" Please help I have used ...
1
vote
0answers
19 views

How to receive and parse json data fetched from one jsp page to another jsp page inside an ajax call?

I have a simple jsp page, which should show some english questions and their question ids fetched from a mysql database, but without reloading the page. For this purpose, I have used ajax in my jsp ...
0
votes
0answers
12 views

Is there a way to use a conditional so that if one styesheet is present, no others are called in?

I am working with Oracle WCS and using multiple content blocks to create web pages. I want to be able to use the content blocks inside of an HTML slot and put the slot in Experience Manager. Usually,...
0
votes
1answer
13 views

why is s:mvcUrl function returning different results on different views?

I'm calling the function mvcUrl() on two different JSP files. On the first file, it is returning the expected result, but in the second one, it is returning the URL with the path of this JSP on the ...
0
votes
0answers
7 views

Add debug information to JSP in Spring MVC (Filename, model attributes)

In our application platform it is sometimes quite hard to identify the source of the specific HTML, because the JSP was overwritten multiple times. It should be possible to write a JSP-Renderer Hook/...
0
votes
2answers
16 views

How to add Apache POI to JSP correctly to perform XWPFDocument in Eclipse?

I added the jar files of apache poi to the build path of my project but still have an error when trying XWPFDocument docx = new XWPFDocument(new FileInputStream(folderName + fileName)); I tried to ...
-7
votes
1answer
38 views

JSP and Java Servlet: Relevant in 2019? [duplicate]

What is 'JSP' and 'Java Serlet'? Is it wise to learn them in 2019? What are the alternatives present for JSP, and is PHP relevant to JSP?
-3
votes
1answer
35 views

Default checkbox is circle - how to transform it to square? [on hold]

I have problem with my checkbox. Everytime I get circle checkbox, but i want the default one - square. I am creating my checkbox in .jsp like this: <input type='checkbox' name='foo' value='bar' ...
0
votes
0answers
17 views

Input tag - How to hide a specific value in input text

I wish to have a specific value to be hidden in the auto populate field without deleting it in the database. For example, I don't want the word "apple" to come up on the auto populate. Is it ...
0
votes
1answer
17 views

How to get locale DisplayName which is not defined in java

So I have to display a Burmese(Zawgyi) in my language selector dropdown,however there is no locale supported in Java for Burmese(Zawgyi).We have a locale "my" for Burmese , but that is different than ...
0
votes
2answers
27 views

REGEX to find .exe extension in a particular string.? [duplicate]

I am trying to setup a REGEX in my java code where any given string ending with a particular expression like .exe should give a boolean true value else if should return false value. What should be the ...
1
vote
1answer
42 views

Multiple Java Scriptlet on the same JSP Page

I want to select the SQL data with WHERE clause, but I have no idea how to work with it. My expected SQL query: SELECT * FROM OLSUSER WHERE user=login_user; This is my HttpSession with Java Sciptlet ...
0
votes
0answers
33 views

Select dropdown with textbox that filters options

So I thought this would be a very simple issue to solve but it is proving to be fairly difficult for me. I simply have a drop down that lists several options. At the top of the options there needs to ...
-1
votes
1answer
44 views

How to get row id on button click?

I'm trying to make an shopping cart by using jsp. I need to get id from a row to add another table using that id. I have table created and buttons placed. What kind of method should I create or what ...
0
votes
0answers
9 views

How to get data from TimerServlet from HttpServlet? [duplicate]

I have to create an online counter web page. I found that the 50% of what I need is this ejb: @Stateless public class NewTimerSessionBean extends HttpServlet { private String myDato; private ...
0
votes
0answers
11 views

Why cant I access my API when SpringBoot .WAR was deployed to Google App Engine?

I have a working .jar springboot file. I can make calls to my API. For example when that .jar file is running on my terminal, I can do "http:localhost:9090/actor" and that will fetch all data from my ...
0
votes
0answers
15 views

How to write google cloud voice api code in jsp?

I am new in jsp(web application) I need .jsp page tutorial for Google Cloud Speech to text and Text to speech example or demo, I have search but could not find proper document demo to implementation ...
0
votes
1answer
47 views

Does it mean to Show JSON String in jsp without JavaScript?

I have a JSON String like this as I write below. I Want to display it in jsp without any javascript or Jquery { "menu": { "items": [ { "id":"Open" }...
1
vote
1answer
99 views

How to create dynamic options for select box using array elements ? and use that option box value in another jsp page?

This Question is Linked with [this][1] question. I'm trying to create dynamically generated options for the select box using array elements. meanwhile, I want all the array elements to get displayed ...
-2
votes
1answer
25 views

Add all the months(numbers) which are in range to the list [on hold]

I have months ranging from 01(jan) to 12(dec), if the range is 12-03 then I want to add 12,1,2,3 to the arraylist or if the range is 02-05 then I want to add 2,3,4,5 to the list, how can I do this in ...
-1
votes
0answers
18 views

Miscalculating quantity number in the cart in java

I wanted to try a build shopping cart in jsp code. I handle with adding item in the cart , deleting a selected item from cart and lastly clearing all items from cart without calculating quantity of ...
0
votes
1answer
25 views

IE11 - Cient side redirect to jsp unable to assess session attribute

My login ajax call is like this $.get("LoginServlet", {'agileid': id, 'passwd': passwd, 'remember': 'yes' }, function(data) { var results = JSON.parse(data); if ( results....
0
votes
0answers
19 views

How to randomly preselect item in Select in HTML

Please find below my problem details I have a servlet in which I get a list of String. I pass the list in request.setAttribute("listProfenString",listProfenString); Then, in my JSP, I get the list....
0
votes
0answers
9 views

How can I pass variable between two servlets [duplicate]

I have a message in CartServlet and I can pass it to the another servlet named for ViewCartServlet. I tried to do it but I'ven't reached the right result. How can I do it? In CartServlet request....
0
votes
3answers
42 views

jQuery Form validation is not working in JSP

I am trying to validate a form using jquery with our validation plugin. When submit the form its redirect to the action page without validating. Also I Tried by put the isValidFormLogin function in ...
0
votes
1answer
25 views

Hide a HTML button based on a if-condition

I have a JSP page which includes a button called "Download".I want to hide this button based on a if-condition. The Download button is meant to generate and download PDF onclick of it. I have a List ...
0
votes
1answer
26 views

Spring eval url Veracode issue in JSP

I have a JSP page where I am getting URL from a property file like below - <spring:eval expression="@environment.getProperty('url.home')" var="homeUrl" /> and it is used like below - <a ...
0
votes
1answer
45 views

How to fetch and populate values from mysql to HTML select options dynamically in jsp and ajax for two select option box

I'm facing a problem while fetching the data from MySQL database and populating it to html select option using ajax. The value it is displaying properly for first select box, but for the second select ...
0
votes
0answers
19 views

EL display problem in JSP with iterator Struts2

I present you a part of my BDD concerned by my problem: My Action Class : @Override public String execute() throws Exception { if(session.isEmpty()) { return ERROR; } mesg = (...
0
votes
0answers
21 views

How to update loggers in all managed servers at a time for tomcat

We have different managed servers in single environment. Now, I need to update all managed servers at a time when my request goes to one particular server. I should have a file in local with all IP's. ...
0
votes
0answers
26 views

Problem with simple form in Spring Jsp used

I have made some magic from ->>> https://www.baeldung.com/spring-mvc-form-tutorial And I don't have any idea why, but the code does not work. I tried to change catalogs, names, added weird in ...
1
vote
0answers
26 views

Correct way to reference css in servlet with JSP called by another page

I have a Java WebServlet (e.g. javax.servlet.annotation.WebServlet @WebServlet) app that returns a JSP page as a response to a POST request. It is essentially a "widget" for a dashboard. All works as ...
0
votes
0answers
24 views

Quote expected on column 399

I have the below string in my jsp but when I run the program, I get an error from tomcat that quote expected on column 399: <script> var string ="<td class=\"tabletextcont\"><a ...
1
vote
0answers
28 views

Asking twice for username and password in HTTP Basic authentication on Weblogic 12.2.1 with OHS

I've a simple Java-based web application deployed on Weblogic 12.2.1 using OHS. There is a simple JSP page with a servlet for uploading files. index.jsp: <%@ page language="java" contentType="...
-1
votes
0answers
21 views

Trying to add a passenger based on hiss pass code to table returning error [closed]

I'm trying to add a passenger based on their pass code to a table in db, but it's returning an error. If the passenger doesn't exist, then it's inserting in the table normally, but if the passenger ...
0
votes
0answers
29 views

I am trying to use jQuery with Spring MVC to get “bookid” from the databse but i am getting error alert every time

Hi there I am using jQuery with Spring MVC to get the book_id from the database but I am getting error alert every time I have used jQuery ajax() method and defined all the parameters properly like ...
1
vote
0answers
14 views

Spring MVC form checkbox not checked when retriving data

I am setting status property as true in the Backgruond but still check box not checked Jsp <c:forEach var="list" items="${someFormList}" varStatus="status"> <tr> <td> <form:...
0
votes
0answers
21 views

How to fix connection to the web service

Well I'm working in this project and I should connect it with rest api, the only problem is that wehn the rest template is there the login form doesn't appear as long as the other jsp forms but when I ...

http://mssss.yulina-kosm.ru