Tagged Questions
0
votes
0answers
8 views
Where can I find the JBoss source for the implementation of 12.1 and 12.2 of the servlet spec?
http://download.oracle.com/otn-pub/jcp/servlet-3.0-fr-oth-JSpec/servlet-3_0-final-spec.pdf
This would be under Chapter 12: Mapping Requests to Servlets. I reviewed the Maven repository for JBoss, and ...
0
votes
0answers
24 views
How does a servlet serve clients by their session respectively?
The client has to choose one of the "rock,scissors,pencil,paper". What he picked is posted to a servlet(server picks one of the above too) and responds back whether the client wins or loses.
The ...
0
votes
0answers
23 views
Injecting EJB into servlet
I googled without luck trying to understand why Weblogic 10.3.4 does not inject EJB into annoted field in servlet.
Ear contains ejb.jar defining DAO EJB and web.war with TestServlet.
@Stateless
...
0
votes
2answers
23 views
org.hibernate.LazyInitializationException: could not initialize proxy -no Session
I am getting this bug when I run a test case(Junit) for spring application.
I searched for this problem and I got the information that whenever a lazy initialization occurs and my application tries ...
0
votes
1answer
22 views
Java: Project deployment on remote via Cargo maven plugin
I'm trying to deploy a servlet project using cargo plugin.
pom.xml file:
...
<!-- cargo plugin -->
<plugin>
<groupId>org.codehaus.cargo</groupId>
...
-1
votes
1answer
22 views
Delete selected checkbox rows in JSP page [on hold]
I am using jsp , servlets, javascripts. Data is being retrieved from data base. i need to delete the rows of table using checkbox. pls help me on this.
0
votes
1answer
32 views
Host Java Server using Socket Communication
I need some guidance over here.
I managed to get my java server working, running a java thread listening for client socket communications, all the business logic is inside my java code.
I also ...
1
vote
4answers
52 views
java servlet decoding UTF-8 not working
I am try to decode the encodes string in servlet it is not getting decoded properly.
but when i try same with normal java program its working fine.
my code is as below....
import ...
-3
votes
0answers
47 views
send a email with images through smtp server using java [on hold]
i have a HTML design for sending email, which has To, message and images already attached.
servlet:
package servlets;
import java.io.IOException;
import java.io.PrintWriter;
import ...
0
votes
1answer
23 views
Obtaining the User Real IP Address in Servlet
I have seen multiple question on SO regarding this, but none of them has perfect answer.
How do we get the Client/User Real IP Address in Servlet?
I have tried this
String ipAddress = ...
3
votes
2answers
57 views
Basics of Serialization in java not understood
I am not able to understand the basics of Serialization in Java 1.6.
Below is the Dog Class containing an instance variable of Collar Class:
Dog.java
public class Dog implements Serializable {
...
0
votes
1answer
35 views
HTML-components wrapped as Java objects?
I'm building a website for fun (using Servlets and JSP pages (Java)) and I just simply hate the whole process of writing html and then squeezing in the data retrieved from the server inside each html ...
0
votes
1answer
28 views
Java servlet- Best way to get post requests body
I'm getting a post request- with a XML in the body.
what is the best way to get the requests body?
cheers:)
0
votes
2answers
25 views
Java : ServletContext not avaliable in Eclipse (IDE FOR EE)
I am trying to use ServletContext in my Servlet project as follows
ServletContext context =request.getServletContext();
problem is that when i try to use it i dont find ...
-2
votes
0answers
26 views
Not able to redirect my jsp to Controller
In my Code I have one display.jsp file with two forms. One Message Controller Class with three POJO classes for that. When i click the Reply link on display.jsp it is not redirecting to the ...