Quantcast
Channel: Active questions tagged servlets - Stack Overflow
Browsing all 675 articles
Browse latest View live
↧

Call remote linux Command over SSH, Java client vs WebServlet

I'm trying to call remote Linux Command over SSH connection by using maverick-synergy-client 3.1.1 on:Rocky Linux 9.JDK 17.0.3Firstly, I tried run it as Java Client Application:public class ShhClient {...

View Article


Spring Security ExceptionTranslationFilter throw "Unable to handle the Spring...

I'm using spring security web 5.0.9 and tomcat 8. ExceptionTranslationFilter throw ServletException "Unable to handle the Spring Security Exception because the response is already committed."I dig into...

View Article


Java Servlet to ASP data headings missing [duplicate]

Result wanted<th>Group</th><th>Subject</th><th>Date</th><th>Tags</th>Java ServletList<String> leftLabels = new...

View Article

request.getQueryString() seems to need some encoding

I have some problem with UTF-8. My client (realized in GWT) make a request to my servlet, with some parametres in the URL, as follow:http://localhost:8080/servlet?param=valueWhen in the servlet I...

View Article

Catch-all servlet filter that should capture ALL HTML input content for...

I need a servlet filter that will capture all input, then mangle that input, inserting a special token in every form. Imagine that the filter is tied to all requests (E.g. url-pattern=*). I have the...

View Article


Browser removing + from request parameter

I'm trying to pass an SQL query string from a Java Applet to Servlet as a parameter.Problem is that in Applet I have something say: sql=select * from p where(+p=1)The resulting sql parameter in the...

View Article

Java Remote kill user session

How I can kill a user sessionId from a web administration panel? I mean, I have multiple users entering a website with jboss 4.2 and struts 1.3 and I want to close a session of some of these users...

View Article

servlet action is not available

a strange thing is happening when i call servlet using struts, if i call it from my local host it gets called but when i deploy it on my web server it throws an error saying "servlet action is not...

View Article


Questioning in the same JSP page

I have a problem creating one application. For example I have a List or Array of string lines - these are questions. I have a servlet and JSP page, in JSP page there is a button "next" a one question...

View Article


How to debug into response.addCookie(...)?

i have a struts application in a jboss server. i would like to be able to debug into response.addCookie(...) when working from Eclipse.what do I have to do to be able to press Step Into from Eclipse,...

View Article

How can recognize user selected which ones?

I have two list on my request on jsp. First one is productGroupName, and the second is products.Now, I show these like below.<html:form action="/priceOrder"> <table width="100%"...

View Article

Passing request object to different servlet/action of same application...

Hi I have one application running on different servers build in struts2 and deployed in Tomcat5. Now I have a functionality of "Save on All" in this application. When it is called, then the same...

View Article

Google Recaptcha v3 example demo

Until now, I was working with Google Recaptcha v2, but now I want to update my WebApp using the lastest version (v3).Is it possible to anyone add a fully working Google Recaptcha v3 example for a basic...

View Article


JSP calling servlet not working

I have a JSP page that contains a form from which I have to call a servlet. But even after adding servlet mapping in web.xml and also trying webservlet annotations, the JSP page itself is not loading....

View Article

Restarting the server in the JEE applications [duplicate]

I'm working in a project as web project with JEE5 in intellig. When modifying a code in a servlett the changes doesn't made. I may resart the server if i want to see the changes . This is unconfortable...

View Article


Check for valid session: isRequestedSessionIdValid() vs getSession(false)

I'm developing Java Servlets. At the point of checking whether a user is logged in, I want to check if the HTTP request has a valid session. For checking that, I have 2 possibilities:(1)protected void...

View Article

Image may be NSFW.
Clik here to view.

WARN: Establishing SSL connection without server's identity verification is...

Hello I am trying to connect to a mysql database via a java servlet using eclipse and tomcat, but I take the following error: "WARN: Establishing SSL connection without server's identity verification...

View Article


doGet and doPost in Servlets

I've developed an html page that sends information to a servlet. In the servlet, I was using the method service to get that information and perform operations.I've read that other methods that I could...

View Article

How to use spring's MockMultipartHttpServletRequest? Getting "no multipart...

Clearly I'm not using this test fixture right. My servlet works just fine in tomcat, but when I try to use this mock, the multi-part boundary is not found. "the request was rejected because no...

View Article

In Java, is it possible to concatenate the contents of two PDF files in order...

I have a back-end Java application that grabs the contents of PDF files from a blob in the database, and puts them into a byte[] array to be able to download.My end goal - if possible - is to append...

View Article
Browsing all 675 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>