Servlet is a Java application programming interface (API) running on the server machine which can intercept on the requests made by the client and can generate/send a response accordingly.

learn more…| top users | synonyms (5)

0
votes
0answers
7 views

What's the relationship between ContainerRequestContext and HttpServletRequest? How are they linked in JAX-RS?

JAX-RS filters take ContainerRequestContext as parameters when filtering requests, but in the actual service controller, most examples I've seen get their context in the form of an HttpServletRequest ...
0
votes
0answers
14 views

Java: How could we replace a Servlet with JSLT Standard Tag Library❓❔

Hello and thank you for reading this question:I am learning web development and design patterns with Java and I would like to learn how to use JSLT tags. The reason is because of they are easier to ...
0
votes
0answers
8 views

How to dynamically change url between contextPath and servletPath, pathInfo etc [duplicate]

So guys, i have a web apllication which works with group of expenses, but now it's only one group and the task is to do the following:Each group has an uuid and i need to generate new id for each ...
0
votes
1answer
16 views

How to handle two submit buttons in a jsp file

Im having a jsp page with two submit buttons as shown below<form name="myForm" action="http://stackoverflow.com.mevn.net/app" method="post"><select name="selection" multiple="multiple" id="select" required>...
0
votes
0answers
10 views

How to get a excel file from html page to servlet?

this is my html code<tr><td>excel file: </td><td><input type="file" name="file" size="50"/></td></tr>thsi is my servletPart file=request....
0
votes
1answer
10 views

how to get proper path of a file while it gets uploaded

when I upload a file through jsp page, the servlet only shows filename it does not get whole file path when we run in ubuntu 14.04 through eclipse. How can we get complete path of a file this is my ...
-4
votes
2answers
40 views

What is the Difference between SOCKET and SERVLET, as both are used in client-server model? [on hold]

Hye ,i just confused over the servlet and socket as both of these can be used in client-server model,please elaborate the difference
-1
votes
0answers
11 views

How can one access server.xml in context of web application

How can one access server.xml in context of web application.Does server.xml gets cached in application context on load of server, if yes then how to access it in java servlet.
0
votes
0answers
21 views

Null pointer exception at preparedStatement [duplicate]

I am designing simple bank application using servlet and jdbc so while inserting data into database I am getting null pointer exception at preparedStatementmy code for that is Connection con=null;...
0
votes
0answers
14 views

How to set redis “session key prefix” using RedissonSessionManager

I want to use "redisson-tomcat" library to store tomcat session in redis. But I need to add key prefix before storing sessions in redis. Is there any way to add session key prefix when storing ...
-1
votes
0answers
9 views

Cannot download file from Servlet to Google Chrome (Firefox works fine)

I'm having a bit of problem in the code below, it works in Firefox but in Google Chrome the download always gets "Failed - Network error" problem.@Overridepublic void run(Representation ...
0
votes
0answers
14 views

Displaying live graph from JSON input

I have a json array of pulseID. I want to use this JSON array to be displayed in a line graph.1.the x-axis should be the time interval.2.the y-axis should be the pulseid.Connection ...
1
vote
0answers
14 views

Post-Redirect-Get Struts2 based on nextpage

i didnt find a clear answer browsing questions on here for this.So here it is.I have multiple pages, multiple forms, and displays that need information. I want to avoid using the session for such ...
0
votes
0answers
20 views

Why does a FilterChain accept ServletResponse as an argument instead of returning a new one? [duplicate]

javax.servlet.FilterChain has a single method doFilter which is defined as:public void doFilter (ServletRequest request,ServletResponse response ) throws IOException, ServletException;...
0
votes
0answers
18 views

CORS header 'Access-Control-Allow-Origin' missing but it is present

I created a servlet in java. In this file if user add response type ‘json’ in his url then json response will be given to user. My servlet looks like – public class A extends HttpServlet {private ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,