j2ee

What harm is caused by java.lang.IllegalStateException: Response already committed

I continuously get below error on my weblogic 10.3 console logs java.lang.IllegalStateException: Response already committed at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java: 1462) at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:601) at org.apache.struts.actio...

The ultimate Java version table (J2EE, JEE, Servlet, JSP, JSTL)

I'm looking for a component break down of Java EE (or previously know as J2EE) and J2SE E.g. J2EE 1.3: Servlet 2.3, JSP 1.2. JSTL 1.0, ... J2EE 1.4: Servlet 2.4, JSP 2.0, JSTL 1.1, ... JEE 1.5: Servlet 2.5, JSP 2.1, JSTL 1.2, ... In a simple table It can be extracted from: http://java.sun.com/j2ee/1.3/docs/ , http://jav...

Correlation between JEE / J2EE to J2SE / JDK versions

I was certain that I'll find a duplicate question or a satisfiyng answer, but I haven't. What I'm looking for is the answer to these questions: Is there an official correlation between JEE / J2EE and J2SE / JDK versions? If the answer is yes, where is it written? If the answer is no, then why? and is there an unofficial version table ...

Receiving mails with a Servlet

I recently ran across this problem while trying to implement a service that has really simple data entry. Basically what I want to do is to be able to send an email to a special email address and the mail should be parsed and then the data is to be processed by my application. Now I can find hundreds of tutorials on how to send mails fro...

Using Command Design pattern

Hi all, Can any one explain with simple example of Command Pattern. I refer in internet but i got confused. Thanks, Ravi ...

Sample EJB 3.0 MDB on Weblogic with Ant script

I'm struggling to find a simple example that builds and deploys a message driven bean onto Oracle Middleware 11g (i.e., Weblogic). I'm using dependency injection. It seems there should be a simple Ant task provided by Oracle to simply compile and deploy the MDB. import javax.jms.MessageListener; @MessageDriven(messageListenerInterfac...

Eclipse: Have multiple Dynamic web projects contribute to a single war file?

I am in a situation where I basically want to be able to have a web project in Eclipse where the WebContents folder is merged from multiple projects instead of only a single dynamic web project. If I have "a.jsp" in project A, and "b.jsp" in project B, I would like to end up with a single web application in the web container where "a.js...

JEE Role Management systems - do they exist?

I'm looking at creating a decentralised role-management system which integrates with JEE roles. Does anything like this exist? Example use cases: System A is a limited-access system which uses corporate roles. John joins a team, and requires SYSTEM_A_READONLY to perform his function. He logs on to the decentralised role-management syst...

Eclipse: Two web projects, one servlet

Hi, I use a library which includes, among other things, a servlet. I've fetched the source for this lib to a dynamic web project and it works fine. I'd like to make an example dynamic web application in another project which would just reference to the classes of this library. Is it possible to do it this way in Eclipse Galileo and de...

Getting Context path

Hi. I am developing a dynamic web project j2ee web application using eclipse. I have an existing jasper report file in .jrxml format found in web-inf/jasperreports folder. How do I access these files from my java classes in the src folder. I am not even sure if context path is the right term for the root folder of the application so plea...

rich:datatable rowspan issue

Hi all, I need to create a rich:dataTable (or even extended) with the following features: I have a class Company having a collection of Product objects. I want to show the following table: I still have not figured out how to do this with a subtable (in all the examples I found the subTable has the exact same columns as the master ta...

J2EE taglibs and optional packages

I have deployed an optional package as a jar file in Weblogic 9.2 (servlet 2.4, jsp 2.0). In my war file, I specify the jar as an optional package in the MANIFEST.MF. I am able to use a filter and servlet class from the jar file, but I'm not able to find a taglib from my jsp. I'm getting the No tag library could be found with this UR...

dynimically created DOM can't hold up in cache

Hi I am building div content with AJAX call, but when I make call to any page from loaded page, if there is any exception the content loaded from AJAX call is not there in previous page. Is there any way to stop happening that? ...

Can we consider a design pattern as a tier in j2ee application

Recently i got this question in my interview.. He had asked me about N tier ,I was telling him about 3 tier applications Suddenly he asked me Can i have 5 tiers :) I told him may be but i never used that.. IV: Ok now tell me what can be the 5 tiers ME: BLa bla After the interview i asked him for the answer and he gave me a example lik...

j2ee application in tomcat

Hi, I've developed a j2ee application, now say sample.war is the file. When we port this to tomat webapps, it explodes to sample folder. But if we want to run this application for two people, how do we do that? some thing like http://address.com/user1/ and http://address.com/user2/ and in this we have different CSS (only the look varies...

DB Connection pool in Servlet or Listener?

Hi, I'm thinking of using DB Connection Pool in J2EE. Database: MySQL Servlets: http://www.webdevelopersjournal.com/columns/connection_pool.html Listeners: http://onjava.com/onjava/2006/04/19/database-connection-pooling-with-tomcat.html now which is a better option & why? Also, any working source code will help me save time. Warm Re...

requestDispatcher Interface Vs sendRedirect

Hi, Can I know the difference between the RequestDispatcher interface and sendRedirect(). Thanks Ravi ...

Trying to be a little bit better...

I am part of a development team that switched to a different project from a pure Java 5 project to a Java 6, J2EE, cloud environment, open source project. The problem is that we are doing barely OK, since we use a lot of search engines and we are pretty proficient in Java (3 years experience), but it feels like we need to start educatin...

How to optimize screen real estate in a J2EE struts app?

I am working on a old J2EE struts app which has very bad UI design. Most of the pages are misusing the screen real estate like there are uneven spaces among dropdown, labels, text boxes etc. Alignment of different items on page is not very efficient leading to space wastage. And sometimes users are forced to use unnecessary scroll bars w...

Exception Handling Mechnaism

Hi All, Got this question in a interview..since its a design question i am posting here. The interviewer asked me to write out questions on exception handling in a j2ee application. the actual question is "if i ask u to design a exception handling mechanism for a j2ee application what would be the question you will ask me" At that ti...