RE: java.util.ConcurrentModificationException at org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)

2003-06-22 Thread Johan Kumps
I think there is a thread on your backend writing to the ArrayList at the
same time your action class is reading the sam ArrayList instance.

I also had this problem and I fixed it by synchronizing the Arraylist during
the write(add) process.

synchronized (this.myArrayList) {
this.myArrayList.add(someElement);
}

Hope this helps.

Kind regards,

-Oorspronkelijk bericht-
Van: Fedor Smirnoff [mailto:[EMAIL PROTECTED]
Verzonden: zondag 22 juni 2003 0:06
Aan: Struts Users Mailing List
Onderwerp: Re: java.util.ConcurrentModificationException at
org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)


I am not using 2 threads, I was just saying than in
case of two threds being used, this Exception will be
thrown.  I can find whats the problem in my casei got
this:

 
   
 

 where colorSelected is a String with getter and
 setter in the orderEntry form bean, and colorOptions
is being returned by a getter in the same bean as an
 ArrayList.
 Something like this:

   public ArrayList getColorOptions() {
   colorOptions.add("red");
   colorOptions.add("green");
   return colorOptions;

Exception is being thrown when I am tryin to run it,
however if I return a String[] instead of ArrayList,
evetyhing works great.

Any ideas?

Thaks
Fedor
--- Sandeep Takhar <[EMAIL PROTECTED]> wrote:
> You don't need two threads.
>
> If you are using an iterator and are removing from
> the
> collection you are iterating over - you will get
> this
> error.
>
> If you are using EJB CMP then you need to know how
> relationships work because it is easy to run into
> this.
>
> sandeep
> --- Fedor Smirnoff <[EMAIL PROTECTED]> wrote:
> > Hi I asked similar question and yet did not get an
> > answer, I dont know why its happening in my case,
> > however, I know that
> ConcurrentModificationException
> > is thrown when a thread is trying to modify a
> > collection while another thread is still iterating
> > it.
> > Dont know if it helps you or not sorry.
> >
> > Sincerely,
> > Fedor
> >
> > --- Michael Ruppin <[EMAIL PROTECTED]> wrote:
> > > I'm getting the following, using 1.1-rc1
> > > ActionMessages.add(ActionMessages messages):
> > >
> > > [6/20/03 11:15:23:344 CDT]  2d4fa5a WebGroup
>
> > E
> > > SRVE0026E: [Servlet Error]-[AxisPortalServlet]:
> > > java.util.ConcurrentModificationException
> > >   at
> > >
> >
>
java.util.AbstractList$Itr.checkForComodification(AbstractList.java(Inlined
> > > Compiled Code))
> > >   at
> > >
> >
>
java.util.AbstractList$Itr.next(AbstractList.java(Compiled
> > > Code))
> > >   at
> > >
> >
>
org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)
> > >
> > > __
> > > Do you Yahoo!?
> > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > http://sbc.yahoo.com
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> >
> >
> > __
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> >
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
>
>
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.488 / Virus Database: 287 - Release Date: 5/06/2003


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



htm:checkbox default value

2003-03-13 Thread Johan Kumps
Hi all,

I would like to use a checkbox on one of my pages. Default it should be
checked.

Please consider following :

ActionForm :

...
private boolean addToMailingList = true;
...
public boolean isAddToMailingList() {
return addToMailingList;
}

public void setAddToMailingList(boolean addToMailingList) {
this.addToMailingList = addToMailingList;
}
...
public void reset (ActionMapping mapping, HttpServletRequest request){
this.addToMailingList = false;
}

Code above works fine but how can I specify the default value is checked.
Using the code above the default value is false.

Any ideas what I'm doing wrong?

Please help me as soon.

Kind regards,
---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003


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



java.lang.IllegalArgumentException: No bean specified

2003-03-09 Thread Johan Kumps
Hi all,

I have following problem :

java.lang.IllegalArgumentException: No bean specified
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUti
ls.java:816)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:846)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:978)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:779)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:246)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)

Any ideas of what is going wrong here?

Kind regards and thanks in advance,
---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003


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



RE: Validation problem

2003-02-20 Thread Johan Kumps
no app did not complain

-Oorspronkelijk bericht-
Van: Ian Hunter [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 20 februari 2003 22:55
Aan: Struts Users Mailing List
Onderwerp: Re: Validation problem


Did the  tag cause your app to complain about not having
the resources loaded?

- Original Message -
From: "Johan Kumps" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 4:51 PM
Subject: RE: Validation problem


> I implemented your second option.
>
> -Oorspronkelijk bericht-
> Van: Ian Hunter [mailto:[EMAIL PROTECTED]]
> Verzonden: donderdag 20 februari 2003 22:35
> Aan: Struts Users Mailing List
> Onderwerp: Re: Validation problem
>
>
> Did you switch to ActionErrors.GLOBAL_KEY or change your JSP code?
>
> 1)  If you changed your JSP to  or
> something, keep this in mind: I use a class called "Constants" for each
web
> app and refer to Constants.LOGINERROR_KEY in my code, but I have to make
> sure that my JSP has the correct text.  What is the name of the
property/key
> you're assigning the error to?
>
> 2)  If you shifted to ActionErrors.GLOBAL_KEY, are you sure your locale is
> right and your Resource bundle has the appropriate text key?
>
> Try throwing this code in your JSP:
>
>  scope="application">
>   
> ERROR:  Language independent messages not loaded -- contact
> administrator
> for assistance.
>   
> 
>
>
> - Original Message -
> From: "Johan Kumps" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, February 20, 2003 4:25 PM
> Subject: RE: Validation problem
>
>
> > Thanks for your help.
> >
> > My jsp is displaying : ???nl_BE.error.invalid.email???
> >
> > Still something wrong. It seems my key is not found.
> >
> > Can you help me again please?
> >
> > Kind regards,
> >
> > -Oorspronkelijk bericht-
> > Van: Ian Hunter [mailto:[EMAIL PROTECTED]]
> > Verzonden: donderdag 20 februari 2003 22:15
> > Aan: Struts Users Mailing List
> > Onderwerp: Re: Validation problem
> >
> >
> > When you add your error message to the errors object, you are specifying
> > Action.ERROR_KEY instead of ActionErrors.GLOBAL_ERROR -- so you'd have
to
> do
> > something like
> >
> >  to get that SPECIFIC error.  If you
> > switch to ActionErrors.GLOBAL_ERROR it will display all of them with
just
> > 
> >
> >
> > - Original Message -
> > From: "Johan Kumps" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Thursday, February 20, 2003 4:02 PM
> > Subject: Validation problem
> >
> >
> > > Hi all,
> > >
> > > I have a problem displaying error messages. Why is my message not
> > displayed?
> > > Am I doing somthing wrong?
> > >
> > > Please help me, I'm loosing time with this one...
> > >
> > > Please consider following code :
> > >
> > > Form class :
> > >
> > > ...
> > >
> > > public ActionErrors validate(ActionMapping mapping, HttpServletRequest
> > > request) {
> > > ActionErrors errors = new ActionErrors();
> > >
> > > if(email == null || !checkEmail(email)) {
> > > errors.add(Action.ERROR_KEY, new
> > > ActionError("error.invalid.email"));
> > > }
> > > return errors;
> > > }
> > >
> >
> > > JSP :
> > >
> > > 
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003
> >
> > ---
> > This mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe

RE: Validation problem

2003-02-20 Thread Johan Kumps
I implemented your second option.

-Oorspronkelijk bericht-
Van: Ian Hunter [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 20 februari 2003 22:35
Aan: Struts Users Mailing List
Onderwerp: Re: Validation problem


Did you switch to ActionErrors.GLOBAL_KEY or change your JSP code?

1)  If you changed your JSP to  or
something, keep this in mind: I use a class called "Constants" for each web
app and refer to Constants.LOGINERROR_KEY in my code, but I have to make
sure that my JSP has the correct text.  What is the name of the property/key
you're assigning the error to?

2)  If you shifted to ActionErrors.GLOBAL_KEY, are you sure your locale is
right and your Resource bundle has the appropriate text key?

Try throwing this code in your JSP:


  
ERROR:  Language independent messages not loaded -- contact
administrator
for assistance.
  



- Original Message -----
From: "Johan Kumps" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 4:25 PM
Subject: RE: Validation problem


> Thanks for your help.
>
> My jsp is displaying : ???nl_BE.error.invalid.email???
>
> Still something wrong. It seems my key is not found.
>
> Can you help me again please?
>
> Kind regards,
>
> -Oorspronkelijk bericht-
> Van: Ian Hunter [mailto:[EMAIL PROTECTED]]
> Verzonden: donderdag 20 februari 2003 22:15
> Aan: Struts Users Mailing List
> Onderwerp: Re: Validation problem
>
>
> When you add your error message to the errors object, you are specifying
> Action.ERROR_KEY instead of ActionErrors.GLOBAL_ERROR -- so you'd have to
do
> something like
>
>  to get that SPECIFIC error.  If you
> switch to ActionErrors.GLOBAL_ERROR it will display all of them with just
> 
>
>
> - Original Message -
> From: "Johan Kumps" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, February 20, 2003 4:02 PM
> Subject: Validation problem
>
>
> > Hi all,
> >
> > I have a problem displaying error messages. Why is my message not
> displayed?
> > Am I doing somthing wrong?
> >
> > Please help me, I'm loosing time with this one...
> >
> > Please consider following code :
> >
> > Form class :
> >
> > ...
> >
> > public ActionErrors validate(ActionMapping mapping, HttpServletRequest
> > request) {
> > ActionErrors errors = new ActionErrors();
> >
> > if(email == null || !checkEmail(email)) {
> > errors.add(Action.ERROR_KEY, new
> > ActionError("error.invalid.email"));
> > }
> > return errors;
> > }
> >
>
> > JSP :
> >
> > 
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003
>
> ---
> This mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003

---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003


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




RE: Validation problem

2003-02-20 Thread Johan Kumps
Thanks for your help.

My jsp is displaying : ???nl_BE.error.invalid.email???

Still something wrong. It seems my key is not found.

Can you help me again please?

Kind regards,

-Oorspronkelijk bericht-
Van: Ian Hunter [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 20 februari 2003 22:15
Aan: Struts Users Mailing List
Onderwerp: Re: Validation problem


When you add your error message to the errors object, you are specifying
Action.ERROR_KEY instead of ActionErrors.GLOBAL_ERROR -- so you'd have to do
something like

 to get that SPECIFIC error.  If you
switch to ActionErrors.GLOBAL_ERROR it will display all of them with just



- Original Message -
From: "Johan Kumps" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 4:02 PM
Subject: Validation problem


> Hi all,
>
> I have a problem displaying error messages. Why is my message not
displayed?
> Am I doing somthing wrong?
>
> Please help me, I'm loosing time with this one...
>
> Please consider following code :
>
> Form class :
>
> ...
>
> public ActionErrors validate(ActionMapping mapping, HttpServletRequest
> request) {
> ActionErrors errors = new ActionErrors();
>
> if(email == null || !checkEmail(email)) {
> errors.add(Action.ERROR_KEY, new
> ActionError("error.invalid.email"));
> }
> return errors;
> }
>

> JSP :
>
> 


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003

---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003


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




Validation problem

2003-02-20 Thread Johan Kumps
Hi all,

I have a problem displaying error messages. Why is my message not displayed?
Am I doing somthing wrong?

Please help me, I'm loosing time with this one...

Please consider following code :

struts-config.xml :

...


...

  

...

Form class :

...

public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request) {
ActionErrors errors = new ActionErrors();

if(email == null || !checkEmail(email)) {
errors.add(Action.ERROR_KEY, new
ActionError("error.invalid.email"));
}
return errors;
}

private boolean checkEmail (String email) {
if ((email != null) && (email.trim().length() != 0)){
String stukNaAt = null;
if (email.indexOf("@") != -1){
stukNaAt = email.substring(email.indexOf("@"));
} else {
return false;
}
if ((email.indexOf("@") != email.lastIndexOf("@")) ||
(email.indexOf(" ") != -1) ||
(stukNaAt.indexOf(".") == -1)
(stukNaAt.indexOf(".") == stukNaAt.length() -1) ||
(email.trim().charAt(email.trim().length()-1) =='.') ) {
return false;
}
} else {
return false;
}
return true;
}

...

ApplicationResources.properties in /WEB-INF/classes

error.invalid.email=Please provide us with a valid e-mail address.

JSP :




---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003


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




Email validation example (Struts newbie)

2003-02-19 Thread Johan Kumps
Hi all,

I'm having problems with validation of an field.

Can you give me an example of how to use ? Please give me a
code snippet of the form, the action, jsp, properties file and
struts-config.

Thanks in advance,
Johan
---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003


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




RE: HELP! get request parameter from a custom tag

2003-02-14 Thread Johan Kumps
This code snippet should do the job.

String value = pageContext.getRequest().getParameter("paramname");

Kind regards

-Oorspronkelijk bericht-
Van: Kevin Williams [mailto:[EMAIL PROTECTED]]
Verzonden: zaterdag 15 februari 2003 0:23
Aan: [EMAIL PROTECTED]
Onderwerp: HELP! get request parameter from a custom tag


 Hi,

I apologize if this already was posted...I posted this earlier today, but
did not get see it posted...

If anyone can help me with this, it's stopping me from finishing key
portions of my applicaiton!

 I'm new to struts, and I am trying to retrieve a parameter that is in
 the request scope from a tag library.  Currently, I can print out the
 parameter on my jsp page using request.getParameter(name), but in my
 pageContext object in my tag library, I don't have the same list or
 request paramters, all I have are the Struts Form object, Bean object,
 and Error object.

 Somewhere Struts has overriden the default request object, and
 implemented it's own before my custom tag is called.  Would someone
 please tell me how I can retrieve the JSP page's request attributes in my
custom tag?

 Thanks in advance,

 Kevin Williams




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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003

---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003


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




Tag question

2003-02-12 Thread Johan Kumps
Title: Gletsjer



Hi all,
I'm using the jakarta mailer taglib. But I 
have a problem with specifiying the path to the file to be attached to the 
e-mail I send.
Please consider following code :
<%String path = "data/myapp" + "/myFile.txt";%>
    to="you@mydomain.be" from="me@mydomain.be" 
subject="mail taglib" server="mailhost"> 
MyMessage 
 
file='<%=path%>'/> 
    
Kind regards,


RE: no selection (Struts 1.1b2)

2003-01-31 Thread Johan Kumps
Thanks for your help.

It's working fine now.

Kind regards

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 31 januari 2003 23:03
Aan: [EMAIL PROTECTED]
Onderwerp: RE:  no selection (Struts 1.1b2)


You override the reset method to set unchecked value.

1. You know how many elements in your array, so instantiates your array.
2. You know the unchecked value of each element, so do a loop and set
default value to each element.



Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Johan Kumps [mailto:[EMAIL PROTECTED]] 
Sent: January 31, 2003 4:58 PM
To: Struts Users Mailing List
Subject: RE:  no selection (Struts 1.1b2)

Sorry,

Can you give an example?

Johan

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 31 januari 2003 22:57
Aan: [EMAIL PROTECTED]
Onderwerp: RE:  no selection (Struts 1.1b2)


Then set unchecked value.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Johan Kumps [mailto:[EMAIL PROTECTED]] 
Sent: January 31, 2003 4:53 PM
To: Struts Users Mailing List
Subject: RE:  no selection (Struts 1.1b2)

I do not have a default value. The user can choose between two options. He
can select both checkboxes, one of both or none.

What is going wrong?

Johan

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 31 januari 2003 22:49
Aan: [EMAIL PROTECTED]
Onderwerp: RE:  no selection (Struts 1.1b2)


In reset method of your ActionForm, set default value of checkbox.

Regards,


PQ

"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Johan Kumps [mailto:[EMAIL PROTECTED]]
Sent: January 31, 2003 4:47 PM
To: Struts mailing
Subject:  no selection (Struts 1.1b2)

Hi all,

It seems that my setXxx method in my form bean is not called when I do not
check any checkboxes in the multibox.

Please consider following code :

...




...


...
private String[] myHandlers = {};
...
public void setMyHandlers (String[] myHandlers) {
this.myHandlers = myHandlers;
}

public String[] getMyHandlers() {
return this.myHandlers;
}
...

Am I doing somthis wrong here?

Please help me with this one.

Kind regards,
Johan
---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003

---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003

---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003

---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003


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




RE: no selection (Struts 1.1b2)

2003-01-31 Thread Johan Kumps
Sorry,

Can you give an example?

Johan

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 31 januari 2003 22:57
Aan: [EMAIL PROTECTED]
Onderwerp: RE:  no selection (Struts 1.1b2)


Then set unchecked value.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-----
From: Johan Kumps [mailto:[EMAIL PROTECTED]] 
Sent: January 31, 2003 4:53 PM
To: Struts Users Mailing List
Subject: RE:  no selection (Struts 1.1b2)

I do not have a default value. The user can choose between two options. He
can select both checkboxes, one of both or none.

What is going wrong?

Johan

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 31 januari 2003 22:49
Aan: [EMAIL PROTECTED]
Onderwerp: RE:  no selection (Struts 1.1b2)


In reset method of your ActionForm, set default value of checkbox.

Regards,


PQ

"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Johan Kumps [mailto:[EMAIL PROTECTED]]
Sent: January 31, 2003 4:47 PM
To: Struts mailing
Subject:  no selection (Struts 1.1b2)

Hi all,

It seems that my setXxx method in my form bean is not called when I do not
check any checkboxes in the multibox.

Please consider following code :

...




...


...
private String[] myHandlers = {};
...
public void setMyHandlers (String[] myHandlers) {
this.myHandlers = myHandlers;
}

public String[] getMyHandlers() {
return this.myHandlers;
}
...

Am I doing somthis wrong here?

Please help me with this one.

Kind regards,
Johan
---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003

---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003

---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003


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




RE: no selection (Struts 1.1b2)

2003-01-31 Thread Johan Kumps
I do not have a default value. The user can choose between two options. He
can select both checkboxes, one of both or none.

What is going wrong?

Johan

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 31 januari 2003 22:49
Aan: [EMAIL PROTECTED]
Onderwerp: RE:  no selection (Struts 1.1b2)


In reset method of your ActionForm, set default value of checkbox.

Regards,


PQ

"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-----
From: Johan Kumps [mailto:[EMAIL PROTECTED]]
Sent: January 31, 2003 4:47 PM
To: Struts mailing
Subject:  no selection (Struts 1.1b2)

Hi all,

It seems that my setXxx method in my form bean is not called when I do not
check any checkboxes in the multibox.

Please consider following code :

...




...


...
private String[] myHandlers = {};
...
public void setMyHandlers (String[] myHandlers) {
this.myHandlers = myHandlers;
}

public String[] getMyHandlers() {
return this.myHandlers;
}
...

Am I doing somthis wrong here?

Please help me with this one.

Kind regards,
Johan
---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003

---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003


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




no selection (Struts 1.1b2)

2003-01-31 Thread Johan Kumps
Hi all,

It seems that my setXxx method in my form bean is not called when I do not
check any checkboxes in the multibox.

Please consider following code :

...




...


...
private String[] myHandlers = {};
...
public void setMyHandlers (String[] myHandlers) {
this.myHandlers = myHandlers;
}

public String[] getMyHandlers() {
return this.myHandlers;
}
...

Am I doing somthis wrong here?

Please help me with this one.

Kind regards,
Johan
---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003


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




RE: DispatchAction error handling how to?

2003-01-26 Thread Johan Kumps
Could you please help me with an example of error handling using a
dispatchAction using the declarative exception handling?

Many thanks in advance,

Kind regards

-Oorspronkelijk bericht-
Van: Johan Kumps [mailto:[EMAIL PROTECTED]]
Verzonden: zondag 26 januari 2003 22:29
Aan: Struts Users Mailing List
Onderwerp: RE: DispatchAction error handling how to?


Hi,

No I'm using beta 2 of Struts. I'll try to use beta 3

I keep you in touch.

Kind regards,

-Oorspronkelijk bericht-
Van: Rick Reumann [mailto:[EMAIL PROTECTED]]
Verzonden: zondag 26 januari 2003 22:27
Aan: Struts Users Mailing List
Onderwerp: Re: DispatchAction error handling how to?


On Sun, Jan 26,'03 (09:43 PM GMT+0100), Johan wrote:

> Hi all,
>
> Can somebody please trow a light on error handling using a
> DispatchAction. The class org.apache.struts.actions.DispatchAction in
> Struts  1.1b2 is catching an InvocationTargetException. So when the
> 'dispatchMethod' invokes a method that throws an exception, it's
> catched here.
>
> How can I do some specific error handling? I don't want to code any
> catches in my action classes. How can I catch an exception in my
> DispatchAction?
>
> Why is org.apache.struts.actions.DispatchAction catching an
> InvocationTargetException?

Are you using beta3 of struts1.1? If so you could use declarative
exception handling in your config.xml just like you would for any other
action. It works perfectly. Let me know if you have any more questions.


--
Rick

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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003

---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003

---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003


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




RE: DispatchAction error handling how to?

2003-01-26 Thread Johan Kumps
Hi,

No I'm using beta 2 of Struts. I'll try to use beta 3

I keep you in touch.

Kind regards,

-Oorspronkelijk bericht-
Van: Rick Reumann [mailto:[EMAIL PROTECTED]]
Verzonden: zondag 26 januari 2003 22:27
Aan: Struts Users Mailing List
Onderwerp: Re: DispatchAction error handling how to?


On Sun, Jan 26,'03 (09:43 PM GMT+0100), Johan wrote:

> Hi all,
>
> Can somebody please trow a light on error handling using a
> DispatchAction. The class org.apache.struts.actions.DispatchAction in
> Struts  1.1b2 is catching an InvocationTargetException. So when the
> 'dispatchMethod' invokes a method that throws an exception, it's
> catched here.
>
> How can I do some specific error handling? I don't want to code any
> catches in my action classes. How can I catch an exception in my
> DispatchAction?
>
> Why is org.apache.struts.actions.DispatchAction catching an
> InvocationTargetException?

Are you using beta3 of struts1.1? If so you could use declarative
exception handling in your config.xml just like you would for any other
action. It works perfectly. Let me know if you have any more questions.


--
Rick

--
To unsubscribe, e-mail:

For additional commands, e-mail:



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003

---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DispatchAction error handling how to?

2003-01-26 Thread Johan Kumps
Hi all,

Can somebody please trow a light on error handling using a  DispatchAction.
The class org.apache.struts.actions.DispatchAction in Struts  1.1b2 is
catching an InvocationTargetException. So when the 'dispatchMethod' invokes
a method that throws an exception, it's catched here.

How can I do some specific error handling? I don't want to code any catches
in my action classes. How can I catch an exception in my DispatchAction?

Why is org.apache.struts.actions.DispatchAction catching an
InvocationTargetException?

Kind regards,
---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Exception handling - DispatchAction

2003-01-23 Thread Johan Kumps
Hi all,

I have following problem.

In my Action class I'm calling a bussiness method that can throws a checked
exception. I want to display this exception to the user on a user friendly
page without the stacktrace. Because I have many action classes I don't want
to code try catch blocks in all these action classes to catch the checked
exception. I'm using a dispatch action so I can code several bussiness
actions in one action class.

Any ideas to solve my problem?

Kind regards,

Johan
---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003


--
To unsubscribe, e-mail:   
For additional commands, e-mail: