html:errors/
Hi I have been trying to use struts and wanted to use the html:errors/ tag. I wanted to the error messages to be read from a database instead of the ActionResources properties file. Could you let me know what exactly I am suppose to do to achive that. I wanted to changed the code at the place where it was looking for the properties files and make it look into the database. Could any one suggest me how to do that or has anybody done that already. Thanks Kanna Get free email and a permanent address at http://www.netaddress.com/?N=1
Re: html:errors/
I think I would subclass MessageResources and MessageResourcesFactory, then specify the name of the new factory class in web.xml. HTH Jean-Noel - Original Message - From: Muthu Kannappan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 12:39 AM Subject: html:errors/ Hi I have been trying to use struts and wanted to use the html:errors/ tag. I wanted to the error messages to be read from a database instead of the ActionResources properties file. Could you let me know what exactly I am suppose to do to achive that. I wanted to changed the code at the place where it was looking for the properties files and make it look into the database. Could any one suggest me how to do that or has anybody done that already. Thanks Kanna Get free email and a permanent address at http://www.netaddress.com/?N=1
RE: Where's the best place to do authentication
Hi Shogo, Have a look at the 'example' webapp provided with struts, this uses a taglib to check the user is logged on, I'm sure you could use/amend it to fit your purpose. Jon. -Original Message- From: Ito, Shogo [mailto:[EMAIL PROTECTED]] Sent: 21 May 2001 20:11 To: [EMAIL PROTECTED] Subject: Where's the best place to do authentication Where would be the best place/way to authenticate every user's request? I want to avoid inserting code to authenticate in all of my classes which extend Action class. Should I create a class like MyAction to put this sort of code, then extends this new class? Any better way? Any suggestion greatly appreciated. Shogo
Hide and Show Problem
Hello Friends i am facing a problem.i want to hide and show a text box (html element ) at run time. using both netscape 4.x and IE 4.x the problem is it works fine with IE if i use a style sheet with the element and at run time using java script functions i can say for hide document.forms[0].element.style.dispaly=none; for show document.forms[0].element.style.dispaly=block; but when i try to use style with netscape 4.x it does not support style sheet. also it is difficult or rather not possible to access a div tag usin netscape. CAN any body of you help me find a way out of this problem or can anybody suggest a newsgroup or place where i can put forward my problem.please help.i am getting frustrated with the problem i have tried many ways but Dinesh
RE: Hide and Show Problem
look this is working fine with ie but not with netscape 4.6 the text field is not even looking like disabled sort this does not solve my problem. -Original Message- From: Michaƫl Bellefroid [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 2:41 PM To: '[EMAIL PROTECTED]' Subject: RE: Hide and Show Problem I had the same problem and find no way to achieve this under NS. So I used the following : function showElement(someTestForVisibility) if (someTestForVisibility == false) { document.myformobj.elementToHide.blur(); document.myformobj.elementToHide.value=; // remove element content if(document.all) // IE specific document.myformobj.elementToHide.style.visibility=hidden; } else { if(document.all) // IE specific document.myformobj.elementToHide.style.visibility=visible; } } Now, you can put wherever you want a showElement(true) to make it appear in IE and showElement(false) to make it disappear. More, in the onFocus of the element to hide onFocus=showElement(test) In IE, the element will disappear if test is false. Under Netscape, the field won't disappear but it will be locked This was used to make a text field appear/disappear if some select box had a 'OTHER' value. In the select box, there was an onChange=showElement(this.value=='OTHER') and in the textbox element there was a onFocus=showElement(document.myformobj.elementToHide.value=='OTHER') hope this helps. mikl -Original Message- From: Dinesh Chaturvedi [mailto:[EMAIL PROTECTED]] Sent: mardi 22 mai 2001 10:56 To: [EMAIL PROTECTED] Subject: Hide and Show Problem Hello Friends i am facing a problem.i want to hide and show a text box (html element ) at run time. using both netscape 4.x and IE 4.x the problem is it works fine with IE if i use a style sheet with the element and at run time using java script functions i can say for hide document.forms[0].element.style.dispaly=none; for show document.forms[0].element.style.dispaly=block; but when i try to use style with netscape 4.x it does not support style sheet. also it is difficult or rather not possible to access a div tag usin netscape. CAN any body of you help me find a way out of this problem or can anybody suggest a newsgroup or place where i can put forward my problem.please help.i am getting frustrated with the problem i have tried many ways but Dinesh
Re: Where's the best place to do authentication
Jon.Ridgway [EMAIL PROTECTED] writes: Hi Shogo, Have a look at the 'example' webapp provided with struts, this uses a taglib to check the user is logged on, I'm sure you could use/amend it to fit your purpose. Jon. I am not very happy with taglibs checking for logged in user. Taglibs can be used only in JSP and JSP should implement the View part of the MVC pattern. Authenticating users is bussiness logic and so it shoud be done somewhere in the actions. -- gR
Re: unsubcribe
jamil,mahmood wrote: Please unsubscribe me from this list.
Re: Hide and Show Problem
I would do this on the server side by wrapping the text box in a logic tag. logic:present name=visibilityFlag html:text ... \ /logic:present But perhaps you have a requirement to do it on the client. - Original Message - From: Dinesh Chaturvedi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 22, 2001 4:56 AM Subject: Hide and Show Problem Hello Friends i am facing a problem.i want to hide and show a text box (html element ) at run time. using both netscape 4.x and IE 4.x the problem is it works fine with IE if i use a style sheet with the element and at run time using java script functions i can say for hide document.forms[0].element.style.dispaly=none; for show document.forms[0].element.style.dispaly=block; but when i try to use style with netscape 4.x it does not support style sheet. also it is difficult or rather not possible to access a div tag usin netscape. CAN any body of you help me find a way out of this problem or can anybody suggest a newsgroup or place where i can put forward my problem.please help.i am getting frustrated with the problem i have tried many ways but Dinesh
RE: Form tag problem in VAJ 3.5.3 WTE with 1.0b2
Thanks John. For now we simply stepped back to b1. But maybe this indicates that your changes should be applied struts, so that we can all benefit from it. -hendrik Hi Hendrik, This is a 'feature' of WTE. To resolve it edit org.apache.struts.taglib.FormTag.doEndTag so the first two lines read : // Remove the page scope attributes we created pageContext.removeAttribute(Constants.BEAN_KEY); pageContext.removeAttribute(Constants.FORM_KEY); This seems to resolve the issue, not sure if its the best way round it however. Jon. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 22 May 2001 06:40 To: [EMAIL PROTECTED] Subject: Form tag problem in VAJ 3.5.3 WTE with 1.0b2 Hi, we just downloaded and tried the new beta2 and experienced problems with Visual Age Websphere Test Environement 3.5.3. It seems that it does not allow to remove attributes from a request, which is apparently done by the form tag. Does anybody else have this problem? To me it seems like a bug in WTE. Cheers, -hendrik Here's the errormessage: Error ReportError 500 An error has occured while processing request:http://localhost:8080/CIC/index.jsp Message: Server caught unhandled exception from servlet [jsp]: cant remove Attributes from request scope Target Servlet: jsp StackTrace: Root Error-1: cant remove Attributes from request scope java.lang.IllegalArgumentException: cant remove Attributes from request scope java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String) java.lang.RuntimeException(java.lang.String) java.lang.IllegalArgumentException(java.lang.String) void org.apache.jasper.runtime.PageContextImpl.removeAttribute(java.lang.Stri ng, int) int org.apache.struts.taglib.html.FormTag.doEndTag() void _index_xjsp_debug_jspsrc_547983255._jspService(javax.servlet.http.HttpSe rvletRequest, javax.servlet.http.HttpServletResponse) void org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpSer vletRequest, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.ser vlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean) void org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.H ttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Throwable, boolean) void org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServ letRequest, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.serv let.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.serv let.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.webapp.ServicingServletState.service(com.ibm.serv let.engine.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servl et.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.Serv letRequest, javax.servlet.ServletResponse, com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ib m.servlet.engine.webapp.ServletInstanceReference, javax.servlet.ServletRequest, javax.servlet.ServletResponse, com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.se rvlet.ServletRequest, javax.servlet.ServletResponse, com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispat ch(com.ibm.servlet.engine.webapp.WebAppRequest, javax.servlet.http.HttpServletResponse, boolean) void com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.ser vlet.ServletRequest, javax.servlet.ServletResponse, boolean) void com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.serv let.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang. Object) void com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java .lang.Object) void com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.la ng.String, com.ibm.servlet.engine.srp.ISRPConnection) void com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm .servlet.engine.oselistener.api.IOSEConnection) void
Collections.EMPTY_MAP since JDK 1.3
Hi, in BeanUtils (public static Map describe(Object bean)) the constant Collections.EMPTY_MAP is used. This constant was only defined in JDK 1.3. It would be nice if this could be changed (back?) to using something like public static final Map EMPTY_MAP = new HashMap(); so that people having to deploy to a not yet 1.3 platform can still use struts. Cheers, -hendrik
Re: Question on the ActionForm design for dynamic data?
Title: RE: Question on the ActionForm design for dynamic data? Yes Yes. While the form will be automatically populated, you will, however, need to write your own validation for the form collection(s). - Original Message - From: Joyce Tang To: 'Jeff Trent ' Sent: Monday, May 21, 2001 7:56 PM Subject: RE: Question on the ActionForm design for dynamic data? Thank you Jeff. I am wondering if the Struts can handle the validation of each row? In the same time, will the form be automatically populated by the form? Thanks -Original Message- From: Jeff Trent To: [EMAIL PROTECTED] Sent: 5/20/01 5:11 AM Subject: Re: Question on the ActionForm design for dynamic data? (1) Have a Vector / Collection of contributors (ie. getContributors()) belonging to your form. Inside that function, check to see if you need more rows by using code similar to the following: public Vector getCustomerContacts() { CustomerContact lastCustomerContact = (CustomerContact)this.customerContacts.lastElement(); if (!lastCustomerContact.isEmpty()) // is this slot being used? this.customerContacts.addElement(new CustomerContact()); // always have one available slot at the end of the matrix return this.customerContacts; } (2) Do not use the reset() method. (3) On your JSP, use code like this: % int i = 0; % logic:iterate id="customerContact" name="adminUpdateProfileForm" property="customerContacts" tr td class="smallFont"input type='text' name="customerContact[%= i %].contactName" value="%= ((com.domain.project.CustomerContact)customerContact).getContactName() %"/td td class="smallFont"input type='text' name="customerContact[%= i %].contactTitle" value="%= ((com.domain.project.CustomerContact)customerContact).getContactTitle() %"/td td class="smallFont"input type='text' name="customerContact[%= i %].contactPhone" value="%= ((com.domain.project.CustomerContact)customerContact).getContactPhone() %"/td /tr % i++; % /logic:iterate (4) Have a button on the form "Add more rows" in which case the form posts to itself and will cause a new row to be added at the bottom of the grid. Hope this help, Jeff - Original Message - From: Joyce Tang mailto:[EMAIL PROTECTED] To: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Sent: Saturday, May 19, 2001 11:28 PM Subject: Question on the ActionForm design for dynamic data? Here is the situation. I am developing a system to maintain a contribution plan. I need to input the plan information first and add unlimited number of contributors, specifying each share of the plan. So there will be a page with contribution plan information and a list of all the contributors. The information you can edit on this page is the percentage of share of each contributor. Validation rules are: share need to add up to 100 and share figure is an integer between 0 and 100. Since the number of contributors is unknown in advance, how should I design the ActionForm? Thanks a lot, Joyce
unsubcribe
Please unsubscribe me from this list.
RE: problem using struts in SilverStream
Hi Wayne, Thanks for youre feedback. I m using Xerces and version of my silverstream is 3.7.1. as i mentioned in my previous mail, this application was working fine last thursday and suddenly it start giving problem on friday. any help will be appreciated. Thanks Tanver -Original Message- From: Young, Wayne [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 7:12 PM To: '[EMAIL PROTECTED]' Subject: RE: problem using struts in SilverStream I don't know what parser you are using, but I always have to verify the version of Xerces in the SilverStream\lib folder is compatible. We've had some issues in the past. Are you using SilverStream 3.7.2? I wasn't able to get any of the prior version working, but 3.7.2 has been working fine this week. (5 separate web apps) Wayne [EMAIL PROTECTED] -Original Message- From: Afzal, Tanver [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 4:50 PM To: '[EMAIL PROTECTED]' Subject: problem using struts in SilverStream Hi All, i am having a problem with using struts in SilverStream. our application was working fine until yesterday but all of sudden it start me showing problems today when i start in the morning. application is still working fine in tomcat environment.problem is in parsing the xml and TLD files. here is the error message Fatal error: /WEB-INF/struts-bean.tld: Failed to read the TLD, reason: org.xml.sax.SAXException. Fatal error: /index.jsp (2): TagLib declaration prefix='bean', uri='/WEB-INF/struts-bean.tld' failed, reason: Encountered 1 errors. any help will be appreciated! Best regards Tanver
image tag to submit information
Hi All , For those of you out there who have used image buttons to submit information, i have a problem which i am hoping you will help me with... I am using an image where onclick will let me open a new window with the new information on it. The below html does this quite nicely. A HREF=javascript:results_popup(1);img src=image/b_profile.gif border=0/A Can anybody tell me how to use the struts html:image or html:img tag to do this...Also i want the image to be an internationalized image. So i want to specify my image location in the properties file. Anybody who has done this before please share your solution. I have spend quite a lot of time trying to crack this (without success) and this is upsetting my schedule. Thanks a lot. cheers, Amar..
Re: Struts and Sun's J2EE Patterns
Hi Craig, Craig R. McClanahan wrote: On Fri, 16 Mar 2001, Dan Malks wrote: [snip] In fact, I've gotten some emails recently asking me to write a paper about the relationship of an existing framework and the Patterns. Describing the synergy between Struts and the J2EE Patterns might be an interesting example of the decomposition of a specific framework into some of the component patterns from which it is composed. Craig, any interest in working together on something like this? (I'm too busy at the moment too, but maybe sometime in the not so distant future ;-) Anyway, not sure if this would be of interest to the community at large, but I think it might be... Thanks, Dan I would be interested in working on something like this. The next three weeks are totally impossible (I'm speaking at both O'Reilly Enterprise Java Conference and ApacheCon, and have some real work to get done along the way :-), but would have a little time to talk about this in April. Thanks, Dan Craig April's come and gone and I've been too busy to even think about writing something, as I imagine you have been. At the same time, would you like to discuss an outline at some point, so we can consider doing this? Let me know what you think. Thanks, Dan -- Dan MalksSun Java Center Enterprise Java Architect703.208.5794 Craig -- Dan MalksSun Java Center Enterprise Java Architect703.208.5794
Template tags and multiple directories
I'm running into some weird behavior using the template tags. I have a directory structure which separates different areas of my application into different directories. My template.jsp file is in my root directory and is shared by pages in the sub-directories. The problem is, all paths to other resources (i.e. - images, javascript, etc) become broken because the application is looking for these items relative to the template.jsp file. Here's what my directory structure looks like: root template.jsp header.jsp footer.html images login login.jsp -inserts template.jsp loginForm.jsp ---content for the login page . . . Is there something really obvious that Im missing here? Shouldn't all resources be relative to the login.jsp page rather than the template.jsp page? Any ideas, suggestions, or donations of large amounts of money are greatly appreciated.
RE: Permissions: read-only vs. writable version
Title: Referer pages and structs Write your own tag which takes in as input a parameter,. It checks the permissions for that parameter and returns true or false. cheers, Amar.. -Original Message-From: Shunhui Zhu [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 22, 2001 12:34 PMTo: [EMAIL PROTECTED]Subject: Permissions: read-only vs. writable version Hi, I'm wondering whether anyone knows of a solution, prefereably via tags, to the permission problem. I have a page, but depending on the user, I'd like to present it as either read-only, or as writable, this can even be on the field-by-field level. For example, the price field, should either be presented as input type=text for a writable version, or simply as text for a read-only version. The not so pretty solution is to put all the logic:equal type of tag around the fields, but I'd like to know whether there are other solutions, such as put the logic in the html:text tags, or some other way. Thanks. Shunhui
RE: Where's the best place to do authentication
Gregor the example application has the tag to check for logged in user in the jsp page. But in addition to this - they also check if the user is logged in in each action class. Another thing is the tag is not really authenticating the user but just checkign if the user has been authenticated, so that the user cant even see the jsp rather than find out upon performing some action in the page that he is not authenticated. pratima -Original Message- From: Gregor Rayman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 3:59 AM To: [EMAIL PROTECTED] Subject: Re: Where's the best place to do authentication Jon.Ridgway [EMAIL PROTECTED] writes: Hi Shogo, Have a look at the 'example' webapp provided with struts, this uses a taglib to check the user is logged on, I'm sure you could use/amend it to fit your purpose. Jon. I am not very happy with taglibs checking for logged in user. Taglibs can be used only in JSP and JSP should implement the View part of the MVC pattern. Authenticating users is bussiness logic and so it shoud be done somewhere in the actions. -- gR
RE: Permissions: read-only vs. writable version
Title: Referer pages and structs Sounds like the best solution is to write your own form field tags (perhaps subclassing the Struts ones). A lot of work, maybe, but has the best reusability separation of logic and presentation. -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW/ 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -Original Message-From: Shunhui Zhu [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 22, 2001 12:34 PMTo: [EMAIL PROTECTED]Subject: Permissions: read-only vs. writable version Hi, I'm wondering whether anyone knows of a solution, prefereably via tags, to the permission problem. I have a page, but depending on the user, I'd like to present it as either read-only, or as writable, this can even be on the field-by-field level. For example, the price field, should either be presented as input type=text for a writable version, or simply as text for a read-only version. The not so pretty solution is to put all the logic:equal type of tag around the fields, but I'd like to know whether there are other solutions, such as put the logic in the html:text tags, or some other way. Thanks. Shunhui
RE: How to use the new iterate tag?
You should be using struts-logic.tld, not struts.tld. Never use struts.tld. -Original Message- From: Amos Shapira [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 1:16 PM To: '[EMAIL PROTECTED]' Subject: RE: How to use the new iterate tag? I use the TLD extracted from the .jar file, as far as I can tell. -Original Message- From: Deadman, Hal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 6:14 PM To: [EMAIL PROTECTED] Subject: RE: How to use the new iterate tag? Type should be available as an attribute of the iterate tag. Which tld are you using? The tld and the documentation are generated from the same xml file so they shouldn't be out of sync. I think the iterate tag exposes the index for use by nested custom tags, but I don't know if any tags in struts make use of the exposed index. Maybe you have to write your own tag to access it? Hal -Original Message- From: Amos Shapira [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 7:19 AM To: '[EMAIL PROTECTED]' Subject: How to use the new iterate tag? Hello, I'm using Struts-1.0-b2. I'm trying to iterate over an array of objects using the iterate tag as follows: logic:iterate id = header collection = %= headers % type = some.class But I get an error like: Attribute type invalid according to the specified TLD And indeed it looks like the type attribute is not specified in the TLD, contrary to what the documentation says. When I try to drop the type attribute I see in the .java class that Tomcat defines header as a java.lang.Object and obviously fails later when I access class methods. I also tried to declare header using useBean, but I get a variable already defined error. Does anyone know what am I doing wrong? Also, I read in the documentation that now the iteration tag exposes the current index number, can anyone show me how can I access this from a JSP page? I couldn't find an example in the distribution. Thanks, --Amos Shapira
Forums???
This email list server is kind of weak in terms of threads and discussion. Should be moved over to a Forums. I built a really good robust one. If I get some requests, I can implement it and host it for free. Anyone interested in moving this over to a Forums?
RE: Where's the best place to do authentication
My view is that authentication is best handled totally outside of struts by the application server. The web deployment descriptor (web.xml) per the j2 spec is specifically designed to remove login mechanics from the developer. I'm running the JBoss/Tomcat at home and weblogic 5.1 at work and authentication using form based authentication works just fine. If the user can get to a page then they are already authenticated. Kurt -Original Message- From: George Henry C. Daswani [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 1:42 PM To: '[EMAIL PROTECTED]' Subject: RE: Where's the best place to do authentication Has anybody used JAAS and struts together? Why not use native java security? George Daswani On Tue, 22 May 2001, Gogineni, Pratima wrote: Gregor the example application has the tag to check for logged in user in the jsp page. But in addition to this - they also check if the user is logged in in each action class. Another thing is the tag is not really authenticating the user but just checkign if the user has been authenticated, so that the user cant even see the jsp rather than find out upon performing some action in the page that he is not authenticated. pratima -Original Message- From: Gregor Rayman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 3:59 AM To: [EMAIL PROTECTED] Subject: Re: Where's the best place to do authentication Jon.Ridgway [EMAIL PROTECTED] writes: Hi Shogo, Have a look at the 'example' webapp provided with struts, this uses a taglib to check the user is logged on, I'm sure you could use/amend it to fit your purpose. Jon. I am not very happy with taglibs checking for logged in user. Taglibs can be used only in JSP and JSP should implement the View part of the MVC pattern. Authenticating users is bussiness logic and so it shoud be done somewhere in the actions. -- gR