Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)
Bobby Mitch wrote: yes, but i wrote that with this XML file or without this XML file, that is with annotations only (@Validation etc), i still get the same error. So i do not see the point of me trying to change that file. And I want this to work with annotations too. Thanks anyway for helping. If you have the default ValidationInterceptor in your stack, it will still attempt to read any validation XML file it detects for the invocation. (even if using annotations). So at least ensure they're all removed. It is possible the problem is occurring in the default validators file. Anyway, I'm just guessing. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts 1 Personal Application Resource
Hi everybody. I have to menage a string table (something like the application resource), that is a customer customized table. The same resource message could be different, depending on the installation. I figure out some solution (xml file, DB table) but i'd like to know if there something in the Struts framework to do this. Any help would be greatly appreciated, so, thanks in advance. Ciao, marcello - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1 Personal Application Resource
2008/9/10 Marcello Savino [EMAIL PROTECTED]: I have to menage a string table (something like the application resource), that is a customer customized table. The same resource message could be different, depending on the installation. Is it some sort of configuration stored in a DB? If yes, take a look at Commons Configuration: http://commons.apache.org/configuration/apidocs/org/apache/commons/configuration/DatabaseConfiguration.html HTH Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 1 Personal Application Resource
No it's a string customer table I mean the same application must show differents strings depending on the installazion Ie.: some customer prefer the descriptor Main store and others prefer Main location on the same place of the same web page. -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2008 9:31 AM To: Struts Users Mailing List Subject: Re: Struts 1 Personal Application Resource 2008/9/10 Marcello Savino [EMAIL PROTECTED]: I have to menage a string table (something like the application resource), that is a customer customized table. The same resource message could be different, depending on the installation. Is it some sort of configuration stored in a DB? If yes, take a look at Commons Configuration: http://commons.apache.org/configuration/apidocs/org/apache/com mons/configuration/DatabaseConfiguration.html HTH Antonio - 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]
Re: Struts 1 Personal Application Resource
2008/9/10 Marcello Savino [EMAIL PROTECTED]: No it's a string customer table I mean the same application must show differents strings depending on the installazion Ie.: some customer prefer the descriptor Main store and others prefer Main location on the same place of the same web page. So it is a resource bundle that loads localization messages from a DB. Take a look at this: http://sadun-util.sourceforge.net/api/org/sadun/util/DatabaseResourceBundle.html Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)
ok, well for your information I asked about that problem in the JBoss problem, thinking that the problem could come from JBoss, and I just posted the question on the XWORK forum where i hope they will help me fix it. http://forums.opensymphony.com/thread.jspa?threadID=454261 http://www.jboss.com/index.html?module=bbop=viewtopicp=4175490#4175490 It seems that it is a problem related to xwork, not Struts 2 itself. What do you think ? --- On Tue, 9/9/08, Jeromy Evans [EMAIL PROTECTED] wrote: From: Jeromy Evans [EMAIL PROTECTED] Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file) To: Struts Users Mailing List user@struts.apache.org Date: Tuesday, September 9, 2008, 11:10 PM Bobby Mitch wrote: yes, but i wrote that with this XML file or without this XML file, that is with annotations only (@Validation etc), i still get the same error. So i do not see the point of me trying to change that file. And I want this to work with annotations too. Thanks anyway for helping. If you have the default ValidationInterceptor in your stack, it will still attempt to read any validation XML file it detects for the invocation. (even if using annotations). So at least ensure they're all removed. It is possible the problem is occurring in the default validators file. Anyway, I'm just guessing. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sorting with displaytag issue due to theme=ajax
I've changed the order and now that error doesn't appear, but it doesn't work yet... I have done a test with this page: %@ page import=ads.web.action.UsuarioAction% %@ taglib uri=http://displaytag.sf.net; prefix=display % % Object result = session.getAttribute( result ); UsuarioAction ac = new UsuarioAction(); System.out.println(ac.getTodosUsuarios()); session.setAttribute( result, ac.getTodosUsuarios() ); % html head script language='javascript' src=src/javascript/jquery.js type=text/javascript/script script src=src/javascript/displayTagAjax.js /script /head body div id=ajxDspId display:table name=sessionScope.result pagesize=2 htmlId=dispTable sort=list display:column property=idUsuario title=ID / display:column property=nombre sortable=true/ display:column property=mail sortable=true/ /display:table /div !--- end display tag -- /body /html If after the login my action goes to the test.page directly, it works properly and the links are changed. But if after the login I go to a new page with a menu: %@ page pageEncoding=ISO-8859-1 % %@ taglib prefix=s uri=/struts-tags % html head script language='javascript' src=src/javascript/jquery.js type=text/javascript/script script src=src/javascript/displayTagAjax.js/script script src=src/javascript/optiontransferselect.js type=text/javascript/ s:head theme=ajax/ link rel=stylesheet media=all type=text/css href=src/css/default.css / script src=src/javascript/stuHover.js type=text/javascript/script /head body s:div id=divPagina s:url id=buscarUsuario action='IrBuscarUsuario'/ s:div id=divMenu img class=logo src=.../../src/images/logo.jpg/ brbr ul id=menu li class=subUsuarios ul lis:a id=linkBuscarUsuario theme=ajax href=%{buscarUsuario} targets=divContenedor showLoadingText=falseBuscar usuario/s:a/li /ul /li /ul /s:div s:div id=divContenedor theme=ajax /s:div /s:div script /script /body /html And when I go then to the test page (which must be shown in divContenedor), the links are not displayed ok and when I click on sorting or pagination, then it works but the result is not displayed in the divContenedor. It is opened in a new page and my menu is lost! If I check with firebug, all js are loaded (in the menu page and in the test page). To: user@struts.apache.org From: [EMAIL PROTECTED] Subject: Re: Sorting with displaytag issue due to theme=ajax Date: Tue, 9 Sep 2008 18:08:57 -0400 Francisco Exposito wrote: Also I've tried to use displayTagAjax. In order to use it, I define in the main page:script src=src/javascript/displayTagAjax.js type=text/javascript/ script src=src/javascript/jquery.js type=text/javascript/But when I reload this page, I receive the error jQuery is not defined and the error seems to be in the line of displayTagAjax.js: jQuery(function($) { changeLinks(); }); I assume it was a typo, since in a later email you have the order corrected. But just in case it's the obvious thing: since displayTagAjax.js conatains a call to jQuery, the jquery.js script needs to be loaded first... L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ ¿Sigue el calor? Consulta MSN El tiempo http://eltiempo.es.msn.com/
RE: Sorting with displaytag issue due to theme=ajax
There are too many differences between your two examples. You should build up the functionality from one to another until it breaks and start from there. One thing I'd comment is that if your divs are just containers then don't use the s:div... tag, as with the ajax theme they're really designed for something else--just use HTML divs. I'd try that first, then start to isolate the problem one step at a time. Dave --- On Wed, 9/10/08, Francisco Exposito wrote: I've changed the order and now that error doesn't appear, but it doesn't work yet... I have done a test with this page: %@ page import=ads.web.action.UsuarioAction% %@ taglib uri=http://displaytag.sf.net; prefix=display % % Object result = session.getAttribute( result ); UsuarioAction ac = new UsuarioAction(); System.out.println(ac.getTodosUsuarios()); session.setAttribute( result, ac.getTodosUsuarios() ); % html head script language='javascript' src=src/javascript/jquery.js type=text/javascript/script script src=src/javascript/displayTagAjax.js /script /head body div id=ajxDspId display:table name=sessionScope.result pagesize=2 htmlId=dispTable sort=list display:column property=idUsuario title=ID / display:column property=nombre sortable=true/ display:column property=mail sortable=true/ /display:table /div !--- end display tag -- /body /html If after the login my action goes to the test.page directly, it works properly and the links are changed. But if after the login I go to a new page with a menu: %@ page pageEncoding=ISO-8859-1 % %@ taglib prefix=s uri=/struts-tags % html head script language='javascript' src=src/javascript/jquery.js type=text/javascript/script script src=src/javascript/displayTagAjax.js/script script src=src/javascript/optiontransferselect.js type=text/javascript/ s:head theme=ajax/ link rel=stylesheet media=all type=text/css href=src/css/default.css / script src=src/javascript/stuHover.js type=text/javascript/script /head body s:div id=divPagina s:url id=buscarUsuario action='IrBuscarUsuario'/ s:div id=divMenu img class=logo src=.../../src/images/logo.jpg/ brbr ul id=menu li class=subUsuarios ul lis:a id=linkBuscarUsuario theme=ajax href=%{buscarUsuario} targets=divContenedor showLoadingText=falseBuscar usuario/s:a/li /ul /li /ul /s:div s:div id=divContenedor theme=ajax /s:div /s:div script /script /body /html And when I go then to the test page (which must be shown in divContenedor), the links are not displayed ok and when I click on sorting or pagination, then it works but the result is not displayed in the divContenedor. It is opened in a new page and my menu is lost! If I check with firebug, all js are loaded (in the menu page and in the test page). To: user@struts.apache.org From: [EMAIL PROTECTED] Subject: Re: Sorting with displaytag issue due to theme=ajax Date: Tue, 9 Sep 2008 18:08:57 -0400 Francisco Exposito wrote: Also I've tried to use displayTagAjax. In order to use it, I define in the main page: script src=src/javascript/displayTagAjax.js type=text/javascript/ script src=src/javascript/jquery.js type=text/javascript/But when I reload this page, I receive the error jQuery is not defined and the error seems to be in the line of displayTagAjax.js: jQuery(function($) { changeLinks(); }); I assume it was a typo, since in a later email you have the order corrected. But just in case it's the obvious thing: since displayTagAjax.js conatains a call to jQuery, the jquery.js script needs to be loaded first... L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ ¿Sigue el calor? Consulta MSN El tiempo http://eltiempo.es.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)
Bobby Mitch wrote: ok, well for your information I asked about that problem in the JBoss problem, thinking that the problem could come from JBoss, and I just posted the question on the XWORK forum where i hope they will help me fix it. http://forums.opensymphony.com/thread.jspa?threadID=454261 http://www.jboss.com/index.html?module=bbop=viewtopicp=4175490#4175490 It seems that it is a problem related to xwork, not Struts 2 itself. What do you think ? It is probably in Xwork, but Struts2 is so tightly coupled to Xwork it's much the same thing. Most S2 developers can change Xwork code. Looks like you received from good help in the jboss forum. Now that you know where the error occurs, place a breakpoint inside parseValidators to find out *exactly* which URI is causing the problem. IteratorURL urls = ClassLoaderUtil.getResources(, ValidatorFactory.class, false); while (urls.hasNext()) { URL u = urls.next(); File f = new File(u.toURI()); It's strange that getResources() is returning a non-file url. What URL is it returning that causes the exception to be thrown? (normally you get these exceptions when opening a FileInputSream on, say, an http: URL) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sorting with displaytag issue due to theme=ajax
The unique difference I see is that the correct one doesn't use ajax, isn't it? As I've seen, the javascripts are executed only when the menu page is loaded. When I go to the secondary page, it is not executed. I've created a button adding it a call to the function changeLoads (which is inside the displayTagAjax.js) and when I click on the button, then the references are changed. But it should be executed automatically. Date: Wed, 10 Sep 2008 03:37:30 -0700 From: [EMAIL PROTECTED] Subject: RE: Sorting with displaytag issue due to theme=ajax To: user@struts.apache.org There are too many differences between your two examples. You should build up the functionality from one to another until it breaks and start from there. One thing I'd comment is that if your divs are just containers then don't use the s:div... tag, as with the ajax theme they're really designed for something else--just use HTML divs. I'd try that first, then start to isolate the problem one step at a time. Dave --- On Wed, 9/10/08, Francisco Exposito wrote: I've changed the order and now that error doesn't appear, but it doesn't work yet... I have done a test with this page: %@ page import=ads.web.action.UsuarioAction% %@ taglib uri=http://displaytag.sf.net; prefix=display % % Object result = session.getAttribute( result ); UsuarioAction ac = new UsuarioAction(); System.out.println(ac.getTodosUsuarios()); session.setAttribute( result, ac.getTodosUsuarios() ); % html head script language='javascript' src=src/javascript/jquery.js type=text/javascript/script script src=src/javascript/displayTagAjax.js /script /head body div id=ajxDspId display:table name=sessionScope.result pagesize=2 htmlId=dispTable sort=list display:column property=idUsuario title=ID / display:column property=nombre sortable=true/ display:column property=mail sortable=true/ /display:table /div !--- end display tag -- /body /html If after the login my action goes to the test.page directly, it works properly and the links are changed. But if after the login I go to a new page with a menu: %@ page pageEncoding=ISO-8859-1 % %@ taglib prefix=s uri=/struts-tags % html head script language='javascript' src=src/javascript/jquery.js type=text/javascript/script script src=src/javascript/displayTagAjax.js/script script src=src/javascript/optiontransferselect.js type=text/javascript/ s:head theme=ajax/ link rel=stylesheet media=all type=text/css href=src/css/default.css / script src=src/javascript/stuHover.js type=text/javascript/script /head body s:div id=divPagina s:url id=buscarUsuario action='IrBuscarUsuario'/ s:div id=divMenu img class=logo src=.../../src/images/logo.jpg/ brbr ul id=menu li class=subUsuarios ul lis:a id=linkBuscarUsuario theme=ajax href=%{buscarUsuario} targets=divContenedor showLoadingText=falseBuscar usuario/s:a/li /ul /li /ul /s:div s:div id=divContenedor theme=ajax /s:div /s:div script /script /body /html And when I go then to the test page (which must be shown in divContenedor), the links are not displayed ok and when I click on sorting or pagination, then it works but the result is not displayed in the divContenedor. It is opened in a new page and my menu is lost! If I check with firebug, all js are loaded (in the menu page and in the test page). To: user@struts.apache.org From: [EMAIL PROTECTED] Subject: Re: Sorting with displaytag issue due to theme=ajax Date: Tue, 9 Sep 2008 18:08:57 -0400 Francisco Exposito wrote: Also I've tried to use displayTagAjax. In order to use it, I define in the main page: script src=src/javascript/displayTagAjax.js type=text/javascript/ script src=src/javascript/jquery.js type=text/javascript/But when I reload this page, I receive the error jQuery is not defined and the error seems to be in the line of displayTagAjax.js: jQuery(function($) { changeLinks(); }); I assume it was a typo, since in a later email you have the order corrected. But just in case it's the obvious thing: since displayTagAjax.js conatains a call to jQuery, the jquery.js script needs to be loaded first... L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ ¿Sigue el calor? Consulta MSN El tiempo http://eltiempo.es.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Llega la nueva temporada. Consulta las
Error messages
Hello everyone, I am trying to provide some custom validation error handling in a JSP. For this I would like to perform some logic in the JSP when a validation fails, instead (or in addition) of displaying the actual error message. Is there a way to check if a certain field error has been set? Thanks in advance, Cosmin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
please remove: [EMAIL PROTECTED] - User unknown!
Anyone listening that has the kudos to remove [EMAIL PROTECTED] from struts-dev and struts-user? I've grown weary of the warning received whenever I post a message to either list. Original Message Subject:Warning: [EMAIL PROTECTED] - User unknown! Date: Wed, 10 Sep 2008 16:37:00 +0530 From: MDaemon at usindia.com [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] - no such user here. There is no user by that name at this server. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sorting with displaytag issue due to theme=ajax
--- On Wed, 9/10/08, Francisco Expositowrote: The unique difference I see is that the correct one doesn't use ajax, isn't it? There's a huge number of differences between the two examples. That's not how you isolate a problem. The advice I provided stands; and I'd still remove the s:div... tags if you're not using their Ajax functionality. Dave Date: Wed, 10 Sep 2008 03:37:30 -0700 From: [EMAIL PROTECTED] Subject: RE: Sorting with displaytag issue due to theme=ajax To: user@struts.apache.org There are too many differences between your two examples. You should build up the functionality from one to another until it breaks and start from there. One thing I'd comment is that if your divs are just containers then don't use the s:div... tag, as with the ajax theme they're really designed for something else--just use HTML divs. I'd try that first, then start to isolate the problem one step at a time. Dave --- On Wed, 9/10/08, Francisco Exposito wrote: I've changed the order and now that error doesn't appear, but it doesn't work yet... I have done a test with this page: %@ page import=ads.web.action.UsuarioAction% %@ taglib uri=http://displaytag.sf.net; prefix=display % % Object result = session.getAttribute( result ); UsuarioAction ac = new UsuarioAction(); System.out.println(ac.getTodosUsuarios()); session.setAttribute( result, ac.getTodosUsuarios() ); % html head script language='javascript' src=src/javascript/jquery.js type=text/javascript/script script src=src/javascript/displayTagAjax.js /script /head body div id=ajxDspId display:table name=sessionScope.result pagesize=2 htmlId=dispTable sort=list display:column property=idUsuario title=ID / display:column property=nombre sortable=true/ display:column property=mail sortable=true/ /display:table /div !--- end display tag -- /body /html If after the login my action goes to the test.page directly, it works properly and the links are changed. But if after the login I go to a new page with a menu: %@ page pageEncoding=ISO-8859-1 % %@ taglib prefix=s uri=/struts-tags % html head script language='javascript' src=src/javascript/jquery.js type=text/javascript/script script src=src/javascript/displayTagAjax.js/script script src=src/javascript/optiontransferselect.js type=text/javascript/ s:head theme=ajax/ link rel=stylesheet media=all type=text/css href=src/css/default.css / script src=src/javascript/stuHover.js type=text/javascript/script /head body s:div id=divPagina s:url id=buscarUsuario action='IrBuscarUsuario'/ s:div id=divMenu img class=logo src=.../../src/images/logo.jpg/ brbr ul id=menu li class=subUsuarios ul lis:a id=linkBuscarUsuario theme=ajax href=%{buscarUsuario} targets=divContenedor showLoadingText=falseBuscar usuario/s:a/li /ul /li /ul /s:div s:div id=divContenedor theme=ajax /s:div /s:div script /script /body /html And when I go then to the test page (which must be shown in divContenedor), the links are not displayed ok and when I click on sorting or pagination, then it works but the result is not displayed in the divContenedor. It is opened in a new page and my menu is lost! If I check with firebug, all js are loaded (in the menu page and in the test page). To: user@struts.apache.org From: [EMAIL PROTECTED] Subject: Re: Sorting with displaytag issue due to theme=ajax Date: Tue, 9 Sep 2008 18:08:57 -0400 Francisco Exposito wrote: Also I've tried to use displayTagAjax. In order to use it, I define in the main page: script src=src/javascript/displayTagAjax.js type=text/javascript/ script src=src/javascript/jquery.js type=text/javascript/ But when I reload this page, I receive the error jQuery is not defined and the error seems to be in the line of displayTagAjax.js: jQuery(function($) { changeLinks(); }); I assume it was a typo, since in a later email you have the order corrected. But just in case it's the obvious thing: since displayTagAjax.js conatains a call to jQuery, the jquery.js script needs to be loaded first... L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ ¿Sigue el calor? Consulta MSN El tiempo http://eltiempo.es.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
Re: Error messages
--- On Wed, 9/10/08, Cosmin Marginean wrote: Is there a way to check if a certain field error has been set? In S2 use ValidationAware's getFieldErrors(...) method. http://struts.apache.org/2.0.11.2/struts2-core/apidocs/com/opensymphony/xwork2/ValidationAware.html#getFieldErrors() Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] Ajax error
Hi, I've just started experimenting with Ajax capabilities in S2. For this I m getting the time from action class when ever user clicked the 'Get time' button. ... head s:head theme=ajax/ /head body Current time from server s:div cssStyle=border: 1px solid red; theme=ajax id=timeDiv s:date name=date/ /s:div br s:form action=Time s:submit theme=ajax targets=timeDiv notifyTopics=time/ /s:form /body .. It is getting time from server asynchronously, but the s:div ... is displaying the whole page again inside it. What am I doing wrong? Can some one tell or direct me to some good example about ajax usage in S2, when to and how to use listenTopic/notifyTopics Regards, ManiKanta G ** DISCLAIMER ** Information contained and transmitted by this E-MAIL is proprietary to Sify Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail notify us immediately at [EMAIL PROTECTED]
Re: Error messages
Sorry for the misunderstanding - might not have been so clear. I meant performing some logic in the JSP. I would like to be able to do something like: td c:if test=${an error for field 'xxx' exists} class=someErrorClass /c:if --- On Wed, 9/10/08, Cosmin Marginean wrote: Is there a way to check if a certain field error has been set? In S2 use ValidationAware's getFieldErrors(...) method. http://struts.apache.org/2.0.11.2/struts2-core/apidocs/com/opensymphony/xwork2/ValidationAware.html#getFieldErrors() Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Cosmin Marginean -- cosminaru.ro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ajax validation issue
HI, Thanks very much for your input. I think a lot of the confusion I'm having is that I've been following 2.1.x documentation while using 2.0.x. Sometimes it's not been clear if the documentation I'm following is for a particular version or not, and with the many way to do something it can be easy to get lost, not that I'm complaining mind you, I love the flexibility. I do have basic server-side validation working for forms, but unfortunately I get the issues with drop-down population after validation kicks in and returns to my form (validation does work nicely though :-). I'm really hoping to avoid using prepare as I'm using a single action to perform crud operations for many classes and my prepare method would get very large to populate all the drop downs. A really nice solution so far has been to an action tag to populate forms, which has worked nicely the rest of the time. I've really liked using this approach to fill drop-downs, like so: s:action namespace=/admin name=crud.Group.listAll id=groupAction/ ... s:select label=Group name=user.group.id value=%{user.group.id} list=%{#groupAction.list} listKey=id listValue=name/ Using %{#groupAcation.list} to populate the drop down works great, but the only work around I've seen to fill the select box after validation returns to the form is rather messy: http://struts.apache.org/2.1.2/docs/how-do-we-repopulate-controls-when-v alidation-fails.html If I could get the form elements to populate after a failed server-side validation I'd happily just use server-side validation. I'm not sure why the above jsp won't populate my drop downs after validation returns the form, does anyone know if I can I get these action tags to work in such circumstances? Knowing ajax validation will only work with xhtml/css_html theme is helpful, I've been using ajax all along which may explain some issues. You said to use the default interceptor stack for 2.1.2, and the documentation I read says to use 'jsonValidationWorkflowStack' do I need both of them or will just the default stack work? Many thanks for your time. Gawain As a side note, I've used the s:autocomplete form element which does populate drop down boxes after validation forces the page back to the form, but there's no similar ajax alternative for multiple select boxes that I can find, so it's just them that are empty now. I feel so close and yet so far away from my finishing this :-) -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: 10 September 2008 01:19 To: Struts Users Mailing List Subject: Re: ajax validation issue Gawain Hammond wrote: ... That's a lot of problems, and to work-around each problem you've moved to a more sophisticated and complicated solution hoping for the best. You'll need to get the plain-old-validation working first. If validation fails, your action's execute method is not invoked, so you need to ensure all the data needed by the page is available in that case. eg. If you have a select that needs a list of values, then populate the list in the prepare method rather than the execute method. Client-side validation is then generated from your server-side validation settings. It'll only works with xhtml or css_xhtml theme'd forms with validate=true. If it fails in individual tags it's possible there's something wrong with the markup. When you isolate it to certain fields your browser can help you work this out. If you want to use ajax validation you'll need to ensure you're using the default interceptor stack for 2.1.2. It'll use your server-side validation settings. You'll need the sx:head tag in your page and need to be attentive to where you use ajax theme'd tags verses other themes (eg. if you don't want the form posted via ajax). I suggest you go back to basics; create a new minimal form with a minimal action and it get it to work. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This transmission is strictly confidential, possibly legally privileged, and intended solely for the addressee. Any views or opinions expressed within it are those of the author and do not necessarily represent those of 192.com, i-CD Publishing (UK) Ltd or any of it's subsidiary companies. If you are not the intended recipient then you must not disclose, copy or take any action in reliance of this transmission. If you have received this transmission in error, please notify the sender as soon as possible. No employee or agent is authorised to conclude any binding agreement on behalf of i-CD Publishing (UK) Ltd with another party by email without express written confirmation by an authorised employee of the Company. http://www.192.com (Tel: 08000 192 192). i-CD Publishing (UK) Ltd is incorporated in England and Wales,
Re: [S2] Ajax error
--- On Wed, 9/10/08, ManiKanta G wrote: ... head s:head theme=ajax/ /head body Current time from server s:div cssStyle=border: 1px solid red; theme=ajax id=timeDiv s:date name=date/ /s:div br s:form action=Time s:submit theme=ajax targets=timeDiv notifyTopics=time/ /s:form /body .. It is getting time from server asynchronously, but the s:div ... is displaying the whole page again inside it. What am I doing wrong? Hard to say, since you don't provide any information about the Time action used by your s:form... tag. I'd guess that its result is returning an entire page, rather than an HTML fragment, which is what you'd probably want. Can some one tell or direct me to some good example about ajax usage in S2, when to and how to use listenTopic/notifyTopics. You use listen topics when you want something (component, JavaScript, etc.) to pay attention to published events, and notify topics when you want to publish an event. Your example above could be reduced to (more or less; I have no way to test at the moment): s:div id=timeDiv href=%{#url}/s:div s:form action=Time s:submit theme=ajax targets=timeDiv/ /s:form Where #url is the URL of an action that returns the current date, probably the same as the form action. As for documentation: S2.1: http://struts.apache.org/2.x/docs/ajax-tags.html S2.0: http://struts.apache.org/2.0.11/docs/ajax-tags.html Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sorting with displaytag issue due to theme=ajax
Dave, I'm lost... I don't see any difference but the ajax (between two executions I only change the struts.xml file). I'll try to explain again and please, if after my explanation you think there are too much differences, please tell me which differences do you see. But I think I've isolated all I can the issue... I have the new menu modified deleting the s:div: %@ page pageEncoding=ISO-8859-1 % %@ taglib prefix=s uri=/struts-tags % html head script language='javascript' src=src/javascript/jquery.js type=text/javascript/script script src=src/javascript/displayTagAjax.js/script s:head theme=ajax/ link rel=stylesheet media=all type=text/css href=src/css/default.css / /head body div id=divPagina s:url id=buscarUsuario action='IrBuscarUsuario'/ div id=divMenu ul id=menu li class=subUsuarios ul lis:a id=linkBuscarUsuario theme=ajax href=%{buscarUsuario} targets=divContenedor showLoadingText=falseBuscar usuario/s:a/li /ul /li /ul /div s:div id=divContenedor theme=ajax /s:div /div /body /html When I open the menu, the results page with the display tag must be loaded in the divContenedor defined in the menu page. The results page is: %@ page import=ads.web.action.UsuarioAction% %@ taglib prefix=s uri=/struts-tags % %@ taglib uri=http://displaytag.sf.net; prefix=display % % Object result = session.getAttribute( result ); UsuarioAction ac = new UsuarioAction(); System.out.println(ac.getTodosUsuarios()); session.setAttribute( result, ac.getTodosUsuarios() ); % html head script language='javascript' src=src/javascript/jquery.js type=text/javascript/script script src=src/javascript/displayTagAjax.js/script s:head theme=ajax debug=true/ /head body div id=ajxDspId display:table name=sessionScope.result pagesize=2 htmlId=dispTable sort=list display:column property=idUsuario title=ID / display:column property=nombre sortable=true/ display:column property=mail sortable=true/ /display:table /div /body /html The unique thing I change between the two examples is the struts-xml file: a) First execution: action name=Login class=ads.web.action.LoginAction result name=success_usuario_adsAdmin/src/jsp/results.jsp/result /action When I login, the results page appear, the script displayTagAjax.js is executed, the references are updated and all work properly. b) Second execution: action name=Login class=ads.web.action.LoginAction result name=success_usuario_adsAdmin/src/jsp/menu.jsp/result /action When I login, the menu appears and then I click on Buscar usuario. Then the page with the results is loaded in the divContenedor. The script displayTagAjax.js is executed when I load the menu, but not when the results page is loaded. Therefore the hrefs are not modified and the ajax in displaytag doesn't work. I hope I've explained better -if you have patient to read all this :) Date: Wed, 10 Sep 2008 04:14:27 -0700 From: [EMAIL PROTECTED] Subject: RE: Sorting with displaytag issue due to theme=ajax To: user@struts.apache.org --- On Wed, 9/10/08, Francisco Expositowrote: The unique difference I see is that the correct one doesn't use ajax, isn't it? There's a huge number of differences between the two examples. That's not how you isolate a problem. The advice I provided stands; and I'd still remove the s:div... tags if you're not using their Ajax functionality. Dave Date: Wed, 10 Sep 2008 03:37:30 -0700 From: [EMAIL PROTECTED] Subject: RE: Sorting with displaytag issue due to theme=ajax To: user@struts.apache.org There are too many differences between your two examples. You should build up the functionality from one to another until it breaks and start from there. One thing I'd comment is that if your divs are just containers then don't use the s:div... tag, as with the ajax theme they're really designed for something else--just use HTML divs. I'd try that first, then start to isolate the problem one step at a time. Dave --- On Wed, 9/10/08, Francisco Exposito wrote: I've changed the order and now that error doesn't appear, but it doesn't work yet... I have done a test with this page: %@ page import=ads.web.action.UsuarioAction% %@ taglib uri=http://displaytag.sf.net; prefix=display %
Re: ajax validation issue
Gawain Hammond wrote: A really nice solution so far has been to an action tag to populate forms, which has worked nicely the rest of the time. I've really liked using this approach to fill drop-downs, like so: s:action namespace=/admin name=crud.Group.listAll id=groupAction/ ... s:select label=Group name=user.group.id value=%{user.group.id} list=%{#groupAction.list} listKey=id listValue=name/ That's a novel approach. I like it. Using %{#groupAcation.list} to populate the drop down works great, but the only work around I've seen to fill the select box after validation returns to the form is rather messy: http://struts.apache.org/2.1.2/docs/how-do-we-repopulate-controls-when-v alidation-fails.html I don't see why the above approach wouldn't be working after a validation failure. When the INPUT result is returned it presumably renders the same JSP (and doesn't do a redirect). The problem occurs when the context/valuestack doesn't contain something you're expecting (such as the list for the select). Can you confirm whether crud.Group.listAll is invoked after a validation failure? Knowing ajax validation will only work with xhtml/css_html theme is helpful, I've been using ajax all along which may explain some issues. That should read client-side validation. You said to use the default interceptor stack for 2.1.2, and the documentation I read says to use 'jsonValidationWorkflowStack' do I need both of them or will just the default stack work? jsonValidationWorkflowStack is correct one. The autocompleter works because it performs a separate request to populate the permitted values. Your case is just that the list for the selects is empty or null. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error messages
--- On Wed, 9/10/08, Cosmin Marginean wrote: Sorry for the misunderstanding - might not have been so clear. I meant performing some logic in the JSP. I would like to be able to do something like: td c:if test=${an error for field 'xxx' exists} class=someErrorClass /c:if ... In that case, use ValidationAware's getFieldErrors(). s:if test=getFieldErrors('xxx') != null class=someErrorCalss /s:if (Syntax may be off.) Dave --- On Wed, 9/10/08, Cosmin Marginean wrote: Is there a way to check if a certain field errorhas been set? In S2 use ValidationAware's getFieldErrors(...) method. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Ajax error
Thanks Dave. Yes, from action class I m returning entire jsp page. Action class: public class TimeServer extends ActionSupport { private Date date = null; public String execute() throws InterruptedException { System.out.println(Request received...); date = new Date(); return SUCCESS; } public Date getDate() { return date; } } Config: package name=ajaxdemo extends=struts-default action name=TimePage result/pages/listtime.jsp/result /action action name=Time class=com.timeserver.struts2.action.TimeServer result/pages/listtime.jsp/result /action /package initially I m requesting TimePage.action. I'd guess that its result is returning an entire page, rather than an HTML fragment, which is what you'd probably want. How can I return HTML fragment? you mean another jsp page which contains only that html fragment? If it is the case I may have to create many small jsps, which may in the order of 100s. Or you talking about some thing else? And is there any way to substitute the s:submit... with s:a... I've tried with this, but only submit is making request to action. Thanks for resource links. Regards, ManiKanta G Dave Newton wrote: --- On Wed, 9/10/08, ManiKanta G wrote: ... head s:head theme=ajax/ /head body Current time from server s:div cssStyle=border: 1px solid red; theme=ajax id=timeDiv s:date name=date/ /s:div br s:form action=Time s:submit theme=ajax targets=timeDiv notifyTopics=time/ /s:form /body .. It is getting time from server asynchronously, but the s:div ... is displaying the whole page again inside it. What am I doing wrong? Hard to say, since you don't provide any information about the Time action used by your s:form... tag. I'd guess that its result is returning an entire page, rather than an HTML fragment, which is what you'd probably want. Can some one tell or direct me to some good example about ajax usage in S2, when to and how to use listenTopic/notifyTopics. You use listen topics when you want something (component, JavaScript, etc.) to pay attention to published events, and notify topics when you want to publish an event. Your example above could be reduced to (more or less; I have no way to test at the moment): s:div id=timeDiv href=%{#url}/s:div s:form action=Time s:submit theme=ajax targets=timeDiv/ /s:form Where #url is the URL of an action that returns the current date, probably the same as the form action. As for documentation: S2.1: http://struts.apache.org/2.x/docs/ajax-tags.html S2.0: http://struts.apache.org/2.0.11/docs/ajax-tags.html Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** DISCLAIMER ** Information contained and transmitted by this E-MAIL is proprietary to Sify Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail notify us immediately at [EMAIL PROTECTED]
RE: Sorting with displaytag issue due to theme=ajax
--- On Wed, 9/10/08, Francisco Exposito wrote: s:div id=divContenedor theme=ajax /s:div Does it work if you remove *this* s:div...? Again--if the div itself isn't doing anything but is just a placeholder there's no reason to use s:div..., although I don't know if it would break anything. script language='javascript' src=src/javascript/jquery.js type=text/javascript/script script src=src/javascript/displayTagAjax.js/script s:head theme=ajax debug=true/ /head I would be wary of re-loading all the JavaScript. Does it work if you just return the relevant HTML plus the display taglib directive? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Include menu action with sitemesh
Found the solution: http://struts.apache.org/2.x/docs/action.html -Original Message- From: Matthew Seaborn Sent: 08 September 2008 17:12 To: Struts Users Mailing List Subject: RE: Include menu action with sitemesh Whenever I try to us s:include or jsp:include to access a Struts 2 action from within the SiteMesh decorator I get The requested resource (Relative URL) is not available. Surely this should be possible. -Original Message- From: David Loup Sent: 02 September 2008 12:55 To: Struts Users Mailing List Subject: RE: Include menu action with sitemesh Hi Wes, Thanks for your reply. Am using Struts 2.0.11, so I tried: s:url id=menuUrl namespace=/menu action=menu/ s:div id=menuDiv href=%{menuUrl} / Since I think sx tags only work with the Dojo plugin in Struts 2.1. However, I'm not getting any error (Java or JS), but the DIV remains desperately empty. Any idea? -Original Message- From: Wes Wannemacher [mailto:[EMAIL PROTECTED] Sent: 02 September 2008 02:21 To: Struts Users Mailing List Subject: Re: Include menu action with sitemesh David, I use S2 tags all the time in my sitemesh decorators. When I first did it, I hadn't put much thought into it (maybe the filter won't be available to sitemesh, the action is the decorated page, not the decorator, etc.), I just did it and it worked. It wasn't until later that I thought maybe it wasn't right. However, it worked fine and I have been happily doing it since. Rather than - div id=menuDiv s:action name=menu / /div Why not use the sx:div / tag? http://struts.apache.org/2.x/docs/ajax-div-template.html Just be careful that the menu action does not get decorated by Sitemesh, otherwise the result can be pretty bizarre :) -Wes On Mon, 2008-09-01 at 10:50 +0100, David Loup wrote: Hi there, I'm using sitemesh with struts 2 and am currently applying a decorator to all my actions, including a static menu in a div. So something like div id=menuDiv ul limenuitem 1 /li limenuitem 2 /li limenuitem 3 /li /ul /div div id=mainContent decorator:body / /div What I want to do is make that menu build dynamically to have, in spirit: div id=menuDiv s :action name=menu/ /div div id=mainContent decorator:body / /div I have my menu action, which works, to display menu content in a separate JSP. How can I include that action's execution in my decorator to get the desired effect ? Thanks D CONFIDENTIALITY - This email and any files transmitted with it, are confidential, may be legally privileged and are intended solely for the use of the individual or entity to whom they are addressed. If this has come to you in error, you must not copy, distribute, disclose or use any of the information it contains. Please notify the sender immediately and delete them from your system. SECURITY - Please be aware that communication by email, by its very nature, is not 100% secure and by communicating with Perform Group by email you consent to us monitoring and reading any such correspondence. VIRUSES - Although this email message has been scanned for the presence of computer viruses, the sender accepts no liability for any damage sustained as a result of a computer virus and it is the recipients responsibility to ensure that email is virus free. AUTHORITY - Any views or opinions expressed in this email are solely those of the sender and do not necessarily represent those of Perform Group. COPYRIGHT - Copyright of this email and any attachments belongs to Perform Group, Companies House Registration number 6324278. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CONFIDENTIALITY - This email and any files transmitted with it, are confidential, may be legally privileged and are intended solely for the use of the individual or entity to whom they are addressed. If this has come to you in error, you must not copy, distribute, disclose or use any of the information it contains. Please notify the sender immediately and delete them from your system. SECURITY - Please be aware that communication by email, by its very nature, is not 100% secure and by communicating with Perform Group by email you consent to us monitoring and reading any such correspondence. VIRUSES - Although this email message has been scanned for the presence of computer viruses, the sender accepts no liability for any damage sustained as a result of a computer virus and it is the recipient?s responsibility to ensure that email is virus free. AUTHORITY - Any views or opinions expressed in this email are solely those of the sender and do not necessarily represent those of Perform Group. COPYRIGHT - Copyright of this email and any attachments
Re: [S2] Ajax error
--- On Wed, 9/10/08, ManiKanta G wrote: Yes, from action class I m returning entire jsp page. Well, that would explain why you're seeing an entire page in the div, then. How can I return HTML fragment? you mean another jsp page which contains only that html fragment? Yes, if you're loading the div with HTML. If it is the case I may have to create many small jsps, which may in the order of 100s. That's what Ajax does (loosely speaking): returns HTML fragments (or data as JSON, XML, etc.). That's the point of it--so you don't have to return entire pages and refresh the entire window. And is there any way to substitute the s:submit... with s:a... I've tried with this, but only submit is making request to action. Examples of using s:a... to both populate a div and to submit a form, inside or outside said form, are given in the documentation for both S2 versions. If you have specific questions it'll be easier to help. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ajax validation issue
Can you confirm whether crud.Group.listAll is invoked after a validation failure? No, when validation returns to the form action 'crud.Group.listAll' is not invoked. This happens with struts versions 2.0.11.x and 2.1.x So you would expect using an action tag in this manner (to produce a list for a select box) to work after validation returns to the form? Interesting, I may investigate this further as it would be the more simple solution as I'm a bit over my head with the ajax stuff. -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: 10 September 2008 13:00 To: Struts Users Mailing List Subject: Re: ajax validation issue Gawain Hammond wrote: A really nice solution so far has been to an action tag to populate forms, which has worked nicely the rest of the time. I've really liked using this approach to fill drop-downs, like so: s:action namespace=/admin name=crud.Group.listAll id=groupAction/ ... s:select label=Group name=user.group.id value=%{user.group.id} list=%{#groupAction.list} listKey=id listValue=name/ That's a novel approach. I like it. Using %{#groupAcation.list} to populate the drop down works great, but the only work around I've seen to fill the select box after validation returns to the form is rather messy: http://struts.apache.org/2.1.2/docs/how-do-we-repopulate-controls-when-v alidation-fails.html I don't see why the above approach wouldn't be working after a validation failure. When the INPUT result is returned it presumably renders the same JSP (and doesn't do a redirect). The problem occurs when the context/valuestack doesn't contain something you're expecting (such as the list for the select). Can you confirm whether crud.Group.listAll is invoked after a validation failure? Knowing ajax validation will only work with xhtml/css_html theme is helpful, I've been using ajax all along which may explain some issues. That should read client-side validation. You said to use the default interceptor stack for 2.1.2, and the documentation I read says to use 'jsonValidationWorkflowStack' do I need both of them or will just the default stack work? jsonValidationWorkflowStack is correct one. The autocompleter works because it performs a separate request to populate the permitted values. Your case is just that the list for the selects is empty or null. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This transmission is strictly confidential, possibly legally privileged, and intended solely for the addressee. Any views or opinions expressed within it are those of the author and do not necessarily represent those of 192.com, i-CD Publishing (UK) Ltd or any of it's subsidiary companies. If you are not the intended recipient then you must not disclose, copy or take any action in reliance of this transmission. If you have received this transmission in error, please notify the sender as soon as possible. No employee or agent is authorised to conclude any binding agreement on behalf of i-CD Publishing (UK) Ltd with another party by email without express written confirmation by an authorised employee of the Company. http://www.192.com (Tel: 08000 192 192). i-CD Publishing (UK) Ltd is incorporated in England and Wales, company number 3148549, VAT No. GB 673128728.
Re: Submit button with no form
Lukasz Lenart escribió: As Don said, implement small form, only with submit button and you wouldn't have to use JavaScript. Regards OK, I´ll try to do it Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Ajax error
Thanks Dave. I'll Will do accordingly. Thanks, ManiKanta Dave Newton wrote: --- On Wed, 9/10/08, ManiKanta G wrote: Yes, from action class I m returning entire jsp page. Well, that would explain why you're seeing an entire page in the div, then. How can I return HTML fragment? you mean another jsp page which contains only that html fragment? Yes, if you're loading the div with HTML. If it is the case I may have to create many small jsps, which may in the order of 100s. That's what Ajax does (loosely speaking): returns HTML fragments (or data as JSON, XML, etc.). That's the point of it--so you don't have to return entire pages and refresh the entire window. And is there any way to substitute the s:submit... with s:a... I've tried with this, but only submit is making request to action. Examples of using s:a... to both populate a div and to submit a form, inside or outside said form, are given in the documentation for both S2 versions. If you have specific questions it'll be easier to help. Dave ** DISCLAIMER ** Information contained and transmitted by this E-MAIL is proprietary to Sify Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail notify us immediately at [EMAIL PROTECTED]
RE: Error messages
depends on if you want JS validation action validation ajax validation explained at http://struts.apache.org/2.x/docs/ajax-validation.html HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 10 Sep 2008 14:06:28 +0300 From: [EMAIL PROTECTED] To: user@struts.apache.org Subject: Error messages Hello everyone, I am trying to provide some custom validation error handling in a JSP. For this I would like to perform some logic in the JSP when a validation fails, instead (or in addition) of displaying the actual error message. Is there a way to check if a certain field error has been set? Thanks in advance, Cosmin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ See how Windows connects the people, information, and fun that are part of your life. http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
RE: Sorting with displaytag issue due to theme=ajax
I've removed it (I thought it was mandatory the theme=ajax in the s:div due to the previous code s:a id=linkBuscarUsuario theme=ajax href=%{buscarUsuario} targets=divContenedor showLoadingText=falseBuscar usuario/s:a It does the same, the results page is loaded but after sorting or pagination the results page is not opened in the div. In fact, the scripts should be loaded only in the results page, not in the menu, but no javascripts are loadable in the results. I don't understand your last question: return the relevant HTML plus the display taglib directive? How can I do it? Date: Wed, 10 Sep 2008 05:09:30 -0700 From: [EMAIL PROTECTED] Subject: RE: Sorting with displaytag issue due to theme=ajax To: user@struts.apache.org --- On Wed, 9/10/08, Francisco Exposito wrote: s:div id=divContenedor theme=ajax /s:div Does it work if you remove *this* s:div...? Again--if the div itself isn't doing anything but is just a placeholder there's no reason to use s:div..., although I don't know if it would break anything. script language='javascript' src=src/javascript/jquery.js type=text/javascript/script script src=src/javascript/displayTagAjax.js/script s:head theme=ajax debug=true/ /head I would be wary of re-loading all the JavaScript. Does it work if you just return the relevant HTML plus the display taglib directive? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Prueba los prototipos de los últimos en MSN Motor http://motor.es.msn.com/
Dynamic radio buttons with bean
Hi, I need to display in a jsp a form with dynamic radio buttons, I mean: There are several items in my DB. One item is read (each item has one question and 4 possible answers). I need to display the question and the 4 answers as a radio option dynamically (with a bean). Then the users cheks an answer, and submits the selected option. The corresponding action is called. Afterwards, another different item is selected and the question/answers displayed, till the end of the test. I found this approach to display the properties of a bean as dynamic options using Indexed properties at: http://faq.javaranch.com/java/IndexedProperties Is there another approach or option to develop this stuff? Regards and thanks in advance ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic radio buttons with bean
use servlet the get the html, create the item name from database; then use servlet request get the value in the html, the name of buttons U can get from database 2. I think it's simple than others. -- BestRegards, Mead http://yayisoft.com Jack Benny - I don't deserve this award, but I have arthritis and I don't deserve that either. On Wed, Sep 10, 2008 at 9:06 PM, Dan [EMAIL PROTECTED] wrote: Hi, I need to display in a jsp a form with dynamic radio buttons, I mean: There are several items in my DB. One item is read (each item has one question and 4 possible answers). I need to display the question and the 4 answers as a radio option dynamically (with a bean). Then the users cheks an answer, and submits the selected option. The corresponding action is called. Afterwards, another different item is selected and the question/answers displayed, till the end of the test. I found this approach to display the properties of a bean as dynamic options using Indexed properties at: http://faq.javaranch.com/java/IndexedProperties Is there another approach or option to develop this stuff? Regards and thanks in advance ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)
Most probably it is an xwork issue, I have been experiencing the same problem for Websphere for 2.0.11.2 and 2.1.2, though 2.0.11.1 works for me. - Original Message From: Bobby Mitch [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, September 10, 2008 4:41:40 AM Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file) ok, well for your information I asked about that problem in the JBoss problem, thinking that the problem could come from JBoss, and I just posted the question on the XWORK forum where i hope they will help me fix it. http://forums.opensymphony.com/thread.jspa?threadID=454261 http://www.jboss.com/index.html?module=bbop=viewtopicp=4175490#4175490 It seems that it is a problem related to xwork, not Struts 2 itself. What do you think ? __ Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)
Didn't we fix this already in xwork trunk?, I think I committed a patch someone supplied at some point. On Wed, Sep 10, 2008 at 6:58 AM, Jeromy Evans [EMAIL PROTECTED] wrote: Bobby Mitch wrote: ok, well for your information I asked about that problem in the JBoss problem, thinking that the problem could come from JBoss, and I just posted the question on the XWORK forum where i hope they will help me fix it. http://forums.opensymphony.com/thread.jspa?threadID=454261 http://www.jboss.com/index.html?module=bbop=viewtopicp=4175490#4175490 It seems that it is a problem related to xwork, not Struts 2 itself. What do you think ? It is probably in Xwork, but Struts2 is so tightly coupled to Xwork it's much the same thing. Most S2 developers can change Xwork code. Looks like you received from good help in the jboss forum. Now that you know where the error occurs, place a breakpoint inside parseValidators to find out *exactly* which URI is causing the problem. IteratorURL urls = ClassLoaderUtil.getResources(, ValidatorFactory.class, false); while (urls.hasNext()) { URL u = urls.next(); File f = new File(u.toURI()); It's strange that getResources() is returning a non-file url. What URL is it returning that causes the exception to be thrown? (normally you get these exceptions when opening a FileInputSream on, say, an http: URL) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd
Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)
this ticket: https://issues.apache.org/struts/browse/WW-2653 ? On Wed, Sep 10, 2008 at 9:58 AM, Musachy Barroso [EMAIL PROTECTED] wrote: Didn't we fix this already in xwork trunk?, I think I committed a patch someone supplied at some point. On Wed, Sep 10, 2008 at 6:58 AM, Jeromy Evans [EMAIL PROTECTED] wrote: Bobby Mitch wrote: ok, well for your information I asked about that problem in the JBoss problem, thinking that the problem could come from JBoss, and I just posted the question on the XWORK forum where i hope they will help me fix it. http://forums.opensymphony.com/thread.jspa?threadID=454261 http://www.jboss.com/index.html?module=bbop=viewtopicp=4175490#4175490 It seems that it is a problem related to xwork, not Struts 2 itself. What do you think ? It is probably in Xwork, but Struts2 is so tightly coupled to Xwork it's much the same thing. Most S2 developers can change Xwork code. Looks like you received from good help in the jboss forum. Now that you know where the error occurs, place a breakpoint inside parseValidators to find out *exactly* which URI is causing the problem. IteratorURL urls = ClassLoaderUtil.getResources(, ValidatorFactory.class, false); while (urls.hasNext()) { URL u = urls.next(); File f = new File(u.toURI()); It's strange that getResources() is returning a non-file url. What URL is it returning that causes the exception to be thrown? (normally you get these exceptions when opening a FileInputSream on, say, an http: URL) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd -- Hey you! Would you help me to carry the stone? Pink Floyd
Struts2 Iterator tag problem
Hi I am trying to display a ArrayList of lists using struts2 iterator tag. private void dataReady(){ for (int itr = 0; itr this.HOURS; itr++) { tempList = new ArrayList(); // Add all the till related data for(int tillItr = 0; tillItr this.terminalList.size(); tillItr++) { tempList.add(this.transactions[itr][tillItr]); tempList.add(this.unitsSold[itr][tillItr]); } // add all overall data tempList.add(this.peakBlocks[itr]); tempList.add(this.incCtr[itr]); tempList.add(this.percentages[itr]); /* * Now to place this list in the list which will * render it on the screen via JSP */ this.dataList.add(tempList); } } Now I have tempList which is a list of int and long values and dataList which is a list of tempLists. I need to use the struts2 iterator tag and display it on the screen. Is there any way of doing it? If Iterator is not possible then is there anything else I can use? -- View this message in context: http://www.nabble.com/Struts2-Iterator-tag-problem-tp19414606p19414606.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 Iterator tag problem
Something like this: s:interator var=tempList value=dataList s:iterator var=number value=#tempList /s:iterator /s:iterator 2008/9/10 amolbehl [EMAIL PROTECTED]: Hi I am trying to display a ArrayList of lists using struts2 iterator tag. private void dataReady(){ for (int itr = 0; itr this.HOURS; itr++) { tempList = new ArrayList(); // Add all the till related data for(int tillItr = 0; tillItr this.terminalList.size(); tillItr++) { tempList.add(this.transactions[itr][tillItr]); tempList.add(this.unitsSold[itr][tillItr]); } // add all overall data tempList.add(this.peakBlocks[itr]); tempList.add(this.incCtr[itr]); tempList.add(this.percentages[itr]); /* * Now to place this list in the list which will * render it on the screen via JSP */ this.dataList.add(tempList); } } Now I have tempList which is a list of int and long values and dataList which is a list of tempLists. I need to use the struts2 iterator tag and display it on the screen. Is there any way of doing it? If Iterator is not possible then is there anything else I can use? -- View this message in context: http://www.nabble.com/Struts2-Iterator-tag-problem-tp19414606p19414606.html Sent from the Struts - User mailing list archive at Nabble.com. - 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]
Re: Dynamic radio buttons with bean
Sorry but i dont understand what you mean, that´s what I am trying to do, get the data, send it though a request bean to the jsp, and display the info as a radio button. As far as i know, is not as easy as 123 (or I think), that´s why I am looking for any better or easier ideas for indexed properties . http://faq.javaranch.com/java/IndexedProperties - http://struts.apache.org/1.x/struts-taglib/indexedprops.html Regards, - Original Message - From: Mead Lai To: Struts Users Mailing List Sent: Wednesday, September 10, 2008 3:19 PM Subject: Re: Dynamic radio buttons with bean use servlet the get the html, create the item name from database; then use servlet request get the value in the html, the name of buttons U can get from database 2. I think it's simple than others. -- BestRegards, Mead http://yayisoft.com Jack Benny - I don't deserve this award, but I have arthritis and I don't deserve that either. On Wed, Sep 10, 2008 at 9:06 PM, Dan [EMAIL PROTECTED] wrote: Hi, I need to display in a jsp a form with dynamic radio buttons, I mean: There are several items in my DB. One item is read (each item has one question and 4 possible answers). I need to display the question and the 4 answers as a radio option dynamically (with a bean). Then the users cheks an answer, and submits the selected option. The corresponding action is called. Afterwards, another different item is selected and the question/answers displayed, till the end of the test. I found this approach to display the properties of a bean as dynamic options using Indexed properties at: http://faq.javaranch.com/java/IndexedProperties Is there another approach or option to develop this stuff? Regards and thanks in advance ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Email procesado por MailFoundry
RE: Dynamic radio buttons with bean
http://struts.apache.org/2.x/docs/radio.html specigy your list attribute to point to iterable map ( returned from Action class ) e.g. s:action name=GenderMap var=genders/ s:radio label=Gender name=male list=#genders.genders/ Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. From: [EMAIL PROTECTED] To: user@struts.apache.org Subject: Re: Dynamic radio buttons with bean Date: Wed, 10 Sep 2008 17:06:09 +0200 Sorry but i dont understand what you mean, that´s what I am trying to do, get the data, send it though a request bean to the jsp, and display the info as a radio button. As far as i know, is not as easy as 123 (or I think), that´s why I am looking for any better or easier ideas for indexed properties . http://faq.javaranch.com/java/IndexedProperties - http://struts.apache.org/1.x/struts-taglib/indexedprops.html Regards, - Original Message - From: Mead Lai To: Struts Users Mailing List Sent: Wednesday, September 10, 2008 3:19 PM Subject: Re: Dynamic radio buttons with bean use servlet the get the html, create the item name from database; then use servlet request get the value in the html, the name of buttons U can get from database 2. I think it's simple than others. -- BestRegards, Mead http://yayisoft.com Jack Benny - I don't deserve this award, but I have arthritis and I don't deserve that either. On Wed, Sep 10, 2008 at 9:06 PM, Dan [EMAIL PROTECTED] wrote: Hi, I need to display in a jsp a form with dynamic radio buttons, I mean: There are several items in my DB. One item is read (each item has one question and 4 possible answers). I need to display the question and the 4 answers as a radio option dynamically (with a bean). Then the users cheks an answer, and submits the selected option. The corresponding action is called. Afterwards, another different item is selected and the question/answers displayed, till the end of the test. I found this approach to display the properties of a bean as dynamic options using Indexed properties at: http://faq.javaranch.com/java/IndexedProperties Is there another approach or option to develop this stuff? Regards and thanks in advance ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Email procesado por MailFoundry _ Stay up to date on your PC, the Web, and your mobile phone with Windows Live. http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
Re: Dynamic radio buttons with bean
Thanks Martin, Is this applicable to Struts 1.x? Regards - Original Message - From: Martin Gainty To: Struts Users Mailing List Sent: Wednesday, September 10, 2008 5:12 PM Subject: RE: Dynamic radio buttons with bean http://struts.apache.org/2.x/docs/radio.html specigy your list attribute to point to iterable map ( returned from Action class ) e.g. s:action name=GenderMap var=genders/ s:radio label=Gender name=male list=#genders.genders/ Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. From: [EMAIL PROTECTED] To: user@struts.apache.org Subject: Re: Dynamic radio buttons with bean Date: Wed, 10 Sep 2008 17:06:09 +0200 Sorry but i dont understand what you mean, that´s what I am trying to do, get the data, send it though a request bean to the jsp, and display the info as a radio button. As far as i know, is not as easy as 123 (or I think), that´s why I am looking for any better or easier ideas for indexed properties . http://faq.javaranch.com/java/IndexedProperties - http://struts.apache.org/1.x/struts-taglib/indexedprops.html Regards, - Original Message - From: Mead Lai To: Struts Users Mailing List Sent: Wednesday, September 10, 2008 3:19 PM Subject: Re: Dynamic radio buttons with bean use servlet the get the html, create the item name from database; then use servlet request get the value in the html, the name of buttons U can get from database 2. I think it's simple than others. -- BestRegards, Mead http://yayisoft.com Jack Benny - I don't deserve this award, but I have arthritis and I don't deserve that either. On Wed, Sep 10, 2008 at 9:06 PM, Dan [EMAIL PROTECTED] wrote: Hi, I need to display in a jsp a form with dynamic radio buttons, I mean: There are several items in my DB. One item is read (each item has one question and 4 possible answers). I need to display the question and the 4 answers as a radio option dynamically (with a bean). Then the users cheks an answer, and submits the selected option. The corresponding action is called. Afterwards, another different item is selected and the question/answers displayed, till the end of the test. I found this approach to display the properties of a bean as dynamic options using Indexed properties at: http://faq.javaranch.com/java/IndexedProperties Is there another approach or option to develop this stuff? Regards and thanks in advance ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Email procesado por MailFoundry _ Stay up to date on your PC, the Web, and your mobile phone with Windows Live. http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/ -- Email procesado por MailFoundry
Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)
I believe the issue should be fixed on 2.1.2 (for Websphere at least), but it still remains an issue for Struts 2.0.11.2 (for Websphere users). See the email below: - Original Message From: Rene Gielen [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, July 16, 2008 2:40:38 AM Subject: [ANN] Struts 2.0.11.2 General Availability Release with Important Security Fix Apache Struts 2.0..11.2 is now available from http://struts.apache.org/download.cgi#struts20112. This release is a fast track security fix release, including a security fixed version 2.0.5 of XWork, which corrects a serious vulnerability in ParametersInterceptor allowing malicious users to remotely change server side context objects. For more information about the exploit, visit our security bulletins page at http://struts.apache.org/2.0.11.2/docs/s2-003.html. IMPORTANT ADDITIONAL NOTES: There are two known issues with this release: 1. the integrated XWork 2.0.5 jar may cause problems when used in a combination of WebSphere 6.1 runtime environments with validation configuration via XML files. Possible Workarounds: - use annotation based validation definition instead XML based - stay with Struts 2.0..11.1 including XWork 2.0.4, applying the following exclude rule to your parameter interceptor refs in struts.xml interceptor-ref name=params param name=excludeParams.*[[^\\p{Graph}][#:=]].*/param /interceptor-ref 2. the filtering mechanism implemeted in XWork's ParametersInterceptor to fix the described security issue does not completely avoid any possible malicious parameter name. Possible Workaround: - apply the following exclude rule to your parameter interceptor refs in struts.xml to avoid the usage of backslash characters in parameter names interceptor-ref name=params param name=excludeParams.*\\.*/param /interceptor-ref Both issues will be addressed in a soon upcoming XWork 2..0.6 release, followed by a new Struts 2.0 GA release including this new XWork version. * All developers are advised to either update Struts 2 applications to Struts 2.0.11.2 or manually exchange usages of xwork-2.0.x.jar with the fixed xwork-2.0.5.jar to prevent remotety induced context manipulations. For the complete release notes for Struts 2.0.11.2, see http://struts.apache.org/2.0.11.2/docs/release-notes-20112.html. - The Apache Struts Team. __ Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic radio buttons with bean
--- On Wed, 9/10/08, [EMAIL PROTECTED] wrote: Is this applicable to Struts 1.x? No. What's the issue with indexed properties? They're the recommended way to deal with indexed properties. You could just do it by hand, tool. Dave http://struts.apache.org/2.x/docs/radio.html specigy your list attribute to point to iterable map ( returned from Action class ) e.g. s:action name=GenderMap var=genders/ s:radio label=Gender name=male list=#genders.genders/ Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. From: [EMAIL PROTECTED] To: user@struts.apache.org Subject: Re: Dynamic radio buttons with bean Date: Wed, 10 Sep 2008 17:06:09 +0200 Sorry but i dont understand what you mean, that´s what I am trying to do, get the data, send it though a request bean to the jsp, and display the info as a radio button. As far as i know, is not as easy as 123 (or I think), that´s why I am looking for any better or easier ideas for indexed properties . http://faq.javaranch.com/java/IndexedProperties - http://struts.apache.org/1.x/struts-taglib/indexedprops.html Regards, - Original Message - From: Mead Lai To: Struts Users Mailing List Sent: Wednesday, September 10, 2008 3:19 PM Subject: Re: Dynamic radio buttons with bean use servlet the get the html, create the item name from database; then use servlet request get the value in the html, the name of buttons U can get from database 2. I think it's simple than others. -- BestRegards, Mead http://yayisoft.com Jack Benny - I don't deserve this award, but I have arthritis and I don't deserve that either. On Wed, Sep 10, 2008 at 9:06 PM, Dan [EMAIL PROTECTED] wrote: Hi, I need to display in a jsp a form with dynamic radio buttons, I mean: There are several items in my DB. One item is read (each item has one question and 4 possible answers). I need to display the question and the 4 answers as a radio option dynamically (with a bean). Then the users cheks an answer, and submits the selected option. The corresponding action is called. Afterwards, another different item is selected and the question/answers displayed, till the end of the test. I found this approach to display the properties of a bean as dynamic options using Indexed properties at: http://faq.javaranch.com/java/IndexedProperties Is there another approach or option to develop this stuff? Regards and thanks in advance ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Email procesado por MailFoundry _ Stay up to date on your PC, the Web, and your mobile phone with Windows Live. http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/ -- Email procesado por MailFoundry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic radio buttons with bean
Hi, There is nothing wrong : ) I just wanted to know if there was another method to deal with this. Thanks for the reply. Regards, - Original Message - From: Dave Newton To: Struts Users Mailing List Sent: Wednesday, September 10, 2008 6:18 PM Subject: Re: Dynamic radio buttons with bean --- On Wed, 9/10/08, [EMAIL PROTECTED] wrote: Is this applicable to Struts 1.x? No. What's the issue with indexed properties? They're the recommended way to deal with indexed properties. You could just do it by hand, tool. Dave http://struts.apache.org/2.x/docs/radio.html specigy your list attribute to point to iterable map ( returned from Action class ) e.g. s:action name=GenderMap var=genders/ s:radio label=Gender name=male list=#genders.genders/ Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. From: [EMAIL PROTECTED] To: user@struts.apache.org Subject: Re: Dynamic radio buttons with bean Date: Wed, 10 Sep 2008 17:06:09 +0200 Sorry but i dont understand what you mean, that´s what I am trying to do, get the data, send it though a request bean to the jsp, and display the info as a radio button. As far as i know, is not as easy as 123 (or I think), that´s why I am looking for any better or easier ideas for indexed properties . http://faq.javaranch.com/java/IndexedProperties - http://struts.apache.org/1.x/struts-taglib/indexedprops.html Regards, - Original Message - From: Mead Lai To: Struts Users Mailing List Sent: Wednesday, September 10, 2008 3:19 PM Subject: Re: Dynamic radio buttons with bean use servlet the get the html, create the item name from database; then use servlet request get the value in the html, the name of buttons U can get from database 2. I think it's simple than others. -- BestRegards, Mead http://yayisoft.com Jack Benny - I don't deserve this award, but I have arthritis and I don't deserve that either. On Wed, Sep 10, 2008 at 9:06 PM, Dan [EMAIL PROTECTED] wrote: Hi, I need to display in a jsp a form with dynamic radio buttons, I mean: There are several items in my DB. One item is read (each item has one question and 4 possible answers). I need to display the question and the 4 answers as a radio option dynamically (with a bean). Then the users cheks an answer, and submits the selected option. The corresponding action is called. Afterwards, another different item is selected and the question/answers displayed, till the end of the test. I found this approach to display the properties of a bean as dynamic options using Indexed properties at: http://faq.javaranch.com/java/IndexedProperties Is there another approach or option to develop this stuff? Regards and thanks in advance ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Email procesado por MailFoundry _ Stay up to date on your PC, the Web, and your mobile phone with Windows Live. http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/ -- Email procesado por MailFoundry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Email procesado por MailFoundry
Re: struts tiles problem
Any help would be appreciated. Tks! - Original Message From: Bipin Sadhwani [EMAIL PROTECTED] To: user@struts.apache.org Sent: Tuesday, September 9, 2008 1:07:12 PM Subject: struts tiles problem Hi everyone, I have this wierd issue with tiles. Probably its a bug. My environment is: Windows XP Professional, MyEclipse 6.0.1, Struts 2.0.6, Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2 I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so this is my config (simplified): tiles.xml - definition name=rootPage.index template=layout.jsp put-attribute name=pagetitle value=Page Body Title / put-attribute name=header value=header.jsp / put-attribute name=footer value=footer.jsp / /definition definition name=searchEmployee.index extends=rootPage.index put-attribute name=body value=searchEmpBody.index / /definition definition name=searchEmpBody.index template=/searchEmployee.jsp/ /definition definition name=status.index template=/status.jsp /definition layout.jsp --- body div class=container div id=header tiles:insertAttribute name=header / /div div id=mainContent tiles:insertAttribute name=body / /div /div /body Now following are the things I try on my searchEmployee.jsp searchEmployee.jsp - This works %@ taglib prefix=tiles uri=http://tiles.apache.org/tags-tiles;% %@ taglib prefix=s uri=/struts-tags % tiles:insertDefinition name=status.index/ searchEmployee.jsp - This also works %@ taglib prefix=tiles uri=http://tiles.apache.org/tags-tiles;% %@ taglib prefix=s uri=/struts-tags % s:form action=listEmployees tiles:getAsString name=pagetitle/ /s:form searchEmployee.jsp - This does work (only if I use tiles:insertDefinition below s:form) %@ taglib prefix=tiles uri=http://tiles.apache.org/tags-tiles;% %@ taglib prefix=s uri=/struts-tags % s:form action=listEmployees /s:form tiles:insertDefinition name=status.index/ searchEmployee.jsp - This does NOT work (if I use tiles:insertDefinition above or within s:form things don't work) %@ taglib prefix=tiles uri=http://tiles.apache.org/tags-tiles;% %@ taglib prefix=s uri=/struts-tags % s:form action=listEmployees tiles:insertDefinition name=status.index/ /s:form I get a long exception stack trace which basically says nullptrexception. I'll send it in the next mail as there's size limit. I've done the same thing using tiles1.x and it has always worked. Tks Bipin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)
Thanks. Applying the workaround with Struts 2.0.11.1 and XWorks 2.0.4, and modifying struts.xml by adding the interceptor-ref tag does not work: 22:58:02,671 ERROR [[default]] Servlet.service() for servlet default threw exception java.lang.IllegalArgumentException: URI scheme is not file at java.io.File.init(Unknown Source) at com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:314) at com.opensymphony.xwork2.validator.ValidatorFactory.clinit(ValidatorFactory.java:224) at com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processRequiredFieldValidatorAnnotation(AnnotationValidationConfigurationBuilder.java:575) at com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processAnnotations(AnnotationValidationConfigurationBuilder.java:149) at com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.buildAnnotationClassValidatorConfigs(AnnotationValidationConfigurationBuilder.java:783) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs(AnnotationActionValidatorManager.java:254) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(AnnotationActionValidatorManager.java:340) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:69) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:138) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:113) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:100) at com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.java:142) at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:148) at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) I guess it is game over until a new working release comes out ... --- On Wed, 9/10/08, Struts Two [EMAIL PROTECTED] wrote: From: Struts Two [EMAIL PROTECTED] Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file) To: Struts Users Mailing List user@struts.apache.org Date: Wednesday, September 10, 2008, 9:09 AM I believe the issue should be fixed on 2.1.2 (for Websphere at least), but it still remains an issue for Struts 2.0.11.2 (for Websphere users). See the email below: - Original Message From: Rene Gielen [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, July 16, 2008 2:40:38 AM Subject: [ANN] Struts 2.0.11.2 General Availability Release with Important Security Fix Apache Struts 2.0..11.2 is now available from http://struts.apache.org/download.cgi#struts20112. This release is a fast track security fix release, including a security fixed version 2.0.5 of XWork, which corrects a serious vulnerability in ParametersInterceptor allowing malicious users to remotely change server side context objects. For more information about the exploit, visit our security bulletins page at http://struts.apache.org/2.0.11.2/docs/s2-003.html. IMPORTANT ADDITIONAL NOTES: There are two known issues with this release: 1. the integrated XWork 2.0.5 jar may cause problems when used in a combination of WebSphere 6.1 runtime environments with validation configuration via XML files. Possible Workarounds: - use annotation based validation definition instead XML based - stay with Struts 2.0..11.1 including XWork 2.0.4, applying the following exclude rule to your parameter interceptor refs in struts.xml interceptor-ref name=params param name=excludeParams.*[[^\\p{Graph}][#:=]].*/param /interceptor-ref 2. the filtering mechanism implemeted in XWork's ParametersInterceptor to fix the described security issue does not completely avoid any possible malicious parameter name. Possible Workaround: - apply the following exclude rule to your parameter interceptor refs in struts.xml to avoid the usage of backslash characters in parameter names interceptor-ref name=params param name=excludeParams.*\\.*/param /interceptor-ref Both issues will be addressed in a soon upcoming XWork 2..0.6
Re: IS struts 2 websphere compatible?
YES, you can backport struts 2 core and dependancy jar files to JDK 1.4 and use them. Here are the details of backporting http://struts-2-developers.blogspot.com/2008/08/backporting-struts-2-to-jdk14-using.html Backporting Struts 2 to JDK 1.4 Regards, Priya Praveen, Galagali (IE10) wrote: Hi, If struts2 needs jdk version 5 and if websphere 5.x or 6.x is not compatible with jdk 1.5 can we still use struts 2 for our application and still get it work fine ? Thanks, Praveen -- View this message in context: http://www.nabble.com/IS-struts-2--websphere-compatible--tp9017881p19425010.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom validation with Struts2
If Integer Range Validator does not work for you then you shoud consider regular expression validation for same, its can be done by restricting number of digits and allowing only numeric characters. Here is an example of similar problem http://struts-2-developers.blogspot.com/2008/08/struts-2-integer-validation-example.html Struts 2 Integer Validation fil78 wrote: Hello everybody, I need to validate only 1 field on the jsp. It value should be between 1 and 99. Initially I started to implement through int validation but it seemed to go wrong - it works with some limitation - maximum value should not exceed 1000 or something like that. I am trying to implement validation through overriding validate() method. I use tiles together with Struts 2.0.11. I could not tune it to work correctly. Could someone help, please? Here are my snippets: Struts.xml: action name=EmployeeCard class=com.tsystems.tintra4.actions.EmployeeCard interceptor-ref name=i18n / interceptor-ref name=roles WTT_CARDS_EDITOR /interceptor-ref !-- interceptor-ref name=workflow/-- interceptor-ref name=workflow/ result type=tiles name=SUCCESSdef_page_employee_card/result result type=tiles name=input def_page_employee_card /result /action Jsp: %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% %@ taglib prefix=s uri=/struts-tags % !--Reference to the Employee profile-- div s:url id=url_fio action=GetEmployee includeParams=none s:param name=employeeIds:property value=%{EmpNo}//s:param /s:url s:a href=%{url_fio} s:property value=%{fio}/ /s:a /div br/ !--Adding new card-- s:if test=addCard == true s:text name=card_adding_proccess/s:text s:fielderror/ s:form method=GET validate=true s:textfield name=cardNo label=%{getText('card_add_edit_field')}/s:textfield s:textfield name=EmpNo value=%{EmpNo}/s:textfield s:hidden name=editCard value=%{true}/s:hidden s:hidden name=addCardFinal value=%{true}/s:hidden s:submit value=%{getText('button_submit')}/ /s:form /s:if !--Editing new card-- s:if test=editCard == true s:text name=card_editing_proccess/s:text s:fielderror/ s:form method=GET validate=true s:textfield name=cardNo label=%{getText('card_add_edit_field')}/s:textfield s:hidden name=EmpNo value=%{EmpNo}/s:hidden s:hidden name=editCard value=%{true}/s:hidden s:hidden name=editCardFinal value=%{true}/s:hidden s:submit value=%{getText('button_submit')}/ /s:form /s:if JAVA Action: public void validate() { request = ServletActionContext.getRequest(); String tmp = ; try { tmp = request.getParameter(cardNo); Integer i = this.getCardNo(); if (tmp != null tmp.length() 0) { int tmpInt = Integer.parseInt(tmp); this.setCardNo(tmpInt); System.out.println(Card no (validation) = + cardNo); if (cardNo 1 || cardNo 99) { addFieldError(cardNo, Must be int); System.out.println(INPUT...); } } } catch (Exception e) { e.printStackTrace(); } } Thanx a lot. Best regards, Filippov Andrey -- View this message in context: http://www.nabble.com/Custom-validation-with-Struts2-tp16115973p19425117.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom validation with Struts2
The OP isn't really using the built-in intrange validator, but doing it manually (for some reason). The problem, however, lies in the OP's configuration fragment: action name=EmployeeCard class=com.tsystems.tintra4.actions.EmployeeCard interceptor-ref name=i18n / interceptor-ref name=roles WTT_CARDS_EDITOR /interceptor-ref interceptor-ref name=workflow/ result type=tiles name=SUCCESSdef_page_employee_card/result result type=tiles name=inputdef_page_employee_card/result /action As soon as you start defining an action's interceptors you are defining *all* the action's interceptors. In other words, this action will *only* be using the i18n, roles, and workflow interceptors. This bypasses the default stack, which includes the validation interceptor--the interceptor that calls an action's validate() method. In order to call the validate() method we must include the validation interceptor or stack that includes it. I'm also not sure if result names are case-sensitive, but if they are, the above result named SUCCESS will not be found by an action returning success or ActionSupport.SUCCESS. As to why the OP is bypassing the bundled int range validator, not sure, but unless there's a good reason for it, I wouldn't bother re-writing existing functionality. Dave --- On Wed, 9/10/08, Priyanka.dandekar wrote: If Integer Range Validator does not work for you then you shoud consider regular expression validation for same, its can be done by restricting number of digits and allowing only numeric characters. Here is an example of similar problem http://struts-2-developers.blogspot.com/2008/08/struts-2-integer-validation-example.html Struts 2 Integer Validation fil78 wrote: Hello everybody, I need to validate only 1 field on the jsp. It value should be between 1 and 99. Initially I started to implement through int validation but it seemed to go wrong - it works with some limitation - maximum value should not exceed 1000 or something like that. I am trying to implement validation through overriding validate() method. I use tiles together with Struts 2.0.11. I could not tune it to work correctly. Could someone help, please? Here are my snippets: Struts.xml: action name=EmployeeCard class=com.tsystems.tintra4.actions.EmployeeCard interceptor-ref name=i18n / interceptor-ref name=roles WTT_CARDS_EDITOR /interceptor-ref !-- interceptor-ref name=workflow/-- interceptor-ref name=workflow/ result type=tiles name=SUCCESSdef_page_employee_card/result result type=tiles name=input def_page_employee_card /result /action Jsp: %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% %@ taglib prefix=s uri=/struts-tags % !--Reference to the Employee profile-- div s:url id=url_fio action=GetEmployee includeParams=none s:param name=employeeIds:property value=%{EmpNo}//s:param /s:url s:a href=%{url_fio} s:property value=%{fio}/ /s:a /div br/ !--Adding new card-- s:if test=addCard == true s:text name=card_adding_proccess/s:text s:fielderror/ s:form method=GET validate=true s:textfield name=cardNo label=%{getText('card_add_edit_field')}/s:textfield s:textfield name=EmpNo value=%{EmpNo}/s:textfield s:hidden name=editCard value=%{true}/s:hidden s:hidden name=addCardFinal value=%{true}/s:hidden s:submit value=%{getText('button_submit')}/ /s:form /s:if !--Editing new card-- s:if test=editCard == true s:text name=card_editing_proccess/s:text s:fielderror/ s:form method=GET validate=true s:textfield name=cardNo label=%{getText('card_add_edit_field')}/s:textfield s:hidden name=EmpNo value=%{EmpNo}/s:hidden s:hidden name=editCard value=%{true}/s:hidden s:hidden name=editCardFinal value=%{true}/s:hidden s:submit value=%{getText('button_submit')}/ /s:form /s:if JAVA Action: public void validate() { request = ServletActionContext.getRequest(); String tmp = ; try { tmp = request.getParameter(cardNo); Integer i = this.getCardNo(); if (tmp != null tmp.length() 0) { int tmpInt = Integer.parseInt(tmp); this.setCardNo(tmpInt);
Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)
Musachy Barroso wrote: this ticket: https://issues.apache.org/struts/browse/WW-2653 ? Yeah, that's a fix for the same issue. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)
Do not give up, the game is not still over . (you can still do sth about it) As an alternative, you can import the source code of xwork into ur workspace and remove xwork the jar file, run your code in debug mode, find the culprit, fix it. Then you can replace the class file in xwork jar file with the one fixed. That is what I usually do on the last resort, and it is garuanteed to work. - Original Message From: Bobby Mitch [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, September 10, 2008 5:01:14 PM Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file) Thanks. Applying the workaround with Struts 2.0.11.1 and XWorks 2.0..4, and modifying struts.xml by adding the interceptor-ref tag does not work: 22:58:02,671 ERROR [[default]] Servlet.service() for servlet default threw exception java.lang.IllegalArgumentException: URI scheme is not file at java.io.File.init(Unknown Source) at com..opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:314) at com.opensymphony.xwork2.validator.ValidatorFactory.clinit(ValidatorFactory.java:224) at com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processRequiredFieldValidatorAnnotation(AnnotationValidationConfigurationBuilder.java:575) at com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processAnnotations(AnnotationValidationConfigurationBuilder..java:149) at com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.buildAnnotationClassValidatorConfigs(AnnotationValidationConfigurationBuilder.java:783) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs(AnnotationActionValidatorManager.java:254) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(AnnotationActionValidatorManager.java:340) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:69) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:138) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:113) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:100) at com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.java:142) at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:148) at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) I guess it is game over until a new working release comes out --- On Wed, 9/10/08, Struts Two [EMAIL PROTECTED] wrote: From: Struts Two [EMAIL PROTECTED] Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file) To: Struts Users Mailing List user@struts.apache.org Date: Wednesday, September 10, 2008, 9:09 AM I believe the issue should be fixed on 2.1.2 (for Websphere at least), but it still remains an issue for Struts 2.0.11.2 (for Websphere users). See the email below: - Original Message From: Rene Gielen [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, July 16, 2008 2:40:38 AM Subject: [ANN] Struts 2.0.11.2 General Availability Release with Important Security Fix Apache Struts 2.0..11.2 is now available from http://struts.apache.org/download.cgi#struts20112. This release is a fast track security fix release, including a security fixed version 2.0.5 of XWork, which corrects a serious vulnerability in ParametersInterceptor allowing malicious users to remotely change server side context objects. For more information about the exploit, visit our security bulletins page at http://struts.apache.org/2.0.11.2/docs/s2-003.html. IMPORTANT ADDITIONAL NOTES: There are two known issues with this release: 1. the integrated XWork 2.0.5 jar may cause problems when used in a combination of WebSphere 6.1 runtime environments with validation configuration via XML files. Possible Workarounds: - use annotation based validation definition instead XML based - stay with Struts 2.0..11.1 including XWork 2.0.4, applying the following exclude rule to
Re: Sorting with displaytag issue due to theme=ajax
I¹m not certain, but could this be a conflict between jquery and whatever new js libraries you¹ve added: script src=src/javascript/optiontransferselect.js type=text/javascript/ s:head theme=ajax/ script src=src/javascript/stuHover.js type=text/javascript/script I¹d look into these 3. That¹s probably where the issue lies. Z.
Struts 2.1 Tree Problem
Hi, now i am working with tree control, when i load the tree i want to load it default extended and what ever the node id i pass that should be activated. how i can achieve this using struts 2.1 version. and one more thing is when i select a node in the jsp page itself i have to find out the parent of the node selected. please help me to solve this issue, i am kind of stuck.. Thanks in advance.
Unit Testing Struts 2
Hi all: Does anyone have a working example of unit testing a Struts 2 app? I've been looking around for awhile know and found the following resources. However, I've not been able to get any of them to work. http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing- struts-2-actions-spring-junit/ http://www.soft-gems.net/index.php? option=com_contenttask=viewid=47Itemid=33 http://struts.apache.org/2.0.8/docs/how-can-we-test-actions.html I'm using Struts 2.1.3 and want to test Interceptors and result types, not just the Action POJO's. Any help or resources are greatly appreciated! Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unit Testing Struts 2
Have you looked at the tests in the source repository? Nils-H On Thu, Sep 11, 2008 at 7:31 AM, Mark [EMAIL PROTECTED] wrote: Hi all: Does anyone have a working example of unit testing a Struts 2 app? I've been looking around for awhile know and found the following resources. However, I've not been able to get any of them to work. http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/ http://www.soft-gems.net/index.php?option=com_contenttask=viewid=47Itemid=33 http://struts.apache.org/2.0.8/docs/how-can-we-test-actions.html I'm using Struts 2.1.3 and want to test Interceptors and result types, not just the Action POJO's. Any help or resources are greatly appreciated! Mark - 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]
Re: Unit Testing Struts 2
I had a look at a few in the 2.0.11.1 source tree. I couldn't understand how they were structured. I haven't looked at the 2.1.3 source tree. Is there a particular one you would suggest? Mark On 11/09/2008, at 3:40 PM, Nils-Helge Garli Hegvik wrote: Have you looked at the tests in the source repository? Nils-H On Thu, Sep 11, 2008 at 7:31 AM, Mark [EMAIL PROTECTED] wrote: Hi all: Does anyone have a working example of unit testing a Struts 2 app? I've been looking around for awhile know and found the following resources. However, I've not been able to get any of them to work. http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing- struts-2-actions-spring-junit/ http://www.soft-gems.net/index.php? option=com_contenttask=viewid=47Itemid=33 http://struts.apache.org/2.0.8/docs/how-can-we-test-actions.html I'm using Struts 2.1.3 and want to test Interceptors and result types, not just the Action POJO's. Any help or resources are greatly appreciated! Mark - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]