This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hi Nidhi, How much comfortable are you with these technologies? If you have reasonable amount of knowledge of JSP/ Servlet and EJBs than i will recommend you to go for MVC architectute using struts framework. MVC (Model View Controller) architecture seperates Business logic completely from the presenation layer, something what you are looking for.
Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
Hi Nidhi, This is John,I have a very good solution of ur problem.U want to separate the business logic with the presentation logic.Just do one thing Make one Ejb,Any (Entity bean,Session Bean).So,in all we made one component.Then Ur presentation parts come to picture.Now just built JSP pages for presentation purpose,and any extra data connection if needed.And Use Servlet wherever necessary,like if u wanna to check for login,there for internal logic u can use servlet.It's very easy to do.Once u got familiar with the beans part.
Joined: Feb 02, 2005
Now when u want to use the component. 1.Create the object for initial Context. 2.Lookup. 3.Create Remote Interface Object to access the business menthod.