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

get value separately from json object in java servlet

this is my javascript code to send json object to servlet username = "Nash"; password = "619here"; type = "all"; data = '{ "username": "' + username + '", "password": "' + password + '", "type": "' + type + '" }'; request =…
heshan
  • 115
  • 1
  • 4
  • 8
0
votes
2 answers

Running Apache CXF on top of Atmosphere in Apache Karaf 3.0 (OSGI Environment)

I'm trying to implement Server Push/Reverse Ajax/Comet Technologies like HTTP Streaming or SSE, etc.. using Apache CXF - JAX-RS RESTFul services (> CXF 2.7.x - Supports Servlet 3.0 & JAX-RS 2.0 Async Support). Right now I'm evaluating to use…
ManKum
  • 256
  • 1
  • 2
  • 11
0
votes
1 answer

Cloudbees using WebapplicationInitializer says No WebApplicationContext found

Using Spring 3.2, JSF 2.1, JBoss AS7.1 at home and Cloudbees uses JBoass AS7.0.1. I am also using Servlet 3.0 and a WebApplicationInitializer(A spring class).(I think the root of the problem is the WebApplicationInitializer is not being loaded,…
Zergleb
  • 2,212
  • 15
  • 24
0
votes
1 answer

How to remove/replace an ServletRegistration?

Is it possible to replace a ServletRegistration via servlet-api? Following code can only register new Servlets for the given servlet name, but if a servlet with the name exist, it does nothing. ServletContext.addServlet( "servletName",…
chuem
  • 111
  • 1
  • 9
0
votes
1 answer

Compare specific row or column of xls sheet using java and Apache POI

My jsp file is (to upload the excel file) : <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
Mavrick
  • 505
  • 1
  • 7
  • 27
0
votes
1 answer

HTML: How to design profile page that is used for different users

I want to make a website for my Android social networking app and need some assistance with a basic concept regarding user profile pages. So right now I have a native Android app where users have their own profile page displaying their profile…
Georgi
  • 430
  • 7
  • 21
0
votes
0 answers

Send data from Flex to servlet

I want to send value(_sectionName in examples) from flex end to servlet but I can't send data from flex end to servlet. What is the solution? var url:String="http://localhost:8080/xyz/UploadServlet"; var…
Robert Smith
  • 457
  • 2
  • 9
  • 25
0
votes
1 answer

Can I skip HttpServletRequest.login() and just put authed User in the Session?

Assuming i dont have any 'password protected' pages, but sometimes need to know which user clicked some jsf-button, is the below okay, or should I also use HttpServletRequest.login() some managed bean that handles logins: public void login(String…
Aksel Willgert
  • 11,367
  • 5
  • 53
  • 74
0
votes
1 answer

Get parameters returned from web-site using servlet

Hi, 1. I send such form to the testing Sandbox Paypal server
devger
  • 703
  • 4
  • 12
  • 26
0
votes
1 answer

Spring @Scope("request") does not work with Servlet 3.0

I am trying to use a request scoped been inside my servlet 3.0 application. I am not using the web.xml but an implementation of WebApplicationInitializer. The onStartup method looks like this: @Override public void onStartup(ServletContext…
woezelmann
  • 1,355
  • 2
  • 19
  • 39
0
votes
1 answer

Redirect to setup if config is missing

I'm trying to create a basic java web app using servlet 3.0. Now, my application needs to run through a basic setup page/form so it knows where to store config files etc. What would be a good way to implement this? I was thinking of a filter, but…
Trj
  • 657
  • 9
  • 21
0
votes
2 answers

NullPointerException when processing asyncServlet

I am following this tutorial - When I send request like this- http://localhost:9090/AsyncServlet?id=99&dispatch=true&timeout=false I am getting following- Apr 09, 2013 4:01:09 PM com.mycompany.mavenproject1.AsyncServlet doGet INFO: AsyncServlet:…
user375868
  • 1,288
  • 4
  • 21
  • 45
0
votes
1 answer

Tomcat returns 400 without running a servlet

My device has UBlox (hardware component) to send POST HTTP/1.0 requests. Headers that I receiving in Tomcat are following: POST sc2-http-connector-3.0.0/report HTTP/1.0 Content-Type: application/octet-stream Host: xx.xx.xx.xx:8080 Connection: TE,…
ruruskyi
  • 2,018
  • 2
  • 26
  • 37
0
votes
1 answer

jetty hangs on when accessing ServletRequest methods in async context

I am running the code given in answer to this question- Servlet-3 Async Context, how to do asynchronous writes? Instead of response.getWriter().write(some_big_data); I've changed that line to ServletRequest req= ctx.getRequest(); …
user375868
  • 1,288
  • 4
  • 21
  • 45
0
votes
1 answer

how to integrate AJAX and Java EE servlet 3 async response

I am thinking of how to make AJAX take use of servlet 3 async response. in the request-response synchronize processing model, when the response comes back, the callback of XmlHttpRequest can get the response text; but how about the response is…
user1484819
  • 899
  • 1
  • 7
  • 18