Update of /var/cvs/contributions/didactor2/src/core/java/nl/didactor/taglib
In directory james.mmbase.org:/tmp/cvs-serv30278
Modified Files:
DidactorHelper.java
Log Message:
using constants for known parameters
See also:
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/java/nl/didactor/taglib
Index: DidactorHelper.java
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/core/java/nl/didactor/taglib/DidactorHelper.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- DidactorHelper.java 21 Jan 2008 17:31:53 -0000 1.1
+++ DidactorHelper.java 21 Jan 2008 18:33:08 -0000 1.2
@@ -13,7 +13,7 @@
* Provide some Didactor specify functionality as EL-functions too.
*
* @author Michiel Meeuwissen
- * @version $Id: DidactorHelper.java,v 1.1 2008/01/21 17:31:53 michiel Exp $
+ * @version $Id: DidactorHelper.java,v 1.2 2008/01/21 18:33:08 michiel Exp $
* @since Didactor-2.3
*/
public class DidactorHelper {
@@ -22,8 +22,8 @@
public static void fillStandardParameters(ContextReferrerTag tag,
Parameters params) {
ServletRequest request = tag.getPageContext().getRequest();
- params.setIfDefined("education", request.getAttribute("education"));
- params.setIfDefined("class", request.getAttribute("education"));
+ params.setIfDefined(Component.EDUCATION,
request.getAttribute("education"));
+ params.setIfDefined(Component.CLASS,
request.getAttribute("education"));
}
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs