[ http://issues.apache.org/struts/browse/STR-2938?page=comments#action_38079 ] Michael Jouravlev commented on STR-2938: ----------------------------------------
Don, your suggestion still looks like "magical convention" to me. As a user I think it might be confusing if I have both bar.jsp and success.jsp, I will have to remember about the lookup order. Also, an action returns either explicit URL to a JSP or another action like in Stripes, or it generates a result value, a state, and config file helps to find the destination based on state. You suggest to return a state and then to deduct where to go using some fuzzy logic. This does not make Struts configuration easier if you ask me :) Since you do not insist on implementing this, I would rather not :) > Use default struts-config.xml stored in classloader path like chain-config.xml > ------------------------------------------------------------------------------ > > Key: STR-2938 > URL: http://issues.apache.org/struts/browse/STR-2938 > Project: Struts 1 > Issue Type: Improvement > Components: Core > Reporter: Michael Jouravlev > Assigned To: Michael Jouravlev > Priority: Minor > > Struts 1.x does not require defining action mapping to obtain an > ActionForward, form beans always have been optional, controller settings are > rarely changed. I suggest to create default struts-config.xml with sensible > settings for controller and resources, so that simple projects could be > started without creating an explicit struts-config.xml file. > Of course, struts-config.xml will be customized more often than > chain-config.xml, but the point is to be able to create a simple Struts > application without getting into details of what struts-config.xml is for and > how it works. This will simplify the learning process. > ActionServlet should not throw UnavailableException if > \WEB-INF\struts-config.xml or a web.xml parameter is not found. Instead it > should use a default version from the classpath just like it uses > chain-config.xml. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
