Sorry if this is too basic, I'm really green, but trying to learn the right
way to do things.

First off, I'm using tiles, and I think I was doing things backwards, and
I'd like to confirm that I've got things going the right way now.  So this
is what I have:

(1) When I want to display a list of widgets, my link is to:

/projectTypes.do?action=showList

(2) My mapping looks like this (ProjectTypeCodeActions extends
DispatchAction):

    <action    path="/projectTypes"
               input="/projectTypeCode/project_type_code_form.jsp"
               parameter="action"
               scope="request"
               type="projectTypeCode.ProjectTypeCodeActions"
               validate="false">
      <forward name="form"
path="/projectTypeCode/project_type_code_form.jsp" />
      <forward name="list"
path="/projectTypeCode/project_type_code_list.jsp" />
      <forward name="failure" path="/common/error.html" />
    </action>

(3) So it goes off to the DB to get my list, and then forwards off to
project_type_code_list.jsp, which contains:

<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<tiles:insert page="../layouts/PPELayout.jsp">
  <tiles:put name="menuLinks" value="../common/menu.jsp" />
  <tiles:put name="mainBody"
value="../projectTypeCode/project_type_code_list_body.jsp" />
</tiles:insert>


So, like I said, I was doing it differently before, and I'm not sure why.  I
was calling my .jsp page, which was calling the .do from the <tiles:put.  It
worked ok, but I suspect this is the better way.

TIA,
Janice


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to