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.
5
votes
1answer
83 views
Single Sign On - SAML Response generation
I am trying to implement a IDP initiated Single Sign On Solution (service similar to onelogin's) to Cloud based Service providers such as Google Apps, Salesforce etc.
The project is a Maven eclipse ...
1
vote
0answers
59 views
Mutualising multi-threaded calls to EJB from Servlet
I have a Servlet that makes an EJB call to a backing server which takes about a second to return some data that changes reasonably regularly.
I can't cache the data on the servlet-side, so I have ...
8
votes
2answers
126 views
Simple servlet code to sum digits
This servlet takes an input from the user and
Stores the number inside the bean but with spaces in between each digit then stores the bean in the request scope.
If the last digit is even, sums the ...
8
votes
2answers
493 views
6
votes
2answers
278 views
Implement HTTP Server with persistent connection
I am trying to implement a HTTP Server in Java, I want the server to use a persistent connection per thread for request and response. After some research on Google, this is how my program looks like. ...
7
votes
2answers
169 views
Servlet for querying database on some high-loaded system
What should the code do: Process client HTML requests, query database and return the answer in XML. Working with a high load.
I need to know how can it be optimized.
Is something terribly wrong with ...
0
votes
1answer
364 views
Please check my example about jquery autocomple with servlet [closed]
Please check my code, did i get some things wrong
I'm a newbie in jquery and ajax, please check and show me how to fix this
In jsp page :
...
-2
votes
1answer
998 views
file downloading using jsp but not readable [closed]
I am trying to download files using jsp but then downloaded files are not readable.
Suppose if i download pdf files then it can not opened,if i download jpg files then it can not opened and similarily ...
0
votes
1answer
151 views
How can I tidy up this servlet parameter check code?
One of the servlet in my web app takes parameters in the form www.service.com/servletname/parameter1/parameter2.
The first parameter is required and the second ...
2
votes
1answer
233 views
Am I using appropriate methods in this login system?
I have had to do a crash course in JSP, Servlets, and JDBC. I decided to attempt a Login System. I'm unsure if my use of try/catch is appropriate and if I am closing database connections correctly. ...
1
vote
2answers
493 views
Correct implementation for background task execution in web application?
I have a simple servlet which merely serves some cached data back to the user. I also have a background thread which runs at fixed intervals to refresh the cached data. Is this a reasonable ...
2
votes
1answer
645 views
Tomcat/JSP/servlets web-project refactoring advices needed
I am a newbie to JSP/servlets/java, studying it atm. So I've made my first project.
It's a simple sort of array. Array (in fact I used ArrayList) is stored in ...
1
vote
2answers
289 views
Is there a more efficient way of loading views within my java app?
I'm building a web application in Java. I'm new to Java, so before I get too far into this... I'm hoping to take advantage of all the experience here and learn the problems with this setup.
My ...