James wrote:

> Since you are using jsp under /WEB-INF, I would not use <html:base/>
unless
> you are sure that all client side references (images, css, js, etc) are
> using to the correct url.

I'm not using <html:base/>.  The tabbed tiles code generated the URLs from
this in tiles-defs.xml:

  <definition name="examples.tabs.body"
path="/WEB-INF/jsp/tilesTest/tabsLayout.jsp">
        <put name="selectedIndex"  value="0" />
        <put name="parameterName"  value="selected" />
    <putList name="tabList" >
      <item value="First Tab"       link="/WEB-INF/jsp/tilesTest/a.jsp" />
      <item value="Second Tab"      link="/WEB-INF/jsp/tilesTest/b.jsp" 
        controllerClass="edu.asu.vpia.example.TestAction"/>
    </putList>
  </definition>

And the first tab displays *perfectly* but you can't click on the tabs.

Do I need an Action for the tab body that merely forwards to the appropriate
page?  Something like:
   <item value="First Tab"       link="/someAction.do?goto=someParamValue"
/>

But then I have to keep the setup in two places, in tiles-defs.xml and also
in struts-config.xml for the Action. :(

Obviously my <definition> is wrong, because whatever is there is what is
used for the links on the tabs.  I was thinking of Actions always in
conjunction with ActionForms, but I think in this case there will be an
Action that does some setup and then just forwards to the view, with no Form
involved at all.

Thanks for helping me think through this!  I'm still not confident I've got
it right-- comments or questions are welcome.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Reply via email to