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.
Basically I am trying to define a tile inside a jsp page which is already being loaded from another tile: I have the following structure of files: main.jsp contains three tile defintions, one for the header, one for the body and one for the footer. In the body I want to load a welcome.jsp page, which will contain a tile that loads the contactus.jsp (note that welcome and contact us have two different action clases and form beans. Following is what I did so far (without success):
I tried doing this however I am getting the following exception: Servlet.service() for servlet action threw exception javax.servlet.jsp.JspException: ServletException in '/WEB-INF/tiles/welcome.jsp': Error - Tag Insert : No value found for attribute '.contactus_place'.
Now this is what code I have in my documents. In the main.jsp file I have the following tiles:
I was thinking that like this when the struts (because of what i did in the struts.config) will run docontact which points at .contact, it will load the welcome page (using the welcome action class) and then load the contact.jsp using the contact action class (which is what I want)
However I recieve the exception I mentioned above. I do not know if my line of tought is correct. However all help is more then welcome.