DO NOT REPLY [Bug 36306] - Collection of fixes to address Checkstyle complaints

2006-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36306





--- Additional Comments From [EMAIL PROTECTED]  2006-02-09 07:54 ---
I know there has been some recent headway in all this, which is great!  I also 
know that Wendy has offered to deal with some of the remaining issues, which 
seem to almost entirely be simple commenting fixups (or additions of missing 
comments).  I have offered to help her in that task this weekend.  Initially 
I'm thinking of tackling the action package.  Does that present any conflict 
for what you planned Wendy?

One question... do we need to define any style rules for comments?  For 
instance, I tend to want to line things up, i.e. the parameter, return and 
exception comments on a method I like to have lined up in terms of their 
starting column... somestimes this leads to some short lines though because of 
making sure to keep the line lengths below 80.  Other people prefer not 
bothering with that and let it simply flow naturally.  Do we have a preference 
here?  More to the point, will Jalopy enforce any particular style?  If it 
does I suppose this is a moot point, it would work either way.

Similarly, what about the order of tokens?  @parameter, @return, @exception 
vs. @exception, @parameter, @return for example.  What about spaces between 
the description of the method and the start of the tokens?

Am I perhaps being too anal about it? :)  Maybe none of this is important.  
Like I said, if Jalopy can deal with all of this, then no worries I suppose.  
Just want to make sure what I do is quickly and easily acceptable is all, and 
consistent with the effort Wendy and/or others put in.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r376191 - in /struts/sandbox/trunk/archetypes/shale-blank: README.txt pom.xml

2006-02-08 Thread wsmoak
Author: wsmoak
Date: Wed Feb  8 21:12:00 2006
New Revision: 376191

URL: http://svn.apache.org/viewcvs?rev=376191&view=rev
Log:
Include the archetype resources in addition to the license and notice files.  
Thanks to David Geary for identifying this problem!
Update the instructions to suggest 'mvn package' rather than 'mvn war:war' 
which wasn't compiling the classes or filtering web.xml.

Modified:
struts/sandbox/trunk/archetypes/shale-blank/README.txt
struts/sandbox/trunk/archetypes/shale-blank/pom.xml

Modified: struts/sandbox/trunk/archetypes/shale-blank/README.txt
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/archetypes/shale-blank/README.txt?rev=376191&r1=376190&r2=376191&view=diff
==
--- struts/sandbox/trunk/archetypes/shale-blank/README.txt (original)
+++ struts/sandbox/trunk/archetypes/shale-blank/README.txt Wed Feb  8 21:12:00 
2006
@@ -24,7 +24,7 @@
 To build your new webapp:
 
$ cd projectname
-   $ mvn war:war
+   $ mvn package
 
 
 Prerequisites

Modified: struts/sandbox/trunk/archetypes/shale-blank/pom.xml
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/archetypes/shale-blank/pom.xml?rev=376191&r1=376190&r2=376191&view=diff
==
--- struts/sandbox/trunk/archetypes/shale-blank/pom.xml (original)
+++ struts/sandbox/trunk/archetypes/shale-blank/pom.xml Wed Feb  8 21:12:00 2006
@@ -12,6 +12,9 @@

   
  
+src/main/resources
+ 
+ 
 .
 
LICENSE.txt



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r376183 - /struts/faces/trunk/README.txt

2006-02-08 Thread jholmes
Author: jholmes
Date: Wed Feb  8 20:47:52 2006
New Revision: 376183

URL: http://svn.apache.org/viewcvs?rev=376183&view=rev
Log:
Fixed a couple typos.

Modified:
struts/faces/trunk/README.txt

Modified: struts/faces/trunk/README.txt
URL: 
http://svn.apache.org/viewcvs/struts/faces/trunk/README.txt?rev=376183&r1=376182&r2=376183&view=diff
==
--- struts/faces/trunk/README.txt (original)
+++ struts/faces/trunk/README.txt Wed Feb  8 20:47:52 2006
@@ -53,7 +53,7 @@
 * It is now possible to use the Struts-Faces Integration Library in conjunction
   with application modules using Tiles.
 
-* You many now use a managed bean named "struts" at the beginning of any
+* You may now use a managed bean named "struts" at the beginning of any
   value binding expression in order to gain access to request, session, and
   application scope objects provided by Struts.  See the Javadocs for the
   implementation class (org.apache.struts.faces.util.StrutsContext)
@@ -473,7 +473,7 @@
   components instead of traditional Struts tags, modify any 
   elements in your webapp's struts-config.xml file to include "/faces"
   in front of the path to that page (if you are using prefix mapping),
-  or a ".faces" extension (if you are using extenaion mapping.  For
+  or a ".faces" extension (if you are using extension mapping.  For
   example, change:
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 38566] - [Shale] Clay ComponentConfigBean should report missing id

2006-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38566





--- Additional Comments From [EMAIL PROTECTED]  2006-02-09 04:11 ---
Fix will be in the 20060209 nightly build.  The exception now reports the 
document node.  The document name is not included but it should give enough to 
search on.  

SEVERE: java.lang.NullPointerException: The component identified by jsfid 
clayorEach could not be found.
Feb 8, 2006 7:58:24 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet faces threw exception
java.lang.RuntimeException: Unable to resolve a JSF component using document 
token: Node token range (4 - 157) on line# 3 begining offset 3.

at org.apache.shale.clay.parser.builder.Builder.assignNode
(Builder.java:268)


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r376163 - in /struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay: Bundle.properties parser/builder/Builder.java

2006-02-08 Thread gvanmatre
Author: gvanmatre
Date: Wed Feb  8 19:04:43 2006
New Revision: 376163

URL: http://svn.apache.org/viewcvs?rev=376163&view=rev
Log:
Fix for Bug# 38566 reported by Hermod Opstvedt.

Modified:

struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/Bundle.properties

struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/Builder.java

Modified: 
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/Bundle.properties
URL: 
http://svn.apache.org/viewcvs/struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/Bundle.properties?rev=376163&r1=376162&r2=376163&view=diff
==
--- 
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/Bundle.properties 
(original)
+++ 
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/Bundle.properties 
Wed Feb  8 19:04:43 2006
@@ -125,7 +125,7 @@
 circular.child.extends.same.parent.exception=Circular composition detected; 
contained element ({0}) cannot inherit from owning parent component ({1}).
 jsfid.notfound=The component identified by jsfid {0} could not be found.
 config.notloaded=ConfigBean is not loaded to handle a component identified by 
jsfid {0}.
-file.notfound=Unable to find file {0}.  If this is a full HTML or XML view, 
check your navigation rules.
+file.notfound=Unable to find file {0}.
 check.tree=Checking for duplicate component ids within a naming container 
({0}) #:-<
 
 #org.apache.shale.clay.config.beans.TemplateConfigBean
@@ -135,6 +135,8 @@
 #org.apache.shale.clay.parser.builder.Builder
 encode.begin=Begin encoding node: {0}
 encode.end=End encoding node: {0}
+parser.unresolved=Unable to resolve a JSF component using document token: 
{0}\n{1}
+
 
 #org.apache.shale.clay.utils.ClayAmalgam
 missing.attribute=The "{0}" attribute is required when using the 
ClayAmalgam.{1}() validator method binding event.

Modified: 
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/Builder.java
URL: 
http://svn.apache.org/viewcvs/struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/Builder.java?rev=376163&r1=376162&r2=376163&view=diff
==
--- 
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/Builder.java
 (original)
+++ 
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/Builder.java
 Wed Feb  8 19:04:43 2006
@@ -257,10 +257,18 @@
 // disconnect component type
 target.setComponentType(null);
 
-//assign the parent
-config.assignParent(target);
-// resolve inheritance
-config.realizingInheritance(target);
+
+try {
+   //assign the parent
+   config.assignParent(target);
+   // resolve inheritance
+   config.realizingInheritance(target);
+} catch (RuntimeException e) {
+log.error(e);
+throw new RuntimeException(
+messages.getMessage("parser.unresolved",
+new Object[] {node.getToken(), 
node.getToken().getRawText()}));  
+}
 
 // if the inheritance is broken, toggle back to the default
 if (target.getComponentType() == null) {



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r376140 - in /struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock: MockFacesContext.java MockPropertyResolver.java MockServlet.java MockValueBinding.java

2006-02-08 Thread craigmcc
Author: craigmcc
Date: Wed Feb  8 17:10:34 2006
New Revision: 376140

URL: http://svn.apache.org/viewcvs?rev=376140&view=rev
Log:
Clean up several more unsupported operations on the mock classes.  In
particular, the isReadonly() and getType() calls on property resolver now
work, so they will work on value bindings and method bindings as well.

Modified:

struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockFacesContext.java

struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockPropertyResolver.java

struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockServlet.java

struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockValueBinding.java

Modified: 
struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockFacesContext.java
URL: 
http://svn.apache.org/viewcvs/struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockFacesContext.java?rev=376140&r1=376139&r2=376140&view=diff
==
--- 
struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockFacesContext.java
 (original)
+++ 
struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockFacesContext.java
 Wed Feb  8 17:10:34 2006
@@ -120,8 +120,18 @@
 
 
 public Severity getMaximumSeverity() {
-  
-throw new UnsupportedOperationException();
+
+Severity severity = null;
+Iterator messages = getMessages();
+while (messages.hasNext()) {
+FacesMessage message = (FacesMessage) messages.next();
+if (severity == null) {
+severity = message.getSeverity();
+} else if (message.getSeverity().getOrdinal() > 
severity.getOrdinal()) {
+severity = message.getSeverity();
+}
+}
+return severity;
 
 }
 

Modified: 
struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockPropertyResolver.java
URL: 
http://svn.apache.org/viewcvs/struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockPropertyResolver.java?rev=376140&r1=376139&r2=376140&view=diff
==
--- 
struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockPropertyResolver.java
 (original)
+++ 
struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockPropertyResolver.java
 Wed Feb  8 17:10:34 2006
@@ -16,6 +16,7 @@
 
 package org.apache.shale.test.mock;
 
+import java.beans.PropertyDescriptor;
 import java.lang.reflect.InvocationTargetException;
 import java.util.Map;
 
@@ -28,10 +29,6 @@
 /**
  * Mock implementation of PropertyResolver.
  *
- * This implementation supports only getValue() and setValue(), to the
- * extent that PropertyUtils.getSimpleProperty() and
- * PropertyUtils.setSimpleProperty() execute correctly.
- *
  * $Id$
  */
 
@@ -89,7 +86,7 @@
 public Object getValue(Object base, int index)
 throws PropertyNotFoundException {
 
-throw new UnsupportedOperationException();
+return getValue(base, "" + index);
 
 }
 
@@ -121,7 +118,7 @@
 public void setValue(Object base, int index, Object value)
 throws PropertyNotFoundException {
 
-throw new UnsupportedOperationException();
+setValue(base, "" + index, value);
 
 }
 
@@ -129,7 +126,11 @@
 public boolean isReadOnly(Object base, Object property)
 throws PropertyNotFoundException {
 
-throw new UnsupportedOperationException();
+if (base == null) {
+throw new NullPointerException();
+}
+   String name = property.toString();
+return !PropertyUtils.isWriteable(base, name);
 
 }
 
@@ -137,7 +138,7 @@
 public boolean isReadOnly(Object base, int index)
 throws PropertyNotFoundException {
 
-throw new UnsupportedOperationException();
+return isReadOnly(base, "" + index);
 
 }
 
@@ -145,7 +146,19 @@
 public Class getType(Object base, Object property)
 throws PropertyNotFoundException {
 
-throw new UnsupportedOperationException();
+if (base == null) {
+throw new NullPointerException();
+}
+   String name = property.toString();
+try {
+return PropertyUtils.getPropertyType(base, name);
+} catch (IllegalAccessException e) {
+throw new EvaluationException(e);
+} catch (InvocationTargetException e) {
+throw new EvaluationException(e.getTargetException());
+} catch (NoSuchMethodException e) {
+throw new PropertyNotFoundException(name);
+}
 
 }
 
@@ -153,7 +166,7 @@
 public Class getType(Object base, int index)
 throws PropertyNotFoundException {
 
-throw new UnsupportedOperationException();
+return getType(base, "" + index);
 
 }
 

Modified: 
st

DO NOT REPLY [Bug 38437] - html form tags generate invalid XHTML

2006-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38437


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2006-02-09 00:04 ---
(In reply to comment #0)
> Generates W3C validation error message: "end tag for "input" omitted, but
> OMITTAG NO was specified."

The default flavour of Struts does not render valid XHTML - you have to tell it 
to do so using either the  tag or  tags:

http://struts.apache.org/struts-doc-1.2.8/userGuide/struts-html.html#html
http://struts.apache.org/struts-doc-1.2.8/userGuide/struts-html.html#xhtml

(In reply to comment #1)
> > : there is no attribute "name",
> this makes the use of javascript validation impossible if your document uses
>  since it relies on this attribute to find the list of checks to
> perform on the form.

Struts 1.2.8 now renders an "id" attribute for the form tag in XHTML mode - 
however to get the JavaScript validation to work you need to upgrade to Commons 
Validator 1.2.0 (Struts 1.2.8 ships with Validator 1.1.4).

You can download Commons Validator 1.2.0 here:

http://jakarta.apache.org/commons/validator/downloads.html

Notes on upgrading to Validator 1.2.0 here:

http://wiki.apache.org/jakarta-commons/ValidatorVersion120

Closing as INVALID

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 38437] - html form tags generate invalid XHTML

2006-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38437





--- Additional Comments From [EMAIL PROTECTED]  2006-02-08 23:40 ---
(In reply to comment #0)
> : there is no attribute "name",

this makes the use of javascript validation impossible if your document uses
 since it relies on this attribute to find the list of checks to
perform on the form.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Struts Wiki] Update of "StrutsPlugins" by NiallPemberton

2006-02-08 Thread Apache Wiki
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 NiallPemberton:
http://wiki.apache.org/struts/StrutsPlugins

The comment on the change is:
Add a link to the StrutsInitialization page

--
  {i} Questions on 
[http://www.mail-archive.com/user@struts.apache.org/msg32051.html How To 
Implement Application Startup/Shutdown Behaviour] have come up a number of 
times on the user list - hence this page.
+ 
+ '''N.B.''' See also the StrutsInitialization page.
  
  == Struts PlugIn ==
  The Struts !PlugIn provides implementation points for the application 
''startup'' and ''shutdown'' phases. Struts was developed in a Servlet 2.2 
environment which provided no such equivalent mechanism.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Struts Wiki] Update of "StrutsInitialization" by NiallPemberton

2006-02-08 Thread Apache Wiki
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 NiallPemberton:
http://wiki.apache.org/struts/StrutsInitialization

The comment on the change is:
Add link to the existing StrutsPlugIn page

--
  
You also might want to look at the !JavaDocs for the !PlugIn interface and 
read  
up on that as well.
+ 
+   '''N.B.''' See also the StrutsPlugins page for other information on whether 
to use a !PlugIn
+   or !ServletContextListener. 
  
  = Define statics =
  Define statics (maybe even private with access methods) in your extended 
servlet.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Struts Wiki] Trivial Update of "StrutsInitialization" by GeorgeDinwiddie

2006-02-08 Thread Apache Wiki
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 GeorgeDinwiddie:
http://wiki.apache.org/struts/StrutsInitialization

The comment on the change is:
escape class names

--
from whereever can be stored in application state for use by the rest of 
your  
application. 
  
-   Your plug-in class should extend org.apache.struts.action.PlugIn.  Once you 
 
+   Your plug-in class should extend `org.apache.struts.action.PlugIn`.  Once 
you  
-   finish implementing the PlugIn interface, you would create an entry in your 
 
+   finish implementing the !PlugIn interface, you would create an entry in 
your  
-   strut-config.xml to reference the PlugIn that you just created.   
+   strut-config.xml to reference the !PlugIn that you just created.   
  
You can find more information about it here: 
http://jakarta.apache.org/struts/userGuide/configuration.html#plugin_config 
  
-   You also might want to look at the JavaDocs for the PlugIn interface and 
read  
+   You also might want to look at the !JavaDocs for the !PlugIn interface and 
read  
-   up on that as well. }}}
+   up on that as well.
  
  = Define statics =
  Define statics (maybe even private with access methods) in your extended 
servlet.
@@ -85, +85 @@

my.app.MyContextListener
  
  }}}
- Then, MyContextListener.java might be:
+ Then, !MyContextListener.java might be:
  {{{
  package my.app;
  import javax.servlet.ServletContextEvent;
@@ -102, +102 @@

}
  }
  }}}
- Then, in your code you can call MyContextListener.getValue("someKey"); to 
retrieve the value.  Naturally, you probably want to do something more complex 
than this like reading from a config file and creating some "real" 
configuration holder object, but you get the point :)
+ Then, in your code you can call `MyContextListener.getValue("someKey");` to 
retrieve the value.  Naturally, you probably want to do something more complex 
than this like reading from a config file and creating some "real" 
configuration holder object, but you get the point :)
  
  Remember, you can do whatever you want here... it can be as simple or as 
complex as you like!
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Struts Wiki] Update of "StrutsInitialization" by GeorgeDinwiddie

2006-02-08 Thread Apache Wiki
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 GeorgeDinwiddie:
http://wiki.apache.org/struts/StrutsInitialization

The comment on the change is:
deleted unrelated item; cleaned up formatting

--
  Up to StrutsNewFaqs
  
- {{{ How to execute an initialization method before the first (web-)user 
interaction...  }}}
+ '''How to execute an initialization method before the first (web-)user 
interaction...'''
  
- = Answers =
- 
+ [[TableOfContents]]
+ 
- {{{  = #1 Using a plug-in = 
+ = Using a plug-in =
Using a plug-in type class I believe should fit the bill here.  This class 
is  
executed upon application start-up.  These values that you call or 
intialize  
from whereever can be stored in application state for use by the rest of 
your  
@@ -22, +22 @@

You also might want to look at the JavaDocs for the PlugIn interface and 
read  
up on that as well. }}}
  
- = #2 Define statics =
+ = Define statics =
- {{{   Define statics (maybe even private with access methods)  
+ Define statics (maybe even private with access methods) in your extended 
servlet.
-in your extended servlet. }}}
  
+ {{{
  public class yourActionServlet extends
  { org.apache.struts.action.ActionServlet 
  public void init() throws ServletException { 
  private static HashMap hashmap; 
- //read XML file into variable hashMap 
+ //read XML file into variable hashMap
- 
  } 
  
- public static getHashMap(){ }}}
+ public static getHashMap(){
return hashmap;
+ }
  }
- }
+ }}}
  
  Then from your actions, simply:
- 
+ {{{
  yourActionServlet.getHashMap();
+ }}}
  
- = #3 Define another servlet entry in web.xml =
+ = Define another servlet entry in web.xml =
  {{{
   
  myInit 
@@ -74, +75 @@

   
  1 
   
-  }}}
+ 
+ }}}
  
- = #4 Use a ContextListener =
+ = Use a ContextListener =
- {{{In web.xml:
+ In web.xml:
- 
+ {{{
  
my.app.MyContextListener
  
- 
+ }}}
  Then, MyContextListener.java might be:
- 
+ {{{
  package my.app;
  import javax.servlet.ServletContextEvent;
  import javax.servlet.ServletContextListener;
@@ -99, +101 @@

  return myConfigData.get(key);
}
  }
- 
+ }}}
  Then, in your code you can call MyContextListener.getValue("someKey"); to 
retrieve the value.  Naturally, you probably want to do something more complex 
than this like reading from a config file and creating some "real" 
configuration holder object, but you get the point :)
  
  Remember, you can do whatever you want here... it can be as simple or as 
complex as you like!
  
  Note that there is an existing listener in the Java Web Parts project that 
will take care of all the details and allow you to just provide a configuration 
file.  It creates a config object for you on-the-fly (and it also has more 
advanced capabilities if you require more control over things).  Details at 
http://javawebparts.sourceforge.net in the Listener package.
  
-  }}}
- 
- = #5 Why does editing web.xml force a reload? =
- {{{
- This is the default behaviour of a host as defined in server.xml.  To disable 
this behaviour the host needs both autoDeploy="false" and liveDeploy="false" in 
its definition.  For example 
- 
- 
- ...
- 
- 
- }}}
- 
  
  Up to StrutsNewFaqs
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Issue with the excel download - prints junk characters if the data is more

2006-02-08 Thread Martin Cooper
First off, this is a question for the Struts User list, rather than Struts
Dev. The Dev list is for discussion of the development of Struts itself,
while the User list is for discussion of building applications with Struts.

Your description below sounds confused. The content type
"application/msexcel" is not a text format, it's a binary Excel spreadsheet,
so you can't mix other content (e.g. HTML elements) in with it in the
response. Also, adding a charset to the content type is not appropriate.

If you have follow-up questions, please post them to the User list.

--
Martin Cooper


On 2/8/06, freaky fashion <[EMAIL PROTECTED]> wrote:
>
> Hello All,
> I am facing an issue in the excel download,which displays the
> asian characters retrieved from a database.
> If the excel download has around 200rows,the chinese
> characters are printed correctly. If it exceeds 250 rows the chinese
> characters are printed as junk one (视é¢').
> The excel download is done in the following env,
> Struts,Apache tomcat.
> The flow is as mentioned below.
> UI - > Action class - > DAO -> DAOImpl -
>
> Inside DAOImpl,we have the following code.
>
> 1.HttpServletResponse response =
> (HttpServletResponse) argList.get(0);
>   response.setContentType("application/msexcel;charset=UTF-8");
>
> 2.out.write(getBytes(""+questionResponse+""));
>
> 3.getBytes(String str) is a private method which converts the string to
> byte array.
>
> Following are the alternatives I tried with :
>
> 1. Tried with a filter setup,just to ensure that the character encoding is
> not missed at any point of time during the request and response. (didn't
> work out).
>
> 2.Instead of directly writing to the servletoutputstream, created a
> wrapper and tried writing the data to the wrapper. (didn't work out).
>
> 3.Thought it might be because of the characters length and tried
> truncating them too,but in vain.
>
>
> Appreciate if you could help me to over come this issue.
>
> Thnx
> Joe
>
>
> -
> Brings words and photos together (easily) with
> PhotoMail  - it's free and works with Yahoo! Mail.
>


Issue with the excel download - prints junk characters if the data is more

2006-02-08 Thread freaky fashion
Hello All,
I am facing an issue in the excel download,which displays the asian 
characters retrieved from a database.
If the excel download has around 200rows,the chinese characters are 
printed correctly. If it exceeds 250 rows the chinese characters are printed as 
junk one (视频).
The excel download is done in the following env,
Struts,Apache tomcat.
The flow is as mentioned below.
UI - > Action class - > DAO -> DAOImpl -

Inside DAOImpl,we have the following code.

1.HttpServletResponse response =
(HttpServletResponse) argList.get(0);
  response.setContentType("application/msexcel;charset=UTF-8");

2.out.write(getBytes(""+questionResponse+""));

3.getBytes(String str) is a private method which converts the string to byte 
array.

Following are the alternatives I tried with :

1. Tried with a filter setup,just to ensure that the character encoding is not 
missed at any point of time during the request and response. (didn't work out).

2.Instead of directly writing to the servletoutputstream, created a wrapper and 
tried writing the data to the wrapper. (didn't work out).

3.Thought it might be because of the characters length and tried truncating 
them too,but in vain.
   

Appreciate if you could help me to over come this issue.

Thnx
Joe


-
Brings words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.

[Struts Wiki] Update of "StrutsInitialization" by Oliver Meyn

2006-02-08 Thread Apache Wiki
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 Oliver Meyn:
http://wiki.apache.org/struts/StrutsInitialization

The comment on the change is:
added new faq

--
  Note that there is an existing listener in the Java Web Parts project that 
will take care of all the details and allow you to just provide a configuration 
file.  It creates a config object for you on-the-fly (and it also has more 
advanced capabilities if you require more control over things).  Details at 
http://javawebparts.sourceforge.net in the Listener package.
  
   }}}
+ 
+ = #5 Why does editing web.xml force a reload? =
+ {{{
+ This is the default behaviour of a host as defined in server.xml.  To disable 
this behaviour the host needs both autoDeploy="false" and liveDeploy="false" in 
its definition.  For example 
  
+ 
+ ...
+ 
+ 
+ }}}
  
  
  Up to StrutsNewFaqs

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r375989 - /struts/action/trunk/src/java/org/apache/struts/action/

2006-02-08 Thread husted
Author: husted
Date: Wed Feb  8 08:38:15 2006
New Revision: 375989

URL: http://svn.apache.org/viewcvs?rev=375989&view=rev
Log:
Checkstyle Roundup 
* Action package reformatted with latest Jalopy settings. Stylistic changes 
only.

Modified:
struts/action/trunk/src/java/org/apache/struts/action/Action.java
struts/action/trunk/src/java/org/apache/struts/action/ActionForm.java
struts/action/trunk/src/java/org/apache/struts/action/ActionMapping.java
struts/action/trunk/src/java/org/apache/struts/action/ActionMessages.java
struts/action/trunk/src/java/org/apache/struts/action/ActionRedirect.java
struts/action/trunk/src/java/org/apache/struts/action/ActionServlet.java
struts/action/trunk/src/java/org/apache/struts/action/DynaActionForm.java

struts/action/trunk/src/java/org/apache/struts/action/DynaActionFormClass.java
struts/action/trunk/src/java/org/apache/struts/action/ExceptionHandler.java
struts/action/trunk/src/java/org/apache/struts/action/RequestProcessor.java

Modified: struts/action/trunk/src/java/org/apache/struts/action/Action.java
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/src/java/org/apache/struts/action/Action.java?rev=375989&r1=375988&r2=375989&view=diff
==
--- struts/action/trunk/src/java/org/apache/struts/action/Action.java (original)
+++ struts/action/trunk/src/java/org/apache/struts/action/Action.java Wed Feb  
8 08:38:15 2006
@@ -137,8 +137,7 @@
 try {
 return execute(mapping, form, (HttpServletRequest) request,
 (HttpServletResponse) response);
-}
-catch (ClassCastException e) {
+} catch (ClassCastException e) {
 return null;
 }
 }

Modified: struts/action/trunk/src/java/org/apache/struts/action/ActionForm.java
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/src/java/org/apache/struts/action/ActionForm.java?rev=375989&r1=375988&r2=375989&view=diff
==
--- struts/action/trunk/src/java/org/apache/struts/action/ActionForm.java 
(original)
+++ struts/action/trunk/src/java/org/apache/struts/action/ActionForm.java Wed 
Feb  8 08:38:15 2006
@@ -147,8 +147,7 @@
 public void reset(ActionMapping mapping, ServletRequest request) {
 try {
 reset(mapping, (HttpServletRequest) request);
-}
-catch (ClassCastException e) {
+} catch (ClassCastException e) {
 ; // FIXME: Why would this ever happen except a null
 }
 }
@@ -202,8 +201,7 @@
 public ActionErrors validate(ActionMapping mapping, ServletRequest 
request) {
 try {
 return (validate(mapping, (HttpServletRequest) request));
-}
-catch (ClassCastException e) {
+} catch (ClassCastException e) {
 return (null);
 }
 }

Modified: 
struts/action/trunk/src/java/org/apache/struts/action/ActionMapping.java
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/src/java/org/apache/struts/action/ActionMapping.java?rev=375989&r1=375988&r2=375989&view=diff
==
--- struts/action/trunk/src/java/org/apache/struts/action/ActionMapping.java 
(original)
+++ struts/action/trunk/src/java/org/apache/struts/action/ActionMapping.java 
Wed Feb  8 08:38:15 2006
@@ -106,8 +106,7 @@
 public ActionForward getInputForward() {
 if (getModuleConfig().getControllerConfig().getInputForward()) {
 return (findForward(getInput()));
-}
-else {
+} else {
 return (new ActionForward(getInput()));
 }
 }

Modified: 
struts/action/trunk/src/java/org/apache/struts/action/ActionMessages.java
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/src/java/org/apache/struts/action/ActionMessages.java?rev=375989&r1=375988&r2=375989&view=diff
==
--- struts/action/trunk/src/java/org/apache/struts/action/ActionMessages.java 
(original)
+++ struts/action/trunk/src/java/org/apache/struts/action/ActionMessages.java 
Wed Feb  8 08:38:15 2006
@@ -129,8 +129,7 @@
 item = new ActionMessageItem(list, iCount++, property);
 
 messages.put(property, item);
-}
-else {
+} else {
 list = item.getList();
 }
 
@@ -242,8 +241,7 @@
 
 if (item == null) {
 return (Collections.EMPTY_LIST.iterator());
-}
-else {
+} else {
 return (item.getList().iterator());
 }
 }

Modified: 
struts/action/trunk/src/java/org/apache/struts/action/ActionRedirect.java
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/src/java/org/apache/struts/action/ActionRedirect.java?rev=375989&r1=375988&r2=375989&view=diff
=

Re: Checkstyle (was svn commit: r360442 [1/3] )

2006-02-08 Thread Wendy Smoak
On 2/8/06, Ted Husted <[EMAIL PROTECTED]> wrote:

> One other thing. We now have two style-related configuration files in build
>
> * jalopy-struts.xml
> * struts_checks.xml
>
> :) Can we choose a consistent naming convention for these files? :)

Feel free to rename it, just make the corresponding change in
build/project.properties.  It will show up in all the svn:external
'build' directories the next time you check out.

(And it turns out I'm _not_ imagining the NoClassDefFound errors...
it's the same reason maven-jalopy-plugin 1.4 wouldn't work for us. 
Arnaud can't explain why 1.3.1 is working intermittently, but 1.4 is
clearly broken and he's going to release 1.4.1-SNAPSHOT tonight.)

Thanks,
--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Checkstyle (was svn commit: r360442 [1/3] )

2006-02-08 Thread Ted Husted
Confirmed. That change did the trick for the  "} else {" issues.

In r375966, I re-enabled the CURLY and Whitespace modules, with one other tweak.

Here's a change that Jalopy makes that Checkstyle didn't like:

-   this(key, new Object[]{value0, value1});
+   this(key, new Object[] { value0, value1 });

When Checkstyle sees this, it warns

 "{ followed by whitespace"

IDEA calls The construct is an "array initializer brace". By default
IDEA omits the spaces, but can be configured to add them instead, as
Jalopy is doing. So, I changed the Checkstyle configuration to allow
whitespace in array initializers, but left the checks for the other
tokens intact.

We seem to be good to go now. Using the current Jalopy and Checkstyle
configurations, there are still 1604 errors reported for the Action
subproject, but they all look like errors that need to be tended by a
developer.

One other thing. We now have two style-related configuration files in build

* jalopy-struts.xml
* struts_checks.xml

:) Can we choose a consistent naming convention for these files? :)

I would have done so myself, but I wasn't sure if I could just rename
the file in the main build folder and have the change cascade to the
other subprojects, or whether there was something else to do.

-Ted.


On 2/7/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On 2/7/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>
> > I'd like to get "} else {" to stay on one line before we run Jalopy
> > against the other sub-projects.  That's our convention, inherited
> > from Sun, and it should be a simple change to the configuration file.
>
> I *think* r375843 fixes this.  I'm not certain, because the laptop has
> inexplicably started reporting the same error I mentioned earlier.  It
> looks like Maven isn't setting the classpath before running the Jalopy
> Ant task.  I'll try it tomorrow at work, but I'm running out of
> computers!
>
> --
> Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r375966 - /struts/build/trunk/struts_checks.xml

2006-02-08 Thread husted
Author: husted
Date: Wed Feb  8 06:00:32 2006
New Revision: 375966

URL: http://svn.apache.org/viewcvs?rev=375966&view=rev
Log:
Checkstyle roundup 
* To followup changes to Jalopy configuration in r375843, re-enable CURLY and 
Whitespace checks, but allow whitespace around braces used with array 
initializers.

Modified:
struts/build/trunk/struts_checks.xml

Modified: struts/build/trunk/struts_checks.xml
URL: 
http://svn.apache.org/viewcvs/struts/build/trunk/struts_checks.xml?rev=375966&r1=375965&r2=375966&view=diff
==
--- struts/build/trunk/struts_checks.xml (original)
+++ struts/build/trunk/struts_checks.xml Wed Feb  8 06:00:32 2006
@@ -45,12 +45,8 @@
 - Increase LineLength max to 120 since Jalopy is set to format lines at 
   column 80. Some lines are difficult to both indent and wrap at 80. 
   
-- Disable LeftCurly and RightCurly modules to avoid conflicts with Jalopy. 
-
-- Disable NoWhitespaceAfter module to avoid conflicts wit Jalopy. 
-
-- Disable WhitespaceAround module to avoid conflicts with Jalopy. 
-
+- Omit "ARRAY_INIT" from NoWhitespaceAfter to avoid conflict with Jalopy.
+
 -->
 
 
 
-
+
+
+   
+
+
 
 
 
 
 
 
-
+
 
 
 
@@ -185,9 +186,9 @@
 
 
 
-
+
 
-
+
 
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED]: Project struts-taglib (in module struts) failed

2006-02-08 Thread Stefan Bodewig
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at [EMAIL PROTECTED]

Project struts-taglib has an issue affecting its community integration.
This issue affects 9 projects.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- jakarta-tomcat-5 :  Servlet 2.4 and JSP 2.0 Reference Implementation
- jakarta-velocity-tools :  Velocity-Tools project
- portals-bridges-frameworks :  Support for JSR168 compliant Portlet 
development
- portals-bridges-struts :  Support for JSR168 compliant Portlet development
- portals-bridges-velocity :  Support for JSR168 compliant Portlet 
development
- smartfrog-tomcat :  Smartfrog: Application Deployment from HP Laboratories
- struts-el :  Model 2 Model-View-Controller framework for Servlets and JSP
- struts-sslext :  The Struts SSL Extension for HTTP/HTTPS switching
- struts-taglib :  Model 2 Model-View-Controller framework for Servlets and 
JSP


Full details are available at:
http://vmgump.apache.org/gump/public/struts/struts-taglib/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole output [struts-taglib-08022006.jar] identifier set to project name
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-web-module.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-ejb-module.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-apache-module.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-xdoclet-module.
 -DEBUG- Dependency on jakarta-servletapi-4 exists, no need to add for property 
maven.jar.servlet-api.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-hibernate-module.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-jdo-module.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-jmx-module.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-portlet-module.
 -DEBUG- (Gump generated) Maven Properties in: 
/usr/local/gump/public/workspace/struts/taglib/build.properties
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/usr/local/gump/public/workspace/struts/taglib/project.xml
 -DEBUG- Maven project properties in: 
/usr/local/gump/public/workspace/struts/taglib/project.properties
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/struts/struts-taglib/gump_work/build_struts_struts-taglib.html
Work Name: build_struts_struts-taglib (Type: Build)
Work ended in a state of : Failed
Elapsed: 7 secs
Command Line: maven --offline jar 
[Working Directory: /usr/local/gump/public/workspace/struts/taglib]
CLASSPATH: 
/opt/jdk1.4/lib/tools.jar:/usr/local/gump/public/workspace/struts/taglib/target/classes:/usr/local/gump/packages/antlr-2.7.6/antlr.jar:/usr/local/gump/packages/aspectj-1.2.1rc1/lib/aspectjrt.jar:/usr/local/gump/packages/aspectj-1.2.1rc1/lib/aspectjtools.jar:/usr/local/gump/packages/aspectj-1.2.1rc1/lib/aspectjweaver.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/chain/target/commons-chain-08022006.jar:/usr/local/gump/public/workspace/jakarta-commons/digester/dist/commons-digester.jar:/usr/local/gump/public/workspace/jakarta-commons/fileupload/target/commons-fileupload-08022006.jar:/usr/local/gump/public/workspace/jakarta-commons/io/build/jakarta-commons-io-08022006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-08022006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-08022006.jar:/usr/local/gump/public/workspace/jakarta-commons/validator/dist/commons-validator.jar:/usr/local/gump/public/workspace/httpunit/lib/httpunit.jar:/usr/local/gump/public/workspace/jakarta-oro/jakarta-oro-08022006.jar:/usr/local/gump/public/workspace/jakarta-servletapi-4/lib/servlet.jar:/usr/local/gump/public/workspace/jakarta-velocity/bin/velocity-08022006.jar:/usr/local/gump/public/workspace/jakarta-velocity/bin/velocity-dep-08022006.jar:/usr/local/gump/public/workspace/httpunit/jars/Tidy.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar:/usr/local/gump/packages/maven-xdoclet-plugin/maven-xdoclet-plugin-1.2.3.jar:/usr/local/gump/packages/maven-taglib-plugin/maven-taglib-plugin-1.4.jar:/usr/local/gump/public/workspace/struts/action/target/struts-action-08022006.jar:/usr/local/gump

[EMAIL PROTECTED]: Project struts-taglib (in module struts) failed

2006-02-08 Thread Stefan Bodewig
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at [EMAIL PROTECTED]

Project struts-taglib has an issue affecting its community integration.
This issue affects 9 projects.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- jakarta-tomcat-5 :  Servlet 2.4 and JSP 2.0 Reference Implementation
- jakarta-velocity-tools :  Velocity-Tools project
- portals-bridges-frameworks :  Support for JSR168 compliant Portlet 
development
- portals-bridges-struts :  Support for JSR168 compliant Portlet development
- portals-bridges-velocity :  Support for JSR168 compliant Portlet 
development
- smartfrog-tomcat :  Smartfrog: Application Deployment from HP Laboratories
- struts-el :  Model 2 Model-View-Controller framework for Servlets and JSP
- struts-sslext :  The Struts SSL Extension for HTTP/HTTPS switching
- struts-taglib :  Model 2 Model-View-Controller framework for Servlets and 
JSP


Full details are available at:
http://vmgump.apache.org/gump/public/struts/struts-taglib/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole output [struts-taglib-08022006.jar] identifier set to project name
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-web-module.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-ejb-module.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-apache-module.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-xdoclet-module.
 -DEBUG- Dependency on jakarta-servletapi-4 exists, no need to add for property 
maven.jar.servlet-api.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-hibernate-module.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-jdo-module.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-jmx-module.
 -DEBUG- Dependency on xdoclet exists, no need to add for property 
maven.jar.xdoclet-portlet-module.
 -DEBUG- (Gump generated) Maven Properties in: 
/usr/local/gump/public/workspace/struts/taglib/build.properties
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/usr/local/gump/public/workspace/struts/taglib/project.xml
 -DEBUG- Maven project properties in: 
/usr/local/gump/public/workspace/struts/taglib/project.properties
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/struts/struts-taglib/gump_work/build_struts_struts-taglib.html
Work Name: build_struts_struts-taglib (Type: Build)
Work ended in a state of : Failed
Elapsed: 7 secs
Command Line: maven --offline jar 
[Working Directory: /usr/local/gump/public/workspace/struts/taglib]
CLASSPATH: 
/opt/jdk1.4/lib/tools.jar:/usr/local/gump/public/workspace/struts/taglib/target/classes:/usr/local/gump/packages/antlr-2.7.6/antlr.jar:/usr/local/gump/packages/aspectj-1.2.1rc1/lib/aspectjrt.jar:/usr/local/gump/packages/aspectj-1.2.1rc1/lib/aspectjtools.jar:/usr/local/gump/packages/aspectj-1.2.1rc1/lib/aspectjweaver.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/chain/target/commons-chain-08022006.jar:/usr/local/gump/public/workspace/jakarta-commons/digester/dist/commons-digester.jar:/usr/local/gump/public/workspace/jakarta-commons/fileupload/target/commons-fileupload-08022006.jar:/usr/local/gump/public/workspace/jakarta-commons/io/build/jakarta-commons-io-08022006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-08022006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-08022006.jar:/usr/local/gump/public/workspace/jakarta-commons/validator/dist/commons-validator.jar:/usr/local/gump/public/workspace/httpunit/lib/httpunit.jar:/usr/local/gump/public/workspace/jakarta-oro/jakarta-oro-08022006.jar:/usr/local/gump/public/workspace/jakarta-servletapi-4/lib/servlet.jar:/usr/local/gump/public/workspace/jakarta-velocity/bin/velocity-08022006.jar:/usr/local/gump/public/workspace/jakarta-velocity/bin/velocity-dep-08022006.jar:/usr/local/gump/public/workspace/httpunit/jars/Tidy.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar:/usr/local/gump/packages/maven-xdoclet-plugin/maven-xdoclet-plugin-1.2.3.jar:/usr/local/gump/packages/maven-taglib-plugin/maven-taglib-plugin-1.4.jar:/usr/local/gump/public/workspace/struts/action/target/struts-action-08022006.jar:/usr/local/gump

DO NOT REPLY [Bug 38566] - [Shale] Clay ComponentConfigBean should report missing id

2006-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38566


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 38566] - [Shale] Clay ComponentConfigBean should report missing id

2006-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38566





--- Additional Comments From [EMAIL PROTECTED]  2006-02-08 12:09 ---
Error is on me. I wrote clayForeach instead of clayForEach. Close this bug.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 38566] New: - [Shale] Clay ComponentConfigBean should report missing id

2006-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38566

   Summary: [Shale] Clay ComponentConfigBean should report missing
id
   Product: Struts
   Version: Nightly Build
  Platform: Other
OS/Version: other
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: Shale
AssignedTo: dev@struts.apache.org
ReportedBy: [EMAIL PROTECTED]


When testing clayForEach I inadvertendly misspelled the name in jsfid, which
gave me an exception: java.lang.NullPointerException: The component identified
by jsfid clayForeach could not be found.

It would be nice if ComponentConfigBean reported the erred value also.

Hermod

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]