This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
We are trying to migrate an ASP based website into JSP based site which will be hosted in a Linux environment.
We are struck about selecting the right approach for converting an ASP containing some web based methods into JSP. In the existing website many ASP files are calling some common methods from another ASP for displaying header, footer and content. How we can achieve the same in JSP? [ March 19, 2008: Message edited by: Naveen Chand ]
In JSP, this is typically done by moving that functionality into beans or plain old Java objects and binding those objects to one of the scope objects (request, session, context, etc...).
It is also considered a best practice, with server side Java, not to respond to requests directly with JSP but to respond to them with servlets and then, when all processing is complete, forward to the JSP (view) for final markup and forwarding.