You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by cr...@apache.org on 2005/11/17 07:09:46 UTC

svn commit: r345199 - /struts/shale/trunk/core-library/src/java/org/apache/shale/view/impl/DefaultViewControllerMapper.java

Author: craigmcc
Date: Wed Nov 16 22:09:44 2005
New Revision: 345199

URL: http://svn.apache.org/viewcvs?rev=345199&view=rev
Log:
[37543] Clarify restrictions on view identifiers, based on the fact that the
corresponding managed bean name must be a valid identifier in the expression
language.

Submitted by:  Rahul Akolkar <rahul AT apache.org>

Modified:
    struts/shale/trunk/core-library/src/java/org/apache/shale/view/impl/DefaultViewControllerMapper.java

Modified: struts/shale/trunk/core-library/src/java/org/apache/shale/view/impl/DefaultViewControllerMapper.java
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/core-library/src/java/org/apache/shale/view/impl/DefaultViewControllerMapper.java?rev=345199&r1=345198&r2=345199&view=diff
==============================================================================
--- struts/shale/trunk/core-library/src/java/org/apache/shale/view/impl/DefaultViewControllerMapper.java (original)
+++ struts/shale/trunk/core-library/src/java/org/apache/shale/view/impl/DefaultViewControllerMapper.java Wed Nov 16 22:09:44 2005
@@ -55,6 +55,16 @@
  *     you cannot use this name for your own managed beans).</li>
  * </ul>
  *
+ *
+ * <p>Since the managed bean names also need to be valid variable names in
+ * the expression language, this mapper implementation imposes certain
+ * restrictions on the view identifiers. View identifiers must not contain
+ * characters which have reserved meanings in the expression language, such
+ * as '-' (minus) or '+' (plus). A best practice while using this mapper
+ * is to ensure view identifiers use letters of the English alphabet
+ * in upper or lower case, digits from 0 to 9, '$' (dollar signs) and '_'
+ * (underscores) only.</p>
+ *
  * $Id$
  */
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org