Hi, I have a template build with struts and I have a JSP wich uses that template and looks like the following:
<%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %> <template:insert template='/common/template.jsp'> <template:put name='sidebar' content='/showSelectionBoxes.do' /> </template:insert> AND I have a struts-config: <struts-config> <!-- ========== Form Bean Definitions =================================== --> <form-beans> <form-bean name="showBoxesBean" type="de.tecmath.cms.strutstestbox.ShowSelectionBoxesForm"/> <form-bean name="noveltiesBean" type="de.tecmath.cms.strutstestbox.NoveltiesForm"/> </form-beans> <!-- ========== Action Mapping Definitions ============================== --> <action-mappings> <!-- Add a new BlackBoard --> <action path="/showSelectionBoxes" type="de.tecmath.cms.strutstestbox.ShowSelectionBoxesAction" name="showBoxesBean" scope="session"> <forward name="success" path="/tmpl/ShowSelectionBoxes.jsp"/> </action> <action path="/novelties" type="de.tecmath.cms.strutstestbox.NoveltiesAction" name="noveltiesBean" scope="session"> <forward name="success" path="/Novelties.jsp"/> </action> </action-mappings> </struts-config> If I use "<template:put name='sidebar' content='/tmpl/ShowSelectionBoxes.jsp' />" I get a exception wich says that the bean "showBoxesBean" could not be found in session so I thought I must use "<template:put name='sidebar' content='/showSelectionBoxes.do' />" in my JSP. But than I get a "javax.servlet.jsp.JspException: Servlet Exception" throwen in the template-insert-tag. The Action associated with my ShowSelectionBoxes.jsp has the duty to fill some selectboxes. What I want to do is to have a JSP build with template wich has on the left side a sidebar containing 3 selectboxes and in the middle showing some content wich is although a jsp with a Action and a ActionForm PLEASE can anyone help me how to achieve that ?? THANKS!!!!!!!!!!!!!