You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kevin Scott <ke...@ev1.net> on 2002/07/19 06:30:47 UTC

calling a ActionMapping from a structs template page

here is the template page:
<%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>

<template:insert template='/TicketTemplate.jsp'>
  <template:put name='title' content='Home' direct='true'/>
  <template:put name='mainMenu' content='/editRedistration.do'/>
  <template:put name='content' content='/test/testDone.jsp'/>
</template:insert> 

here the structs-config.xml
   <!-- Registration form bean -->
   <form-bean      name="registrationForm"
        type="org.kev.view.form.user.RegistrationForm"/>

<!-- Save user registration -->
   <action   path="/editRegistration"
      type="org.kev.view.user.EditRegistrationAction"
      name="registrationForm"
      scope="session"
      input="/admin/UserEdit.jsp"
      validate="true">
     <forward name="success"                  path="/input.jsp"/>
</action>
I would like to be call the SaveRegistrationAction class before displaying the ="/admin/UserEdit.jsp page.  Can this be done?  Or am I missing somthing?

I can not get any template page to call any action class.  I can only get the templates to work with a jsp or html file.

Is there a work around to get this to work if it can not be done?

Kevin Scott


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>