Vertical Checkboxes !
Hello Everyone, I have a situation where I'm displaying fields in the JSP by iterating through a Vector of an object A - in a table format. Next to each table row (a different A object), I have a checkbox. I set 'Employee ID' to be the value captured when the checkbox is checked. How can I capture the values of the checkboxes selected and have them be as parameters going to another action through a link (without submitting the page)?? Thank you in advance, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Vertical Checkboxes..
Hello Everyone, I have a situation where I'm displaying fields in the JSP by iterating through a Vector of an object (let's call it A)- in a table format. At the beginning of each table row (which is a different A object), I have a checkbox. I set 'Employee ID' to be the value captured if the checkbox is checked. How can I capture the values of the checkboxes selected (meaning, all the employee IDs selected) and have them be as parameters going to another action through a link (a link, without submitting the page)? Thank you in advance, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Vertical Checkboxes..
No, it's not magic at all. Yes, you're right. Many people don't 'view source' to see that. Just like I applied the idea of the indexed properties( and I didn't know about it before someone from this mailing list infromed me), I thought that there might be a taglib to use with the hashmap that I stored the parameters in. Say we submit the page at the onclick of the link, or a button. How can I do that? -Original Message- From: Adam Levine [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 10:40 AM To: [EMAIL PROTECTED] Subject: RE: Vertical Checkboxes.. Struts taglibs is not some magical device, and I think this is a point many people don't quite realize. Struts taglibs allows you to programmatically generate HTML components from within your JSP, pulling in data from your session object. Look at the pages that are rended -- it's just HTML. If you can't do it within the confines of HTML/HTTP (and perhaps javascript), struts/taglibs isn't going to make it magically work. From: "Alawadhi, Mona" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject: RE: Vertical Checkboxes.. Date: Thu, 14 Aug 2003 09:36:08 -0500 Yes, it works with JavaScript - I use an onclick method. I was just wondering if there is a way to do it in struts taglibs. I actually was thinking of doing it a different way: have an onclick method to submit the page as the user clicks on the link, at the same time put all of the checked parameters in a hashmap and pass them over. Any other ideas? -Original Message- From: Adam Levine [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: Re: Vertical Checkboxes.. How would you do this in CGI? or any other HTML/HTTP manipulator? You really can't. If you want to submit information using a link (a href), that information must already be built when the link is rendered. This is a standard GET format (ie,a href="http://foo.com/submit.cgi?param1=blah¶m2=boo";). If you want to submit data that a user has manipulated, ie from a form, you must use a FORM structure and use a submit button so that you end up with a POST. If you insist on using a link to submit entries a user has manipulated, you're going to have to use JavaScript and essentially do a form post/submit when a link is clicked. hth. From: "Alawadhi, Mona" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject: Vertical Checkboxes.. Date: Thu, 14 Aug 2003 08:52:02 -0500 Hello Everyone, I have a situation where I'm displaying fields in the JSP by iterating through a Vector of an object (let's call it A)- in a table format. At the beginning of each table row (which is a different A object), I have a checkbox. I set 'Employee ID' to be the value captured if the checkbox is checked. How can I capture the values of the checkboxes selected (meaning, all the employee IDs selected) and have them be as parameters going to another action through a link (a link, without submitting the page)? Thank you in advance, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is
RE: Vertical Checkboxes..
Yes, that's right. I actually tried it - it works. The hashMap is just to pass those parameters to the link. For example, can't I have a Vector capturing all the employee Ids checked, and then put the values of the Vector into a hashMap, to be able to pass the params using the taglibs. But the javascript way definately works. Thank you, Matt -Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 11:00 AM To: Struts Users Mailing List Subject: Re: Vertical Checkboxes.. I'm kind of confused as to exactly what you are trying to do because you keep saying HashMap. I think what you want to do is write a JavaScript function that loops through all the checkboxes, determines which are checked, builds a URL based on the values that are checked, and then opens a new window using the URL that was built. Which part of that process are you having trouble with? Assuming you build and return the URL using a javascript function named getUrL you can do something like the following: click here Does that help? What are you trying to do? Matt Alawadhi, Mona wrote: > No, it's not magic at all. > Yes, you're right. Many people don't 'view source' to see that. > > Just like I applied the idea of the indexed properties( and I didn't know > about it before someone from this mailing list infromed me), I thought that > there might be a taglib to use with the hashmap that I stored the parameters > in. > > Say we submit the page at the onclick of the link, or a button. How can I do > that? > > -Original Message- > From: Adam Levine [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 14, 2003 10:40 AM > To: [EMAIL PROTECTED] > Subject: RE: Vertical Checkboxes.. > > > Struts taglibs is not some magical device, and I think this is a point many > people don't quite realize. Struts taglibs allows you to programmatically > generate HTML components from within your JSP, pulling in data from your > session object. Look at the pages that are rended -- it's just HTML. If > you can't do it within the confines of HTML/HTTP (and perhaps javascript), > struts/taglibs isn't going to make it magically work. > > > From: "Alawadhi, Mona" <[EMAIL PROTECTED]> > Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > Subject: RE: Vertical Checkboxes.. > Date: Thu, 14 Aug 2003 09:36:08 -0500 > > Yes, it works with JavaScript - I use an onclick method. > I was just wondering if there is a way to do it in struts taglibs. > > I actually was thinking of doing it a different way: have an onclick method > to submit the page as the user clicks on the link, at the same time put all > of the checked parameters in a hashmap and pass them over. > > Any other ideas? > > -Original Message- > From: Adam Levine [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 14, 2003 10:32 AM > To: [EMAIL PROTECTED] > Subject: Re: Vertical Checkboxes.. > > > How would you do this in CGI? or any other HTML/HTTP manipulator? You > really can't. > > If you want to submit information using a link (a href), that information > must already be built when the link is rendered. This is a standard GET > format (ie,a href="http://foo.com/submit.cgi?param1=blah¶m2=boo";). > > If you want to submit data that a user has manipulated, ie from a form, you > must use a FORM structure and use a submit button so that you end up with a > POST. > > If you insist on using a link to submit entries a user has manipulated, > you're going to have to use JavaScript and essentially do a form post/submit > > when a link is clicked. > > hth. > > > From: "Alawadhi, Mona" <[EMAIL PROTECTED]> > Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > Subject: Vertical Checkboxes.. > Date: Thu, 14 Aug 2003 08:52:02 -0500 > > Hello Everyone, > > I have a situation where I'm displaying fields in the JSP by iterating > through a Vector of an object (let's call it A)- in a table format. > > At the beginning of each table row (which is a different A object), I have a > checkbox. I set 'Employee ID' to be the value captured if the checkbox is > checked. > > How can I capture the values of the checkboxes selected (meaning, all the > employee IDs selected) and have them be as parameters going to another > action through a link (a link, without submitting the page)? > > Thank you in advance, > > Mona >
RE: Vertical Checkboxes..
Yes, it works with JavaScript - I use an onclick method. I was just wondering if there is a way to do it in struts taglibs. I actually was thinking of doing it a different way: have an onclick method to submit the page as the user clicks on the link, at the same time put all of the checked parameters in a hashmap and pass them over. Any other ideas? -Original Message- From: Adam Levine [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: Re: Vertical Checkboxes.. How would you do this in CGI? or any other HTML/HTTP manipulator? You really can't. If you want to submit information using a link (a href), that information must already be built when the link is rendered. This is a standard GET format (ie,a href="http://foo.com/submit.cgi?param1=blah¶m2=boo";). If you want to submit data that a user has manipulated, ie from a form, you must use a FORM structure and use a submit button so that you end up with a POST. If you insist on using a link to submit entries a user has manipulated, you're going to have to use JavaScript and essentially do a form post/submit when a link is clicked. hth. From: "Alawadhi, Mona" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject: Vertical Checkboxes.. Date: Thu, 14 Aug 2003 08:52:02 -0500 Hello Everyone, I have a situation where I'm displaying fields in the JSP by iterating through a Vector of an object (let's call it A)- in a table format. At the beginning of each table row (which is a different A object), I have a checkbox. I set 'Employee ID' to be the value captured if the checkbox is checked. How can I capture the values of the checkboxes selected (meaning, all the employee IDs selected) and have them be as parameters going to another action through a link (a link, without submitting the page)? Thank you in advance, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Delete Validation -- with Vector displayed
Hello Everyone, I have a 'Delete' button in my JSP (a submit button). As the button is submitted, a method gets called (from the Action class) to do the following: 1. checks if the field is NOT used by entities 2. Based on 1, either the field gets deleted, or the field does not get deleted and a Vector of entities using the field is returned. How can I validate/ display a message to the user in case the field is used and cannot be deleted? The error message should also include the entities using the field (which is a Vector, or a string). Thank you, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Form Populating Error, help!!
It looks like there is a method expecting a certain type of param, and it's getting something other than expected. -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 2:01 PM To: Struts Mailing List Subject: Form Populating Error, help!! Getting this error: exception javax.servlet.ServletException: BeanUtils.populate at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j ava:821) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) root cause java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:508) at java.util.ArrayList.get(ArrayList.java:320) at org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils. java:521) at org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils. java:428) at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.j ava:770) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:80 1) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:881) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) When trying to submit to my bean. Here is my html code: And the relevant form code:public class EditUserForm extends ActionForm {private ArrayList myBeans = new ArrayList();public ArrayList getIndexedBeans() {return this.myBeans;}public void setIndexedBeans(ArrayList myBeans) {this.myBeans = myBeans;} // THIS METHOD IS REQUIRED IF YOUR FORM IS OF REQUEST SCOPE.public PermissionLine getIndexedBeans(int index) {while (this.myBeans.size() + 1 < index) this.myBeans.add(new PermissionLine());return (PermissionLine) this.myBeans.get(index);}}The beans are stored in request scope.. any ideas?Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Delete Validation -- with Vector displayed
This is what I have in my JSP already - to validate other fields of the form bean: <%-- Error Messages --%> I get those validations/messages from the 'Validate' method in the form bean along with the applicationResources.properties file. I have a check for the 'errors' object in my action class. 1. How can I write my delete-validation in a way that does not conflict with all of the above? 2. you mentioned 'Return an ActionError...'. Where would I return it to/from? How can I declare a new ActionError and add it to errors?? -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 2:10 PM To: Struts Users Mailing List Subject: RE: Delete Validation -- with Vector displayed Return an ActionError with a message parameterized to include the names of the entities, then on the JSP, render that errors collection. -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 2:08 PM To: 'Struts Users Mailing List' Subject: Delete Validation -- with Vector displayed Hello Everyone, I have a 'Delete' button in my JSP (a submit button). As the button is submitted, a method gets called (from the Action class) to do the following: 1. checks if the field is NOT used by entities 2. Based on 1, either the field gets deleted, or the field does not get deleted and a Vector of entities using the field is returned. How can I validate/ display a message to the user in case the field is used and cannot be deleted? The error message should also include the entities using the field (which is a Vector, or a string). Thank you, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Displaying is easy, capturing is not..
Thank you - I am definately considering that. I'll probably limit the user. -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 2:04 PM To: 'Struts Users Mailing List' Subject: RE: Displaying is easy, capturing is not.. Mona, I don't think the user's browser will handle many more than 50 (a guess) much less 600 text input elements on a single page. I think you should re-think the UI so that fewer input elements are needed. Handling 600 input fields on the server side will take a long time (several seconds to a few minutes). -Richard -Original Message- From: atta-ur rehman [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 10:50 AM To: Struts Users Mailing List Subject: Re: Displaying is easy, capturing is not.. Hello Mona, is ABC is bean that has six properties that you need to show? and then you have a collection of ABC objects in a List or Vector? if so, you can use the indexed properties to capture all the changes done on the page. and yes, usually one submit button is enough for six hundred values!!! ATTA - Original Message ----- From: "Alawadhi, Mona" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, July 30, 2003 10:32 AM Subject: Displaying is easy, capturing is not.. > Hello Everyone, > > I wonder if someone can help me with this problem. I would appreciate > any smart suggestion. > > I have a JSP that displays a collection (ValueObject fields) Let's > call the > collection ABC - it consists of 6 items. I might have more than one > ABC collections to display. This can be done by setting a Vector which consists > of a number of ABC collections, and simply I can iterate through the Vector > in my JSP and display all the ABC collections I have using textboxes. > > When the user tries to change any of those textboxes, I should be able > to capture them. I have one submit button that I am using, and if, for example, > I have two ABC's there, I should be able to capture all 12 items. > (note that > I might have 100 ABCs, in which case I have to capture 600 items.) > > How can I do that using one submit button? > > Thank you in advance, > > Mona > > > > > * > The information in this email is confidential and may be legally privileged. > It is intended solely for the addressee. Access to this email by > anyone else > is unauthorized. > > If you are not the intended recipient, any disclosure, copying, distribution > or any action taken or omitted to be taken in reliance on it, is prohibited > and may be unlawful. When addressed to our clients any opinions or > advice contained in this email are subject to the terms and conditions > expressed in > the governing KPMG client engagement letter. > * > > > - > 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] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Displaying is easy, capturing is not..
Hello Everyone, I wonder if someone can help me with this problem. I would appreciate any smart suggestion. I have a JSP that displays a collection (ValueObject fields) Let's call the collection ABC - it consists of 6 items. I might have more than one ABC collections to display. This can be done by setting a Vector which consists of a number of ABC collections, and simply I can iterate through the Vector in my JSP and display all the ABC collections I have using textboxes. When the user tries to change any of those textboxes, I should be able to capture them. I have one submit button that I am using, and if, for example, I have two ABC's there, I should be able to capture all 12 items. (note that I might have 100 ABCs, in which case I have to capture 600 items.) How can I do that using one submit button? Thank you in advance, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP's taking too long in websphere
Thank you, Varun. Yes, the JSP's only take long. I would start opening files from the hierarchy, and only when I open the JSP's, it takes a long time. Yes, I do have a couple of drop downs and radio buttons. Johnny, long = 13 sometimes 15 seconds. Unbelievable long and only for the JSP's! and yes, I've rebooted my machine many times. If this is the case, then I'm pretty sure it's because of the complexity of my JSP. -Original Message- From: Poon, Johnny [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 12:26 PM To: 'Struts Users Mailing List' Subject: RE: JSP's taking too long in websphere I think Varun had some very good suggestion. I will not say WSAD is a fast IDE by any mean, but how long is "long" for you? A second or 2? I have a 1GB of CPU and 1GB of Mem running NT, except to bring up WSAD, it runs ok for me in general. Along with all the suggestions that Varun had, have you try to reboot your machine? ;-) JP -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:20 AM To: 'Struts Users Mailing List' Subject: RE: JSP's taking too long in websphere Do you have lot of lists on your page, do you use drop downs etc and how is the length of the drop downs. What is the approximate size of the page being delivered. I would check all the parameters to see what is the size of the page that you are rendering, what is size of the lists etc. It can take long depending on the amount of processing, and are you sure that it is the jsp page which is taking long? Also I would put some statements like long stTime = System.currentTimeMillis(); At the starting and log.debug("time before forward the request:" + (System.currentTimeMillis() - stTime)); Before the end of the page to really see what is the time being spent in rendering the page. -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:08 AM To: 'Struts Users Mailing List' Subject: RE: JSP's taking too long in websphere Johnny, It is still taking a long time.. even after I checked off those options! None of my other files take this long - except for the JSP's. -Original Message- From: Poon, Johnny [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:40 AM To: 'Struts Users Mailing List' Subject: RE: JSP's taking too long in websphere What is the CPU and Memory of your computer? Sometime it could be simply lack of power to run WSAD. Another thing you can try is to turn off "Perform build automatically on resource modification" and "Refresh Workspace on startup". You can find these 2 options in "Window->Preferences->Workbench". HTH. JP -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:33 AM To: 'Struts Users Mailing List' Subject: RE: JSP's taking too long in websphere I'm sure there's an option to turn that off somewhere. What version are you running? Websphere tends to be kinda slow. I've had some issues with that, especially in version 4 and version 5 integration edition. - Keith -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:18 AM To: 'Struts Users Mailing List' Subject: JSP's taking too long in websphere Hello everyone, I work with strtus framework and use websphere. The problem is that it takes a lot of time to open, load, or save my JSP pages. Could it be because websphere compiles everything (even when I open the page?) if yes, is there any option to turn that off? I appreciate any suggestion Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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 PR
RE: JSP's taking too long in websphere
Johnny, It is still taking a long time.. even after I checked off those options! None of my other files take this long - except for the JSP's. -Original Message- From: Poon, Johnny [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:40 AM To: 'Struts Users Mailing List' Subject: RE: JSP's taking too long in websphere What is the CPU and Memory of your computer? Sometime it could be simply lack of power to run WSAD. Another thing you can try is to turn off "Perform build automatically on resource modification" and "Refresh Workspace on startup". You can find these 2 options in "Window->Preferences->Workbench". HTH. JP -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:33 AM To: 'Struts Users Mailing List' Subject: RE: JSP's taking too long in websphere I'm sure there's an option to turn that off somewhere. What version are you running? Websphere tends to be kinda slow. I've had some issues with that, especially in version 4 and version 5 integration edition. - Keith -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:18 AM To: 'Struts Users Mailing List' Subject: JSP's taking too long in websphere Hello everyone, I work with strtus framework and use websphere. The problem is that it takes a lot of time to open, load, or save my JSP pages. Could it be because websphere compiles everything (even when I open the page?) if yes, is there any option to turn that off? I appreciate any suggestion Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP's taking too long in websphere
I have 1GB of memory. The minimum requirement for websphere is 512. So, it's probably not that. I am trying to turn off the option you mentioned. Thank you! Mona -Original Message- From: Poon, Johnny [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:40 AM To: 'Struts Users Mailing List' Subject: RE: JSP's taking too long in websphere What is the CPU and Memory of your computer? Sometime it could be simply lack of power to run WSAD. Another thing you can try is to turn off "Perform build automatically on resource modification" and "Refresh Workspace on startup". You can find these 2 options in "Window->Preferences->Workbench". HTH. JP -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:33 AM To: 'Struts Users Mailing List' Subject: RE: JSP's taking too long in websphere I'm sure there's an option to turn that off somewhere. What version are you running? Websphere tends to be kinda slow. I've had some issues with that, especially in version 4 and version 5 integration edition. - Keith -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:18 AM To: 'Struts Users Mailing List' Subject: JSP's taking too long in websphere Hello everyone, I work with strtus framework and use websphere. The problem is that it takes a lot of time to open, load, or save my JSP pages. Could it be because websphere compiles everything (even when I open the page?) if yes, is there any option to turn that off? I appreciate any suggestion Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP's taking too long in websphere
I am using version 5.0. Not sure what option to turn that off! -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:33 AM To: 'Struts Users Mailing List' Subject: RE: JSP's taking too long in websphere I'm sure there's an option to turn that off somewhere. What version are you running? Websphere tends to be kinda slow. I've had some issues with that, especially in version 4 and version 5 integration edition. - Keith -----Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:18 AM To: 'Struts Users Mailing List' Subject: JSP's taking too long in websphere Hello everyone, I work with strtus framework and use websphere. The problem is that it takes a lot of time to open, load, or save my JSP pages. Could it be because websphere compiles everything (even when I open the page?) if yes, is there any option to turn that off? I appreciate any suggestion Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP's taking too long in websphere
Hello everyone, I work with strtus framework and use websphere. The problem is that it takes a lot of time to open, load, or save my JSP pages. Could it be because websphere compiles everything (even when I open the page?) if yes, is there any option to turn that off? I appreciate any suggestion Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: taglibs - nonstatic javascript value
If I decided to pass a dynamic value using javascript in struts tag libs, it's not doable, right? regardless of using another taglib or not. -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 1:26 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value I did not say it is impossible, the thing is that you are trying to use tag inside tag and that is causing some problems, I am just suggesting a quick solutions. Also, when you start getting into custom javascript, you are not really following struts at that point. -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:21 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value Yes, thank you. So, this means that it is impossible to do it with struts taglibs? -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 1:18 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value I changes it to use rather than and removed the extra ". You can use the property or not depending on your requirement. -----Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:15 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value eliminating "property" doesn't do it! -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:35 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value Try this, this should work. '); document.forms[0].submit(); "> -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 11:23 AM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value Varun, I've tried to put that in, but it still doesn't work: it cuts it when it comes to those double quotes, so, my href would be = "javascript:setHiddenLetter('". So, it doesn't like those quotes. I've tried removing them and putting them in single quotes, I'm back to that same problem. It reads the whole thing as one string. Please advice! Mona -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:06 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value I would just put a bean:write instead on the D. "'); document.forms[0].submit(); "> -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 10:50 AM To: 'Struts Users Mailing List' Subject: taglibs - nonstatic javascript value yes, it worked. I have one problem, though: passing dynamic value to the function I call in javascript. This is what I have: I would like to replace that 'D' with something like <%=choice%>, for the user to be able to select the letter (there are letter A through Z, and 'letter' is a hidden field). How can I do that? Mona -Original Message- From: Lynn Guy [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 4:35 PM To: Struts Users Mailing List Subject: RE: first time action put them in an html form tag then in your link do something like onclick=this.submit() function doInsert() { document.forms[0].submit(); } I think the name property for the html:form tag is no longer valid so forms[0] refers to the first form on my page. In your case you can probably use the html:link tag and put the javascript call in the onclick property. hth * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM
RE: taglibs - nonstatic javascript value
Yes, thank you. So, this means that it is impossible to do it with struts taglibs? -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 1:18 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value I changes it to use rather than and removed the extra ". You can use the property or not depending on your requirement. -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:15 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value eliminating "property" doesn't do it! -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:35 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value Try this, this should work. '); document.forms[0].submit(); "> -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 11:23 AM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value Varun, I've tried to put that in, but it still doesn't work: it cuts it when it comes to those double quotes, so, my href would be = "javascript:setHiddenLetter('". So, it doesn't like those quotes. I've tried removing them and putting them in single quotes, I'm back to that same problem. It reads the whole thing as one string. Please advice! Mona -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:06 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value I would just put a bean:write instead on the D. "'); document.forms[0].submit(); "> -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 10:50 AM To: 'Struts Users Mailing List' Subject: taglibs - nonstatic javascript value yes, it worked. I have one problem, though: passing dynamic value to the function I call in javascript. This is what I have: I would like to replace that 'D' with something like <%=choice%>, for the user to be able to select the letter (there are letter A through Z, and 'letter' is a hidden field). How can I do that? Mona -Original Message- From: Lynn Guy [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 4:35 PM To: Struts Users Mailing List Subject: RE: first time action put them in an html form tag then in your link do something like onclick=this.submit() function doInsert() { document.forms[0].submit(); } I think the name property for the html:form tag is no longer valid so forms[0] refers to the first form on my page. In your case you can probably use the html:link tag and put the javascript call in the onclick property. hth * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
RE: taglibs - nonstatic javascript value
eliminating "property" doesn't do it! -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:35 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value Try this, this should work. '); document.forms[0].submit(); "> -----Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 11:23 AM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value Varun, I've tried to put that in, but it still doesn't work: it cuts it when it comes to those double quotes, so, my href would be = "javascript:setHiddenLetter('". So, it doesn't like those quotes. I've tried removing them and putting them in single quotes, I'm back to that same problem. It reads the whole thing as one string. Please advice! Mona -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:06 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value I would just put a bean:write instead on the D. "'); document.forms[0].submit(); "> -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 10:50 AM To: 'Struts Users Mailing List' Subject: taglibs - nonstatic javascript value yes, it worked. I have one problem, though: passing dynamic value to the function I call in javascript. This is what I have: I would like to replace that 'D' with something like <%=choice%>, for the user to be able to select the letter (there are letter A through Z, and 'letter' is a hidden field). How can I do that? Mona -Original Message- From: Lynn Guy [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 4:35 PM To: Struts Users Mailing List Subject: RE: first time action put them in an html form tag then in your link do something like onclick=this.submit() function doInsert() { document.forms[0].submit(); } I think the name property for the html:form tag is no longer valid so forms[0] refers to the first form on my page. In your case you can probably use the html:link tag and put the javascript call in the onclick property. hth * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawf
RE: taglibs - nonstatic javascript value
Varun, I've tried to put that in, but it still doesn't work: it cuts it when it comes to those double quotes, so, my href would be = "javascript:setHiddenLetter('". So, it doesn't like those quotes. I've tried removing them and putting them in single quotes, I'm back to that same problem. It reads the whole thing as one string. Please advice! Mona -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:06 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value I would just put a bean:write instead on the D. "'); document.forms[0].submit(); "> -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 10:50 AM To: 'Struts Users Mailing List' Subject: taglibs - nonstatic javascript value yes, it worked. I have one problem, though: passing dynamic value to the function I call in javascript. This is what I have: I would like to replace that 'D' with something like <%=choice%>, for the user to be able to select the letter (there are letter A through Z, and 'letter' is a hidden field). How can I do that? Mona -Original Message- From: Lynn Guy [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 4:35 PM To: Struts Users Mailing List Subject: RE: first time action put them in an html form tag then in your link do something like onclick=this.submit() function doInsert() { document.forms[0].submit(); } I think the name property for the html:form tag is no longer valid so forms[0] refers to the first form on my page. In your case you can probably use the html:link tag and put the javascript call in the onclick property. hth * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: taglibs - nonstatic javascript value
Panchasheel, I've tried it. It doesn't work. It takes '<%=choice.toString()%>' as a whole string, it does not replace it by the letter I want. Actually, if you write this, and try to hover over the link, you will see: 'javascript:setHiddenletter('<%choice.toString()%>')' INSTEAD OF 'javascript:setHiddenletter('D')' or 'javascript:setHiddenletter('A')' or something. I am not sure how I can trick struts to capture the dynamic value, not hardcode it. Anyone can help? Mona -Original Message- From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:02 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value This should work Panchasheel -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 11:50 AM To: 'Struts Users Mailing List' Subject: taglibs - nonstatic javascript value yes, it worked. I have one problem, though: passing dynamic value to the function I call in javascript. This is what I have: I would like to replace that 'D' with something like <%=choice%>, for the user to be able to select the letter (there are letter A through Z, and 'letter' is a hidden field). How can I do that? Mona -Original Message- From: Lynn Guy [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 4:35 PM To: Struts Users Mailing List Subject: RE: first time action put them in an html form tag then in your link do something like onclick=this.submit() function doInsert() { document.forms[0].submit(); } I think the name property for the html:form tag is no longer valid so forms[0] refers to the first form on my page. In your case you can probably use the html:link tag and put the javascript call in the onclick property. hth * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
taglibs - nonstatic javascript value
yes, it worked. I have one problem, though: passing dynamic value to the function I call in javascript. This is what I have: I would like to replace that 'D' with something like <%=choice%>, for the user to be able to select the letter (there are letter A through Z, and 'letter' is a hidden field). How can I do that? Mona -Original Message- From: Lynn Guy [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 4:35 PM To: Struts Users Mailing List Subject: RE: first time action put them in an html form tag then in your link do something like onclick=this.submit() function doInsert() { document.forms[0].submit(); } I think the name property for the html:form tag is no longer valid so forms[0] refers to the first form on my page. In your case you can probably use the html:link tag and put the javascript call in the onclick property. hth * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: first time action
1. it's a She :o) 2. Correct. I'm trying a "submit" button now. But the problem is that I need to display my letters (A to Z), and they're not clickable unless they're a link. I do not want to have checkboxes or radio buttons next to them, I would like them to be clickable and at the same time submit. How can I do that? Mona -Original Message- From: Lynn Guy [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 4:17 PM To: Struts Users Mailing List Subject: RE: first time action I'm a newbie at this so if Im off base ignore me and go on, but the ORIGINAL problem was: "The problem is that when I click on that link, it re-loads the page, and sets the defaults again. It does not take the new values for the radio buttons(I have three parms in my page)" If I understand correctly he has links on the page that call his action. He IS NOT SUBMITTING THE FORM. I've not tried this but when he does not submit the form he does not send the values from his page back he just goes to the action and gets a new form with the defaults again. So if somebody has changed the values from the defaults those changes get lost. I think he has to submit the form or he is just doing navigation. --- "Alawadhi, Mona" <[EMAIL PROTECTED]> wrote: > Thank you very much, Brandon. > > -Original Message- > From: Brandon Goodin [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2003 3:14 PM > To: Struts Users Mailing List > Subject: RE: first time action > > > I can already see what your problem is. You are not > using the constructor. > Instead of using the setPageDefaults from within > your Action class you > should be using the Constructof of your ActionForm. > Give me a few minutes > and I will send you the code with the adjustments. > > Brandon Goodin > > -Original Message- > From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2003 1:06 PM > To: 'Struts Users Mailing List' > Subject: RE: first time action > > > This is what I am using as well. > > and I have this in my Action: HttpSession session = > request.getSession(true); > > -Original Message- > From: Tim Torbeyns [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2003 3:02 PM > To: Struts Users Mailing List > Subject: RE: first time action > > > you probably not using the latest version of struts > i'm using struts1.1 rc > where the scope's default = session ! > > Tim > > > --- Brandon Goodin <[EMAIL PROTECTED]> wrote: > "form > is stored in the > session of the user" > > > > Not so. By default it is in the request. It is > only in the session if > > you > > specify it to be (i.e ). > > > > Ex. (see scope attribute of action element) > > > > > parameter="submit" > > type="ws.phase.core.actions.GenericAction" > > name="genericForm" > > validate="false" > > scope="request"> > >> path="admin.mainLayout" > > redirect="false"/> > > > > > > vs. > > > > > parameter="submit" > > type="ws.phase.core.actions.GenericAction" > > name="genericForm" > > validate="false" > > scope="session"> > >> path="admin.mainLayout" > > redirect="false"/> > > > > > > Brandon Goodin > > > > > > -Original Message- > > From: Tim Torbeyns [mailto:[EMAIL PROTECTED] > > Sent: Monday, June 02, 2003 12:55 PM > > To: Struts Users Mailing List > > Subject: RE: first time action > > > > > > Hi > > > > you're probably missing something > > the default behaviour of an actionform is that the > constructor is > > called only once (at the creation of the form) > after it is created > > every form is stored in the session under the name > you gave it in the > > form-bean tag of the struts-config file > > > > so when you have a jsp page with html-form > name="action1" > > and you call this page > > the actionform1 is created, constructor of form > will be called and > > the > > form is stored in the session of the user > > > > Tim > > > > --- "Alawadhi, Mona" <[EMAIL PROTECTED]> wrote: > > Brandon, > > > > > > The values are standard for all. > > > I've tried including the call for > setPageDefaults() in the > > > constructor of > > > the A
RE: first time action
yes... I realized. Just curious :o) -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 3:32 PM To: Struts Users Mailing List Subject: RE: first time action Mona, the "undies" comment was aimed at Tim. Brandon Goodin -Original Message----- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 1:19 PM To: 'Struts Users Mailing List' Subject: RE: first time action I see. what does "undies in a bind" mean?? -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 3:19 PM To: Struts Users Mailing List Subject: RE: first time action No need to get your undies in a bind. I usually use the request and therefore specify it as such. Session scope causes potential problems because the values persist. Anyways, you are correct. My humblest of apologies. I just have never used default. -- code from request processor -- if ("request".equals(mapping.getScope())) { request.setAttribute(mapping.getAttribute(), instance); } else { HttpSession session = request.getSession(); session.setAttribute(mapping.getAttribute(), instance); } -- end -- Brandon Goodin -Original Message- From: Tim Torbeyns [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 1:02 PM To: Struts Users Mailing List Subject: RE: first time action you probably not using the latest version of struts i'm using struts1.1 rc where the scope's default = session ! Tim --- Brandon Goodin <[EMAIL PROTECTED]> wrote: > "form is stored in the session of the user" > > Not so. By default it is in the request. It is only in the session if > you > specify it to be (i.e ). > > Ex. (see scope attribute of action element) > > parameter="submit" > type="ws.phase.core.actions.GenericAction" > name="genericForm" > validate="false" > scope="request"> >path="admin.mainLayout" > redirect="false"/> > > > vs. > > parameter="submit" > type="ws.phase.core.actions.GenericAction" > name="genericForm" > validate="false" > scope="session"> >path="admin.mainLayout" > redirect="false"/> > > > Brandon Goodin > > > -Original Message- > From: Tim Torbeyns [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2003 12:55 PM > To: Struts Users Mailing List > Subject: RE: first time action > > > Hi > > you're probably missing something > the default behaviour of an actionform is that the constructor is > called only once (at the creation of the form) after it is created > every form is stored in the session under the name you gave it in the > form-bean tag of the struts-config file > > so when you have a jsp page with html-form name="action1" > and you call this page > the actionform1 is created, constructor of form will be called and > the > form is stored in the session of the user > > Tim > > --- "Alawadhi, Mona" <[EMAIL PROTECTED]> wrote: > Brandon, > > > > The values are standard for all. > > I've tried including the call for setPageDefaults() in the > > constructor of > > the ActionForm class, but it didn't work. My guess is that the > "form" > > is not > > created/passed yet since the 'execute' method comes after the > > constructor. I > > tried to create a FormBean object in the ActionForm constructor, > but > > it > > didn't work. it doesn't recognize it. > > > > and, of course, I cannot include the setPageDefaults() in the > > FormBean > > constructor, since the FormBean object gets created every time the > > Action is > > called, so, it brings us back to the same problem. > > > > I'm thinking now to use a form.submit() method in javascript. I am > > not sure > > how to go about that, though, since I do not know javascript. > > > > Can you, or anyone from the group help me? I am to pass one hidden > > filed > > (which is the letter), and two other radio-button parameters from > my > > form to > > the Action. > > > > Thank you :o) > > > > Mona <-- JavaScript illiterate. > > > > -Original Message- > > From: Brandon Goodin [mailto:[EMAIL PROTECTED] > > Sent: Monday, June 02, 2003 2:10 PM > > To: Struts Users Mailing List > > Subject: RE: first time action > > > > > > I am a little confused. I am not sure where you are getting your > &
RE: first time action
is there anyway that I could set a dummy var like int isFirstTime=0 and then change its value once I set my defaults? Just approaching it from another way. I've also noticed that my collegue programmer has done something like this: if(request.getAttribute("contentPage").equals(null)) {al.setPageDefaults();} as an indication of first time coming to the page. -Original Message- From: Tim Torbeyns [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 3:20 PM To: Struts Users Mailing List Subject: RE: first time action np btw most of the time i store all my actionforms in the session and use the reset method to clear the desired fields storing them in the session can be usefull when you want for example retrieve the previous values of a filterform of a list etc Tim --- Brandon Goodin <[EMAIL PROTECTED]> wrote: > No need to get your undies in a bind. I usually use the request and > therefore specify it as such. Session scope causes potential problems > because the values persist. Anyways, you are correct. My humblest of > apologies. I just have never used default. > > -- code from request processor -- > if ("request".equals(mapping.getScope())) { > request.setAttribute(mapping.getAttribute(), instance); > } else { > HttpSession session = request.getSession(); > session.setAttribute(mapping.getAttribute(), instance); > } > -- end -- > Brandon Goodin > > -Original Message- > From: Tim Torbeyns [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2003 1:02 PM > To: Struts Users Mailing List > Subject: RE: first time action > > > you probably not using the latest version of struts > i'm using struts1.1 rc > where the scope's default = session ! > > Tim > > > --- Brandon Goodin <[EMAIL PROTECTED]> wrote: > "form is stored in the > session of the user" > > > > Not so. By default it is in the request. It is only in the session > if > > you > > specify it to be (i.e ). > > > > Ex. (see scope attribute of action element) > > > > > parameter="submit" > > type="ws.phase.core.actions.GenericAction" > > name="genericForm" > > validate="false" > > scope="request"> > >> path="admin.mainLayout" > > redirect="false"/> > > > > > > vs. > > > > > parameter="submit" > > type="ws.phase.core.actions.GenericAction" > > name="genericForm" > > validate="false" > > scope="session"> > >> path="admin.mainLayout" > > redirect="false"/> > > > > > > Brandon Goodin > > > > > > -Original Message- > > From: Tim Torbeyns [mailto:[EMAIL PROTECTED] > > Sent: Monday, June 02, 2003 12:55 PM > > To: Struts Users Mailing List > > Subject: RE: first time action > > > > > > Hi > > > > you're probably missing something > > the default behaviour of an actionform is that the constructor is > > called only once (at the creation of the form) after it is created > > every form is stored in the session under the name you gave it in > the > > form-bean tag of the struts-config file > > > > so when you have a jsp page with html-form name="action1" > > and you call this page > > the actionform1 is created, constructor of form will be called and > > the > > form is stored in the session of the user > > > > Tim > > > > --- "Alawadhi, Mona" <[EMAIL PROTECTED]> wrote: > Brandon, > > > > > > The values are standard for all. > > > I've tried including the call for setPageDefaults() in the > > > constructor of > > > the ActionForm class, but it didn't work. My guess is that the > > "form" > > > is not > > > created/passed yet since the 'execute' method comes after the > > > constructor. I > > > tried to create a FormBean object in the ActionForm constructor, > > but > > > it > > > didn't work. it doesn't recognize it. > > > > > > and, of course, I cannot include the setPageDefaults() in the > > > FormBean > > > constructor, since the FormBean object gets created every time > the > > > Action is > > > called, so, it brings us back to the same problem. > > > > > > I'm thinking now to use a form.submit() method in javascript. I > am > > >
RE: first time action
I see. what does "undies in a bind" mean?? -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 3:19 PM To: Struts Users Mailing List Subject: RE: first time action No need to get your undies in a bind. I usually use the request and therefore specify it as such. Session scope causes potential problems because the values persist. Anyways, you are correct. My humblest of apologies. I just have never used default. -- code from request processor -- if ("request".equals(mapping.getScope())) { request.setAttribute(mapping.getAttribute(), instance); } else { HttpSession session = request.getSession(); session.setAttribute(mapping.getAttribute(), instance); } -- end -- Brandon Goodin -Original Message- From: Tim Torbeyns [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 1:02 PM To: Struts Users Mailing List Subject: RE: first time action you probably not using the latest version of struts i'm using struts1.1 rc where the scope's default = session ! Tim --- Brandon Goodin <[EMAIL PROTECTED]> wrote: > "form is stored in the session of the user" > > Not so. By default it is in the request. It is only in the session if > you > specify it to be (i.e ). > > Ex. (see scope attribute of action element) > > parameter="submit" > type="ws.phase.core.actions.GenericAction" > name="genericForm" > validate="false" > scope="request"> >path="admin.mainLayout" > redirect="false"/> > > > vs. > > parameter="submit" > type="ws.phase.core.actions.GenericAction" > name="genericForm" > validate="false" > scope="session"> >path="admin.mainLayout" > redirect="false"/> > > > Brandon Goodin > > > -Original Message- > From: Tim Torbeyns [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2003 12:55 PM > To: Struts Users Mailing List > Subject: RE: first time action > > > Hi > > you're probably missing something > the default behaviour of an actionform is that the constructor is > called only once (at the creation of the form) after it is created > every form is stored in the session under the name you gave it in the > form-bean tag of the struts-config file > > so when you have a jsp page with html-form name="action1" > and you call this page > the actionform1 is created, constructor of form will be called and > the > form is stored in the session of the user > > Tim > > --- "Alawadhi, Mona" <[EMAIL PROTECTED]> wrote: > Brandon, > > > > The values are standard for all. > > I've tried including the call for setPageDefaults() in the > > constructor of > > the ActionForm class, but it didn't work. My guess is that the > "form" > > is not > > created/passed yet since the 'execute' method comes after the > > constructor. I > > tried to create a FormBean object in the ActionForm constructor, > but > > it > > didn't work. it doesn't recognize it. > > > > and, of course, I cannot include the setPageDefaults() in the > > FormBean > > constructor, since the FormBean object gets created every time the > > Action is > > called, so, it brings us back to the same problem. > > > > I'm thinking now to use a form.submit() method in javascript. I am > > not sure > > how to go about that, though, since I do not know javascript. > > > > Can you, or anyone from the group help me? I am to pass one hidden > > filed > > (which is the letter), and two other radio-button parameters from > my > > form to > > the Action. > > > > Thank you :o) > > > > Mona <-- JavaScript illiterate. > > > > -Original Message- > > From: Brandon Goodin [mailto:[EMAIL PROTECTED] > > Sent: Monday, June 02, 2003 2:10 PM > > To: Struts Users Mailing List > > Subject: RE: first time action > > > > > > I am a little confused. I am not sure where you are getting your > > default > > values from. Are they set as a result of client preferences or are > > they > > standard for everyone. > > > > If they are standard for all, it might be best to define the > default > > values > > for your ActionForm within the constructor of the ActionForm. That > > way upon > > first entry to the page you have the default values set in the > > ActionForm. > > After that any form values submitt
RE: first time action
Thank you very much, Brandon. -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 3:14 PM To: Struts Users Mailing List Subject: RE: first time action I can already see what your problem is. You are not using the constructor. Instead of using the setPageDefaults from within your Action class you should be using the Constructof of your ActionForm. Give me a few minutes and I will send you the code with the adjustments. Brandon Goodin -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 1:06 PM To: 'Struts Users Mailing List' Subject: RE: first time action This is what I am using as well. and I have this in my Action: HttpSession session = request.getSession(true); -Original Message- From: Tim Torbeyns [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 3:02 PM To: Struts Users Mailing List Subject: RE: first time action you probably not using the latest version of struts i'm using struts1.1 rc where the scope's default = session ! Tim --- Brandon Goodin <[EMAIL PROTECTED]> wrote: > "form is stored in the session of the user" > > Not so. By default it is in the request. It is only in the session if > you > specify it to be (i.e ). > > Ex. (see scope attribute of action element) > > parameter="submit" > type="ws.phase.core.actions.GenericAction" > name="genericForm" > validate="false" > scope="request"> >path="admin.mainLayout" > redirect="false"/> > > > vs. > > parameter="submit" > type="ws.phase.core.actions.GenericAction" > name="genericForm" > validate="false" > scope="session"> >path="admin.mainLayout" > redirect="false"/> > > > Brandon Goodin > > > -Original Message- > From: Tim Torbeyns [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2003 12:55 PM > To: Struts Users Mailing List > Subject: RE: first time action > > > Hi > > you're probably missing something > the default behaviour of an actionform is that the constructor is > called only once (at the creation of the form) after it is created > every form is stored in the session under the name you gave it in the > form-bean tag of the struts-config file > > so when you have a jsp page with html-form name="action1" > and you call this page > the actionform1 is created, constructor of form will be called and > the > form is stored in the session of the user > > Tim > > --- "Alawadhi, Mona" <[EMAIL PROTECTED]> wrote: > Brandon, > > > > The values are standard for all. > > I've tried including the call for setPageDefaults() in the > > constructor of > > the ActionForm class, but it didn't work. My guess is that the > "form" > > is not > > created/passed yet since the 'execute' method comes after the > > constructor. I > > tried to create a FormBean object in the ActionForm constructor, > but > > it > > didn't work. it doesn't recognize it. > > > > and, of course, I cannot include the setPageDefaults() in the > > FormBean > > constructor, since the FormBean object gets created every time the > > Action is > > called, so, it brings us back to the same problem. > > > > I'm thinking now to use a form.submit() method in javascript. I am > > not sure > > how to go about that, though, since I do not know javascript. > > > > Can you, or anyone from the group help me? I am to pass one hidden > > filed > > (which is the letter), and two other radio-button parameters from > my > > form to > > the Action. > > > > Thank you :o) > > > > Mona <-- JavaScript illiterate. > > > > -Original Message- > > From: Brandon Goodin [mailto:[EMAIL PROTECTED] > > Sent: Monday, June 02, 2003 2:10 PM > > To: Struts Users Mailing List > > Subject: RE: first time action > > > > > > I am a little confused. I am not sure where you are getting your > > default > > values from. Are they set as a result of client preferences or are > > they > > standard for everyone. > > > > If they are standard for all, it might be best to define the > default > > values > > for your ActionForm within the constructor of the ActionForm. That > > way upon > > first entry to the page you have the default values set in the > > ActionForm. > > After th
RE: first time action
yes.. -Original Message- From: Tim Torbeyns [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 3:10 PM To: Struts Users Mailing List Subject: RE: first time action why are you using this in your action ? are you trying to access the defaults of actionform1 in action1 ? --- "Alawadhi, Mona" <[EMAIL PROTECTED]> wrote: > This is what I am using as well. > > and I have this in my Action: HttpSession session = > request.getSession(true); > > -Original Message- > From: Tim Torbeyns [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2003 3:02 PM > To: Struts Users Mailing List > Subject: RE: first time action > > > you probably not using the latest version of struts > i'm using struts1.1 rc > where the scope's default = session ! > > Tim > > > --- Brandon Goodin <[EMAIL PROTECTED]> wrote: > "form is stored in the > session of the user" > > > > Not so. By default it is in the request. It is only in the session > if > > you > > specify it to be (i.e ). > > > > Ex. (see scope attribute of action element) > > > > > parameter="submit" > > type="ws.phase.core.actions.GenericAction" > > name="genericForm" > > validate="false" > > scope="request"> > >> path="admin.mainLayout" > > redirect="false"/> > > > > > > vs. > > > > > parameter="submit" > > type="ws.phase.core.actions.GenericAction" > > name="genericForm" > > validate="false" > > scope="session"> > >> path="admin.mainLayout" > > redirect="false"/> > > > > > > Brandon Goodin > > > > > > -Original Message- > > From: Tim Torbeyns [mailto:[EMAIL PROTECTED] > > Sent: Monday, June 02, 2003 12:55 PM > > To: Struts Users Mailing List > > Subject: RE: first time action > > > > > > Hi > > > > you're probably missing something > > the default behaviour of an actionform is that the constructor is > > called only once (at the creation of the form) after it is created > > every form is stored in the session under the name you gave it in > the > > form-bean tag of the struts-config file > > > > so when you have a jsp page with html-form name="action1" > > and you call this page > > the actionform1 is created, constructor of form will be called and > > the > > form is stored in the session of the user > > > > Tim > > > > --- "Alawadhi, Mona" <[EMAIL PROTECTED]> wrote: > Brandon, > > > > > > The values are standard for all. > > > I've tried including the call for setPageDefaults() in the > > > constructor of > > > the ActionForm class, but it didn't work. My guess is that the > > "form" > > > is not > > > created/passed yet since the 'execute' method comes after the > > > constructor. I > > > tried to create a FormBean object in the ActionForm constructor, > > but > > > it > > > didn't work. it doesn't recognize it. > > > > > > and, of course, I cannot include the setPageDefaults() in the > > > FormBean > > > constructor, since the FormBean object gets created every time > the > > > Action is > > > called, so, it brings us back to the same problem. > > > > > > I'm thinking now to use a form.submit() method in javascript. I > am > > > not sure > > > how to go about that, though, since I do not know javascript. > > > > > > Can you, or anyone from the group help me? I am to pass one > hidden > > > filed > > > (which is the letter), and two other radio-button parameters from > > my > > > form to > > > the Action. > > > > > > Thank you :o) > > > > > > Mona <-- JavaScript illiterate. > > > > > > -Original Message- > > > From: Brandon Goodin [mailto:[EMAIL PROTECTED] > > > Sent: Monday, June 02, 2003 2:10 PM > > > To: Struts Users Mailing List > > > Subject: RE: first time action > > > > > > > > > I am a little confused. I am not sure where you are getting your > > > default > > > values from. Are they set as a result of client preferences or > are > > > they > > >
RE: first time action
This is what I am using as well. and I have this in my Action: HttpSession session = request.getSession(true); -Original Message- From: Tim Torbeyns [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 3:02 PM To: Struts Users Mailing List Subject: RE: first time action you probably not using the latest version of struts i'm using struts1.1 rc where the scope's default = session ! Tim --- Brandon Goodin <[EMAIL PROTECTED]> wrote: > "form is stored in the session of the user" > > Not so. By default it is in the request. It is only in the session if > you > specify it to be (i.e ). > > Ex. (see scope attribute of action element) > > parameter="submit" > type="ws.phase.core.actions.GenericAction" > name="genericForm" > validate="false" > scope="request"> >path="admin.mainLayout" > redirect="false"/> > > > vs. > > parameter="submit" > type="ws.phase.core.actions.GenericAction" > name="genericForm" > validate="false" > scope="session"> >path="admin.mainLayout" > redirect="false"/> > > > Brandon Goodin > > > -Original Message- > From: Tim Torbeyns [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2003 12:55 PM > To: Struts Users Mailing List > Subject: RE: first time action > > > Hi > > you're probably missing something > the default behaviour of an actionform is that the constructor is > called only once (at the creation of the form) after it is created > every form is stored in the session under the name you gave it in the > form-bean tag of the struts-config file > > so when you have a jsp page with html-form name="action1" > and you call this page > the actionform1 is created, constructor of form will be called and > the > form is stored in the session of the user > > Tim > > --- "Alawadhi, Mona" <[EMAIL PROTECTED]> wrote: > Brandon, > > > > The values are standard for all. > > I've tried including the call for setPageDefaults() in the > > constructor of > > the ActionForm class, but it didn't work. My guess is that the > "form" > > is not > > created/passed yet since the 'execute' method comes after the > > constructor. I > > tried to create a FormBean object in the ActionForm constructor, > but > > it > > didn't work. it doesn't recognize it. > > > > and, of course, I cannot include the setPageDefaults() in the > > FormBean > > constructor, since the FormBean object gets created every time the > > Action is > > called, so, it brings us back to the same problem. > > > > I'm thinking now to use a form.submit() method in javascript. I am > > not sure > > how to go about that, though, since I do not know javascript. > > > > Can you, or anyone from the group help me? I am to pass one hidden > > filed > > (which is the letter), and two other radio-button parameters from > my > > form to > > the Action. > > > > Thank you :o) > > > > Mona <-- JavaScript illiterate. > > > > -Original Message- > > From: Brandon Goodin [mailto:[EMAIL PROTECTED] > > Sent: Monday, June 02, 2003 2:10 PM > > To: Struts Users Mailing List > > Subject: RE: first time action > > > > > > I am a little confused. I am not sure where you are getting your > > default > > values from. Are they set as a result of client preferences or are > > they > > standard for everyone. > > > > If they are standard for all, it might be best to define the > default > > values > > for your ActionForm within the constructor of the ActionForm. That > > way upon > > first entry to the page you have the default values set in the > > ActionForm. > > After that any form values submitted will be set using the get/set > of > > the > > ActionForm and replace the defaults. > > > > If, on the other hand, the default values are set via a dynamic > > process. You > > might consider writting two Actions that use the same ActionForm to > > accomplish this. Or you could do what I do and use the > > LookupDispatchAction/DispatchAction's uspecified method upon entry > > and > > another method of your choosing when submitting the updated form > > values. > > > > Brandon Goodin > > > > > > -Original Message- >
RE: first time action
eventhough I have calls for my Action included in the jsp? because I am doing something like this: which keeps calling my Action as I select from "letterOptions". Mona -Original Message- From: Tim Torbeyns [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 2:55 PM To: Struts Users Mailing List Subject: RE: first time action Hi you're probably missing something the default behaviour of an actionform is that the constructor is called only once (at the creation of the form) after it is created every form is stored in the session under the name you gave it in the form-bean tag of the struts-config file so when you have a jsp page with html-form name="action1" and you call this page the actionform1 is created, constructor of form will be called and the form is stored in the session of the user Tim --- "Alawadhi, Mona" <[EMAIL PROTECTED]> wrote: > Brandon, > > The values are standard for all. > I've tried including the call for setPageDefaults() in the > constructor of > the ActionForm class, but it didn't work. My guess is that the "form" > is not > created/passed yet since the 'execute' method comes after the > constructor. I > tried to create a FormBean object in the ActionForm constructor, but > it > didn't work. it doesn't recognize it. > > and, of course, I cannot include the setPageDefaults() in the > FormBean > constructor, since the FormBean object gets created every time the > Action is > called, so, it brings us back to the same problem. > > I'm thinking now to use a form.submit() method in javascript. I am > not sure > how to go about that, though, since I do not know javascript. > > Can you, or anyone from the group help me? I am to pass one hidden > filed > (which is the letter), and two other radio-button parameters from my > form to > the Action. > > Thank you :o) > > Mona <-- JavaScript illiterate. > > -Original Message- > From: Brandon Goodin [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2003 2:10 PM > To: Struts Users Mailing List > Subject: RE: first time action > > > I am a little confused. I am not sure where you are getting your > default > values from. Are they set as a result of client preferences or are > they > standard for everyone. > > If they are standard for all, it might be best to define the default > values > for your ActionForm within the constructor of the ActionForm. That > way upon > first entry to the page you have the default values set in the > ActionForm. > After that any form values submitted will be set using the get/set of > the > ActionForm and replace the defaults. > > If, on the other hand, the default values are set via a dynamic > process. You > might consider writting two Actions that use the same ActionForm to > accomplish this. Or you could do what I do and use the > LookupDispatchAction/DispatchAction's uspecified method upon entry > and > another method of your choosing when submitting the updated form > values. > > Brandon Goodin > > > -Original Message- > From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2003 11:52 AM > To: 'Struts Users Mailing List' > Subject: RE: first time action > > > Hello Brandon, > > I call "SetPageDefaults" the first time my page loads. > In my JSP, there are links for the Action : > so, the action gets called again > and > again. Also, I have different radio buttons along the page to be > selected > (the defaults are set for those buttons when the page loads first). > > The problem is that when I click on that link, it re-loads the page, > and > sets the defaults again. It does not take the new values for the > radio > buttons(I have three parms in my page). Therefore, I thought there > would be > some kind of indication whether the page is loading first, in order > to > include the call for "setPageDefaults" in an if statement and keep my > selections when I call the Action again. > > My Page looks something like this: > > ___ > > Select display: o By Contact o By Taxpayer > > Type: o All o Billing o Business o Contact o Delivery o > Mailing > > > > > A B C D E F G H I J K L M N O P Q > R S > T U V W X Y Z > > results (when letter A is chosen): > > Anderson, K
RE: first time action
Brandon, The values are standard for all. I've tried including the call for setPageDefaults() in the constructor of the ActionForm class, but it didn't work. My guess is that the "form" is not created/passed yet since the 'execute' method comes after the constructor. I tried to create a FormBean object in the ActionForm constructor, but it didn't work. it doesn't recognize it. and, of course, I cannot include the setPageDefaults() in the FormBean constructor, since the FormBean object gets created every time the Action is called, so, it brings us back to the same problem. I'm thinking now to use a form.submit() method in javascript. I am not sure how to go about that, though, since I do not know javascript. Can you, or anyone from the group help me? I am to pass one hidden filed (which is the letter), and two other radio-button parameters from my form to the Action. Thank you :o) Mona <-- JavaScript illiterate. -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 2:10 PM To: Struts Users Mailing List Subject: RE: first time action I am a little confused. I am not sure where you are getting your default values from. Are they set as a result of client preferences or are they standard for everyone. If they are standard for all, it might be best to define the default values for your ActionForm within the constructor of the ActionForm. That way upon first entry to the page you have the default values set in the ActionForm. After that any form values submitted will be set using the get/set of the ActionForm and replace the defaults. If, on the other hand, the default values are set via a dynamic process. You might consider writting two Actions that use the same ActionForm to accomplish this. Or you could do what I do and use the LookupDispatchAction/DispatchAction's uspecified method upon entry and another method of your choosing when submitting the updated form values. Brandon Goodin -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 11:52 AM To: 'Struts Users Mailing List' Subject: RE: first time action Hello Brandon, I call "SetPageDefaults" the first time my page loads. In my JSP, there are links for the Action : so, the action gets called again and again. Also, I have different radio buttons along the page to be selected (the defaults are set for those buttons when the page loads first). The problem is that when I click on that link, it re-loads the page, and sets the defaults again. It does not take the new values for the radio buttons(I have three parms in my page). Therefore, I thought there would be some kind of indication whether the page is loading first, in order to include the call for "setPageDefaults" in an if statement and keep my selections when I call the Action again. My Page looks something like this: ___ Select display: o By Contact o By Taxpayer Type: o All o Billing o Business o Contact o Delivery o Mailing A B C D E F G H I J K L M N O P Q R S T U V W X Y Z results (when letter A is chosen): Anderson, K. Arizona, B. ... etc ___ The user can select two values from the two radio buttons, and a letter, which is the param passed in . How would I go about passing those three values to the Action class? Mona -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 1:42 PM To: Struts Users Mailing List Subject: RE: first time action It would be good to provide a more clear use case. Usually you don't have any methods in your ActionForm than the usual getter/setters, validate and reset. So, I'm not sure what you are asking. Please, be more specific about what you are trying to accomplish. Brandon Goodin -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 11:19 AM To: 'Struts Users Mailing List' Subject: first time action Hello Everyone, I have some methods in my FormBean that I would want to call only the first time I go through the Action class (load the page). Any ideas? Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our c
RE: first time action
Hello Brandon, I call "SetPageDefaults" the first time my page loads. In my JSP, there are links for the Action : so, the action gets called again and again. Also, I have different radio buttons along the page to be selected (the defaults are set for those buttons when the page loads first). The problem is that when I click on that link, it re-loads the page, and sets the defaults again. It does not take the new values for the radio buttons(I have three parms in my page). Therefore, I thought there would be some kind of indication whether the page is loading first, in order to include the call for "setPageDefaults" in an if statement and keep my selections when I call the Action again. My Page looks something like this: ___ Select display: o By Contact o By Taxpayer Type: o All o Billing o Business o Contact o Delivery o Mailing A B C D E F G H I J K L M N O P Q R S T U V W X Y Z results (when letter A is chosen): Anderson, K. Arizona, B. ... etc ___ The user can select two values from the two radio buttons, and a letter, which is the param passed in . How would I go about passing those three values to the Action class? Mona -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 1:42 PM To: Struts Users Mailing List Subject: RE: first time action It would be good to provide a more clear use case. Usually you don't have any methods in your ActionForm than the usual getter/setters, validate and reset. So, I'm not sure what you are asking. Please, be more specific about what you are trying to accomplish. Brandon Goodin -----Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 11:19 AM To: 'Struts Users Mailing List' Subject: first time action Hello Everyone, I have some methods in my FormBean that I would want to call only the first time I go through the Action class (load the page). Any ideas? Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
first time action
Hello Everyone, I have some methods in my FormBean that I would want to call only the first time I go through the Action class (load the page). Any ideas? Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: along with
Thank you, Doug and Keith.. it works! Whoo Hoo! Mona -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:15 AM To: 'Struts Users Mailing List' Subject: RE: along with Use something similar to this: (You may have to change it, because I'm not sure exactly what some of your variables refer to.) Then you can just call a request.getParameter("userSelection") in your action class to find out which was selected. - Keith www.buffalo.edu/~kkamholz -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:35 AM To: 'Struts Users Mailing List' Subject: RE: along with I've got this far in my code, but how can I specify which letter was selected after specifying my Action page? (it is Underlined) Mona -----Original Message- From: Alawadhi, Mona Sent: Thursday, May 29, 2003 10:23 AM To: 'Struts Users Mailing List' Subject: along with Hello, I am trying to display letters (A to Z) that are stored in a Vector/List in my FormBean (index kind of thing). I would like the user to click on a letter, where I can capture the value of that letter, run my query, and display results accordingly. When I tried to use along with , the letters would only be displays, and are not clickable. How can I use the in this case? or is there any other tag I could use? Thank you, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: along with
I've got this far in my code, but how can I specify which letter was selected after specifying my Action page? (it is Underlined) Mona -Original Message- From: Alawadhi, Mona Sent: Thursday, May 29, 2003 10:23 AM To: 'Struts Users Mailing List' Subject: along with Hello, I am trying to display letters (A to Z) that are stored in a Vector/List in my FormBean (index kind of thing). I would like the user to click on a letter, where I can capture the value of that letter, run my query, and display results accordingly. When I tried to use along with , the letters would only be displays, and are not clickable. How can I use the in this case? or is there any other tag I could use? Thank you, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
along with
Hello, I am trying to display letters (A to Z) that are stored in a Vector/List in my FormBean (index kind of thing). I would like the user to click on a letter, where I can capture the value of that letter, run my query, and display results accordingly. When I tried to use along with , the letters would only be displays, and are not clickable. How can I use the in this case? or is there any other tag I could use? Thank you, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: alphabetic index links
Thank you, Mark.. I've tried using those two, this is my code: letterOptions is my vector, and I would like to capture the selected letter in a "letter" string- how can I place that? Mona -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 4:52 PM To: 'Struts Users Mailing List' Subject: RE: alphabetic index links and Mark -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 4:29 PM To: 'Struts Users Mailing List' Subject: alphabetic index links I would like to display the alphabets (A through Z) as links in my jsp. I'm storing them in a Vector (or ArrayList) in my Form Bean. What tag libraries should I use to iterate through the Vector/ArrayList, and caputre the alphabet selected? ( I'm running a query upon the alphabet selected) Thank you, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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] * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
alphabetic index links
I would like to display the alphabets (A through Z) as links in my jsp. I'm storing them in a Vector (or ArrayList) in my Form Bean. What tag libraries should I use to iterate through the Vector/ArrayList, and caputre the alphabet selected? ( I'm running a query upon the alphabet selected) Thank you, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]