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.
subject: how to implement business logic in a java bean/ejb