martinc 2003/07/15 21:57:44 Modified: src/share/org/apache/struts/util Tag: STRUTS_1_1_BRANCH RequestUtils.java Log: Detab file. Revision Changes Path No revision No revision 1.105.2.1 +55 -55 jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java Index: RequestUtils.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java,v retrieving revision 1.105 retrieving revision 1.105.2.1 diff -u -r1.105 -r1.105.2.1 --- RequestUtils.java 28 Jun 2003 00:20:07 -0000 1.105 +++ RequestUtils.java 16 Jul 2003 04:57:44 -0000 1.105.2.1 @@ -393,8 +393,8 @@ boolean redirect) throws MalformedURLException { - return computeURL(pageContext, forward, href, page, null, params, - anchor, redirect); + return computeURL(pageContext, forward, href, page, null, params, + anchor, redirect); } /** @@ -534,7 +534,7 @@ } else if (href != null) { url.append(href); } else if (action != null) { - url.append(getActionMappingURL(action, pageContext)); + url.append(getActionMappingURL(action, pageContext)); } else /* if (page != null) */ { url.append(request.getContextPath()); @@ -871,15 +871,15 @@ throws JspException { if (scopeName == null) { - return pageContext.findAttribute(name); + return pageContext.findAttribute(name); } try { - return pageContext.getAttribute(name, getScope(scopeName)); + return pageContext.getAttribute(name, getScope(scopeName)); } catch (JspException e) { - saveException(pageContext, e); - throw e; + saveException(pageContext, e); + throw e; } } @@ -893,13 +893,13 @@ * @since Struts 1.1 */ public static int getScope(String scopeName) throws JspException { - Integer scope = (Integer) scopes.get(scopeName.toLowerCase()); + Integer scope = (Integer) scopes.get(scopeName.toLowerCase()); - if (scope == null) { - throw new JspException(messages.getMessage("lookup.scope", scope)); - } + if (scope == null) { + throw new JspException(messages.getMessage("lookup.scope", scope)); + } - return scope.intValue(); + return scope.intValue(); } /** @@ -1040,8 +1040,8 @@ Object args[]) throws JspException { - MessageResources resources = - retrieveMessageResources(pageContext, bundle, false); + MessageResources resources = + retrieveMessageResources(pageContext, bundle, false); Locale userLocale = retrieveUserLocale(pageContext, locale); @@ -1072,11 +1072,11 @@ boolean checkPageScope) throws JspException { - MessageResources resources = null; + MessageResources resources = null; - if (bundle == null) { - bundle = Globals.MESSAGES_KEY; - } + if (bundle == null) { + bundle = Globals.MESSAGES_KEY; + } if (checkPageScope) { resources = @@ -1085,29 +1085,29 @@ PageContext.PAGE_SCOPE); } - if (resources == null) { - resources = - (MessageResources) pageContext.getAttribute( - bundle, - PageContext.REQUEST_SCOPE); - } - - if (resources == null) { - resources = - (MessageResources) pageContext.getAttribute( - bundle, - PageContext.APPLICATION_SCOPE); - } - - if (resources == null) { - JspException e = - new JspException(messages.getMessage("message.bundle", bundle)); - saveException(pageContext, e); - throw e; - } + if (resources == null) { + resources = + (MessageResources) pageContext.getAttribute( + bundle, + PageContext.REQUEST_SCOPE); + } + + if (resources == null) { + resources = + (MessageResources) pageContext.getAttribute( + bundle, + PageContext.APPLICATION_SCOPE); + } + + if (resources == null) { + JspException e = + new JspException(messages.getMessage("message.bundle", bundle)); + saveException(pageContext, e); + throw e; + } - return resources; - } + return resources; + } /** * Populate the properties of the specified JavaBean from the specified @@ -1398,20 +1398,20 @@ * @exception JspException if a lookup error occurs (will have been * saved in the request already) */ - public static boolean present( - PageContext pageContext, - String bundle, - String locale, - String key) - throws JspException { + public static boolean present( + PageContext pageContext, + String bundle, + String locale, + String key) + throws JspException { - MessageResources resources = - retrieveMessageResources(pageContext, bundle, true); + MessageResources resources = + retrieveMessageResources(pageContext, bundle, true); - Locale userLocale = retrieveUserLocale(pageContext, locale); + Locale userLocale = retrieveUserLocale(pageContext, locale); - return (resources.isPresent(userLocale, key)); - } + return (resources.isPresent(userLocale, key)); + } /** * Compute the printable representation of a URL, leaving off the
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]