The roles attribute was added to the Struts 1.1 DTD on
June 28, 2002 and thus will only work for nightly
builds after that.  If you are trying to use the roles
attribute with 1.1b1 or nightly builds before June 29
it will not work.

There have been many changes to the DTD for 1.1 since
it is still in beta.  The DTD should be pretty stable
now, but it could change before 1.1 is released if the
developers find it necessary.

BTW, the Struts Console v2.0 is using the latest DTD
as of its release and thus supports all the new
settings.

Hope that helps.

-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/

--- Jean-François_Brassard <[EMAIL PROTECTED]>
wrote:
> Hi James,
> 
> You add roles attributes for struts-config.xml 1.1
> but when i compile a
> found this errors: 
> 
> 
> - Parse Error at line 43 column 138: <Line 43,
> Column 138>: XML-0137:
> (Error) Attribute 'roles' used but not declared.
> 
> org.xml.sax.SAXParseException: <Line 43, Column
> 138>: XML-0137: (Error)
> Attribute 'roles' used but not declared.
> 
> 
> 
> I download the last Struts 1.1, roles attributes it
> is supported? Is is
> a solution for supported this attributes?
> 
> Thank you 
> 
> This is my struts-config.xml:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE struts-config PUBLIC "-//Apache Software
> Foundation//DTD
> Struts Configuration 1.1//EN"
>
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
> <struts-config>
>  <form-beans
> type="org.apache.struts.action.ActionFormBean">
>     <form-bean name="datesForm"
> type="inventaire.DatesForm" />
>     </form-beans>
> 
>       <global-forwards
> type="org.apache.struts.action.ActionForward">
>      </global-forwards>
>     <action-mappings
> type="org.apache.struts.action.ActionMapping">
>       <action path="/test" name="datesForm"
> scope="request"
> type="test.TestAction" roles="1">
>             <forward name="succes"
> path="/test/test.jsp" />
>       </action>
>   </action-mappings>
>   <controller
> contentType="text/html;charset=ISO-8859-1" debug="3"
> locale="true" nocache="true"
> processorClass="controller.MJQRequestProcessor" />
> </struts-config>
> 
> Jean-François Brassard
> Nurun inc.
> 
> tel: 380-8046 ext.211
> [EMAIL PROTECTED]
> 
> 
> -----Message d'origine-----
> De : James Holmes [mailto:[EMAIL PROTECTED]] 
> Envoyé : 9 juillet, 2002 13:57
> À : Struts Users Mailing List
> Objet : [ANNOUNCE] Struts Console v2.0
> 
> Struts Console version 2.0 is now available.
> 
> http://www.jamesholmes.com/struts/
> 
> Download Now:
>
http://www.jamesholmes.com/struts/struts-console-2.0.zip
>   -- OR --
>
http://www.jamesholmes.com/struts/struts-console-2.0.tar.gz
> 
> Struts Console is FREE software.
> 
> This release is adds new features and fixes many
> bugs,
> but most notably adds support for Tiles
> configuration
> files. This release also adds support for all of the
> latest 1.1 config changes.
> 
> Changes with Struts Console v2.0
> 
>   *) Fixed bug where Edit button was not properly
>      being disabled for Properties and Form
> Properties
>      which would allow Edit to be selected when no
> row
>      was highlighted and thus causing exceptions to
> be
>      thrown.
> 
>   *) Fixed bug where Properties and Form Properties
>      tables weren't being updated after a row had
> been
>      edited.
> 
>   *) Fixed bug where Forwards and Exceptions were
> not
>      properly being removed from Actions.
> 
>   *) Fixed bug where changing an Action from using a
>      Form Bean to "<none>" would wrongfully set the
>      Action's "name" attribute to "<none>".
> 
>   *) Fixed bug in standalone app where after
>      performing "Save As" on a file, the GUI
> wouldn't
>      indicate whether or not a file had changes or
> not.
> 
>   *) Fixed bug in Page Converter where an exception
>      was thrown when trying to write files to a
>      different directory.
> 
>   *) Added support for Tiles configuration files.
> 
>   *) Added support for "roles" attribute to Action
>      screen for 1.1 config files.
> 
>   *) Added support for "forwardPattern",
> "pagePattern"
>      and "inputForward" attributes to Controller
>      screen for 1.1 config files.
> 
>   *) Added support for "bundle" attribute to
> Exception
>      screen for 1.1 config files.
> 
>   *) Added ability to move elements up and down in
>      relation to their parent.
> 
>   *) Added ability to specifiy the number of lines
>      between elements in the Ouput Options.
> 
>   *) Added "Key" column to Exceptions tables and
>      make "Key" a required field per the latest DTD
>      for 1.1 config files.
> 
>   *) Updated Data Sources screen to be more
> consistent
>      with the other screens.
> 
>   *) Extensive refactorings to improve performance
> and
>      reduce code size.
> 
> 
> Thanks,
> 
> -james
> [EMAIL PROTECTED]
> http://www.jamesholmes.com/struts/
> 
> __________________________________________________
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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

Reply via email to