Questions tagged [servlet-3.0]

Java Servlets 3.0 is a new API that supports extensibility/pluggability, Ease of Development (EoD) using the newer language features, Async and Comet support, Security, and other features being as part of the revision for Java EE 6.

Version 3 of the servlet API adds the following to version 2.5

  • async response
  • multipart support
  • annotation configuration (no web.xml)
  • generics in the API
  • resources (including JSPs) in JARs under META-INF/resources

Links

941 questions
0
votes
1 answer

Why is sendRedirect(String path) not throwing IllegalStateException?

I've following code in my servlet public class RedirectingExceptionServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out =…
JavaHopper
  • 5,567
  • 1
  • 19
  • 27
0
votes
1 answer

PHP or JSP(server side) and Java-Android(Client side)

I know a little java, android languages. Now I want to build an Android server-client application and for client side I will use Android(java) and for server side either JSP/servlet or PHP. So I have 2 questions: What is easier and faster to…
0
votes
2 answers

Can't subscribe to server-sent event using Jersey and Tomcat 7

I am deploying Server-Sent-Event resource with jersey 2.41 / Java 7 / tomcat 7. I am getting error as Dec 16, 2013 4:04:40 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [ServletAdaptor] in …
Jigar Shah
  • 2,576
  • 6
  • 31
  • 53
0
votes
1 answer

Web fragments (Servlet API 3.0) - Also modular resources in WEB-INF directory

According to Servlet 3.0, a JAR placed in WEB-INF/lib has static content from its META-INF/resource directory accessible from the web-context root. The specification doesn't say anything about modular resources, which should be accessible from the…
Ginkgochris
  • 455
  • 4
  • 25
0
votes
2 answers

How to make GET and POST request from servlet with content type and content

I want to make GET and POST requests from a servlet to another server, where I will be sending XML content and a Content-type header. However, there is no method in HTTPRequest to set Content-type and content. How can I do that?
Arvind
  • 1,207
  • 6
  • 27
  • 55
0
votes
1 answer

Jetty, DefaultServlet, BlockingCallback and TimeoutException issue

I am running an online application powered by Jetty 9.1.0.RC1 (standalone distribution). My log file gets filled up by the following issues occuring randomly when serving static content (.js, .css, .png files etc.): 2013-11-25…
0
votes
1 answer

JAX-RS Application sub-class not registering

I'm trying to develop a RESTful webapp using the Servlet 3.0 Application class on Tomcat 7.0.34.0, but nothing seems to work. I've had no problem with previous apps using the Jersey ServletContainer approach and declaring all REST services in the…
0
votes
1 answer

How to display servlet output using hyperlink tag of html

I have to show result of servlet which is fetching data from mysql, on clicking one hyperlink in html. Please tell me how to do that. Thank you
user2918831
  • 455
  • 1
  • 6
  • 9
0
votes
0 answers

Bootstrapping and re-initializing application with Java-based configuration

I've been looking for someone else doing this same thing, but haven't seen a scenario that's quite like this so I thought I'd see if anyone here has any good ideas on how to accomplish this. My group builds and maintains an open-source neuroimaging…
Spanky Quigman
  • 870
  • 7
  • 16
0
votes
2 answers

Is possible to use Servlet 3.0 annotation to configure external servlets/filters?

The new annotation introduced in Servlet API 3.0 are so useful for configuring servlets/filters implemented by yourself. But... is there any way to configure servlets/filter provided by dependencies? For instance, using Resteasy (actually many…
wikier
  • 2,517
  • 2
  • 26
  • 39
0
votes
1 answer

How to configure Hazelcast-WM using System Properties and spring

I'm trying to clusterize http session using hazelcast-wm 3.0, hazelcast-spring 3.0, spring 3.2.2 and servlet-api 3.0. web.xml: com.company.PropertiesListener ...
Neuquino
  • 11,580
  • 20
  • 62
  • 76
0
votes
1 answer

Safe method for database calls between client-side and server-side in JAVA & Servlet?

i am builds a java chat application , based on Java Secure Sockets and JavaFX and use Derby Database on the server side to record the members in the database , My Question is , how i make a secure connection between the Client Side Applet and the…
Jason4Ever
  • 1,439
  • 4
  • 23
  • 43
0
votes
2 answers

Get automatic response from Server

In my application i need to get any response to the jsp page automatically without any user action occur. How can i get that type of response like print some text to the jsp or invoke any function of the jquery from the server. Im using…
Hariprasath
  • 828
  • 4
  • 15
  • 41
0
votes
1 answer

How to create a modal dialog with Trinidad and facelets

I am trying to create a modal dialog that pops up when a tr:commandNavigationItem is pressed. I can get a pop up to appear, and when I click the "cancel" button I created, it will call the returnListener, but the pop up itself won't disappear.…
Laila Agaev
  • 1,782
  • 1
  • 10
  • 19
0
votes
0 answers

Value of radio button is as NULL and ON

I'm trying to retrieve the value of a radio button in a servlet but im getting ON for the ones i have selected and Null for the ones i have not selected. I'm not getting the values. Please do help me out. The Servlet for(int…
sek har
  • 17
  • 6