tag:blogger.com,1999:blog-13911304.post-1120071654542241052005-06-29T11:50:00.000-07:002005-06-29T12:00:54.556-07:00Struts action, parameter attributeMy gripe about this generic attribute called 'parameter' in the struts action config.<br />So I have something like:<br /> <span style="font-size:85%;"><span style="font-family: courier new; color: rgb(204, 102, 0);"> <action</span><br /> <span style="font-family: courier new; color: rgb(204, 102, 0);"> path="/logonProcess"</span><br /> <span style="font-family: courier new; color: rgb(204, 102, 0);"> type="naive.actions.LogonAction"</span><br /> <span style="font-family: courier new; color: rgb(204, 102, 0);"> name="logonForm"</span><br /> <span style="font-family: courier new; color: rgb(204, 102, 0);"> <span style="font-weight: bold;">parameter="/pages/Logon.jsp"</span></span><br /> <span style="font-family: courier new; color: rgb(204, 102, 0);"> validate="true"<br /><span style="color: rgb(0, 0, 0);"><span style="font-size:100%;"><span style="font-family: georgia;">Now someone pray tell me what this 'paramter' is supposed to do.<br />I looked up on the Apache site and it says:</span><br /> <span style="font-family: georgia;">"action general purpose configuration parameter".</span><br /> </span></span></span></span> <div style="text-align: justify;"><span style="font-size:85%;"><span style="font-family: courier new; color: rgb(204, 102, 0);"><span style="color: rgb(0, 0, 0);"><span style="font-size:100%;"><span style="font-family: georgia;">Alright, but what is that supposed to mean. Well it means different things to different action type classes, if it is a ForwardAction it can be the url you want the action to be forwarded to. For DispatchAction it is the key to the different method values. Someone ought to document this, instead of making you run in circles, dammit. But that is what they say about struts, very little documentation. What do I know, anyway.</span></span></span></span></span><br /><span style="font-size:85%;"><span style="font-family: courier new; color: rgb(204, 102, 0);"><span style="color: rgb(0, 0, 0);"><span style="font-size:100%;"></span></span></span></span></div>Java Foohttp://www.blogger.com/profile/14104080800348407575noreply@blogger.com