Re: [Fwd: Re: [fileUpload] Question about file name]
Frank, If the File class does not normalize the string used to create the File, then there is a bug. There seems to be a bug in one version of Linux and that has been reported to Sun. The constructor for File is as follows: public File(String pathname) { if (pathname == null) { throw new NullPointerException(); } this.path = fs.normalize(pathname); this.prefixLength = fs.prefixLength(this.path); } Notice that an object fs is called to normalize the pathname. The object fs is created as a static field in all File classes as follows: static private FileSystem fs = FileSystem.getFileSystem(); The FileSystem class is an abstract class that has to be implemented, of course, for the os on which it exists. So, the basis for the class is a JNI method: public static native FileSystem getFileSystem(); Sun did not go to all this trouble without expecting the actual separators to be normalized to whatever system a file is created on, so that no matter what your path happens to be in creating a File object, file.getName() should return the name without a file separator. Is this helpful? On 6/9/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Sorry guys, meant for this to go to the list only... > > > > > On Thu, June 9, 2005 4:35 pm, Martin Cooper said: > > Nope. If the upload came from a Windows system and the server is running > on *nix, then the system separator is *not* what you want. You'd be > looking for '/' in a path that uses '\' as the separator. > > Good point. > > OK, so thinking simplistically.. > > final char PATH_SEP = File.pathSeparatorChar; > final char ANTI_PATH_SEP = File.pathSeparatorChar == '/' ? '\\' : '/'; > String test = "/sub/dev/test.txt"; > int lastSep; > lastSep = test.lastIndexOf(PATH_SEP); > if (lastSep == -1) { > lastSep = test.lastIndexOf(ANTI_PATH_SEP); > } > > Should do the trick, no? > > > Martin Cooper > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Shale] AbstractJsfTestCase - Eclipse
On 6/9/05, Carlos Fernandez <[EMAIL PROTECTED]> wrote: > AbstractJsfTestCase, implements a public Test suite() method. Eclipse > checks for this method when you tell it to run a class as a unit test. If > this method it exists it will use the returned Test class to determine what > tests to run. Since the Test returned only includes AbstractJsfTestCase - > Eclipse chokes and throws: > > junit.framework.AssertionFailedError: No tests found in > org.apache.shale.test.base.AbstractJsfTestCase > The intent wasn't that you run AbstractJsfTestCase itself as a test case -- as it's name implies, it is an *abstract* base class. The convenience it brings is automatically setting up the mock environment suitable for testing something like a ViewController implementation. The suite() method is primarily a reminder that you need to reimplement the method in your concrete classes. > Granted, I can just subclass suite() in my concrete test cases . . . but I > am lazy and would rather not do this. Just wondering why the base test > class implements this method, since most IDEs and ant can work just fine > without it. > I don't always use an IDE -- it's nice to have the visual clue. > Also, why does this class not include a no-arg constructor? Again, I am > just lazy ;) > According to the TestCase JavaDocs, you're still supposed to call setName() if you use the TestCase no-args constructor. It's easier to avoid mistakes by letting the compiler catch the fact that you didn't implement a constructor. > BTW - the shale test classes make JSF much easier to test! That might be an > understatement. > That is definitely the goal :-). Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] JavaOne Social Gathering in San Francisco on 6/26 at 8pm
I should be able to make it as well. Craig On 6/9/05, Don Brown <[EMAIL PROTECTED]> wrote: > As the attached message describes, there is a meeting of Java web > developers the night before JavaOne starts. I'm planning on attending > and hope to see many of you there. > > Don > > Original Message > Subject: [sv-web-jug] JavaOne Social Gathering in San Francisco on 6/26 at 8pm > Date: Mon, 30 May 2005 16:51:02 -0700 > From: Van Riper, Mike <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: <[EMAIL PROTECTED]> > > Please join us for the third annual web developer gathering during > JavaOne in San Francisco. After the JavaOne alumni reception at 8:00pm > on Sunday evening, we will meet for drinks one short block from Moscone > Center at the Thirsty Bear. All Java web developers are encouraged to > participate in this event whether they are signed up to attend JavaOne > this year or not. > > For those of you fortunate enough to be there last year, we had a good > turnout including Don Brown (Struts Committer), Matt Raible (appFuse) > and Craig McClanahan (Mr. Struts himself). The full event details for > this year including RSVP instructions is here: > > http://www.baychi.org/bof/java/20050626/ > > I don't anticipate any changes, but, I recommend bookmarking the URL > above and checking back the day of the event for any last minute > updates. If there were a change of venue or start time, I will be > certain to update the online event announcement to include the new > information. > > Thanks, Van > > Mike "Van" Riper > mailto:[EMAIL PROTECTED] > > Silicon Valley Web Developer JUG > https://sv-web-jug.dev.java.net > > A.K.A. Java Web Developer BayCHI BOF > http://www.baychi.org/bof/java/ > > - > 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: AjaxTags v1.0 beta 1 released
AjaxTags currently supports the 1.2 branch (1.2.0 through 1.2.7). I don't currently have plans to support 1.1, although that could change if enough people express an interest. Frank Lixin Chu wrote: Hi, I am using Struts 1.1, do I have to switch to 1.2 ? thanks lixin On 5/17/05, Dakota Jack <[EMAIL PROTECTED]> wrote: Congratulations! Good work! On 5/12/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: Finally got it all set up on http://struts.sf.net. The first "official" release is up! AjaxTags is a project to add AJAX functionality to the existing Struts HTML taglib. It allows a developer to jump on the AJAX bandwagon without actually writing any code. It's a completely declarative approach, but with flexibility beyond that if you need it. It can be added to new or even existing apps without breaking anything, and with the ability to selectively add AJAX functions to only those form elements you want it added to. All this with very little changes to existing JSPs. Enjoy! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ - 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] -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxTags v1.0 beta 1 released
Hi, I am using Struts 1.1, do I have to switch to 1.2 ? thanks lixin On 5/17/05, Dakota Jack <[EMAIL PROTECTED]> wrote: > Congratulations! Good work! > > On 5/12/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > Finally got it all set up on http://struts.sf.net. The first "official" > > release is up! > > > > AjaxTags is a project to add AJAX functionality to the existing Struts > > HTML taglib. It allows a developer to jump on the AJAX bandwagon > > without actually writing any code. It's a completely declarative > > approach, but with flexibility beyond that if you need it. It can be > > added to new or even existing apps without breaking anything, and with > > the ability to selectively add AJAX functions to only those form > > elements you want it added to. All this with very little changes to > > existing JSPs. > > > > Enjoy! > > > > -- > > Frank W. Zammetti > > Founder and Chief Software Architect > > Omnytex Technologies > > http://www.omnytex.com > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > "You can lead a horse to water but you cannot make it float on its back." > ~Dakota Jack~ > > - > 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: [ANNOUNCEMENT] Struts Dialogs: DispatchAction on steroids
On 6/9/05, Adam Hardy <[EMAIL PROTECTED]> wrote: > So what you are saying is that really all you need to do to implement > this feature is to keep the struts mapping the same and put no-cache > instructions in the page header. > > I can do that anyway without using DialogAction, right? I found the page, which discusses the same approach: http://fy.chalmers.se/~appro/hcntl/ "What if ACTION handler [on the server] doesn't sent the result immediately [to a browser], but spools it on server and then convinces the browser to fetch it (preferably with GET method) at some other location? Then browser presumably wouldn't get the crazy idea about caching the form data. Moreover if all results are fetched at the very same URL, then browser should feel motivated to "accumulate" them in the same history slot." I came up with exactly the same idea before I saw this one, then I searched the internet. Which means that it is not that easy to invent something really new. > your further discussion lost me since I only have a vague concept of > what the terms web control and portlet actually mean. See "Web Controls in Struts and DialogAction" thread, where I collected some info about web controls and about controlling the history. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Test whether an application resource is empty
Try: "> ... where 'name' is the name of the attribute your resource bundle is stored under. L. Chris Loschen wrote: Hi Wendy, Thank you very much for your reply. Yes, I also thought that I could test the key, then check to see if the value was empty. But just how to do it is eluding me. I think part of the problem might be this: USAGE NOTE - If you use another tag to create the body content (e.g. bean:write), that tag must return a non-empty String. An empty String equates to an empty body or a null String, and a new scripting variable cannot be defined as null. Your bean must return a non-empty String, or the define tag must be wrapped within a logic tag to test for an empty or null value. (from the Struts User Guide for bean:define at http://struts.apache.org/userGuide/struts-bean.html#define). I'm trying to do something like But it's failing (I think) because the bean:message returns an empty String. I would wrap it in a logic tag as suggested, but if I could do that, I'd just use the same logic for my logic:notEmpty tag instead. So finding a way to take that value and assign that to a variable which I can then test to see whether or not it's empty is what I'm trying to do. It was not my idea to add all of these empty i18n values: the i18n team did it. If I can't find a way to make this idea work, that's my alternate path. If that's the road I need to take, I can do it -- I was just hopeful I could do this a little more elegantly. Thanks for your input. Any further ideas? Chris -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 11:52 AM To: Struts Users Mailing List Subject: Re: Test whether an application resource is empty From: "Chris Loschen" <[EMAIL PROTECTED]> Quick synopsis: I have localized i18n messages defined in my tiles definitions which are sometimes empty. I need to test that the value associated with a given key is not empty before I proceed with further processing. I can test that the key is non-empty, but I haven't yet figured out how to test the same thing for the value. If you can test the key, then it would seem that removing the empty messages would solve the problem. Why are the empty ones there in the first place? Can you get rid of them? -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Siebel IT'S ALL ABOUT THE CUSTOMER Visit www.siebel.com This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple user - problem
I remember I have faced the similar problem before with only just servlets. Previous problem was, had a servlet containing a class level variable which holded the data. When multiple users hit the servlet, then the response data was switched to the users. Here, in the action class, there is an inner class, which has a object (obj) that contains all the data. I am thinking this may be causing the problem. This looks like similar to the problem mentioned above and as Dave mentioned (>Do you keep any non-synchronized user-specific info in an instance of a class that is only instantiated once (like a servlet or action)? That gets a lot of people even though it's in all the documentation). Any suggestions/inputs on this? Thanks. Croff - Original Message - From: "Dave Newton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, June 09, 2005 3:31 PM Subject: Re: Multiple user - problem > Ray Madigan wrote: > > >It is hard for me to believe you got past a single user with out resetting > >the properties, unless you only write to them. If you use the form > >properties to assist in populating your form, the properties need to be > >reset. > > > > > Well, if I'm hitting a form with existing values (like an 'edit' > operation) I'd load up the form using the BeanUtils, not reset, because > that doesn't strike me as an appropriate place to fill a bean with > values from a DB. Other than occasional checkbox games I've never > directly used the reset method. > > In the JavaDoc it clearly states that "The default implementation does > nothing. In practice, the only properties that need to be reset are > those which represent checkboxes on a session-scoped form. Otherwise, > properties can be given initial values where the field is declared." > > I've written four fairly major webapps using struts, have touched the > reset method maybe 2-3x (for checkboxes), and that's it. I have _never_ > seen a case where I've gotten any old values, including under > stress-testing with dozens of simulated users posting/reading unique > form values. > > I haven't thought about it much at all lately, though, I use > DynaValiatorActionForms almost exclusively. > > Dave > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Struts 1.2.6 -> 1.2.7 validation
I have code that works correctly under 1.2.6. I changed to 1.2.7 and now my validation depends="required" are not working. Has anyone else ran into this. Replacing the jars was the only change that I made. Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Toggle Colors between Rows
Did someone say taglib for alternating row colors? I suggest Displaytag. See: http://www.displaytag.org/example-columns.jsp Regards, David -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 11:25 AM To: Struts Users Mailing List Subject: RE: Toggle Colors between Rows try www.husted.com/struts/resources/rowtag.zip This taglib is really easy to use. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 5:01 AM To: user@struts.apache.org Subject: Toggle Colors between Rows What is the best way to toggle colors between rows using logic:iterate keeping in mind the View (MVCno scriptlets!!) best practice.? Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - 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: Multiple user - problem
Ray Madigan wrote: It is hard for me to believe you got past a single user with out resetting the properties, unless you only write to them. If you use the form properties to assist in populating your form, the properties need to be reset. Well, if I'm hitting a form with existing values (like an 'edit' operation) I'd load up the form using the BeanUtils, not reset, because that doesn't strike me as an appropriate place to fill a bean with values from a DB. Other than occasional checkbox games I've never directly used the reset method. In the JavaDoc it clearly states that "The default implementation does nothing. In practice, the only properties that need to be reset are those which represent checkboxes on a session-scoped form. Otherwise, properties can be given initial values where the field is declared." I've written four fairly major webapps using struts, have touched the reset method maybe 2-3x (for checkboxes), and that's it. I have _never_ seen a case where I've gotten any old values, including under stress-testing with dozens of simulated users posting/reading unique form values. I haven't thought about it much at all lately, though, I use DynaValiatorActionForms almost exclusively. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: program for drawing buttons
Not sure if you are looking for canned buttons or your own custom jobs, but if you are OK with a Windows program, I highly recommend Xara WebStyle. Even though it uses templates, and thus you are somewhat limited in what you can do, there are a TON of templates, and you can modify them a fair amount. And best of all, it takes most of the manual work out of your hands... very nice to use if you are making lots of buttons and tabs, as I had to do, with text that might change every now and again. Wouldn't want to do it by hand! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, June 9, 2005 4:24 pm, Grzegorz Stasica said: > hi, > > I know this group focus on other issues but could anybody suggest me any > good program for drawing buttons and writing text on transparent > background. At this moment I use GIMP but fonts looks woefully !!! > Which is the best font for these things > > > - > 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]
[Fwd: Re: [fileUpload] Question about file name]
Sorry guys, meant for this to go to the list only... On Thu, June 9, 2005 4:35 pm, Martin Cooper said: > Nope. If the upload came from a Windows system and the server is running on *nix, then the system separator is *not* what you want. You'd be looking for '/' in a path that uses '\' as the separator. Good point. OK, so thinking simplistically.. final char PATH_SEP = File.pathSeparatorChar; final char ANTI_PATH_SEP = File.pathSeparatorChar == '/' ? '\\' : '/'; String test = "/sub/dev/test.txt"; int lastSep; lastSep = test.lastIndexOf(PATH_SEP); if (lastSep == -1) { lastSep = test.lastIndexOf(ANTI_PATH_SEP); } Should do the trick, no? > Martin Cooper -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple user - problem
About 3/4 of the way down in the article 'j2ee design patterns' authored by William Crawford and Jonathan Kaplan http://www.devx.com/assets/download/7254.pdf Read the 'criteria' 'convert your session beans into business delegates' -- very instructional to the scenario you have described HTH Martin- - Original Message - From: "croffman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, June 09, 2005 3:49 PM Subject: Re: Multiple user - problem Thanks for the quick responses. Here is some more info: 1. >Is it worse with more users? This was done by manual users, before load testing. Couldn't try that now. 2. >Do you keep any non-synchronized user-specific info in an instance of a class that is only instantiated once (like a servlet or action)? That gets a lot of people even though it's in all the documentation. Looks like there is a similarity. But not sure. Had a MAIN action class (which extends from TilesAction), which contains a protected class defined and that got the CDTO in it. Whereever needed in all the action classes, the CDTO is got from this protected class. Is there any problem here? 3. >-synchronisation of all method calls No where explicit synchronization is being used in the application. 4. >-scoping of data entities(assuming you are implementing with beans) Kept the forms in request scope. 5. Also - are you resetting all of the properties in your forms classes. If not, some of the data set by one user can bleed over to another user. As using DynaValidatorForm, not sure how to reset the properties. In the app, are using Struts form-beans (org.apache.struts.validator.DynaValidatorForm). And in the action classes, calling the delegate by passing the cdto (custom data transfer object), which contains the request data. And when the delegate calls the EJB's, it gets the data from database and populates the custom data transfer object and sent back to the action class. And in the action class, this cdto is copied back to form. The wrong data came up for one user only. Is there any chance that this cdto is shared and being used for two users. Couldn't think of a chance, but...? Is there any chance by POINT #2 above. And EJB's are stateless and Entity Beans are with container managed persitance. Once again thanks for your suggestions. Croff - Original Message - From: "Martin Gainty" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, June 09, 2005 2:22 PM Subject: Re: Multiple user - problem both concepts are applicable in that scoping of session based information should ultimately pull from user-neutral entity (such as Class Object) whose end of life is not dependent on either client session passivation or client session termination Any underlying synchronisation mechanisms for entities (synchronised objects) are entirely dependent on selection of scope and whether the implementor is controlling the object via declarative or programmatically means Here are some good reads Problem Scenario for Stateful Session Beans http://docs.sun.com/source/817-2162-10/bpstatement.html Software Architecture in Practice: The Luther Architecture http://www.awprofessional.com/articles/article.asp?p=32063&seqNum=3 HTH, Martin- - Original Message - From: "Dave Newton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, June 09, 2005 1:47 PM Subject: Re: Multiple user - problem > Martin Gainty wrote: > >> -synchronisation of all method calls > > Why all? (Really, why _any_, since you can synchornized any shared data > structures.) > >> -scoping of data entities(assuming you are implementing with beans) > > Unless he's storing user data in application scope, this shouldn't be an > issue, should it? > > Dave > > > > - > 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]
add new role to user
hi, My application use Tomcat's security mechanism to authorize users. My question is: Is it possible to add user a new role without forcing him to logout. I need this because in some circumstances user has different roles (for instance when in session there is object A user has roles: roleA,roleB; while when in session there is object B user has roles: roleC,roleD) Rgs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
program for drawing buttons
hi, I know this group focus on other issues but could anybody suggest me any good program for drawing buttons and writing text on transparent background. At this moment I use GIMP but fonts looks woefully !!! Which is the best font for these things - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple user - problem
You wrote: As using DynaValidatorForm, not sure how to reset the properties. If you look at the javadoc on this class you will see a reset method where you need to reset the properties to their initial state. -Original Message- From: croffman [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 12:50 PM To: Struts Users Mailing List Subject: Re: Multiple user - problem Thanks for the quick responses. Here is some more info: 1. >Is it worse with more users? This was done by manual users, before load testing. Couldn't try that now. 2. >Do you keep any non-synchronized user-specific info in an instance of a class that is only instantiated once (like a servlet or action)? That gets a lot of people even though it's in all the documentation. Looks like there is a similarity. But not sure. Had a MAIN action class (which extends from TilesAction), which contains a protected class defined and that got the CDTO in it. Whereever needed in all the action classes, the CDTO is got from this protected class. Is there any problem here? 3. >-synchronisation of all method calls No where explicit synchronization is being used in the application. 4. >-scoping of data entities(assuming you are implementing with beans) Kept the forms in request scope. 5. Also - are you resetting all of the properties in your forms classes. If not, some of the data set by one user can bleed over to another user. As using DynaValidatorForm, not sure how to reset the properties. In the app, are using Struts form-beans (org.apache.struts.validator.DynaValidatorForm). And in the action classes, calling the delegate by passing the cdto (custom data transfer object), which contains the request data. And when the delegate calls the EJB's, it gets the data from database and populates the custom data transfer object and sent back to the action class. And in the action class, this cdto is copied back to form. The wrong data came up for one user only. Is there any chance that this cdto is shared and being used for two users. Couldn't think of a chance, but...? Is there any chance by POINT #2 above. And EJB's are stateless and Entity Beans are with container managed persitance. Once again thanks for your suggestions. Croff - Original Message - From: "Martin Gainty" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, June 09, 2005 2:22 PM Subject: Re: Multiple user - problem > both concepts are applicable in that > scoping of session based information should ultimately pull from > user-neutral entity (such as Class Object) whose end of life is not > dependent on either client session passivation or client session termination > Any underlying synchronisation mechanisms for entities (synchronised > objects) are entirely dependent on selection of scope and > whether the implementor is controlling the object via declarative or > programmatically means > > Here are some good reads > Problem Scenario for Stateful Session Beans > http://docs.sun.com/source/817-2162-10/bpstatement.html > Software Architecture in Practice: The Luther Architecture > http://www.awprofessional.com/articles/article.asp?p=32063&seqNum=3 > > HTH, > Martin- > - Original Message - > From: "Dave Newton" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Thursday, June 09, 2005 1:47 PM > Subject: Re: Multiple user - problem > > > > Martin Gainty wrote: > > > >> -synchronisation of all method calls > > > > Why all? (Really, why _any_, since you can synchornized any shared data > > structures.) > > > >> -scoping of data entities(assuming you are implementing with beans) > > > > Unless he's storing user data in application scope, this shouldn't be an > > issue, should it? > > > > Dave > > > > > > > > - > > 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]
RE: Multiple user - problem
The class org.apache.struts.action.ActionForm has a reset method. For a long time I would add form property variables without handling them in the reset method. I would get old values in the form and was getting spurious data in the forms. It is hard for me to believe you got past a single user with out resetting the properties, unless you only write to them. If you use the form properties to assist in populating your form, the properties need to be reset. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 10:59 AM To: Struts Users Mailing List Subject: Re: Multiple user - problem Ray Madigan wrote: >Also - are you resetting all of the properties in your forms classes. If >not, some of the data set by one user can bleed over to another user. > > ?! Really? I was not aware of that; we deployed and load-tested a Really Big Sruts app internally at a large company. Under what circumstances might that happen? Dave - 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: Multiple user - problem
Thanks for the quick responses. Here is some more info: 1. >Is it worse with more users? This was done by manual users, before load testing. Couldn't try that now. 2. >Do you keep any non-synchronized user-specific info in an instance of a class that is only instantiated once (like a servlet or action)? That gets a lot of people even though it's in all the documentation. Looks like there is a similarity. But not sure. Had a MAIN action class (which extends from TilesAction), which contains a protected class defined and that got the CDTO in it. Whereever needed in all the action classes, the CDTO is got from this protected class. Is there any problem here? 3. >-synchronisation of all method calls No where explicit synchronization is being used in the application. 4. >-scoping of data entities(assuming you are implementing with beans) Kept the forms in request scope. 5. Also - are you resetting all of the properties in your forms classes. If not, some of the data set by one user can bleed over to another user. As using DynaValidatorForm, not sure how to reset the properties. In the app, are using Struts form-beans (org.apache.struts.validator.DynaValidatorForm). And in the action classes, calling the delegate by passing the cdto (custom data transfer object), which contains the request data. And when the delegate calls the EJB's, it gets the data from database and populates the custom data transfer object and sent back to the action class. And in the action class, this cdto is copied back to form. The wrong data came up for one user only. Is there any chance that this cdto is shared and being used for two users. Couldn't think of a chance, but...? Is there any chance by POINT #2 above. And EJB's are stateless and Entity Beans are with container managed persitance. Once again thanks for your suggestions. Croff - Original Message - From: "Martin Gainty" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, June 09, 2005 2:22 PM Subject: Re: Multiple user - problem > both concepts are applicable in that > scoping of session based information should ultimately pull from > user-neutral entity (such as Class Object) whose end of life is not > dependent on either client session passivation or client session termination > Any underlying synchronisation mechanisms for entities (synchronised > objects) are entirely dependent on selection of scope and > whether the implementor is controlling the object via declarative or > programmatically means > > Here are some good reads > Problem Scenario for Stateful Session Beans > http://docs.sun.com/source/817-2162-10/bpstatement.html > Software Architecture in Practice: The Luther Architecture > http://www.awprofessional.com/articles/article.asp?p=32063&seqNum=3 > > HTH, > Martin- > - Original Message - > From: "Dave Newton" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Thursday, June 09, 2005 1:47 PM > Subject: Re: Multiple user - problem > > > > Martin Gainty wrote: > > > >> -synchronisation of all method calls > > > > Why all? (Really, why _any_, since you can synchornized any shared data > > structures.) > > > >> -scoping of data entities(assuming you are implementing with beans) > > > > Unless he's storing user data in application scope, this shouldn't be an > > issue, should it? > > > > Dave > > > > > > > > - > > 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: Multiple user - problem
both concepts are applicable in that scoping of session based information should ultimately pull from user-neutral entity (such as Class Object) whose end of life is not dependent on either client session passivation or client session termination Any underlying synchronisation mechanisms for entities (synchronised objects) are entirely dependent on selection of scope and whether the implementor is controlling the object via declarative or programmatically means Here are some good reads Problem Scenario for Stateful Session Beans http://docs.sun.com/source/817-2162-10/bpstatement.html Software Architecture in Practice: The Luther Architecture http://www.awprofessional.com/articles/article.asp?p=32063&seqNum=3 HTH, Martin- - Original Message - From: "Dave Newton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, June 09, 2005 1:47 PM Subject: Re: Multiple user - problem Martin Gainty wrote: -synchronisation of all method calls Why all? (Really, why _any_, since you can synchornized any shared data structures.) -scoping of data entities(assuming you are implementing with beans) Unless he's storing user data in application scope, this shouldn't be an issue, should it? Dave - 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: [ANNOUNCEMENT] Struts Dialogs: DispatchAction on steroids
Not mine, Michael. I am just saying that it is really incredible that you came up with the exact same code to solve a problem and then that solved the problem for you and you did not even know the problem existed. I do find that very hard to swallow. Why shouldn't I? Random solutions to a problem that bears directly on what you are doing without you even knowing about the problem, i.e. name.x and name.y, is pretty weird, no? Very weird. On 6/9/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 6/9/05, Dakota Jack <[EMAIL PROTECTED]> wrote: > > I still am absolutely amazed that you "came up with these tricks" > > without even knowing that the difficulty was that you could not > > directly reference a name in name value pair because includes > > an .x and a .y with the name. The code you duplicate exactly has been > > based on solving that problem for ages and you do the same thing > > without even knowing the basis for the solution. That is very odd > > indeed. I would be inclined to think that you duplicated the code > > without knowing why it was used that way and came up with the > > description you did because that is the description on > > www.michaelmcgrady.com and has been referenced to death by the struts > > list. > > Are you accusing me in stealing your idea, or your code, or taking > credit for what you did? I already told you, that I did not see your > code before I wrote mine. If you want to believe in opposite, this is > your right to do so. Funny that you chose SelectAction for your > accusations, for it being just a dispatch helper. > > The real deal is DialogAction, which packs several nice ideas into one > compact class. Again, I do not say that I invented something that > never existed. But I came up with these ideas myself. Careful search > on the internet revealed several blogs which discuss similar > approaches. This does not diminish what I did, and does not make a > thief out of me. I wrote the class and want it to be accepted in core > Struts. Plain and simple. > > I already told you, that I do not use images, hence I do not know > what's the deal with ".x" and ".y". I wanted to use a plain pushbutton > with arbitrary caption on it, that is all. DispatchAction is so basic > that only a lazy dog have not tried to improve it. > > I finally looked at your DispatchAction class. Obviously, it looks > similar, because the goal is similar. You do not use mapping from > request parameter to method, but I do. I think that indirect method > access gives more flexibility. You use dotted notation, I do not > anymore, because couple of times Struts threw an exception trying to > populate non-existent nested property. > > > But, as you say, you came up with these "tricks" and only later > > discovered both the code that duplicates yours and the reason for the > > code. As I said, Michael, amazing! Amazing! You cannot pass on a > > license to something you did not create or which is in the public > > domain. > > I believe you misread what I wrote. By tricks I meant features of > DialogAction class, like (1) I/O separation in two phases using > POST/redirect/GET pattern, (2) using the same URL for redirected GET > to keep browser history from growing, (3) using non-cachable response > headers to avoid stale pages and to prevent resubmits, (4) creating > stateful object (a "web control") and rendering a page which > corresponds to its current state (think portlets for poor), (5) > storing messages in session for access after redirect. I don't think > that your DispatchAction has any of that. You do not even use > redirection in your mapping, and clicking Refresh button on your > sample web page invokes the infamous "Do you want to resubmit > POSTDATA?" dialog. This freaking dialog was the trigger, when I > started to think about I/O separation. > > I have my own solution for (5), but in DialogAction I use method > which comes in Struts, because it is easier. Still, I will probably > use my own solution, because current Struts implementation removes > messages from session after they were accessed, that does not really > work for me. > > Why don't you submit your updated DispatchAction to Bugzilla? If it is > adopted in Struts standard library, I might rewrite my DialogAction > based on your code, there is no reason to multiply entities beyond > necessity. But mind you, that current Struts policy is to remove > @author tags from core classes. > > Michael. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Web Controls in Struts and DialogAction
On 6/9/05, Adam Hardy <[EMAIL PROTECTED]> wrote: > your further discussion lost me since I only have a vague concept of > what the terms web control and portlet actually mean. I guess we actually need to establish some difinitions. I searched Struts list but did not find relevant info. If it is there, I would appreciate the link. Microsoft uses term "web control" or "server control" or just a "control" a lot, so I searched on ASP.NET websites for the definition. Microsoft defines web controls as "components that run on the server and encapsulate user-interface and other related functionality." Pretty generic. Digging further: "The page and the server controls it contains are responsible for executing the request and rendering HTML back to the client. Although the communication between the client and the server is stateless and disconnected, the client experience must appear to be that of a continuously executing process. This illusion of continuity is created by the ASP.NET page framework and by the page and its controls." Ok, not they talk about state. A control may have all or some of these characteristics: * View state * Properties * Ability to render itself * Life cycle (see below) * Events * Styles * Design-time functionality * Localization, licensing, and deployment ASP.NET lifecycle of a control: * Initialize * Load view state * Process postback data * Load * Send postback change notifications * Handle postback events * Prerender * Save state * Render * Dispose * Unload For comparison, JSF lifecycle: http://www-128.ibm.com/developerworks/java/library/j-jsf3/ * Retrieve component tree * Store submiteed values * Validate values * Bind values to backing properties * Handle events, invoke methods * Handle navigation * Render components So, based on above information, I would say: * A web control is a server-side component. * Web control is a stateful object. Microsoft calls this state a "view state". * Control can render itself according to its current state. * Control can process input data and events. Based on portlet spec and on my usage of directive, I will also add: * A control must render itself in response to GET request. Thus, anytime a user refreshes a parent page, the control whould render a proper content. This is a simple alternative to portlet's doView() * A control must use only _one_ URL for GET requests, so that parent page did not have to modify the URL every time. That means, that control can be just "dropped" on a page using one single URL, and then it would render a proper content depending on state. Based on my hatred to POSTDATA messages, I will add: * A control should not frighten a user with POSTDATA messages. * A control should take efforts to prevent double submits. So, in my understanding, a control is a UI-enabled isolated object, which runs on server. As long as it provides a URL to render it, and accepts input data and events (button clicks), we can call it a control I did not say much in this email, did I? ;-)) Implementation details. --- By default, .NET webapps store state on the client, passing it back and forth in _viewstate hidden field. I guess, the reason for this is to save session memory. I am totally against this kind of state handling for number of reasons, which I got tired to repeat. I prefer to store state on the server. DialogAction stores viewstate in the session-scoped form bean. By doing this, it achieves a "clean" GET request, not polluted by parameters. This allows to use the same GET request for different result pages, thus preventing browser page history from growing. Also, because DialogAction uses redirection, there are no postbacks. All input events occur as a completely separate distinct POST request. There is a logical postback, though, which is every POST request after control has been initialized. The price: DialogAction has to be explicitly initialized. > So what you are saying is that really all you need to do to implement > [clean page history] feature is to keep the struts mapping the same and put > no-cache > instructions in the page header. > > I can do that anyway without using DialogAction, right? It is not just mapping, it is the request that is sent to server. I must reread HTTP specs, but it seems to me that POST request cannot be thrown out by browser, unless it is succeeded by redirect. Maybe I am wrong on this... Anyway, usually you would not have two identical POST requests, since the input data is different. And the data counts, too, not just base URL. You can do that without using DialogAction, and you will build another DialogAction yourself ;-) Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there anyway to access this forum online?
I'm on several high-traffic lists. Here's my recommendation: - though people often try this as a way to reduce the clutter, don't use digests (delivery option where you get a bunch of posts crammed together into one email message), since they are hard to read and even harder to reply to -- digests are really intended to be broken up into individual messages again on the client side (before you see them in your inbox), but people started reading them directly at some point, which was a terrible mistake - Do this, it's great! -- setup a folder for each mailing list you subscribe to and create a filter to deliver messages from the lists into those folders automatically (all decent mail clients can do this, and procmail or maildrop can do it on the server, which is even better if you use multiple computers to read your mail) That way you can just ignore the list (without cluttering your inbox) until you have time to read it. -Max On Thu, 2005-06-09 at 10:51 -0400, Manju wrote: > Hi guys, > I recently subscribed to this mailing list...and within couple of > days my mail box has flooded with mails from this user list. I like to > read, ask and respond to these mails at my leisure. > > Is there any way that I could access this forum online or read these > mails online but not in my inbox? > > Thanks > Manzoo > > > - > 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: Test whether an application resource is empty
Well, that's certainly something I can consider for the future. For right now, our product is already pretty huge, and I think I would get shot if I tried to add another set of jars to the classpath, even if in the long run we'd be better off. The best solution I've been able to come up with is to punt: insert another tile to all of these screens, which is blank if there is no content and a small JSP page if there is content. If there is content, write it out with the usual tag. Does anyone have a better solution? This will be a pain, but I think it will work. Chris -Original Message- From: Benedict, Paul C [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 1:34 PM To: 'Struts Users Mailing List' Subject: RE: Test whether an application resource is empty Chris, Struts contains an EL package for its tag libraries. Yes, you can use EL! But it doesn't matter if you're using Struts or not. If you're using a Servlet 2.3 container, you can use JSTL which you want to use. If possible avoid the and tags, and use JSTL instead. These are built with EL. -Original Message- From: Chris Loschen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 1:18 PM To: Struts Users Mailing List Subject: RE: Test whether an application resource is empty Thanks for your help, Paul. I'm trying that, but I'm getting the same results as I did when I used originally. That is, I'm getting the key, not the value, so I still need to get the value to determine whether it's empty. But when I try to define a bean as the value of , it fails when that value is empty (which is what I was trying to check for in the first place!). The project I'm working on is using struts 1.1, so I don't think I have access to the EL tags -- am I mistaken? Chris -Original Message- From: Benedict, Paul C [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 12:17 PM To: 'Struts Users Mailing List' Subject: RE: Test whether an application resource is empty Chris, Use to bring in the key. You can then use EL to test if it is empty or whatever. Thanks, Paul -Original Message- From: Chris Loschen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 11:37 AM To: Struts Users Mailing List Subject: RE: Test whether an application resource is empty Importance: High I'm sorry to keep sending this over and over again, but I'm really stuck. If this isn't possible, could someone let me know? Then I could try to find an alternate path. Chris -Original Message- From: Chris Loschen Sent: Wednesday, June 08, 2005 5:09 PM To: Struts Users Mailing List Subject: RE: Test whether an application resource is empty I'm still spinning my wheels on this -- does anyone have any ideas? Quick synopsis: I have localized i18n messages defined in my tiles definitions which are sometimes empty. I need to test that the value associated with a given key is not empty before I proceed with further processing. I can test that the key is non-empty, but I haven't yet figured out how to test the same thing for the value. If anyone could help, I'd really appreciate it. Thanks! Chris -Original Message- From: Chris Loschen Sent: Wednesday, June 08, 2005 1:12 PM To: Struts Users Mailing List Subject: Test whether an application resource is empty Hi all, I'm using struts 1.1. I have localized application resources keys defined in my tiles definition file. In my JSP, I use the tiles attribute and then display the localized message using the key. However, in some cases, the localized value is empty: there is no value for that particular locale or that particular instance. In those cases, I want to avoid writing out the key at all, but I'm having trouble figuring out how to make that test. Specifically, I have tiles defs like this: Etc. And the localized values are something like tiles.main.admin.manageHierarchy.businessStruc.add.directionToUser= (so no value for that key). In my JSP, I've tried several ways to test whether the key value is null or the length is 0, but none of them have worked yet. For example: <% if(directionToUser != null && directionToUser.length()>0){ %> <% }%> Problem here is that directionToUser is the key, not the value, so it's never null, and I get the empty div tags I'm trying to avoid. So I tried variations like this: That one returned "Define tag can contain only one of name attribute, value attribute, or body content". I've tried lots of variations similar to that, but haven't struck upon the right one yet. This SEEMS like something which should be pretty simple, but I'm missing something. Any suggestions? Thanks! Chris Loschen ___ Siebel IT'S ALL ABOUT THE CUSTOMER Visit www.siebel.com This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any
Re: Multiple user - problem
Ray Madigan wrote: Also - are you resetting all of the properties in your forms classes. If not, some of the data set by one user can bleed over to another user. ?! Really? I was not aware of that; we deployed and load-tested a Really Big Sruts app internally at a large company. Under what circumstances might that happen? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple user - problem
Also - are you resetting all of the properties in your forms classes. If not, some of the data set by one user can bleed over to another user. Hope that helps -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 10:15 AM To: Struts Users Mailing List Subject: Re: Multiple user - problem croffman wrote: >Using Struts & EJB's - For load testing, facing a problem, that if 10 multiple users are accessing at the same time, only one user is getting other user data (WRONG data) out of 10 users. But all other 9 users are getting correct data. > >The wrong data for that one user, is from one out of 9 other users. > > Is it worse with more users? Do you keep any non-synchronized user-specific info in an instance of a class that is only instantiated once (like a servlet or action)? That gets a lot of people even though it's in all the documentation. Without any more specific information it'll be really tough to be helpful in any meaningful way. Dave - 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: Multiple user - problem
Martin Gainty wrote: -synchronisation of all method calls Why all? (Really, why _any_, since you can synchornized any shared data structures.) -scoping of data entities(assuming you are implementing with beans) Unless he's storing user data in application scope, this shouldn't be an issue, should it? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCEMENT] Struts Dialogs: DispatchAction on steroids
OK fine on the robustness front - I off-handedly said robustness because I normally equate less code with robuster code. But don't let's bother discussing that. So what you are saying is that really all you need to do to implement this feature is to keep the struts mapping the same and put no-cache instructions in the page header. I can do that anyway without using DialogAction, right? Unfortunately your further discussion lost me since I only have a vague concept of what the terms web control and portlet actually mean. Adam On 09/06/05 17:53 Michael Jouravlev wrote: On the other hand, if you use any version of Netscape starting from 4.x, (yes, Netscape 4 works great), Mozilla/Firefox or Internet Explorer (I could not find IE4 for testing), then your users get immediate benefits in user experience and in overall application feel. And, you cannot create what I call a "web control" without redirection and two-phase I/O processing. Think of DialogAction, especially when you creating a control out of it, as of very simplified portlet. But portlets has a specific API, like doDispatch() or doView(). DialogAction does not have API, simple reload works as doView(). It is a actually a big thing, and ability to create a web control allows to have a simple portal without portlet container. You just drop an URL to master page, and you do not care about anything else. Whenever master page is reloaded, the control is reloaded too, and it displays content, reflecting current control state. About simplicity. Funny that you mentioned this, because creating a dialog using DialogAction is simple, just use your form bean fields, or use a nested business object within a form bean with session scope, and you get event model, storage for your dialog data, and message handling. It might be not a big deal for you, if you do not play with browser buttons like a kid. If you do not feel like clicking Refresh just because of fun of it, or clicking Back just to check what happened to previous page, if you are not annoyed by POSTDATA messages, then you might not appreciate what DialogAction does. But for me POSTDATA dialogs are infuriating, I simply hate them. And, if the above did not convince you: Ruby On Rails adopted the same two-phase approach to I/O forms. JSF provides the same features, if you look at JSF samples, all backing beans are defined with session scope, you just need to put tag in config file. Spring MVC has similar features with RedirectView class. The DialogAction may not be perfect (yet), and may need some improvements, but it works and it is pretty stable. I will be glad hearing about possible updates and changes. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:select few doubts
I tryied it and worked properly. In my action I did: MyFormBean f = (MyFormBean)form; request.setAttribute("myList",f.getMyList()); and in the JSP I did exactly like noted in the last mails. But, what if my collection is a field of my form bean? can't I do like the following? I tryied like above but didn't work Thanks Regards Dorileo "Harland, David" <[EMAIL PROTECTED]> 09/06/2005 12:32 Favor responder a "Struts Users Mailing List" Para "Struts Users Mailing List" cc Assunto RE: html:select few doubts This is all you need You can store your Collections in either the application/session/request/page scope. Be careful which one you store it in and what names you use as the key as the bean will check them all!! property is the name you give to the select. collection is any type of collection I use ArrayLists. The objects in your collection must have a getValue method and a getLabel method. The name value is optional. Only use it if you want to dynamically set the option in focus. The object who's key is "TESTSELECTOBJECT" in either the application/session/request/page scope must have a getTestselect method. If the value returned by getTestselect method matches a value in one of the options that option will be in focus. Regards Dave. -Original Message- From: Leandro_Dorileo/[EMAIL PROTECTED] [mailto:Leandro_Dorileo/[EMAIL PROTECTED] Sent: 09 June 2005 17:01 To: user@struts.apache.org Subject: html:select few doubts Hi All! I've never used this tag before and I'm not so good with taglibs then please correct my mistakes if I commit any. I got the following example in a recent thread here in this mailing list: Ok, few things I could already understand, in the html:select tag there are 2 properties(in this case I know) name and property; name is the form name and property is a specic attribute in this form bean that is related to this field; In the html:options we have name that is the form bean name, property is my collection, labelName is a field of my bean into the collection, and labelProperty is the final html option's value and also a field of my bean, right?; does name in both tags can be directly found in any scope? I mean if my form is either in request or session, is it going to be taken? or am I missing something? Property in the html:options tag can be any kind of Collection? can it be java.util.ArrayList? Don't I need to tell the tag wich is the type of the objects into the collection? Do I need to use the
Re: Multiple user - problem
the 2 things I would look at immediately -synchronisation of all method calls -scoping of data entities(assuming you are implementing with beans) Anyone else? Martin- - Original Message - From: "Dave Newton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, June 09, 2005 1:14 PM Subject: Re: Multiple user - problem croffman wrote: Using Struts & EJB's - For load testing, facing a problem, that if 10 multiple users are accessing at the same time, only one user is getting other user data (WRONG data) out of 10 users. But all other 9 users are getting correct data. The wrong data for that one user, is from one out of 9 other users. Is it worse with more users? Do you keep any non-synchronized user-specific info in an instance of a class that is only instantiated once (like a servlet or action)? That gets a lot of people even though it's in all the documentation. Without any more specific information it'll be really tough to be helpful in any meaningful way. Dave - 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]
[Shale] AbstractJsfTestCase - Eclipse
AbstractJsfTestCase, implements a public Test suite() method. Eclipse checks for this method when you tell it to run a class as a unit test. If this method it exists it will use the returned Test class to determine what tests to run. Since the Test returned only includes AbstractJsfTestCase - Eclipse chokes and throws: junit.framework.AssertionFailedError: No tests found in org.apache.shale.test.base.AbstractJsfTestCase Granted, I can just subclass suite() in my concrete test cases . . . but I am lazy and would rather not do this. Just wondering why the base test class implements this method, since most IDEs and ant can work just fine without it. Also, why does this class not include a no-arg constructor? Again, I am just lazy ;) BTW - the shale test classes make JSF much easier to test! That might be an understatement. So - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple user - problem
croffman wrote: Using Struts & EJB's - For load testing, facing a problem, that if 10 multiple users are accessing at the same time, only one user is getting other user data (WRONG data) out of 10 users. But all other 9 users are getting correct data. The wrong data for that one user, is from one out of 9 other users. Is it worse with more users? Do you keep any non-synchronized user-specific info in an instance of a class that is only instantiated once (like a servlet or action)? That gets a lot of people even though it's in all the documentation. Without any more specific information it'll be really tough to be helpful in any meaningful way. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Test whether an application resource is empty
Chris, Struts contains an EL package for its tag libraries. Yes, you can use EL! But it doesn't matter if you're using Struts or not. If you're using a Servlet 2.3 container, you can use JSTL which you want to use. If possible avoid the and tags, and use JSTL instead. These are built with EL. -Original Message- From: Chris Loschen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 1:18 PM To: Struts Users Mailing List Subject: RE: Test whether an application resource is empty Thanks for your help, Paul. I'm trying that, but I'm getting the same results as I did when I used originally. That is, I'm getting the key, not the value, so I still need to get the value to determine whether it's empty. But when I try to define a bean as the value of , it fails when that value is empty (which is what I was trying to check for in the first place!). The project I'm working on is using struts 1.1, so I don't think I have access to the EL tags -- am I mistaken? Chris -Original Message- From: Benedict, Paul C [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 12:17 PM To: 'Struts Users Mailing List' Subject: RE: Test whether an application resource is empty Chris, Use to bring in the key. You can then use EL to test if it is empty or whatever. Thanks, Paul -Original Message- From: Chris Loschen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 11:37 AM To: Struts Users Mailing List Subject: RE: Test whether an application resource is empty Importance: High I'm sorry to keep sending this over and over again, but I'm really stuck. If this isn't possible, could someone let me know? Then I could try to find an alternate path. Chris -Original Message- From: Chris Loschen Sent: Wednesday, June 08, 2005 5:09 PM To: Struts Users Mailing List Subject: RE: Test whether an application resource is empty I'm still spinning my wheels on this -- does anyone have any ideas? Quick synopsis: I have localized i18n messages defined in my tiles definitions which are sometimes empty. I need to test that the value associated with a given key is not empty before I proceed with further processing. I can test that the key is non-empty, but I haven't yet figured out how to test the same thing for the value. If anyone could help, I'd really appreciate it. Thanks! Chris -Original Message- From: Chris Loschen Sent: Wednesday, June 08, 2005 1:12 PM To: Struts Users Mailing List Subject: Test whether an application resource is empty Hi all, I'm using struts 1.1. I have localized application resources keys defined in my tiles definition file. In my JSP, I use the tiles attribute and then display the localized message using the key. However, in some cases, the localized value is empty: there is no value for that particular locale or that particular instance. In those cases, I want to avoid writing out the key at all, but I'm having trouble figuring out how to make that test. Specifically, I have tiles defs like this: Etc. And the localized values are something like tiles.main.admin.manageHierarchy.businessStruc.add.directionToUser= (so no value for that key). In my JSP, I've tried several ways to test whether the key value is null or the length is 0, but none of them have worked yet. For example: <% if(directionToUser != null && directionToUser.length()>0){ %> <% }%> Problem here is that directionToUser is the key, not the value, so it's never null, and I get the empty div tags I'm trying to avoid. So I tried variations like this: That one returned "Define tag can contain only one of name attribute, value attribute, or body content". I've tried lots of variations similar to that, but haven't struck upon the right one yet. This SEEMS like something which should be pretty simple, but I'm missing something. Any suggestions? Thanks! Chris Loschen ___ Siebel IT'S ALL ABOUT THE CUSTOMER Visit www.siebel.com This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States a
RE: Test whether an application resource is empty
Thanks for your help, Paul. I'm trying that, but I'm getting the same results as I did when I used originally. That is, I'm getting the key, not the value, so I still need to get the value to determine whether it's empty. But when I try to define a bean as the value of , it fails when that value is empty (which is what I was trying to check for in the first place!). The project I'm working on is using struts 1.1, so I don't think I have access to the EL tags -- am I mistaken? Chris -Original Message- From: Benedict, Paul C [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 12:17 PM To: 'Struts Users Mailing List' Subject: RE: Test whether an application resource is empty Chris, Use to bring in the key. You can then use EL to test if it is empty or whatever. Thanks, Paul -Original Message- From: Chris Loschen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 11:37 AM To: Struts Users Mailing List Subject: RE: Test whether an application resource is empty Importance: High I'm sorry to keep sending this over and over again, but I'm really stuck. If this isn't possible, could someone let me know? Then I could try to find an alternate path. Chris -Original Message- From: Chris Loschen Sent: Wednesday, June 08, 2005 5:09 PM To: Struts Users Mailing List Subject: RE: Test whether an application resource is empty I'm still spinning my wheels on this -- does anyone have any ideas? Quick synopsis: I have localized i18n messages defined in my tiles definitions which are sometimes empty. I need to test that the value associated with a given key is not empty before I proceed with further processing. I can test that the key is non-empty, but I haven't yet figured out how to test the same thing for the value. If anyone could help, I'd really appreciate it. Thanks! Chris -Original Message- From: Chris Loschen Sent: Wednesday, June 08, 2005 1:12 PM To: Struts Users Mailing List Subject: Test whether an application resource is empty Hi all, I'm using struts 1.1. I have localized application resources keys defined in my tiles definition file. In my JSP, I use the tiles attribute and then display the localized message using the key. However, in some cases, the localized value is empty: there is no value for that particular locale or that particular instance. In those cases, I want to avoid writing out the key at all, but I'm having trouble figuring out how to make that test. Specifically, I have tiles defs like this: Etc. And the localized values are something like tiles.main.admin.manageHierarchy.businessStruc.add.directionToUser= (so no value for that key). In my JSP, I've tried several ways to test whether the key value is null or the length is 0, but none of them have worked yet. For example: <% if(directionToUser != null && directionToUser.length()>0){ %> <% }%> Problem here is that directionToUser is the key, not the value, so it's never null, and I get the empty div tags I'm trying to avoid. So I tried variations like this: That one returned "Define tag can contain only one of name attribute, value attribute, or body content". I've tried lots of variations similar to that, but haven't struck upon the right one yet. This SEEMS like something which should be pretty simple, but I'm missing something. Any suggestions? Thanks! Chris Loschen ___ Siebel IT'S ALL ABOUT THE CUSTOMER Visit www.siebel.com This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- -
[Tiles] and Parameter Substitution
Does anyone know hoe to get around using the tiles tags to utilize ${} EL expressions. I have asked this question before, but not as explicitly. I need to be able to either ... or The reason is all of my pages are context driven from the perspective of the user and the business they perform. I don't want to have to have all of my pages look like ... This will be way too much to maintain. If it is unreasonable to have a tile within a page be dependent upon the user characteristics please give me another alternative. I am at the end of my rope, and will have to come up with another alternative. Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCEMENT] Struts Dialogs: DispatchAction on steroids
On 6/9/05, Adam Hardy <[EMAIL PROTECTED]> wrote: > Yes but what about Netscape 4? only kidding :) > > The effect is neat however you do have to implement the no-cache and you > have to turn off auto-validation and then rely on the browser, so I > wonder whether it is really neat enough to be worth it. I do prefer > things to be as simple as possible, if not for robustness then just to > make it easier for struts-newbies to take on board. > > Adam I guess I am doing bad advertising for my product. (With the voice of car salesman) let's go over figures once again. The point is, that a dialog written with DialogAction will never work worse, than standard cached page. In the worst case scenario, when browser does not honor cache headers, and does add everything to page history, you will get the same behavior as a standard application. That is, when you click Back, you will see a stale page, cached by browser. And if you entered invalid value several times, then you might need to click Back as many times as you entered invalid value, to return from this dialog. But! This behavior is _no worse than standard caching, non-redirecting application_. DialogAction does not make your code or UI less robust. Also, according to statistics, Opera which is the mental case here, is used only by 2% of users. On the other hand, if you use any version of Netscape starting from 4.x, (yes, Netscape 4 works great), Mozilla/Firefox or Internet Explorer (I could not find IE4 for testing), then your users get immediate benefits in user experience and in overall application feel. And, you cannot create what I call a "web control" without redirection and two-phase I/O processing. Think of DialogAction, especially when you creating a control out of it, as of very simplified portlet. But portlets has a specific API, like doDispatch() or doView(). DialogAction does not have API, simple reload works as doView(). It is a actually a big thing, and ability to create a web control allows to have a simple portal without portlet container. You just drop an URL to master page, and you do not care about anything else. Whenever master page is reloaded, the control is reloaded too, and it displays content, reflecting current control state. About simplicity. Funny that you mentioned this, because creating a dialog using DialogAction is simple, just use your form bean fields, or use a nested business object within a form bean with session scope, and you get event model, storage for your dialog data, and message handling. It might be not a big deal for you, if you do not play with browser buttons like a kid. If you do not feel like clicking Refresh just because of fun of it, or clicking Back just to check what happened to previous page, if you are not annoyed by POSTDATA messages, then you might not appreciate what DialogAction does. But for me POSTDATA dialogs are infuriating, I simply hate them. And, if the above did not convince you: Ruby On Rails adopted the same two-phase approach to I/O forms. JSF provides the same features, if you look at JSF samples, all backing beans are defined with session scope, you just need to put tag in config file. Spring MVC has similar features with RedirectView class. The DialogAction may not be perfect (yet), and may need some improvements, but it works and it is pretty stable. I will be glad hearing about possible updates and changes. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Test whether an application resource is empty
Chris, Use to bring in the key. You can then use EL to test if it is empty or whatever. Thanks, Paul -Original Message- From: Chris Loschen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 11:37 AM To: Struts Users Mailing List Subject: RE: Test whether an application resource is empty Importance: High I'm sorry to keep sending this over and over again, but I'm really stuck. If this isn't possible, could someone let me know? Then I could try to find an alternate path. Chris -Original Message- From: Chris Loschen Sent: Wednesday, June 08, 2005 5:09 PM To: Struts Users Mailing List Subject: RE: Test whether an application resource is empty I'm still spinning my wheels on this -- does anyone have any ideas? Quick synopsis: I have localized i18n messages defined in my tiles definitions which are sometimes empty. I need to test that the value associated with a given key is not empty before I proceed with further processing. I can test that the key is non-empty, but I haven't yet figured out how to test the same thing for the value. If anyone could help, I'd really appreciate it. Thanks! Chris -Original Message- From: Chris Loschen Sent: Wednesday, June 08, 2005 1:12 PM To: Struts Users Mailing List Subject: Test whether an application resource is empty Hi all, I'm using struts 1.1. I have localized application resources keys defined in my tiles definition file. In my JSP, I use the tiles attribute and then display the localized message using the key. However, in some cases, the localized value is empty: there is no value for that particular locale or that particular instance. In those cases, I want to avoid writing out the key at all, but I'm having trouble figuring out how to make that test. Specifically, I have tiles defs like this: Etc. And the localized values are something like tiles.main.admin.manageHierarchy.businessStruc.add.directionToUser= (so no value for that key). In my JSP, I've tried several ways to test whether the key value is null or the length is 0, but none of them have worked yet. For example: <% if(directionToUser != null && directionToUser.length()>0){ %> <% }%> Problem here is that directionToUser is the key, not the value, so it's never null, and I get the empty div tags I'm trying to avoid. So I tried variations like this: That one returned "Define tag can contain only one of name attribute, value attribute, or body content". I've tried lots of variations similar to that, but haven't struck upon the right one yet. This SEEMS like something which should be pretty simple, but I'm missing something. Any suggestions? Thanks! Chris Loschen ___ Siebel IT'S ALL ABOUT THE CUSTOMER Visit www.siebel.com This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple user - problem
Using Struts & EJB's - For load testing, facing a problem, that if 10 multiple users are accessing at the same time, only one user is getting other user data (WRONG data) out of 10 users. But all other 9 users are getting correct data. The wrong data for that one user, is from one out of 9 other users. Any kind of suggestions/inputs are helpful. Thanks in advance.
[ANN] JavaOne Social Gathering in San Francisco on 6/26 at 8pm
As the attached message describes, there is a meeting of Java web developers the night before JavaOne starts. I'm planning on attending and hope to see many of you there. Don Original Message Subject: [sv-web-jug] JavaOne Social Gathering in San Francisco on 6/26 at 8pm Date: Mon, 30 May 2005 16:51:02 -0700 From: Van Riper, Mike <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> Please join us for the third annual web developer gathering during JavaOne in San Francisco. After the JavaOne alumni reception at 8:00pm on Sunday evening, we will meet for drinks one short block from Moscone Center at the Thirsty Bear. All Java web developers are encouraged to participate in this event whether they are signed up to attend JavaOne this year or not. For those of you fortunate enough to be there last year, we had a good turnout including Don Brown (Struts Committer), Matt Raible (appFuse) and Craig McClanahan (Mr. Struts himself). The full event details for this year including RSVP instructions is here: http://www.baychi.org/bof/java/20050626/ I don't anticipate any changes, but, I recommend bookmarking the URL above and checking back the day of the event for any last minute updates. If there were a change of venue or start time, I will be certain to update the online event announcement to include the new information. Thanks, Van Mike "Van" Riper mailto:[EMAIL PROTECTED] Silicon Valley Web Developer JUG https://sv-web-jug.dev.java.net A.K.A. Java Web Developer BayCHI BOF http://www.baychi.org/bof/java/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:select few doubts
This is all you need You can store your Collections in either the application/session/request/page scope. Be careful which one you store it in and what names you use as the key as the bean will check them all!! property is the name you give to the select. collection is any type of collection I use ArrayLists. The objects in your collection must have a getValue method and a getLabel method. The name value is optional. Only use it if you want to dynamically set the option in focus. The object who's key is "TESTSELECTOBJECT" in either the application/session/request/page scope must have a getTestselect method. If the value returned by getTestselect method matches a value in one of the options that option will be in focus. Regards Dave. -Original Message- From: Leandro_Dorileo/[EMAIL PROTECTED] [mailto:Leandro_Dorileo/[EMAIL PROTECTED] Sent: 09 June 2005 17:01 To: user@struts.apache.org Subject: html:select few doubts Hi All! I've never used this tag before and I'm not so good with taglibs then please correct my mistakes if I commit any. I got the following example in a recent thread here in this mailing list: Ok, few things I could already understand, in the html:select tag there are 2 properties(in this case I know) name and property; name is the form name and property is a specic attribute in this form bean that is related to this field; In the html:options we have name that is the form bean name, property is my collection, labelName is a field of my bean into the collection, and labelProperty is the final html option's value and also a field of my bean, right?; does name in both tags can be directly found in any scope? I mean if my form is either in request or session, is it going to be taken? or am I missing something? Property in the html:options tag can be any kind of Collection? can it be java.util.ArrayList? Don't I need to tell the tag wich is the type of the objects into the collection? Do I need to use the
RE: Test whether an application resource is empty
Hi Wendy, Thank you very much for your reply. Yes, I also thought that I could test the key, then check to see if the value was empty. But just how to do it is eluding me. I think part of the problem might be this: USAGE NOTE - If you use another tag to create the body content (e.g. bean:write), that tag must return a non-empty String. An empty String equates to an empty body or a null String, and a new scripting variable cannot be defined as null. Your bean must return a non-empty String, or the define tag must be wrapped within a logic tag to test for an empty or null value. (from the Struts User Guide for bean:define at http://struts.apache.org/userGuide/struts-bean.html#define). I'm trying to do something like But it's failing (I think) because the bean:message returns an empty String. I would wrap it in a logic tag as suggested, but if I could do that, I'd just use the same logic for my logic:notEmpty tag instead. So finding a way to take that value and assign that to a variable which I can then test to see whether or not it's empty is what I'm trying to do. It was not my idea to add all of these empty i18n values: the i18n team did it. If I can't find a way to make this idea work, that's my alternate path. If that's the road I need to take, I can do it -- I was just hopeful I could do this a little more elegantly. Thanks for your input. Any further ideas? Chris -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 11:52 AM To: Struts Users Mailing List Subject: Re: Test whether an application resource is empty From: "Chris Loschen" <[EMAIL PROTECTED]> > Quick synopsis: I have localized i18n messages defined in my tiles > definitions which are sometimes empty. I need to test that the value > associated with a given key is not empty before I proceed with further > processing. I can test that the key is non-empty, but I haven't yet > figured out how to test the same thing for the value. If you can test the key, then it would seem that removing the empty messages would solve the problem. Why are the empty ones there in the first place? Can you get rid of them? -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Siebel IT'S ALL ABOUT THE CUSTOMER Visit www.siebel.com This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCEMENT] Struts Dialogs: DispatchAction on steroids
On 6/9/05, Dakota Jack <[EMAIL PROTECTED]> wrote: > I still am absolutely amazed that you "came up with these tricks" > without even knowing that the difficulty was that you could not > directly reference a name in name value pair because includes > an .x and a .y with the name. The code you duplicate exactly has been > based on solving that problem for ages and you do the same thing > without even knowing the basis for the solution. That is very odd > indeed. I would be inclined to think that you duplicated the code > without knowing why it was used that way and came up with the > description you did because that is the description on > www.michaelmcgrady.com and has been referenced to death by the struts > list. Are you accusing me in stealing your idea, or your code, or taking credit for what you did? I already told you, that I did not see your code before I wrote mine. If you want to believe in opposite, this is your right to do so. Funny that you chose SelectAction for your accusations, for it being just a dispatch helper. The real deal is DialogAction, which packs several nice ideas into one compact class. Again, I do not say that I invented something that never existed. But I came up with these ideas myself. Careful search on the internet revealed several blogs which discuss similar approaches. This does not diminish what I did, and does not make a thief out of me. I wrote the class and want it to be accepted in core Struts. Plain and simple. I already told you, that I do not use images, hence I do not know what's the deal with ".x" and ".y". I wanted to use a plain pushbutton with arbitrary caption on it, that is all. DispatchAction is so basic that only a lazy dog have not tried to improve it. I finally looked at your DispatchAction class. Obviously, it looks similar, because the goal is similar. You do not use mapping from request parameter to method, but I do. I think that indirect method access gives more flexibility. You use dotted notation, I do not anymore, because couple of times Struts threw an exception trying to populate non-existent nested property. > But, as you say, you came up with these "tricks" and only later > discovered both the code that duplicates yours and the reason for the > code. As I said, Michael, amazing! Amazing! You cannot pass on a > license to something you did not create or which is in the public > domain. I believe you misread what I wrote. By tricks I meant features of DialogAction class, like (1) I/O separation in two phases using POST/redirect/GET pattern, (2) using the same URL for redirected GET to keep browser history from growing, (3) using non-cachable response headers to avoid stale pages and to prevent resubmits, (4) creating stateful object (a "web control") and rendering a page which corresponds to its current state (think portlets for poor), (5) storing messages in session for access after redirect. I don't think that your DispatchAction has any of that. You do not even use redirection in your mapping, and clicking Refresh button on your sample web page invokes the infamous "Do you want to resubmit POSTDATA?" dialog. This freaking dialog was the trigger, when I started to think about I/O separation. I have my own solution for (5), but in DialogAction I use method which comes in Struts, because it is easier. Still, I will probably use my own solution, because current Struts implementation removes messages from session after they were accessed, that does not really work for me. Why don't you submit your updated DispatchAction to Bugzilla? If it is adopted in Struts standard library, I might rewrite my DialogAction based on your code, there is no reason to multiply entities beyond necessity. But mind you, that current Struts policy is to remove @author tags from core classes. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:select few doubts
Hi All! I've never used this tag before and I'm not so good with taglibs then please correct my mistakes if I commit any. I got the following example in a recent thread here in this mailing list: Ok, few things I could already understand, in the html:select tag there are 2 properties(in this case I know) name and property; name is the form name and property is a specic attribute in this form bean that is related to this field; In the html:options we have name that is the form bean name, property is my collection, labelName is a field of my bean into the collection, and labelProperty is the final html option's value and also a field of my bean, right?; does name in both tags can be directly found in any scope? I mean if my form is either in request or session, is it going to be taken? or am I missing something? Property in the html:options tag can be any kind of Collection? can it be java.util.ArrayList? Don't I need to tell the tag wich is the type of the objects into the collection? Do I need to use the
RE: [OT] Automatic Javadoc - ing
Your right, I asked before i realized that javadoc could be launched against a class with no comments at all. It was my erroneous understanding that you needed /** * whatever whatever * whatever whatever */ in your code before javadoc could be generated.. -Original Message- From: Brett Connor [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 11:31 AM To: Struts Users Mailing List Subject: Re: [OT] Automatic Javadoc - ing From: "Brian McGovern" <[EMAIL PROTECTED]> >>I want to add javadoc comments to all my classes.. but am looking for a >> >> >way to do this automatically. > > What's the point? Until there is an automatic tool that adds a useful description based on an understanding of a class's responsibilities, a methods pre and post conditions (or is that what you're asking?), I don't see that /** * @param foo * @param bar * @return */ public int doFooBar(Something Foo, String bar)... is any more useful than public int doFooBar(Something Foo, String bar)... Javadoc will automatically generate parameter names and types anyway. Just my humble opinion. Brett Connor - 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: Test whether an application resource is empty
From: "Chris Loschen" <[EMAIL PROTECTED]> > Quick synopsis: I have localized i18n messages defined in my tiles > definitions which are sometimes empty. I need to test that the value > associated with a given key is not empty before I proceed with further > processing. I can test that the key is non-empty, but I haven't yet > figured out how to test the same thing for the value. If you can test the key, then it would seem that removing the empty messages would solve the problem. Why are the empty ones there in the first place? Can you get rid of them? -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Automatic Javadoc - ing
From: "Brian McGovern" <[EMAIL PROTECTED]> I want to add javadoc comments to all my classes.. but am looking for a way to do this automatically. What's the point? Until there is an automatic tool that adds a useful description based on an understanding of a class's responsibilities, a methods pre and post conditions (or is that what you're asking?), I don't see that /** * @param foo * @param bar * @return */ public int doFooBar(Something Foo, String bar)... is any more useful than public int doFooBar(Something Foo, String bar)... Javadoc will automatically generate parameter names and types anyway. Just my humble opinion. Brett Connor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Test whether an application resource is empty
I'm sorry to keep sending this over and over again, but I'm really stuck. If this isn't possible, could someone let me know? Then I could try to find an alternate path. Chris -Original Message- From: Chris Loschen Sent: Wednesday, June 08, 2005 5:09 PM To: Struts Users Mailing List Subject: RE: Test whether an application resource is empty I'm still spinning my wheels on this -- does anyone have any ideas? Quick synopsis: I have localized i18n messages defined in my tiles definitions which are sometimes empty. I need to test that the value associated with a given key is not empty before I proceed with further processing. I can test that the key is non-empty, but I haven't yet figured out how to test the same thing for the value. If anyone could help, I'd really appreciate it. Thanks! Chris -Original Message- From: Chris Loschen Sent: Wednesday, June 08, 2005 1:12 PM To: Struts Users Mailing List Subject: Test whether an application resource is empty Hi all, I'm using struts 1.1. I have localized application resources keys defined in my tiles definition file. In my JSP, I use the tiles attribute and then display the localized message using the key. However, in some cases, the localized value is empty: there is no value for that particular locale or that particular instance. In those cases, I want to avoid writing out the key at all, but I'm having trouble figuring out how to make that test. Specifically, I have tiles defs like this: Etc. And the localized values are something like tiles.main.admin.manageHierarchy.businessStruc.add.directionToUser= (so no value for that key). In my JSP, I've tried several ways to test whether the key value is null or the length is 0, but none of them have worked yet. For example: <% if(directionToUser != null && directionToUser.length()>0){ %> <% }%> Problem here is that directionToUser is the key, not the value, so it's never null, and I get the empty div tags I'm trying to avoid. So I tried variations like this: That one returned "Define tag can contain only one of name attribute, value attribute, or body content". I've tried lots of variations similar to that, but haven't struck upon the right one yet. This SEEMS like something which should be pretty simple, but I'm missing something. Any suggestions? Thanks! Chris Loschen ___ Siebel IT'S ALL ABOUT THE CUSTOMER Visit www.siebel.com This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Automatic Javadoc - ing
From: "Brian McGovern" <[EMAIL PROTECTED]> > I want to add javadoc comments to all my classes.. but am looking for a way to do this automatically. I use a JEdit plugin called "JavaStyle" that generates JavaDoc stubs in addition to fixing indenting, etc. Looks like it's part of this project: http://jrefactory.sourceforge.net/ -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Toggle Colors between Rows
try www.husted.com/struts/resources/rowtag.zip This taglib is really easy to use. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 5:01 AM To: user@struts.apache.org Subject: Toggle Colors between Rows What is the best way to toggle colors between rows using logic:iterate keeping in mind the View (MVCno scriptlets!!) best practice.? Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there anyway to access this forum online?
Try Mutt http://www.mutt.org Its massively configurable, organises mail via thread (you can set your own editor and parameters e.g.) set editor = "/usr/bin/emacs %s --eval '(setq make-backup-files nil)'" Viel Gluck, Martin- - Original Message - From: "Manju" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, June 09, 2005 10:51 AM Subject: Is there anyway to access this forum online? Hi guys, I recently subscribed to this mailing list...and within couple of days my mail box has flooded with mails from this user list. I like to read, ask and respond to these mails at my leisure. Is there any way that I could access this forum online or read these mails online but not in my inbox? Thanks Manzoo - 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: [OT] Automatic Javadoc - ing
Have you looked at ant.apache.org. ant has a javadoc and a javadoc2 task. -Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 7:17 AM To: Struts Users Mailing List Subject: [OT] Automatic Javadoc - ing I have just pretty much wrapped up the development phase of a prject and am cleaning up the code etc. I want to add javadoc comments to all my classes.. but am looking for a way to do this automatically. Does anyone know of a tool that can do this. I use netbeans as an editor and they have some limited auto javadocing.. but im looking to just press a button out put code and move on. There are hundreds of classes and i will NOT do this by hand. Probabably should have been more diligent during development, but im a dope. -thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there anyway to access this forum online?
You can read posts here: http://marc.theaimsgroup.com/ also http://www.mail-archive.com/ Erik -Original Message- From: Manju <[EMAIL PROTECTED]> Sent: Jun 9, 2005 10:51 AM To: Struts Users Mailing List Subject: Is there anyway to access this forum online? Hi guys, I recently subscribed to this mailing list...and within couple of days my mail box has flooded with mails from this user list. I like to read, ask and respond to these mails at my leisure. Is there any way that I could access this forum online or read these mails online but not in my inbox? Thanks Manzoo - 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: Is there anyway to access this forum online?
http://marc.theaimsgroup.com/?l=struts-user&r=1&w=2 http://dir.gmane.org/gmane.comp.jakarta.struts.user -Original Message- From: Manju [mailto:[EMAIL PROTECTED] Sent: 09 June 2005 15:52 To: Struts Users Mailing List Subject: Is there anyway to access this forum online? Hi guys, I recently subscribed to this mailing list...and within couple of days my mail box has flooded with mails from this user list. I like to read, ask and respond to these mails at my leisure. Is there any way that I could access this forum online or read these mails online but not in my inbox? Thanks Manzoo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there anyway to access this forum online?
Hi Manju why don't you do one thing created login to any Free mail service. Google is good one. -Ni3 -Original Message- From: Manju [mailto:[EMAIL PROTECTED] Sent: 09 June 2005 15:52 To: Struts Users Mailing List Subject: Is there anyway to access this forum online? Hi guys, I recently subscribed to this mailing list...and within couple of days my mail box has flooded with mails from this user list. I like to read, ask and respond to these mails at my leisure. Is there any way that I could access this forum online or read these mails online but not in my inbox? Thanks Manzoo - 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: can't find equivalence
Instead of > ActionMapping nextMapAction = > this.getServlet().findMapping("/createadvertisement"); try ActionConfig nextMapAction = ModuleUtils.getInstance(). getModuleConfig(request).findActionConfig("/createadvertisement"); Hubert On 6/9/05, Thibaut Lassalle <[EMAIL PROTECTED]> wrote: > hi, > i have to migrate a struts1.0 application to struts1.2 (for module support) > > i can't find any equivalent to set a bean. Here is the code i try to > migrate : > > ActionMapping nextMapAction = > this.getServlet().findMapping("/createadvertisement"); > request.setAttribute(nextMapAction.getAttribute(), avertisementForm); > return new ActionForward(mapping.getInput(), false); > > > -Thanks in Advance > Thibaut - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is there anyway to access this forum online?
Hi guys, I recently subscribed to this mailing list...and within couple of days my mail box has flooded with mails from this user list. I like to read, ask and respond to these mails at my leisure. Is there any way that I could access this forum online or read these mails online but not in my inbox? Thanks Manzoo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can't find equivalence
hi, i have to migrate a struts1.0 application to struts1.2 (for module support) i can't find any equivalent to set a bean. Here is the code i try to migrate : ActionMapping nextMapAction = this.getServlet().findMapping("/createadvertisement"); request.setAttribute(nextMapAction.getAttribute(), avertisementForm); return new ActionForward(mapping.getInput(), false); -Thanks in Advance Thibaut - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Toggle Colors between Rows
Hi this solution is also good. It is same like I told you to in action class. Some where you have made a decision like this. -ni3 -Original Message- From: David Whipple [mailto:[EMAIL PROTECTED] Sent: 09 June 2005 15:03 To: Struts Users Mailing List Subject: RE: Toggle Colors between Rows We do the following in our jsp. We have two styles defined in our style sheet, tbl1 and tbl2 for the two different row types: " valign="top"> blah... "Ray Madigan" <[EMAIL PROTECTED] > To "Struts Users Mailing List" 06/09/2005 09:52 AM cc Subject Please respond to RE: Toggle Colors between Rows "Struts Users Mailing List" <[EMAIL PROTECTED] he.org> I have a tag that I got from somewhere that allows you to set the even element class and the odd element class. It works great for me, if you want it, let me know and I will email it to you. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 5:01 AM To: user@struts.apache.org Subject: Toggle Colors between Rows What is the best way to toggle colors between rows using logic:iterate keeping in mind the View (MVCno scriptlets!!) best practice.? Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - 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]
Re: [OT] Automatic Javadoc - ing
Brian- Modify the build.xml that is generated from your IDE de jour..JDeveloper, JBuilder and or Eclipse and add in the task see http://ant.apache.org/manual/CoreTasks/javadoc.html for details- Please Post your query to user@ant.apache.org Thanks, Martin- - Original Message - From: "Brian McGovern" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, June 09, 2005 10:17 AM Subject: [OT] Automatic Javadoc - ing I have just pretty much wrapped up the development phase of a prject and am cleaning up the code etc. I want to add javadoc comments to all my classes.. but am looking for a way to do this automatically. Does anyone know of a tool that can do this. I use netbeans as an editor and they have some limited auto javadocing.. but im looking to just press a button out put code and move on. There are hundreds of classes and i will NOT do this by hand. Probabably should have been more diligent during development, but im a dope. -thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Automatic Javadoc - ing
I have just pretty much wrapped up the development phase of a prject and am cleaning up the code etc. I want to add javadoc comments to all my classes.. but am looking for a way to do this automatically. Does anyone know of a tool that can do this. I use netbeans as an editor and they have some limited auto javadocing.. but im looking to just press a button out put code and move on. There are hundreds of classes and i will NOT do this by hand. Probabably should have been more diligent during development, but im a dope. -thanks
RE: Problem with -- Help me OUT
Use the styleId attribute! Frm the online API Guide styleId Identifier to be assigned to this HTML element (renders an "id" attribute). N.B. If present, the errorStyleId overrides this attribute in the event of an error for the element. [RT Expr] -Original Message- From: Kade Jeevan Kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 5:24 AM To: user@struts.apache.org Cc: dev@struts.apache.org Subject: Problem with -- Help me OUT Hi! i have an html code
RE: Toggle Colors between Rows
We do the following in our jsp. We have two styles defined in our style sheet, tbl1 and tbl2 for the two different row types: " valign="top"> blah... "Ray Madigan" <[EMAIL PROTECTED] > To "Struts Users Mailing List" 06/09/2005 09:52 AM cc Subject Please respond to RE: Toggle Colors between Rows "Struts Users Mailing List" <[EMAIL PROTECTED] he.org> I have a tag that I got from somewhere that allows you to set the even element class and the odd element class. It works great for me, if you want it, let me know and I will email it to you. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 5:01 AM To: user@struts.apache.org Subject: Toggle Colors between Rows What is the best way to toggle colors between rows using logic:iterate keeping in mind the View (MVCno scriptlets!!) best practice.? Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - 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: Toggle Colors between Rows
In action class which generate the table row out put Declare one temp variable which will you can use in decision making. Suppose you want to switch between colors red and green. Code will be like this Byte switchcolor=0. If (switchcolor=0) { Row with red color. Switchcolor++; } else { Row with green color. Switchcolor--; } -ni3. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 June 2005 13:01 To: user@struts.apache.org Subject: Toggle Colors between Rows What is the best way to toggle colors between rows using logic:iterate keeping in mind the View (MVCno scriptlets!!) best practice.? Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with logic:iterate Tag
Any guess whats happening wrong here?, the output is as follows 4thCol 4thCol 4thCol 4thCol 4thCol 4thCol 4thCol 4thCol But the correct output should be as follows 1stCol 2ndCol 3rdCol 4thCol 1stCol 2ndCol 3rdCol 4thCol Deepak -Original Message- From: Deepak Srivatava [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 6:57 PM To: user@struts.apache.org Subject: Problem with logic:iterate Tag I am populating following simple List in action class and putting that in form class. private List getSystemTableList(ConfWizardBean confwizbean, HttpSession session){ ArrayList outerList = new ArrayList(); for (int i = 0; i < 2; i++) { ArrayList innerList = new ArrayList(); innerList.add(0,"Ist Column"); innerList.add(1,"2nd Column"); innerList.add(2,"3rd column"); innerList.add(3,"4th Column"); outerList.add(innerList); } return outerList; } relevant JSP code is as follows <%-- Iterate through the system list --%> I am trying to print the above list in Jsp page but it always print the value "4th Column" in all the four columns of HTML. Somehow it always uses the offset=3. What I am doing wrong here?. Deepak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Prob with -- Plz help me OUT
Sorry server with value selected in combo 1 and and populate the bean for combo2. -Original Message- From: Nitin Mandolkar Sent: 09 June 2005 14:38 To: Struts Users Mailing List Subject: RE: Prob with -- Plz help me OUT Changing the content of combo1 will change the content in combo2. are you doing this using java script now as you said. With with struts you can do like go back to server with value selected in combo 2 and and populate the bean for combo2. -Ni3 -Original Message- From: Kade Jeevan Kumar [mailto:[EMAIL PROTECTED] Sent: 09 June 2005 14:07 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Prob with -- Plz help me OUT Nitesh! I am developing a component in which the values in combo box are dependent. it is like this if i select combo1 then related values will b coming in combo2. for this, i got html code. and i want to change this code into struts. or u can help me by giving the code for the above. plz, help me in this.. Jeevan Nitesh <[EMAIL PROTECTED]> wrote: Jeevan, Any specific reason as to why you have to have the id attribute? Nitesh - Original Message - From: "Kade Jeevan Kumar" To: "Struts Users Mailing List" Cc: Sent: Thursday, June 09, 2005 6:13 PM Subject: RE: Prob with -- Plz help me OUT > > Hi Nitin! > > I am using Struts 1.1 > > > > > Nitin Mandolkar wrote: > Hello can I know which struts you are using. > > Then and then only I can ans you. > > -ni3. > > > -Original Message- > From: Kade Jeevan Kumar [mailto:[EMAIL PROTECTED] > Sent: 09 June 2005 13:28 > To: user@struts.apache.org > Subject: Prob with -- Plz help me OUT > > Hi! > > i have an html code > > i need to convert the above code using struts library. but the problemhere > is,struts-tld cann't take "id" attribute. i strictly need to use "id". > Give me the solution for this ASAP. -Thanks in > AdvanceJeevan -Discover Yahoo! Get > on-the-go sports scores, stock quotes, news & more. Check it > out! -To > unsubscribe, e-mail: [EMAIL PROTECTED] additional > commands, e-mail: [EMAIL PROTECTED] > > - > Discover Yahoo! > Get on-the-go sports scores, stock quotes, news & more. Check it out! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail - You care about security. So do we. - 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: Toggle Colors between Rows
I have a tag that I got from somewhere that allows you to set the even element class and the odd element class. It works great for me, if you want it, let me know and I will email it to you. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 5:01 AM To: user@struts.apache.org Subject: Toggle Colors between Rows What is the best way to toggle colors between rows using logic:iterate keeping in mind the View (MVCno scriptlets!!) best practice.? Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Prob with -- Plz help me OUT
Changing the content of combo1 will change the content in combo2. are you doing this using java script now as you said. With with struts you can do like go back to server with value selected in combo 2 and and populate the bean for combo2. -Ni3 -Original Message- From: Kade Jeevan Kumar [mailto:[EMAIL PROTECTED] Sent: 09 June 2005 14:07 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Prob with -- Plz help me OUT Nitesh! I am developing a component in which the values in combo box are dependent. it is like this if i select combo1 then related values will b coming in combo2. for this, i got html code. and i want to change this code into struts. or u can help me by giving the code for the above. plz, help me in this.. Jeevan Nitesh <[EMAIL PROTECTED]> wrote: Jeevan, Any specific reason as to why you have to have the id attribute? Nitesh - Original Message - From: "Kade Jeevan Kumar" To: "Struts Users Mailing List" Cc: Sent: Thursday, June 09, 2005 6:13 PM Subject: RE: Prob with -- Plz help me OUT > > Hi Nitin! > > I am using Struts 1.1 > > > > > Nitin Mandolkar wrote: > Hello can I know which struts you are using. > > Then and then only I can ans you. > > -ni3. > > > -Original Message- > From: Kade Jeevan Kumar [mailto:[EMAIL PROTECTED] > Sent: 09 June 2005 13:28 > To: user@struts.apache.org > Subject: Prob with -- Plz help me OUT > > Hi! > > i have an html code > > i need to convert the above code using struts library. but the problemhere > is,struts-tld cann't take "id" attribute. i strictly need to use "id". > Give me the solution for this ASAP. -Thanks in > AdvanceJeevan -Discover Yahoo! Get > on-the-go sports scores, stock quotes, news & more. Check it > out! -To > unsubscribe, e-mail: [EMAIL PROTECTED] additional > commands, e-mail: [EMAIL PROTECTED] > > - > Discover Yahoo! > Get on-the-go sports scores, stock quotes, news & more. Check it out! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail - You care about security. So do we. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Toggle Colors between Rows
Some ideas .. 1. Implement a switching accessor method in a base action form, the idea is that each time you access the property it will return the value which was not returned on the prior invocation e.g. // In your base action form private String listRowClass; public String getListRowClass() { if ( "odd".equals(listRowClass) listRowClass = "even"; else listRowClass = "odd"; return listRowClass; } <%-- In your JSP --%> "> 2. Use the current index number exposed by logic:iterate, if it is an even number (e.g. divisible by 2 with no remainder) then use the "even" style otherwise use the "odd" style. It might be possible to do the mod calculation using a JSTL tag, if not it should be a trivial matter to write a custom tag to do it for you. 3. Use a widget such as display tag and let that do all the work for you :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 June 2005 13:01 To: user@struts.apache.org Subject: Toggle Colors between Rows What is the best way to toggle colors between rows using logic:iterate keeping in mind the View (MVCno scriptlets!!) best practice.? Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with -- Help me OUT
use "styleId" instead. It gets converted to "id" Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Re: Prob with -- Plz help me OUT
Nitesh! I am developing a component in which the values in combo box are dependent. it is like this if i select combo1 then related values will b coming in combo2. for this, i got html code. and i want to change this code into struts. or u can help me by giving the code for the above. plz, help me in this.. Jeevan Nitesh <[EMAIL PROTECTED]> wrote: Jeevan, Any specific reason as to why you have to have the id attribute? Nitesh - Original Message - From: "Kade Jeevan Kumar" To: "Struts Users Mailing List" Cc: Sent: Thursday, June 09, 2005 6:13 PM Subject: RE: Prob with -- Plz help me OUT > > Hi Nitin! > > I am using Struts 1.1 > > > > > Nitin Mandolkar wrote: > Hello can I know which struts you are using. > > Then and then only I can ans you. > > -ni3. > > > -Original Message- > From: Kade Jeevan Kumar [mailto:[EMAIL PROTECTED] > Sent: 09 June 2005 13:28 > To: user@struts.apache.org > Subject: Prob with -- Plz help me OUT > > Hi! > > i have an html code > > i need to convert the above code using struts library. but the problemhere > is,struts-tld cann't take "id" attribute. i strictly need to use "id". > Give me the solution for this ASAP. -Thanks in > AdvanceJeevan -Discover Yahoo! Get > on-the-go sports scores, stock quotes, news & more. Check it > out!-To > unsubscribe, e-mail: [EMAIL PROTECTED] additional > commands, e-mail: [EMAIL PROTECTED] > > - > Discover Yahoo! > Get on-the-go sports scores, stock quotes, news & more. Check it out! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail - You care about security. So do we.
Re: Prob with -- Plz help me OUT
Jeevan, Any specific reason as to why you have to have the id attribute? Nitesh - Original Message - From: "Kade Jeevan Kumar" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 09, 2005 6:13 PM Subject: RE: Prob with -- Plz help me OUT Hi Nitin! I am using Struts 1.1 Nitin Mandolkar <[EMAIL PROTECTED]> wrote: Hello can I know which struts you are using. Then and then only I can ans you. -ni3. -Original Message- From: Kade Jeevan Kumar [mailto:[EMAIL PROTECTED] Sent: 09 June 2005 13:28 To: user@struts.apache.org Subject: Prob with -- Plz help me OUT Hi! i have an html code i need to convert the above code using struts library. but the problemhere is,struts-tld cann't take "id" attribute. i strictly need to use "id". Give me the solution for this ASAP. -Thanks in AdvanceJeevan -Discover Yahoo! Get on-the-go sports scores, stock quotes, news & more. Check it out!-To unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] - Discover Yahoo! Get on-the-go sports scores, stock quotes, news & more. Check it out! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pass parameter to javascript function
Kjerstie et al- I found some browsers require the javascript qualifier e.g. javascript:lfnSomething( instead of just the JavaScript func lfnSomething( God Lykke, Martin- - Original Message - From: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, June 09, 2005 8:20 AM Subject: Re: Pass parameter to javascript function Really? IDon't you have to enclose the entire value in one scriptlet expression? Like this: Kjersti |+--> || "Avjit Singh Jhajj" | || <[EMAIL PROTECTED]| || fmail.com> | || | || 09/06/2005 14:07| || Please respond to | || "Struts Users Mailing | || List" | || | |+--> >--| | | | To: "Struts Users Mailing List" | | cc: [EMAIL PROTECTED] | | Subject: Re: Pass parameter to javascript function | >--| You can pass the parameters to the javascript as shown underneath by enclosing the <%=%> in single quotes... Avjit On Thu, 09 Jun 2005 [EMAIL PROTECTED] wrote : How can I pass parameter in to a javascript function from a tag?? eg: ... ... Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - 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: Prob with -- Plz help me OUT
Hi Nitin! I am using Struts 1.1 Nitin Mandolkar <[EMAIL PROTECTED]> wrote: Hello can I know which struts you are using. Then and then only I can ans you. -ni3. -Original Message- From: Kade Jeevan Kumar [mailto:[EMAIL PROTECTED] Sent: 09 June 2005 13:28 To: user@struts.apache.org Subject: Prob with -- Plz help me OUT Hi! i have an html code i need to convert the above code using struts library. but the problemhere is,struts-tld cann't take "id" attribute. i strictly need to use "id". Give me the solution for this ASAP. -Thanks in AdvanceJeevan -Discover Yahoo! Get on-the-go sports scores, stock quotes, news & more. Check it out!-To unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] - Discover Yahoo! Get on-the-go sports scores, stock quotes, news & more. Check it out!
Re: Pass parameter to javascript function
[EMAIL PROTECTED] a écrit : Really? IDon't you have to enclose the entire value in one scriptlet expression? Like this: You can pass the parameters to the javascript as shown underneath by enclosing the <%=%> in single quotes... You can even use the ${} notation if you are using JSP 2.4 (IIRC), like this : -- Stéphane Zuckerman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Toggle Colors between Rows
The best using only the view? use this kind of css http://www.w3.org/Style/Examples/007/evenodd.html However, you will need a more than decent browser to do it. Le Jeudi 9 Juin 2005 14:00, [EMAIL PROTECTED] a écrit : > What is the best way to toggle colors between rows using logic:iterate > keeping in mind the View (MVCno scriptlets!!) best practice.? > > Amitava Basak > ASE > Tata Consultancy Services Limited > Mailto: [EMAIL PROTECTED] > Website: http://www.tcs.com > > Notice: The information contained in this e-mail message and/or attachments > to it may contain confidential or privileged information. If you are not > the intended recipient, any dissemination, use, review, distribution, > printing or copying of the information contained in this e-mail message > and/or attachments to it are strictly prohibited. If you have received > this communication in error, please notify us by reply e-mail or telephone > and immediately and permanently delete the message and any attachments. > Thank you -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Prob with -- Plz help me OUT
Hello can I know which struts you are using. Then and then only I can ans you. -ni3. -Original Message- From: Kade Jeevan Kumar [mailto:[EMAIL PROTECTED] Sent: 09 June 2005 13:28 To: user@struts.apache.org Subject: Prob with -- Plz help me OUT Hi! i have an html code
Prob with -- Plz help me OUT
Hi! i have an html code
Problem with -- Help me OUT
Hi! i have an html code
Re: Pass parameter to javascript function
Really? IDon't you have to enclose the entire value in one scriptlet expression? Like this: Kjersti |+--> || "Avjit Singh Jhajj" | || <[EMAIL PROTECTED]| || fmail.com> | || | || 09/06/2005 14:07| || Please respond to | || "Struts Users Mailing | || List" | || | |+--> >--| | | | To: "Struts Users Mailing List" | | cc: [EMAIL PROTECTED] | | Subject: Re: Pass parameter to javascript function | >--| You can pass the parameters to the javascript as shown underneath by enclosing the <%=%> in single quotes... Avjit On Thu, 09 Jun 2005 [EMAIL PROTECTED] wrote : > >How can I pass parameter in to a javascript function from a >tag?? > > >eg: > > /> >... >... > > > >Amitava Basak >ASE >Tata Consultancy Services Limited >Mailto: [EMAIL PROTECTED] >Website: http://www.tcs.com > >Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pass parameter to javascript function
You can pass the parameters to the javascript as shown underneath by enclosing the <%=%> in single quotes... Avjit On Thu, 09 Jun 2005 [EMAIL PROTECTED] wrote : > >How can I pass parameter in to a javascript function from a >tag?? > > >eg: > > /> >... >... > > > >Amitava Basak >ASE >Tata Consultancy Services Limited >Mailto: [EMAIL PROTECTED] >Website: http://www.tcs.com > >Notice: The information contained in this e-mail message and/or attachments to >it may contain confidential or privileged information. If you are not the >intended recipient, any dissemination, use, review, distribution, printing or >copying of the information contained in this e-mail message and/or attachments >to it are strictly prohibited. If you have received this communication in >error, please notify us by reply e-mail or telephone and immediately and >permanently delete the message and any attachments. Thank you
Toggle Colors between Rows
What is the best way to toggle colors between rows using logic:iterate keeping in mind the View (MVCno scriptlets!!) best practice.? Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Pass parameter to javascript function
How can I pass parameter in to a javascript function from a tag?? eg: ... ... Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Re: [ANNOUNCEMENT] Struts Dialogs: DispatchAction on steroids
I still am absolutely amazed that you "came up with these tricks" without even knowing that the difficulty was that you could not directly reference a name in name value pair because includes an .x and a .y with the name. The code you duplicate exactly has been based on solving that problem for ages and you do the same thing without even knowing the basis for the solution. That is very odd indeed. I would be inclined to think that you duplicated the code without knowing why it was used that way and came up with the description you did because that is the description on www.michaelmcgrady.com and has been referenced to death by the struts list. But, as you say, you came up with these "tricks" and only later discovered both the code that duplicates yours and the reason for the code. As I said, Michael, amazing! Amazing! You cannot pass on a license to something you did not create or which is in the public domain. On 6/8/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > For the record: I did not invent anything here. I mean, I did, I > reinvented the wheel, because after I came up with these tricks, I > googled specifically for this kind of stuff, and found several sites, > which use these tricks too. Still, it is not commonplace. > > Michael. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCEMENT] Struts Dialogs: DispatchAction on steroids
Yes but what about Netscape 4? only kidding :) The effect is neat however you do have to implement the no-cache and you have to turn off auto-validation and then rely on the browser, so I wonder whether it is really neat enough to be worth it. I do prefer things to be as simple as possible, if not for robustness then just to make it easier for struts-newbies to take on board. Adam On 09/06/05 01:22 Michael Jouravlev wrote: I don't understand how you managed to get the page with validate-error not to make an entry in the browser history. I see you've turned off automatic validation but closer than that I'm not sure. It seems to be linked to the no-cache stuff but I didn't think the caching had anything to do with the browser history. Pretty neat, huh? ;-) Does not look this slick on sucky Opera. I turned validation off, so that action class is called even if input data is not valid. Action must always be called, it does the processing, it is a switchyard between GET and POST, it creates and stores error and clears error messages, and it dispatches the request. No-cache helps to reload a page. You can see in the sample app, that without no-cache setting you need to manually reload a page to see current server standing. So, the page must be always reloaded to keep browser in sync with the server. How exactly the history is kept from growing, is explained further (almost quoting my own article, hence more formal style): DialogAction uses a couple of tricks: First is to serve different content from the same location. And by saying "same" I mean exactly the same, including the number, names, and content of request query parameters. Internet Explorer and Mozilla/Firefox build session history based on resource location. They do not include resources from the same location into the history. For example, Login Control has two pages, "Not Logged In" and "Logged In", each reflecting the web control state. Both pages are served from the same location, which is the action URL. No additional parameters are passed to action to trick the browser into thinking that it is the same page. Another trick is redirection: according to HTTP specs, when a browser is redirected from a POST request, the resource identified by original POST request must not be stored in the session history. Some browsers like Internet Explorer go further and do not cache response for original request even if the request has the GET type. This is how initialization works, it uses GET with init parameter, and then redirects to "clean" action location with no parameter, so browser would not store URL with parameter in the history. Hmm, that seems to work on Firefox too... I should re-read the specs ;) Working together, these tricks result in a neat effect: a browser thinks that it _keeps reloading the same page_. Thus, the browser prevents a user from going back to see the stale data or to resubmit the stale form. If this approach does not work with a particular browser, and the browser accumulates every page in its history, then the application falls back to the Redirect-After-Post pattern. The DialogAction was tested on Windows 2000 with Internet Explorer, Netscape Navigator, Opera, and Firefox (make sure that you use the official release of Firefox, which fixes the bug with no-store cache-control header). Opera is the bad boy, it tries to cache everything. It interprets the HTTP standard differently from Internet Explorer and Firefox, and does not reload a page when a user navigates back, even if page is marked as "no-store". Thus, it is possible to resubmit a stale form from Opera. Sucky, sucky Opera. For the record: I did not invent anything here. I mean, I did, I reinvented the wheel, because after I came up with these tricks, I googled specifically for this kind of stuff, and found several sites, which use these tricks too. Still, it is not commonplace. Michael. - 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]