html:multibox with DynaValidatorForm reset problem

2004-03-08 Thread Lucas Claude
Hello, 
As I'm using html:multibox in my JSP and need to reset the selected items,
I've extended the DynaValidatorForm and written a reset() method to do this.
Although the reset() method is called, the list of selected items is never
reseted. What did I missed? Thanks for help. 
It seems the list managed by the genericForm is not the same as the one
declared in Struts-config.xml : when the check boxes are checked, I recover
them in the Action but did not see them in reset method (the string list is
always empty.) Also , getSelectedItems and setSelectedItems are never called
I tried not to declare selectedItems in Struts-config.xml but an error tells
there is no getter method for property selectedItems. 
ANNEX : Struts-config.xml :
 form-bean name=genericForm type=project.transmissionGenericForm
dynamic=true
  form-property name=selectedItems type=java.lang.String[] /
 /form-bean
Action Form : 
public final class genericForm extends DynaValidatorForm
{
String[] selectedItems = {};

public String[] getSelectedItems()
{
return (this.selectedItems);
}

public void setSelectedItems(String[] _selectedItems)
{
this.selectedItems = _selectedItems;
}

public void reset(ActionMapping mapping, HttpServletRequest request)
{
   if ( this.selectedItems != null )
   {
  String[] empty = {};
  this.selectedItems = empty;
  }
}
JSP : (mutlibox are not attached to calls list !) 
logic:iterate name=genericForm id=calls property=calls
type=clients.ConnectionExt offset=offset length=length
  tr
%  String valueId = String.valueOf(calls.getId());%
td

.etc.
/td
td bgcolor=#C9DBF1 width=34
html:multibox name=genericForm property=selectedItems
value=%=valueId% /html:multibox
/td
tr
 



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



FW: Problem while accessing a JSP page

2003-03-24 Thread Lucas Claude
 I implement a struts WEB application and I have an error while accessing
 the following JSP index page :
 
 %@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic %
 logic:forward name=welcome/
 
 Error : 
 org.apache.jasper.compiler.CompileException: /index.jsp(4,0) Unable to
 load class org.apache.struts.taglib.logic.ForwardTag
 
 However, the file struts.jar (containing the forward tag class) is present
 in the WEB-INF/lib directory of my web app.
 
 What I am missing?
 
 Thanks by advance,
 Claude
 
 
 --
 -- 
 As of February 12th, 2003 Thomson unifies its email addresses on a
 worldwide basis. 
 Please note my new email address: [EMAIL PROTECTED] 
 
 http://www.thomson.net/ 
 


RE: Problem while accessing a JSP page

2003-03-24 Thread Lucas Claude
In the WEB-INF directory of my web app.

I also defined a redirection in this web.xml file : 
  taglib
taglib-uri/WEB-INF/tld/struts-logic.tld/taglib-uri
taglib-location/WEB-INF/tld/struts-logic.tld/taglib-location
  /taglib

Thanks
Claude




As of February 12th, 2003 Thomson unifies its email addresses on a worldwide
basis. 
Please note my new email address: [EMAIL PROTECTED] 

http://www.thomson.net/ 

Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 24 March 2003 17:38
To: [EMAIL PROTECTED]
Subject: RE: Problem while accessing a JSP page


Where is the web.xml?

 
  _  

Thank You
 
Mick Knutson
 
Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _  



-Original Message-
From: Lucas Claude [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 5:31 PM
To: '[EMAIL PROTECTED]'
Subject: FW: Problem while accessing a JSP page


 I implement a struts WEB application and I have an error while accessing
 the following JSP index page :
 
 %@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic %
 logic:forward name=welcome/
 
 Error : 
 org.apache.jasper.compiler.CompileException: /index.jsp(4,0) Unable to
 load class org.apache.struts.taglib.logic.ForwardTag
 
 However, the file struts.jar (containing the forward tag class) is present
 in the WEB-INF/lib directory of my web app.
 
 What I am missing?
 
 Thanks by advance,
 Claude
 
 
 --
 -- 
 As of February 12th, 2003 Thomson unifies its email addresses on a
 worldwide basis. 
 Please note my new email address: [EMAIL PROTECTED] 
 
 http://www.thomson.net/ 
 

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


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