HTTP Session

Why Stateless EJB Home Interface has only one create() method.

- EJBRemote Interface extends from EJBHome Interface, for example, to implement a stateless EJB Remote Interface HelloHome

package hello;

import javax.ejb.*;

import java.rmi.*;

public interface HelloHome extends EJBHome {

public Hello create() throws CreateException, RemoteException;

}

What is the difference between request.getParameter and request.getAttribute in HttpServletRequest?

  • getParameter gets the input from client

  • getAttribute passes the value from one resource to another in server side.

How to compare two objects without using sorting algorithm

http://www.javareference.com/jrexamples/viewexample.jsp?id=1l