Tagged Questions
0
votes
0answers
8 views
Servlets registered on the “wrong” OSGi HttpService
We have a problem with conflicting HttpServices in our OSGi system based on Apache Karaf embedded in a web application running in Tomcat.
Some parts of our application are non-OSGi based and respond ...
0
votes
1answer
29 views
(Java) Play! Framework vs. Java HTTP Server Class
I'm currently developing a application that will respond to HTTP requests and spout out raw JSON to the client, but I'm not sure what to use.
I was thinking of using a Java HTTP Server class and ...
-2
votes
4answers
32 views
what is the difference between HTML comment and JSP comment,For Which purpose we are using JSP comment
Can Any one give me the answer of my question.I want to know what is the purpose of JSP comment in JSP.
0
votes
1answer
27 views
Link between Radio button and Servlet Database
I want to delete the previously entered record from the database when I click on radio buttons and submit.
Can any one please help me how to link the radio butten and database ??
I just want to know ...
0
votes
0answers
25 views
Lookup session scoped bean in CDI using BeanManager
I have to programmatically lookup a session scoped bean managed by CDI from a servlet.
So far I've managed to lookup default scoped beans using a BeanManager instance. However for session scoped ...
-1
votes
1answer
22 views
getXMLHttpRequest : creating new request in javascript
I am to send 200 OK http response with 3 additional things.
1) sending 1.js
2) sending 2.js
3) create new post triggering some url
My code is :
out.println("<html><head>");
...
0
votes
0answers
17 views
Jetty - servlet call gives directory index for no apperent reason [SOLVED]
jetty is doing weird things. It basicly shows me an directory index for a servlet. One with almost same web.xml and context xml works fine. here my web.xml:
<?xml version="1.0" ...
-2
votes
1answer
13 views
JSP hit counter with cookies [closed]
Im working on a school project, that contains a hit counter with using cookies. I used to make counters just passing an incrementing value into variables in beans at every refresh, but I've been told, ...
0
votes
1answer
12 views
Servlet init() method equivalent in JAX-RS
I am working on an application which is running on Glassfish. I am supposed to convert the servlets to proper restful stuff, by using jax-rs and jersey.
I have been trying to find a workaround for ...
1
vote
1answer
16 views
Site healthcheck/statistics servlet
I'm trying to find a simple library, which would implement a servlet that collects all available system/JVM/memory/threads statistics and shows them in a simple HTML (or plain-text) web page. The only ...
-1
votes
1answer
31 views
Image graph not loading in jsp page
I am doing a graph in jsp page and for this i am using jfree graph. This page is known as Analysis.jsp. I am first taking the datas from the DB and making the graph and converting it into an image and ...
0
votes
0answers
20 views
Export Data to MS Word (.doc) in Servlet
I'm creating an export screen in servlet, in Which user can using search function and get the result in Ms Word(.doc) format.
I tried to query data from Database and create .doc file directly using
...
0
votes
0answers
20 views
tomcat servlet sessions get merged
I'm developing a server that should receive ,multiple files instantaneously and be able to save them to the local hard drive. After the file received the server should send a response to the client ...
0
votes
1answer
13 views
500 Error: Custom JSP page with Google App Engine
I want to provide users a custom JSP page to deal with the error 500.
So far i tried the normal configuration in web.xml
<error-page>
<description>Uncaught ...
1
vote
1answer
34 views
Standard practice for a servlet to support two output formats
Up until now; our servlet only used to support application/json as the output format. In fact; we just returned the output as application/json; with no regards to what the user requested :(
Going ...