Css shows up as html
Hi I have a basic webapp with an index.jsp and I'm trying to apply some css, but it seems like the browser interprets my css page as html and i just dont know why. this is the jsp. I tried…
Hi I have a basic webapp with an index.jsp and I'm trying to apply some css, but it seems like the browser interprets my css page as html and i just dont know why. this is the jsp. I tried…
This is a JSP. I'm using Bootstrap5 and this is my code : <form action="" method="GET" class="row g-1 mb-3 "> <div class="col-lg-2 col-md-4 col-6 mb-2"> <input type="date" class="form-control" name="startDate" style="font-size:.9rem"> </div> <div class="col-lg-2 col-md-4 col-6 mb-2"> <input type="date" class="form-control" name="endDate"…
I have a JSON attribute's value in Java, I can get the value properly but I couldn't send to JSP file.. My JSON: periods = {"number":1,"name":"Tonight","startTime":"2023-06-05T22:00:00-04:00","endTime":"2023-06-06T06:00:00-04:00","isDaytime":false,"temperature":63,"temperatureUnit":"F","temperatureTrend":"rising","probabilityOfPrecipitation":{"unitCode":"wmoUnit:percent","value":null},"dewpoint":{"unitCode":"wmoUnit:degC","value":8.333333333333334},"relativeHumidity":{"unitCode":"wmoUnit:percent","value":50},"windSpeed":"9 mph","windDirection":"NW","icon":"https://api.weather.gov/icons/land/night/sct?size=medium","shortForecast":"Partly Cloudy","detailedForecast":"Partly cloudy. Low around 63, with temperatures rising to around 65 overnight. Northwest…
As the title says, I've encountered an issue where not a single <%@ directive attribute is being even recognised in any jsp files on VSCode. For example something like <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> doesnt work, or <%@page import="java.util.ArrayList" %>.…
I have 2 <div> in my JSP <div id="searchCriteria"> // included one search criteria JSP with search button. </div> <div id="searchResult"> // included search result jsp with <previous> <next> navigation links </div> Question : on click of previous & next…
Html - <div class="pageEdit" value="Create|8765678|FOOD=6578~-8765678?|9381"> <a href="https://host:controller">Edit</a> </div> I want to get the value inside the div and pass that in a Javascript method after splitting pipe. $(".pageEdit").on('click',function(event){ var data = $(".pageEdit").text().split("|"); functionPageCreate(data(0),data(1),data(2),data(3)); }); This is not working. I do…
This is the code: <% try { String enteredOtp = request.getParameter("otps"); String actualOtp = (String) session.getAttribute("OTP"); if (enteredOtp.equals(actualOtp)) { String eemail = (String)session.getAttribute("eemail"); Connection con; Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost:3306/mysql","root","12345"); Statement stm = con.createStatement(); String m = "select * from empinfo…
I have this code out.print("<img class="blurry-load" style="margin:0px;border:0px;padding:0px;left:0px;top:0px;" id="" + getId() + "" " + " onmousedown="registraPosicion(event);" ondragstart="registraPosicion(event);" ondrag="reposiciona(event);" ondragend='setTimeout("registraPosFinal();",500);" 'onload='loaded((this.id).removeClass("blurry-load"));'" + "src="" + request.getContextPath() + "/imagestore/" + newFileName + "?" + getNode() + "=" + selectId + "&" + "image.index"…
I am modifying some JSP files, and every time I upload a new version, if people don't update the cache, the styles are not rendered as they should be; it is looking not good and without styles applied. To solve…
I'm trying to set up a Tomcat Server on VSC (since it couldn't work on IntelliJ because I don't have the ultimate edition) but I have no experience (and neither do my colleagues) with Community Server Connector. All our documentation…