[CONF] Confluence Changes in the last 24 hours
- This is a daily summary of all recent changes in Confluence. - Updated Spaces: - Apache Geronimo Development (GMOxDEV) http://cwiki.apache.org/confluence/display/GMOxDEV | |-Pages Added or Edited in This Space |-- Java EE 5 Annotations was last edited by mcconne (03:03 PM). | http://cwiki.apache.org/confluence/display/GMOxDEV/Java+EE+5+Annotations |-- Installed size comparison (1.1.1, 1.2, 2.0) was last edited by jaydm (08:48 AM). | http://cwiki.apache.org/confluence/display/GMOxDEV/Installed+size+comparison+%281.1.1%2C+1.2%2C+2.0%29 Apache Felix (FELIX) http://cwiki.apache.org/confluence/display/FELIX | |-Pages Added or Edited in This Space |-- Apache Felix Community Roles and Processes was last edited by [EMAIL PROTECTED] (07:43 AM). | http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Community+Roles+and+Processes Apache Camel (CAMEL) http://cwiki.apache.org/confluence/display/CAMEL | |-Pages Added or Edited in This Space |-- Creating a new Spring based Camel Route was last edited by jstrachan (10:02 AM). | http://cwiki.apache.org/confluence/display/CAMEL/Creating+a+new+Spring+based+Camel+Route |-- Tools was created by jstrachan (09:35 AM). | http://cwiki.apache.org/confluence/display/CAMEL/Tools |-- JBI Service Unit Archetype was created by jstrachan (09:28 AM). | http://cwiki.apache.org/confluence/display/CAMEL/JBI+Service+Unit+Archetype Apache CXF 2.0 Documentation (CXF20DOC) http://cwiki.apache.org/confluence/display/CXF20DOC | |-Pages Added or Edited in This Space |-- Index was last edited by ericjohnson (09:22 AM). | http://cwiki.apache.org/confluence/display/CXF20DOC/Index |-- MTOM was created by ericjohnson (09:22 AM). | http://cwiki.apache.org/confluence/display/CXF20DOC/MTOM |-- WSDL Bindings was last edited by ericjohnson (08:36 AM). | http://cwiki.apache.org/confluence/display/CXF20DOC/WSDL+Bindings Apache Geronimo v2.0 (GMOxDOC20) http://cwiki.apache.org/confluence/display/GMOxDOC20 | |-Pages Added or Edited in This Space |-- Web application security sample was last edited by vhnguyen (07:57 AM). | http://cwiki.apache.org/confluence/display/GMOxDOC20/Web+application+security+sample Apache ServiceMix (SM) http://cwiki.apache.org/confluence/display/SM | |-Pages Added or Edited in This Space |-- Users was last edited by gordonad (04:41 PM). | http://cwiki.apache.org/confluence/display/SM/Users |-- servicemix-drools was last edited by gnodet (01:41 AM). | http://cwiki.apache.org/confluence/display/SM/servicemix-drools |-- Navigation was last edited by gnodet (12:20 AM). | http://cwiki.apache.org/confluence/display/SM/Navigation Apache Struts 2 Documentation (WW) http://cwiki.apache.org/confluence/display/WW | |-New Comments in This Space |-- http://cwiki.apache.org/confluence/display/WW/Create+Session+Interceptor (1) Apache CXF (CXF) http://cwiki.apache.org/confluence/display/CXF | |-Pages Added or Edited in This Space |-- Building was last edited by mazzag (07:13 AM). | http://cwiki.apache.org/confluence/display/CXF/Building - CONFLUENCE INFORMATION This message is automatically generated by Confluence Unsubscribe or edit your notifications preferences http://cwiki.apache.org/confluence/users/viewnotifications.action If you think it was sent incorrectly contact one of the administrators http://cwiki.apache.org/confluence/administrators.action If you want more information on Confluence, or have a bug to report see http://www.atlassian.com/software/confluence
Issues Closed: week of 2007-06-29
Struts2 - Friday, June 29, 2007 3 closed in last 7 days [WW-2009] Website download button has wrong version number in the image - Type: Bug - Assignee: Musachy Barroso - Components: [Documentation] - Fix Versions: [2.0.8] - http://issues.apache.org/struts/browse/WW-2009 [WW-2014] pls give the good sites for struts-tiles - Type: Improvement - Assignee: Alexandru Popescu - Components: [Examples] - Fix Versions: [] - http://issues.apache.org/struts/browse/WW-2014 [WW-1808] Support Freemarker template_exception_handler=rethrow - Type: Improvement - Assignee: Unassigned - Components: [Views] - Fix Versions: [2.1.0] - http://issues.apache.org/struts/browse/WW-1808
[Struts Wiki] Update of "StrutsUpgradeNotes12to13" by HenriYandell
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification. The following page has been changed by HenriYandell: http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 The comment on the change is: Added a note on an error when moving from 1.2.x to 1.3.x and how to solve it. -- ||html:img||contextRelative||Use module instead.|| ||html:img||lowsrc||Non-standard attribute; No longer supported.|| + === 5.6 Tag upgrading === + + If you have specified a ''styleId'' for the html:form tag, you will see the following error: + + {{{ + javax.servlet.jsp.JspException: Cannot specify "styleId" when in XHTML mode as the HTML "id" attribute is already used to store the bean name + at org.apache.struts.taglib.html.FormTag.renderName(FormTag.java:570) + + }}} + + The solution is to remove the ''styleId'' and use the name of your form bean, as that will be inserted as the ''id'' in your HTML. + == 6. Deployment == * If you experience !NoClassDefFoundErrors in JSP code after deploying a Struts 1.3 webapp using the same context name it had under a prior version, try deleting the generated .java and .class files related to the JSP files. In Tomcat, these are found under the $TOMCAT_HOME/work directory.
svn commit: r552086 - in /struts/struts1/trunk/taglib/src/main: java/org/apache/struts/taglib/html/MessagesTag.java resources/META-INF/tld/struts-html.tld
Author: pbenedict Date: Fri Jun 29 20:25:13 2007 New Revision: 552086 URL: http://svn.apache.org/viewvc?view=rev&rev=552086 Log: STR-1922: Add filterArgs parameter Modified: struts/struts1/trunk/taglib/src/main/java/org/apache/struts/taglib/html/MessagesTag.java struts/struts1/trunk/taglib/src/main/resources/META-INF/tld/struts-html.tld Modified: struts/struts1/trunk/taglib/src/main/java/org/apache/struts/taglib/html/MessagesTag.java URL: http://svn.apache.org/viewvc/struts/struts1/trunk/taglib/src/main/java/org/apache/struts/taglib/html/MessagesTag.java?view=diff&rev=552086&r1=552085&r2=552086 == --- struts/struts1/trunk/taglib/src/main/java/org/apache/struts/taglib/html/MessagesTag.java (original) +++ struts/struts1/trunk/taglib/src/main/java/org/apache/struts/taglib/html/MessagesTag.java Fri Jun 29 20:25:13 2007 @@ -103,6 +103,12 @@ */ protected String message = null; +/** + * Filter the message replacement values for characters that are + * sensitive in HTML? Default is false. + */ +protected boolean filterArgs = false; + public String getId() { return (this.id); } @@ -167,6 +173,14 @@ this.message = message; } +public boolean getFilterArgs() { +return (this.filterArgs); +} + +public void setFilterArgs(boolean filterArgs) { +this.filterArgs = filterArgs; +} + /** * Construct an iterator for the specified collection, and begin looping * through the body once per element. @@ -256,8 +270,13 @@ String msg = null; if (report.isResource()) { +Object[] values = report.getValues(); +if (filterArgs) { +values = filterMessageReplacementValues(values); +} + msg = TagUtils.getInstance().message(pageContext, bundle, locale, -report.getKey(), report.getValues()); +report.getKey(), values); if (msg == null) { String bundleName = (bundle == null) ? "default" : bundle; @@ -277,6 +296,30 @@ } /** + * Performs filtering on the elements of specified Array. + * Filtering is only performed on elements which are instances of + * String. + * + * @param values The message values to be filtered + */ +private Object[] filterMessageReplacementValues(Object[] values) { + if (values == null) { + return (null); + } + + Object[] filteredArgs = new Object[values.length]; + for (int i = 0; i < values.length; ++i) { + if (values[i] instanceof String) { + filteredArgs[i] = TagUtils.getInstance().filter((String) values[i]); + } else { + filteredArgs[i] = values[i]; + } + } + + return filteredArgs; +} + +/** * Clean up after processing this enumeration. * * @throws JspException if a JSP exception has occurred @@ -310,5 +353,6 @@ header = null; footer = null; message = null; +filterArgs = false; } } Modified: struts/struts1/trunk/taglib/src/main/resources/META-INF/tld/struts-html.tld URL: http://svn.apache.org/viewvc/struts/struts1/trunk/taglib/src/main/resources/META-INF/tld/struts-html.tld?view=diff&rev=552086&r1=552085&r2=552086 == --- struts/struts1/trunk/taglib/src/main/resources/META-INF/tld/struts-html.tld (original) +++ struts/struts1/trunk/taglib/src/main/resources/META-INF/tld/struts-html.tld Fri Jun 29 20:25:13 2007 @@ -5353,6 +5353,26 @@ +filterArgs +false +true + + + + + locale false true
svn commit: r552090 - /struts/struts1/trunk/taglib/src/main/resources/META-INF/tld/struts-html.tld
Author: pbenedict Date: Fri Jun 29 20:38:12 2007 New Revision: 552090 URL: http://svn.apache.org/viewvc?view=rev&rev=552090 Log: STR-1922: Add since info to TLD Modified: struts/struts1/trunk/taglib/src/main/resources/META-INF/tld/struts-html.tld Modified: struts/struts1/trunk/taglib/src/main/resources/META-INF/tld/struts-html.tld URL: http://svn.apache.org/viewvc/struts/struts1/trunk/taglib/src/main/resources/META-INF/tld/struts-html.tld?view=diff&rev=552090&r1=552089&r2=552090 == --- struts/struts1/trunk/taglib/src/main/resources/META-INF/tld/struts-html.tld (original) +++ struts/struts1/trunk/taglib/src/main/resources/META-INF/tld/struts-html.tld Fri Jun 29 20:38:12 2007 @@ -5369,6 +5369,9 @@ errors.divideZero=The mathematical expression {0} caused a divide by zero. + +Since: +Struts 1.4 ]]>
svn commit: r552091 - in /struts/struts1/trunk/el/src/main: java/org/apache/strutsel/taglib/html/ELMessagesTag.java java/org/apache/strutsel/taglib/html/ELMessagesTagBeanInfo.java resources/META-INF/t
Author: pbenedict Date: Fri Jun 29 20:38:38 2007 New Revision: 552091 URL: http://svn.apache.org/viewvc?view=rev&rev=552091 Log: STR-1922: Add EL version Modified: struts/struts1/trunk/el/src/main/java/org/apache/strutsel/taglib/html/ELMessagesTag.java struts/struts1/trunk/el/src/main/java/org/apache/strutsel/taglib/html/ELMessagesTagBeanInfo.java struts/struts1/trunk/el/src/main/resources/META-INF/tld/struts-html-el.tld Modified: struts/struts1/trunk/el/src/main/java/org/apache/strutsel/taglib/html/ELMessagesTag.java URL: http://svn.apache.org/viewvc/struts/struts1/trunk/el/src/main/java/org/apache/strutsel/taglib/html/ELMessagesTag.java?view=diff&rev=552091&r1=552090&r2=552091 == --- struts/struts1/trunk/el/src/main/java/org/apache/strutsel/taglib/html/ELMessagesTag.java (original) +++ struts/struts1/trunk/el/src/main/java/org/apache/strutsel/taglib/html/ELMessagesTag.java Fri Jun 29 20:38:38 2007 @@ -52,6 +52,12 @@ private String bundleExpr; /** + * Instance variable mapped to "filterArgs" tag attribute. (Mapping set in + * associated BeanInfo class.) + */ +private String filterArgsExpr; + +/** * Instance variable mapped to "locale" tag attribute. (Mapping set in * associated BeanInfo class.) */ @@ -104,6 +110,14 @@ } /** + * Getter method for "filterArgs" tag attribute. (Mapping set in associated + * BeanInfo class.) + */ +public String getFilterArgsExpr() { +return (filterArgsExpr); +} + +/** * Getter method for "locale" tag attribute. (Mapping set in associated * BeanInfo class.) */ @@ -168,6 +182,14 @@ } /** + * Setter method for "filterArgs" tag attribute. (Mapping set in associated + * BeanInfo class.) + */ +public void setFilterArgsExpr(String filterArgsExpr) { +this.filterArgsExpr = filterArgsExpr; +} + +/** * Setter method for "locale" tag attribute. (Mapping set in associated * BeanInfo class.) */ @@ -222,6 +244,7 @@ super.release(); setIdExpr(null); setBundleExpr(null); +setFilterArgsExpr(null); setLocaleExpr(null); setNameExpr(null); setPropertyExpr(null); @@ -250,6 +273,7 @@ private void evaluateExpressions() throws JspException { String string = null; +Boolean bool = null; if ((string = EvalHelper.evalString("id", getIdExpr(), this, pageContext)) != null) { @@ -260,6 +284,12 @@ EvalHelper.evalString("bundle", getBundleExpr(), this, pageContext)) != null) { setBundle(string); +} + +if ((bool = +EvalHelper.evalBoolean("filterArgs", getFilterArgsExpr(), this, +pageContext)) != null) { +setFilterArgs(bool.booleanValue()); } if ((string = Modified: struts/struts1/trunk/el/src/main/java/org/apache/strutsel/taglib/html/ELMessagesTagBeanInfo.java URL: http://svn.apache.org/viewvc/struts/struts1/trunk/el/src/main/java/org/apache/strutsel/taglib/html/ELMessagesTagBeanInfo.java?view=diff&rev=552091&r1=552090&r2=552091 == --- struts/struts1/trunk/el/src/main/java/org/apache/strutsel/taglib/html/ELMessagesTagBeanInfo.java (original) +++ struts/struts1/trunk/el/src/main/java/org/apache/strutsel/taglib/html/ELMessagesTagBeanInfo.java Fri Jun 29 20:38:38 2007 @@ -49,6 +49,12 @@ } try { +proplist.add(new PropertyDescriptor("filterArgs", ELMessagesTag.class, +null, "setFilterArgsExpr")); +} catch (IntrospectionException ex) { +} + +try { proplist.add(new PropertyDescriptor("locale", ELMessagesTag.class, null, "setLocaleExpr")); } catch (IntrospectionException ex) { Modified: struts/struts1/trunk/el/src/main/resources/META-INF/tld/struts-html-el.tld URL: http://svn.apache.org/viewvc/struts/struts1/trunk/el/src/main/resources/META-INF/tld/struts-html-el.tld?view=diff&rev=552091&r1=552090&r2=552091 == --- struts/struts1/trunk/el/src/main/resources/META-INF/tld/struts-html-el.tld (original) +++ struts/struts1/trunk/el/src/main/resources/META-INF/tld/struts-html-el.tld Fri Jun 29 20:38:38 2007 @@ -4661,6 +4661,29 @@ +filterArgs +false +true + + + + + locale false true
svn commit: r552104 - /struts/struts1/trunk/taglib/src/main/java/org/apache/struts/taglib/html/FormTag.java
Author: pbenedict Date: Fri Jun 29 21:42:16 2007 New Revision: 552104 URL: http://svn.apache.org/viewvc?view=rev&rev=552104 Log: STR-2893: Add javascript comment to hide CDATA Modified: struts/struts1/trunk/taglib/src/main/java/org/apache/struts/taglib/html/FormTag.java Modified: struts/struts1/trunk/taglib/src/main/java/org/apache/struts/taglib/html/FormTag.java URL: http://svn.apache.org/viewvc/struts/struts1/trunk/taglib/src/main/java/org/apache/struts/taglib/html/FormTag.java?view=diff&rev=552104&r1=552103&r2=552104 == --- struts/struts1/trunk/taglib/src/main/java/org/apache/struts/taglib/html/FormTag.java (original) +++ struts/struts1/trunk/taglib/src/main/java/org/apache/struts/taglib/html/FormTag.java Fri Jun 29 21:42:16 2007 @@ -702,7 +702,7 @@ // xhtml content should emit CDATA section // but html content should use the browser hiding trick -results.append(isXhtml() ? "" : "// -->"); +results.append("//"); +results.append(isXhtml() ? "]]>" : "-->"); results.append(lineEnd); results.append("");