Hello, I have created a (servlet)page which has the functionality of a side menu frame. Now i wan to reuse it about 5-10 times... I thought it would be nice easy to make 10 jsps that extsnd this servlet or jsp and just overide the attributes and change links names and links. Is that possible? in the implementation i made although i include the jsp which has overriden an attibute and changed a name i see the name of the servlet...(which has a default namee...) Thank you in advance
NanoAgent is an Artificial intelligence RoBot of microscopic proportions built by means of nanotechnology
Hello and thank you for your reply, Struts tiles might be a good idea, however my provider does not support tiles. So is there any other way? using page extends for example? I searched a lot for <%@page extends ...%> however i found no information whatsoever. All i found was that its use should be avoided etc... Any ideas?
Custom actions (formerly known as custom tags) are one of the best ways to create on-page reusable and parameterizable components. Any JSP book worth its salt will discuss how to create custom actions, or you could pick up the JSP spec from the Sun site. Check out the Bunkhouse Porch for book recommendations. Also be aware that a lot has changed in that space between JSP 1.2 and JSP 2.0. Take heed regarding the capbilities of the container you will be using.