[CONF] Confluence Changes in the last 24 hours
- This is a daily summary of all recent changes in Confluence. - Updated Spaces: - Apache Camel (CAMEL) http://cwiki.apache.org/confluence/display/CAMEL | |-Pages Added or Edited in This Space |-- Exception Clause was last edited by rbuckland (10:01 PM). | http://cwiki.apache.org/confluence/display/CAMEL/Exception+Clause |-- Walk through another example was last edited by rbuckland (01:19 PM). | http://cwiki.apache.org/confluence/display/CAMEL/Walk+through+another+example |-- RSS was last edited by janstey (12:23 PM). | http://cwiki.apache.org/confluence/display/CAMEL/RSS |-- File was last edited by davsclaus (12:15 PM). | http://cwiki.apache.org/confluence/display/CAMEL/File |-- Jetty was last edited by rbuckland (05:06 AM). | http://cwiki.apache.org/confluence/display/CAMEL/Jetty |-- CSV was last edited by rbuckland (04:18 AM). | http://cwiki.apache.org/confluence/display/CAMEL/CSV Apache Qpid (qpid) http://cwiki.apache.org/confluence/display/qpid | |-Pages Added or Edited in This Space |-- Add New Users was last edited by mmccorma (12:40 AM). | http://cwiki.apache.org/confluence/display/qpid/Add+New+Users Apache Directory Server v1.5 (DIRxSRVx11) http://cwiki.apache.org/confluence/display/DIRxSRVx11 | |-Pages Added or Edited in This Space |-- 4.1. Embedding ApacheDS into an application was last edited by elecharny (10:35 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/4.1.+Embedding+ApacheDS+into+an+application |-- 9.1. Performance Tuning was last edited by elecharny (09:04 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/9.1.+Performance+Tuning |-- 9. Tuning was last edited by elecharny (09:04 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/9.+Tuning |-- 8.2. LDAP Triggers was last edited by elecharny (09:04 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/8.2.+LDAP+Triggers |-- 8.1. Stored Procedures was last edited by elecharny (09:04 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/8.1.+Stored+Procedures |-- 8. Triggers & Stored Procedures was last edited by elecharny (09:04 AM). | http://cwiki.apache.org/confluence/pages/viewpage.action?pageId=102532 |-- 7.2. Replication was last edited by elecharny (09:00 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/7.2.+Replication |-- 7.1. Referrals was last edited by elecharny (08:59 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/7.1.+Referrals |-- 7. Partitioning & Replication was last edited by elecharny (08:59 AM). | http://cwiki.apache.org/confluence/pages/viewpage.action?pageId=102529 |-- 6.2. Implementing an Interceptor was last edited by elecharny (08:59 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/6.2.+Implementing+an+Interceptor |-- 6.1 How to write a simple custom partition for ApacheDS was last edited by elecharny (08:59 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/6.1+How+to+write+a+simple+custom+partition+for+ApacheDS |-- 6. Extending the server was last edited by elecharny (08:59 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/6.+Extending+the+server |-- 5.8. DHCP Protocol Provider was last edited by elecharny (08:59 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/5.8.+DHCP+Protocol+Provider |-- 5.7. NTP Protocol Provider was last edited by elecharny (08:58 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/5.7.+NTP+Protocol+Provider |-- 5.6. DNS Protocol Provider was last edited by elecharny (08:58 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/5.6.+DNS+Protocol+Provider |-- 5.5. Change Password Protocol Provider was last edited by elecharny (08:58 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/5.5.+Change+Password+Protocol+Provider |-- 5.4. Kerberos Protocol Provider was last edited by elecharny (08:58 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/5.4.+Kerberos+Protocol+Provider |-- 5.3.1. LDAP Protocol Configuration was last edited by elecharny (08:58 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/5.3.1.+LDAP+Protocol+Configuration |-- 5.3. LDAP Protocol Provider was last edited by elecharny (08:58 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/5.3.+LDAP+Protocol+Provider |-- 5.2 Common Parameters for Configuration was last edited by elecharny (08:57 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/5.2+Common+Parameters+for+Configuration |-- 5.1. Protocol Providers was last edited by elecharny (08:57 AM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/5.1.+Protocol+Providers |-- 5. Protocol Providers was last edited by elecharny (08:57 AM). | http://cwiki.apa
svn commit: r724030 - /struts/struts2/trunk/plugins/portlet/src/main/java/org/apache/struts2/portlet/context/PortletActionContext.java
Author: nilsga Date: Sat Dec 6 11:32:29 2008 New Revision: 724030 URL: http://svn.apache.org/viewvc?rev=724030&view=rev Log: WW-2800 Added setters for response, request and context. Modified: struts/struts2/trunk/plugins/portlet/src/main/java/org/apache/struts2/portlet/context/PortletActionContext.java Modified: struts/struts2/trunk/plugins/portlet/src/main/java/org/apache/struts2/portlet/context/PortletActionContext.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/portlet/src/main/java/org/apache/struts2/portlet/context/PortletActionContext.java?rev=724030&r1=724029&r2=724030&view=diff == --- struts/struts2/trunk/plugins/portlet/src/main/java/org/apache/struts2/portlet/context/PortletActionContext.java (original) +++ struts/struts2/trunk/plugins/portlet/src/main/java/org/apache/struts2/portlet/context/PortletActionContext.java Sat Dec 6 11:32:29 2008 @@ -129,6 +129,14 @@ public static PortletRequest getRequest() { return (PortletRequest) getContext().get(REQUEST); } + +/** + * Convenience setter for the portlet request. + * @param request + */ +public static void setRequest(PortletRequest request) { + getContext().put(REQUEST, request); +} /** * Get the current PortletResponse @@ -138,6 +146,14 @@ public static PortletResponse getResponse() { return (PortletResponse) getContext().get(RESPONSE); } + +/** + * Convenience setter for the portlet response. + * @param response + */ +public static void setResponse(PortletResponse response) { + getContext().put(RESPONSE, response); +} /** * Get the phase that the portlet is executing in. @@ -206,6 +222,14 @@ } /** + * Convenience setter for the portlet context. + * @param context + */ +public static void setPortletContext(PortletContext context) { + getContext().put(StrutsStatics.STRUTS_PORTLET_CONTEXT, context); +} + +/** * Gets the action mapping for this context * * @return The action mapping
svn commit: r724071 - /struts/struts2/trunk/apps/showcase/src/main/webapp/WEB-INF/decorators/main.jsp
Author: wesw Date: Sat Dec 6 20:47:19 2008 New Revision: 724071 URL: http://svn.apache.org/viewvc?rev=724071&view=rev Log: broken url WW-2623 Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/WEB-INF/decorators/main.jsp Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/WEB-INF/decorators/main.jsp URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/WEB-INF/decorators/main.jsp?rev=724071&r1=724070&r2=724071&view=diff == --- struts/struts2/trunk/apps/showcase/src/main/webapp/WEB-INF/decorators/main.jsp (original) +++ struts/struts2/trunk/apps/showcase/src/main/webapp/WEB-INF/decorators/main.jsp Sat Dec 6 20:47:19 2008 @@ -70,7 +70,7 @@ ">CRUD ">Execute & Wait ">File Download -">File Upload +">File Upload ">Freemarker ">Hangman ">JavaServer Faces
svn commit: r724074 - /struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaMultiPartRequest.java
Author: wesw Date: Sat Dec 6 20:51:34 2008 New Revision: 724074 URL: http://svn.apache.org/viewvc?rev=724074&view=rev Log: Cleanup in JakartaMultiPartRequest, using generics. Per WW-2908, thanks for the patch Mathias Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaMultiPartRequest.java Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaMultiPartRequest.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaMultiPartRequest.java?rev=724074&r1=724073&r2=724074&view=diff == --- struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaMultiPartRequest.java (original) +++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaMultiPartRequest.java Sat Dec 6 20:51:34 2008 @@ -47,18 +47,19 @@ /** * Multipart form data request adapter for Jakarta Commons Fileupload package. - * */ public class JakartaMultiPartRequest implements MultiPartRequest { static final Logger LOG = LoggerFactory.getLogger(MultiPartRequest.class); // maps parameter name -> List of FileItem objects -private Map> files = new HashMap>(); +private final Map> files = new HashMap>(); + // maps parameter name -> List of param values -private Map> params = new HashMap>(); +private final Map> params = new HashMap>(); + // any errors while processing this request -private List errors = new ArrayList(); +private final List errors = new ArrayList(); private long maxSize; @@ -151,38 +152,36 @@ * @see org.apache.struts2.dispatcher.multipart.MultiPartRequest#getContentType(java.lang.String) */ public String[] getContentType(String fieldName) { -List items = (List) files.get(fieldName); +List items = files.get(fieldName); if (items == null) { return null; } List contentTypes = new ArrayList(items.size()); -for (int i = 0; i < items.size(); i++) { -FileItem fileItem = (FileItem) items.get(i); +for (FileItem fileItem : items) { contentTypes.add(fileItem.getContentType()); } -return (String[]) contentTypes.toArray(new String[contentTypes.size()]); +return contentTypes.toArray(new String[contentTypes.size()]); } /* (non-Javadoc) * @see org.apache.struts2.dispatcher.multipart.MultiPartRequest#getFile(java.lang.String) */ public File[] getFile(String fieldName) { -List items = (List) files.get(fieldName); +List items = files.get(fieldName); if (items == null) { return null; } List fileList = new ArrayList(items.size()); -for (int i = 0; i < items.size(); i++) { -DiskFileItem fileItem = (DiskFileItem) items.get(i); -fileList.add(fileItem.getStoreLocation()); +for (FileItem fileItem : items) { +fileList.add(((DiskFileItem) fileItem).getStoreLocation()); } -return (File[]) fileList.toArray(new File[fileList.size()]); +return fileList.toArray(new File[fileList.size()]); } /* (non-Javadoc) @@ -196,40 +195,38 @@ } List fileNames = new ArrayList(items.size()); -for (int i = 0; i < items.size(); i++) { -DiskFileItem fileItem = (DiskFileItem) items.get(i); +for (FileItem fileItem : items) { fileNames.add(getCanonicalName(fileItem.getName())); } -return (String[]) fileNames.toArray(new String[fileNames.size()]); +return fileNames.toArray(new String[fileNames.size()]); } /* (non-Javadoc) * @see org.apache.struts2.dispatcher.multipart.MultiPartRequest#getFilesystemName(java.lang.String) */ public String[] getFilesystemName(String fieldName) { -List items = (List) files.get(fieldName); +List items = files.get(fieldName); if (items == null) { return null; } List fileNames = new ArrayList(items.size()); -for (int i = 0; i < items.size(); i++) { -DiskFileItem fileItem = (DiskFileItem) items.get(i); -fileNames.add(fileItem.getStoreLocation().getName()); +for (FileItem fileItem : items) { +fileNames.add(((DiskFileItem) fileItem).getStoreLocation().getName()); } -return (String[]) fileNames.toArray(new String[fileNames.size()]); +return fileNames.toArray(new String[fileNames.size()]); } /* (non-Javadoc) * @see org.apache.struts2.dispatcher.multipart.MultiPartRequest#getParameter(java.lang.String) */ public String getParameter(String name) { -List v = (List) params.get(nam