You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rob Leland <Ro...@freetocreate.org> on 2001/03/17 00:05:35 UTC
Fully decoupling the VIEW from the CONTROL
Given an action mapping with these attributes set:
<!-- Process a admin logon -->
<action path="/admin/logon"
type="com.solers.portal.pcontrol.admin.LogonAction"
name="logonForm"
scope="request"
validate="true"
input="/admin/logonVue.jsp">
<forward name="success" path="/admin/mainMenu.jsp"/>
</action>
and if additionally we could tell struts via the struts-config.xml that
the input .jsp file was guranteed to only have ONE and only one action
Then couldn't the action attribute in the FormTag become optional ?
So this:
<html:form action="/logon" focus="username">
would become this:
<html:form focus="username">
which would FULLY uncouple the VIEW file from the CONTROL ?