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
-1
votes
1 answer

Accessing Google Translator API

I am using google translator API in order to translate a given text. language is selected through a dropdown and its value is sent to servlet. Through servlet translation method is called. but then I get the following…
-1
votes
1 answer

How to use existing application server connection between 2 servlets

I am not sure if this question looks silly. But I am new to servlets. So posting my question here. I have an application with around 5 servlets trhat needs to call application APIs after acquiring connection to application server(OIM). So I need to…
user2961454
  • 353
  • 1
  • 4
  • 15
-1
votes
1 answer

Can't complete mvn verify without jersey-container-servle-core

I am trying to run mvn verify on my project with 2.22.1 Jersey version. org.glassfish.jersey.containers jersey-container-servlet 2.22.1
Shiran Maor
  • 309
  • 2
  • 5
  • 18
-1
votes
1 answer

How can i get image path with location name like from d or e or f or drive?

I want to get total path,for example if the user upload an image from d drive like: D:/sample.jpg , I want to get total that path only (D:/sample.image). Is it possible ? if possible please help me(Java using servlet).
-1
votes
1 answer

Read http request without losing data in it

Is there any way to read inputStream of a request without losing the data in it. I am trying to take a raw copy of my request into string before processing it. But once I read the inputstream from request, the inputstream is changing to null so, I…
Raj K
  • 458
  • 2
  • 7
  • 22
-1
votes
1 answer

Servlets - Strange phenomenon occuring, Simple Servlet getting downloaded instead of execution?

I have designed a simple servlet, but it not working Instead of executing, it is getting downloaded through browser window. When i execute the code, the HTML page runs OK, but after I submit form data the servlet gets downloaded as shown without…
user2929
  • 21
  • 6
-1
votes
1 answer

Access Servlet which is initialize during webserver startup

This is related to the question How do i get servlet instance from web.xml in my java class Folks were not clear as to what is the usecase for this type of question. I have the same question and wanted to give a usecase. In my application i have a…
Abdus Samad
  • 343
  • 2
  • 12
  • 27
-1
votes
1 answer

What Is The Purpose Of Asynchronous Servlet

I want to know the use of asynchronous servlet, is it possible to replace ajax with asynchronous servlet? if its possible then please guide me if not then what is the purpose of asynchronous servlet.
NaN
  • 683
  • 1
  • 8
  • 15
-1
votes
1 answer

How to solve the "String or binary data would be truncate" in java?

I created a table for file I put the datatype for file varbinary(MAX) and when I am trying to upload the file it show me: String or binary data would be truncated When I wrote insert query like this: String sql = "INSERT INTO contacts…
user1050667
  • 453
  • 1
  • 6
  • 14
-1
votes
2 answers

get instance of bean within a sessionscope via session.getAttribute

Within my (JSF, Servlet 3.0) sessionscope there are instances of classes. How can I get the instance of a class by using the names provided in sessionscope? For example, in my session there is a instance of MyBean: classes-ManagedBean-class…
nimo23
  • 5,170
  • 10
  • 46
  • 75
-1
votes
1 answer

The alternate iplanet web server jars (KFCJDK11.jar and KOCLJDK11.jar ) in websphere Application Server 6.1

Please any one suggest some jar files, Which is the functionality iplanet web server jars (KFCJDK11.jar and KOCLJDK11.jar ) does in websphere Application Server 6.1 jars does. we are using from iplanet jar 1. AppLogic 2. TempletDataBasic …
user1000535
  • 957
  • 2
  • 8
  • 8
-2
votes
1 answer

URL localhost:8080//Servlet don't works

I'm trying to run my simple servlet "Hello". I have installed tomcat 9.0.6 Than i create a new JavaEE web project in Idea (called test)... after i create new package in src (called servlet), after new servlet file "myServlet". Project Structure Here…
layjel
  • 121
  • 1
  • 12
-2
votes
1 answer

FileNotFound error (JSON file)

I am having an error FileNotFound, even the file(JSON file) is in the project.When I run (Run as Java application) my java web app in compiler(eclipse) it works absolutely fine no error. But when I run the app (Run on server) after deploying on…
-2
votes
1 answer

Servlet Exception

I am getting this error while running my servlet program .Can anyone let me know why I m getting this error java.lang.ClassCastException:org.apache.catalina.core.ApplicationDispatcher cannot be cast to…
-2
votes
1 answer

Not able to download file with UTF-8 character in java servlet

I am trying to download the excel file with Japanese/Chinese character. It look like it works on IE 8 only and not on firefox.
1 2 3
62
63