Need help- JSP page using Struts
Posted on 2011-09-23
I need some help with some JSP pages - I'm a designer, not programmer with limited programming knowledge... I have a site that is using JSP pages - it has a basicLayout.jsp which includes the header, footer, content, menu, etc... There are several HTM pages already linked to in the menu by using the gotoPAGENAME as the href... what I need is to link to a new HTM page in the same fashion so it uses the basicLayout.jsp as the shell and spits it out in the content section.
I copied one of the existing pages, put it in the same directory and used the same process for linking... also there is an tiles-config and struts-config XML file where I copied and included the new definitions....
<definition name="pages.home" extends="basicLayout">
<put name="title" value="Home" />
<put name="pageTitle" value="Home" />
<put name="content" value="/pages/content/home.htm" />
<action path="/gotoHome" type="org.apache.struts.actions.ForwardAction" scope="request" parameter="pages.home" />
I get a 500 error when I click the link... can anyone help? Am I missing something else I need to do??