SecurityFilter with Struts quick and easy question
I am looking into using SecurityFilter to handle all the authentication for my app. Since it uses filters, like sturts, how does the Struts action get called? Will the request pass through multiple servlet filters? Should the authentication servlet filter be placed above the struts filter? Nathan Maves Sun Microsystems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SecurityFilter with Struts quick and easy question
It does use a servlet that all request that match a filter are sent to. Are the filters called in the order that they appear in the web.xml file? Nathan Maves Sun Microsystems On Feb 17, 2004, at 10:05 AM, Max Cooper wrote: Nathan, Struts actually uses a Servlet rather than a Filter. But you are right about Filters in general -- requests can pass through as many filters as you have configured. If you have both SecurityFilter and Struts in the same app, SecurityFilter will always be called first (when the request URL matches the url-patterns for both). -Max - Original Message - From: Nathan Maves [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:47 AM Subject: SecurityFilter with Struts quick and easy question I am looking into using SecurityFilter to handle all the authentication for my app. Since it uses filters, like sturts, how does the Struts action get called? Will the request pass through multiple servlet filters? Should the authentication servlet filter be placed above the struts filter? Nathan Maves Sun Microsystems --- - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SecurityFilter with Struts quick and easy question
Never Mind you were right :) Nathan Maves Sun Microsystems On Feb 17, 2004, at 12:08 PM, Nathan Maves wrote: It does use a servlet that all request that match a filter are sent to. Are the filters called in the order that they appear in the web.xml file? Nathan Maves Sun Microsystems On Feb 17, 2004, at 10:05 AM, Max Cooper wrote: Nathan, Struts actually uses a Servlet rather than a Filter. But you are right about Filters in general -- requests can pass through as many filters as you have configured. If you have both SecurityFilter and Struts in the same app, SecurityFilter will always be called first (when the request URL matches the url-patterns for both). -Max - Original Message - From: Nathan Maves [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 8:47 AM Subject: SecurityFilter with Struts quick and easy question I am looking into using SecurityFilter to handle all the authentication for my app. Since it uses filters, like sturts, how does the Struts action get called? Will the request pass through multiple servlet filters? Should the authentication servlet filter be placed above the struts filter? Nathan Maves Sun Microsystems -- -- - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Double formating in html:text boxes
In my business logic I return a java.util.List to my action. In this action I run through the list and use the BeanUtils.copyProperties() to convert the List elements into formbeans. The problem is that in the business object the property actual is a Double and in the formBean it is a string. This leads me to have text fields with 1.4779002E7 as the value. I there any way to get around this? Nathan Maves Sun Microsystems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DynaFormBean base on other DynaFormBeans?
Well I am close :) I have a DynaValidatorActionForm that has a property of an Array of custom ActionForm. I am able to validate the properties of the internal Action form from the validator using the indexedList property in the validation.xml. I am not sure how I can convert the internal action form to a DynamActionForm without subclassing it. Nathan Maves Sun Microsystems On Feb 11, 2004, at 2:17 PM, Mark Lowe wrote: yeah.. I read that too never seen it working though (made a nice article, ). You can specify indexed list property in validation.xml to do this, but didn't work when i tried so had to validate myself (albeit using commons validator). Perhaps works in 1.2.. I'd be interested if you (or anyone else) get it working.. On 11 Feb 2004, at 21:28, Nathan Maves wrote: Nice... This only thing that scares me is that you are creating an empty DAF. Can you then validate the first DAF's indexed properties using the validator? I have read that you can do this. Nathan Maves Sun Microsystems On Feb 11, 2004, at 11:52 AM, Mark Lowe wrote: In a referring action. DyanActionForm theForm = (DynaActionForm) form; //could use dynabean also DynaActionForm nestedForm = new DynaActionForm(); ArrayList nestedFormList = new ArrayList(); nestedFormList.add( nestedForm ); theForm.set(nestedForms, nestedFormList); On 11 Feb 2004, at 18:41, Nathan Maves wrote: Ok I got that part but what is the best way to populate that arraylist with other DynaActionForm? Nathan Maves Sun Microsystems On Feb 11, 2004, at 8:36 AM, Mark Lowe wrote: form-property name=nestedForms type=java.util.ArrayLIst / On 11 Feb 2004, at 16:18, Nathan Maves wrote: What do you use to specify the type attribute of the form to be? Nathan Maves Sun Microsystems On Feb 11, 2004, at 8:12 AM, Mark Lowe wrote: Yep.. I've done this with arrayList before, don't know if you can use an array of DynaForm's but I'd imagine you can. But it works with ArrayList. On 11 Feb 2004, at 15:52, Nathan Maves wrote: I need a DynaFormBean that has an array property. I want this property to be of made up of a second DynaFormBean that I define. It this possible? Nathan Maves Sun Microsystems - 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] --- -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Double formating in html:text boxes
So you would suggest formating the number after it is copied into my form bean? It is a string at this point. Nathan Maves Sun Microsystems On Feb 12, 2004, at 10:28 AM, Larry Meadors wrote: A few dozen, yes. :) Look at the java.text.NumberFormat class. Larry [EMAIL PROTECTED] 02/12/04 10:18 AM In my business logic I return a java.util.List to my action. In this action I run through the list and use the BeanUtils.copyProperties() to convert the List elements into formbeans. The problem is that in the business object the property actual is a Double and in the formBean it is a string. This leads me to have text fields with 1.4779002E7 as the value. I there any way to get around this? Nathan Maves Sun Microsystems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DynaFormBean base on other DynaFormBeans?
1.1 as far as I know. I could never find the page to download 1.2 Nathan Maves Sun Microsystems On Feb 12, 2004, at 11:24 AM, Mark Lowe wrote: Nice.. Are you on 1.1 or 1.2? On 12 Feb 2004, at 18:22, Nathan Maves wrote: Well I am close :) I have a DynaValidatorActionForm that has a property of an Array of custom ActionForm. I am able to validate the properties of the internal Action form from the validator using the indexedList property in the validation.xml. I am not sure how I can convert the internal action form to a DynamActionForm without subclassing it. Nathan Maves Sun Microsystems On Feb 11, 2004, at 2:17 PM, Mark Lowe wrote: yeah.. I read that too never seen it working though (made a nice article, ). You can specify indexed list property in validation.xml to do this, but didn't work when i tried so had to validate myself (albeit using commons validator). Perhaps works in 1.2.. I'd be interested if you (or anyone else) get it working.. On 11 Feb 2004, at 21:28, Nathan Maves wrote: Nice... This only thing that scares me is that you are creating an empty DAF. Can you then validate the first DAF's indexed properties using the validator? I have read that you can do this. Nathan Maves Sun Microsystems On Feb 11, 2004, at 11:52 AM, Mark Lowe wrote: In a referring action. DyanActionForm theForm = (DynaActionForm) form; //could use dynabean also DynaActionForm nestedForm = new DynaActionForm(); ArrayList nestedFormList = new ArrayList(); nestedFormList.add( nestedForm ); theForm.set(nestedForms, nestedFormList); On 11 Feb 2004, at 18:41, Nathan Maves wrote: Ok I got that part but what is the best way to populate that arraylist with other DynaActionForm? Nathan Maves Sun Microsystems On Feb 11, 2004, at 8:36 AM, Mark Lowe wrote: form-property name=nestedForms type=java.util.ArrayLIst / On 11 Feb 2004, at 16:18, Nathan Maves wrote: What do you use to specify the type attribute of the form to be? Nathan Maves Sun Microsystems On Feb 11, 2004, at 8:12 AM, Mark Lowe wrote: Yep.. I've done this with arrayList before, don't know if you can use an array of DynaForm's but I'd imagine you can. But it works with ArrayList. On 11 Feb 2004, at 15:52, Nathan Maves wrote: I need a DynaFormBean that has an array property. I want this property to be of made up of a second DynaFormBean that I define. It this possible? Nathan Maves Sun Microsystems -- --- 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] - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link and Arrays
This should work it your array is in either your session or request scope. If you set it as part of your FormBean then I think that you need to you the full path to the form bean. I.E. formBeanName.map.tokens[i]. I am still new to struts so I could be way off :) Nathan Maves Sun Microsystems On Feb 11, 2004, at 6:54 AM, [EMAIL PROTECTED] wrote: Hello everyone.. I have a problem and I would like to know if anyone knows an answer to this problem .. I have a string array (String[] tokens) with some values and I want to use one of those values as a value for a paramater of a link I'm using... Here is what I tried to do: html:link forward=somewhere paramId=noteId paramName=tokens[1]somewhere/html:link Thanks in advance for any advice! mail2web - Check your email from the web at http://mail2web.com/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DynaFormBean base on other DynaFormBeans?
I need a DynaFormBean that has an array property. I want this property to be of made up of a second DynaFormBean that I define. It this possible? Nathan Maves Sun Microsystems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DynaFormBean base on other DynaFormBeans?
What do you use to specify the type attribute of the form to be? Nathan Maves Sun Microsystems On Feb 11, 2004, at 8:12 AM, Mark Lowe wrote: Yep.. I've done this with arrayList before, don't know if you can use an array of DynaForm's but I'd imagine you can. But it works with ArrayList. On 11 Feb 2004, at 15:52, Nathan Maves wrote: I need a DynaFormBean that has an array property. I want this property to be of made up of a second DynaFormBean that I define. It this possible? Nathan Maves Sun Microsystems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DynaFormBean base on other DynaFormBeans?
Ok I got that part but what is the best way to populate that arraylist with other DynaActionForm? Nathan Maves Sun Microsystems On Feb 11, 2004, at 8:36 AM, Mark Lowe wrote: form-property name=nestedForms type=java.util.ArrayLIst / On 11 Feb 2004, at 16:18, Nathan Maves wrote: What do you use to specify the type attribute of the form to be? Nathan Maves Sun Microsystems On Feb 11, 2004, at 8:12 AM, Mark Lowe wrote: Yep.. I've done this with arrayList before, don't know if you can use an array of DynaForm's but I'd imagine you can. But it works with ArrayList. On 11 Feb 2004, at 15:52, Nathan Maves wrote: I need a DynaFormBean that has an array property. I want this property to be of made up of a second DynaFormBean that I define. It this possible? Nathan Maves Sun Microsystems - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DynaFormBean base on other DynaFormBeans?
Nice... This only thing that scares me is that you are creating an empty DAF. Can you then validate the first DAF's indexed properties using the validator? I have read that you can do this. Nathan Maves Sun Microsystems On Feb 11, 2004, at 11:52 AM, Mark Lowe wrote: In a referring action. DyanActionForm theForm = (DynaActionForm) form; //could use dynabean also DynaActionForm nestedForm = new DynaActionForm(); ArrayList nestedFormList = new ArrayList(); nestedFormList.add( nestedForm ); theForm.set(nestedForms, nestedFormList); On 11 Feb 2004, at 18:41, Nathan Maves wrote: Ok I got that part but what is the best way to populate that arraylist with other DynaActionForm? Nathan Maves Sun Microsystems On Feb 11, 2004, at 8:36 AM, Mark Lowe wrote: form-property name=nestedForms type=java.util.ArrayLIst / On 11 Feb 2004, at 16:18, Nathan Maves wrote: What do you use to specify the type attribute of the form to be? Nathan Maves Sun Microsystems On Feb 11, 2004, at 8:12 AM, Mark Lowe wrote: Yep.. I've done this with arrayList before, don't know if you can use an array of DynaForm's but I'd imagine you can. But it works with ArrayList. On 11 Feb 2004, at 15:52, Nathan Maves wrote: I need a DynaFormBean that has an array property. I want this property to be of made up of a second DynaFormBean that I define. It this possible? Nathan Maves Sun Microsystems -- --- 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dynamic parameters
First thanks for your time trying to help me. Here is the deal I have a list of elements. NameId Student A 123 Student B 123 Student C 123 Student D 123 Student E 123 Student F 123 and I only have data (first last name) for some random amount of them. On these rows I want the form to create text fields for these items. Student A Student B joe schmoe Student C Student D joe schmoe Student E joe schmoe Student F Since the index from the outside foreach will not work for the indexed properties first and last name I believe that I will have to test if the current student row is equal to the next row in the array of data. If they are then I will have to create the html:text by hand. Nathan Maves Sun Microsystems On Feb 10, 2004, at 1:40 AM, Villalba Arias, Fredy [BILBOMATICA] wrote: Hi, I don't know about indexes, but I can think of a simple solution, Struts-independent (well, not 100%): have all values concatenated in a single hidden attribute that get's submitted, using different tokens for separating different values and for separating different records (by record I mean a set of values). Then it's just about parsing it (the value stored on the corresponding property) on the server side. I know It's not the most elegant solution, but it you are short of time, then it will surely do it. HTH, Freddy. -Mensaje original- De: Nathan Maves [mailto:[EMAIL PROTECTED] Enviado el: martes, 10 de febrero de 2004 1:24 Para: Struts Users Mailing List Asunto: dynamic parameters I have searched but found nothing on this specific example. I have a form that will have n number of elements. Each of these elements will needs it own name. example. list of students is displayed on the screen with two text fields for their first and last name. This is for a mass update page. The only way I can thing of is to have form element like.. text name=#student_id#-#first_name# text name=#student_id#-#last_name# This way in my action I can parse out the student id and then update the corresponding first and last name. Can this be done or is there a better way to do it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dynamic parameters
Sorry for an ambiguity that was in my example. here are the gory details :) I am only using student as an example the real object would only complicate matters. In an action I am retrieving : - a list of all the students objects. This includes their student id. - an array of studentsGrade objects. These objects have a studentId, semester1Grade, semester2Grade in them. Remember that there might be, at most, the same amount of studentGrade objects as there are students. It is the case where there are less that I am concerned in. In the jsp : I only what the form to create text fields for the student if there was data found. This may seem strange but there is a good business reason for this. I need the full list of students to be displayed in the page. With out this everything works great. The list of students is also ordered. Last ditch effort, Nathan On Feb 10, 2004, at 11:43 AM, Michael McGrady wrote: Hi, Nathan: This is progress, but I cannot tell what Since the index from the outside foreach will not work for the indexed properties first and last name means. Please clarify. So far I can tell only the following: you have a list of students identified only by first and last name. You want to have a form that gets some more information, i.e. a third bit of information, from them via a text field. There are various reasons why what you are writing is hard to read. Your examples indicate a reality which is unlikely to be true, e.g. you have all the students with the same name such a Joe Schmoe. You apparently are using A, B, etc. to stand in for what you call a NameId. If that is true or not is impossible to tell. Let me try to understand what you want to do. Do you merely want to update student names when you have them stored under student ids? I really cannot tell what you want to do. Whatever you want to do can easily be done, I am sure. It is really hard to tell what you want done. If you are trying to update names alone, then how are you doing this. Are the students doing it? Is an administrator doing it? Is the problem that there are too many students for one page? Is the problem that you don't have them indexed by name? If they are indexed by id, and there are a known number, you an create a Map with the students and use the id as an indexed property to retrieve the students. But, again, your explanation is not readable for me. So, I don't know what you want to do. Want to try again? Michael Michael At 07:52 AM 2/10/2004, you wrote: First thanks for your time trying to help me. Here is the deal I have a list of elements. NameId Student A 123 Student B 123 Student C 123 Student D 123 Student E 123 Student F 123 and I only have data (first last name) for some random amount of them. On these rows I want the form to create text fields for these items. Student A Student B joe schmoe Student C Student D joe schmoe Student E joe schmoe Student F Since the index from the outside foreach will not work for the indexed properties first and last name I believe that I will have to test if the current student row is equal to the next row in the array of data. If they are then I will have to create the html:text by hand. Nathan Maves Sun Microsystems On Feb 10, 2004, at 1:40 AM, Villalba Arias, Fredy [BILBOMATICA] wrote: Hi, I don't know about indexes, but I can think of a simple solution, Struts-independent (well, not 100%): have all values concatenated in a single hidden attribute that get's submitted, using different tokens for separating different values and for separating different records (by record I mean a set of values). Then it's just about parsing it (the value stored on the corresponding property) on the server side. I know It's not the most elegant solution, but it you are short of time, then it will surely do it. HTH, Freddy. -Mensaje original- De: Nathan Maves [mailto:[EMAIL PROTECTED] Enviado el: martes, 10 de febrero de 2004 1:24 Para: Struts Users Mailing List Asunto: dynamic parameters I have searched but found nothing on this specific example. I have a form that will have n number of elements. Each of these elements will needs it own name. example. list of students is displayed on the screen with two text fields for their first and last name. This is for a mass update page. The only way I can thing of is to have form element like.. text name=#student_id#-#first_name# text name=#student_id#-#last_name# This way in my action I can parse out the student id and then update the corresponding first and last name. Can this be done or is there a better way to do it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com
validate indexed property with DynaValidatorActionForm
Can this be done? I have an Array of my customer objects as the indexed property. Nathan Maves Sun Microsystems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dynamic parameters
I have searched but found nothing on this specific example. I have a form that will have n number of elements. Each of these elements will needs it own name. example. list of students is displayed on the screen with two text fields for their first and last name. This is for a mass update page. The only way I can thing of is to have form element like.. text name=#student_id#-#first_name# text name=#student_id#-#last_name# This way in my action I can parse out the student id and then update the corresponding first and last name. Can this be done or is there a better way to do it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dynamic parameters
Perfect... The second link was great. Now lets dive a little deeper with my problem. I assume that for form pre-population I will have to set the array value in the form before it gets to the jsp. Say I have a list of students that could be larger then the array of the up-datable fields. I loop though all of the students but only n number of them will have data in the array from the form. Is this possible? I hope I explained this well if not I can call anyone who is willing to listen :) Nathan On Feb 9, 2004, at 5:32 PM, Matt Bathje wrote: What you want are called indexed properties in struts. Start here: http://jakarta.apache.org/struts/faqs/indexedprops.html and here: http://www.developer.com/java/ejb/article.php/2233591 Then search the list archives for any specific questions you have, many have been answered. Also, if you are having n number of elements, make sure your form goes into the session scope instead of the request scope. This is probably the biggest issue with indexed properties I have seen. Matt Bathje - Original Message - From: Nathan Maves [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 09, 2004 6:24 PM Subject: dynamic parameters I have searched but found nothing on this specific example. I have a form that will have n number of elements. Each of these elements will needs it own name. example. list of students is displayed on the screen with two text fields for their first and last name. This is for a mass update page. The only way I can thing of is to have form element like.. text name=#student_id#-#first_name# text name=#student_id#-#last_name# This way in my action I can parse out the student id and then update the corresponding first and last name. Can this be done or is there a better way to do it. - 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]
Localization questions
I know that struts can handle data formating great between different locales. My question is how and what needs to happen to support double byte languages? How can you create the locale specific properties files? What databases support these characters? nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ChartDirector with Struts
We are using JFreeChart with struts. On Feb 2, 2004, at 11:32 AM, Andy Engle wrote: Hi all, Just curious if anyone has used ChartDirector (from http://www.advsofteng.com) in any Struts application? Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: img tag with action as src
Were are attempting to do the same thing. (Have an action return an image) everything works great but we have the following error in the server log. StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.ResponseBase.getWriter(ResponseBase.java: 836) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja va:165) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.ja va:146) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:184) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java: 176) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java: 174) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspF actoryImpl.java:204) at org.apache.jasper.runtime.JspFactoryImpl.access$000(JspFactoryImpl.java: 83) at org.apache.jasper.runtime.JspFactoryImpl$PrivilegedReleasePageContext.ru n(JspFactoryImpl.java:132) at java.security.AccessController.doPrivileged(Native Method) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryIm pl.java:197) We are only calling that method one in our action. Nathan On Feb 3, 2004, at 11:41 AM, Ben Anderson wrote: if img src=/some/dir/myAction.dodoens't work for you, then adding an base tag isn't going to help you. You just need to add your application context in there. Check out: http://jakarta.apache.org/struts/userGuide/struts-html.html#img Also here's another archive site: http://marc.theaimsgroup.com -Ben From: Manfred Wolff [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: img tag with action as src Date: Tue, 03 Feb 2004 19:27:03 +0100 Greg use the html:base/ Tag. Then Struts appends the base uri like http://localhost:/MyApp/ to your relative path. Your image might be then img src=/some/dir/mypicture.jpg Manfred Greg Blomquist wrote: I apologize in advance if this question has already been answered somewhere. Looks like basebeans is down so I can't search the struts-user archives. I'm trying to do the following: img src=/some/dir/myAction.do The only problem is that it doesn't like the relative path. I have to code the absolute path: img src=http://localhost:/MyApp/some/dir/myAction.do; Which is fine until I move to production. Is there a way to use a relative path when using an action for the src attribute of an image tag? Thanks! Btw, I'm running WSAD 5.1 and the error message I get when trying a relative path is: Virtual Host/WebGroup Not Found : The web group /secure/isa/performance/graph.do has not been defined - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === Dipl.-Inf. Manfred Wolff --- phone neusta : +49 421 20696-27 phone : +49 421 534522 mobil : +49 178 49 18 434 eFax : +49 1212 6 626 63 965 33 --- Diese E-Mail enthält möglicherweise vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Find high-speed net deals comparison-shop your local providers here. https://broadband.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: img tag with action as src
Perfect! I remember seeing that but just did not register. My bad :) On Feb 3, 2004, at 5:28 PM, Michael McGrady wrote: I think I posted the code that works for my application that does this. Are you returning null with your action? At 03:47 PM 2/3/2004, you wrote: Were are attempting to do the same thing. (Have an action return an image) everything works great but we have the following error in the server log. StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.ResponseBase.getWriter(ResponseBase.java : 836) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade. ja va:165) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper. ja va:146) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java: 184) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java : 176) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java : 174) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(Js pF actoryImpl.java:204) at org.apache.jasper.runtime.JspFactoryImpl.access$000(JspFactoryImpl.jav a: 83) at org.apache.jasper.runtime.JspFactoryImpl$PrivilegedReleasePageContext. ru n(JspFactoryImpl.java:132) at java.security.AccessController.doPrivileged(Native Method) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactory Im pl.java:197) We are only calling that method one in our action. Nathan On Feb 3, 2004, at 11:41 AM, Ben Anderson wrote: if img src=/some/dir/myAction.dodoens't work for you, then adding an base tag isn't going to help you. You just need to add your application context in there. Check out: http://jakarta.apache.org/struts/userGuide/struts-html.html#img Also here's another archive site: http://marc.theaimsgroup.com -Ben From: Manfred Wolff [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: img tag with action as src Date: Tue, 03 Feb 2004 19:27:03 +0100 Greg use the html:base/ Tag. Then Struts appends the base uri like http://localhost:/MyApp/ to your relative path. Your image might be then img src=/some/dir/mypicture.jpg Manfred Greg Blomquist wrote: I apologize in advance if this question has already been answered somewhere. Looks like basebeans is down so I can't search the struts-user archives. I'm trying to do the following: img src=/some/dir/myAction.do The only problem is that it doesn't like the relative path. I have to code the absolute path: img src=http://localhost:/MyApp/some/dir/myAction.do; Which is fine until I move to production. Is there a way to use a relative path when using an action for the src attribute of an image tag? Thanks! Btw, I'm running WSAD 5.1 and the error message I get when trying a relative path is: Virtual Host/WebGroup Not Found : The web group /secure/isa/performance/graph.do has not been defined --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === Dipl.-Inf. Manfred Wolff --- phone neusta : +49 421 20696-27 phone : +49 421 534522 mobil : +49 178 49 18 434 eFax : +49 1212 6 626 63 965 33 --- Diese E-Mail enthlt mglicherweise vertrauliche und/oder rechtlich geschtzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtmlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Find high-speed net deals comparison-shop your local providers here. https://broadband.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
small trouble with the validator
All of my other forms validate perfect. This form will only validate the name field and not the two breakpoint fields. I have tried everything Any ideas? action path=/admin/UpdateMetric type=dashboard.presentation.actions.admin.UpdateMetricAction name=MetricForm validate=true input=/pages/admin/EditMetric.jsp scope=request attribute=metricForm forward name=success redirect=false path=/pages/admin/EditMetric.jsp / forward name=failure redirect=false path=/pages/admin/EditMetric.jsp / /action form-bean name=MetricForm type=org.apache.struts.validator.DynaValidatorActionForm form-property name=id type=java.lang.Integer / form-property name=name type=java.lang.String / form-property name=archiveFlag type=java.lang.Boolean / form-property name=rollable type=java.lang.Boolean / form-property name=frequency type=java.lang.Integer / form-property name=exculde type=java.lang.Boolean / form-property name=entryLevel type=java.lang.Integer / form-property name=complianceDirection type=java.lang.Integer / form-property name=description type=java.lang.String / form-property name=type type=java.lang.Integer / form-property name=greenBreakpoint type=java.lang.Float / form-property name=redBreakpoint type=java.lang.Float / /form-bean form name=/admin/UpdateMetric field property=name depends=required,maxlength varvar-namemaxlength/var-namevar-value150/var-value/var arg0 key=app.metric.name / arg1 name=maxlength key=${var:maxlength} resource=false / /field field property=description depends=maxlength varvar-namemaxlength/var-namevar-value1300/var-value/var arg0 key=app.metric.description / arg1 name=maxlength key=${var:maxlength} resource=false / /field field property=greenBreakpoint depends=required arg0 key=app.metric.greenBreakpoint / /field field property=redBreakpoint depends=requiredarg0 key=app.metric.redBreakpoint / /field /form - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: small trouble with the validator
So are you saying that it is because I declared it as a java.lang.Float? When I switch it to a java.lang.String will it works! So the real question is how to validate a float to be required? Nathan On Feb 2, 2004, at 1:32 PM, Larry Meadors wrote: It is because beanutils converts anything that is invalid to a 0, and therefore, it is present, meeting the requirement for the required dependancy. Stupid, huh? Larry [EMAIL PROTECTED] 02/02/04 1:25 PM All of my other forms validate perfect. This form will only validate the name field and not the two breakpoint fields. I have tried everything Any ideas? action path=/admin/UpdateMetric type=dashboard.presentation.actions.admin.UpdateMetricAction name=MetricForm validate=true input=/pages/admin/EditMetric.jsp scope=request attribute=metricForm forward name=success redirect=false path=/pages/admin/EditMetric.jsp / forward name=failure redirect=false path=/pages/admin/EditMetric.jsp / /action form-bean name=MetricForm type=org.apache.struts.validator.DynaValidatorActionForm form-property name=id type=java.lang.Integer / form-property name=name type=java.lang.String / form-property name=archiveFlag type=java.lang.Boolean / form-property name=rollable type=java.lang.Boolean / form-property name=frequency type=java.lang.Integer / form-property name=exculde type=java.lang.Boolean / form-property name=entryLevel type=java.lang.Integer / form-property name=complianceDirection type=java.lang.Integer / form-property name=description type=java.lang.String / form-property name=type type=java.lang.Integer / form-property name=greenBreakpoint type=java.lang.Float / form-property name=redBreakpoint type=java.lang.Float / /form-bean form name=/admin/UpdateMetric field property=name depends=required,maxlength varvar-namemaxlength/var-namevar-value150/var-value/var arg0 key=app.metric.name / arg1 name=maxlength key=${var:maxlength} resource=false / /field field property=description depends=maxlength varvar-namemaxlength/var-namevar-value1300/var-value/var arg0 key=app.metric.description / arg1 name=maxlength key=${var:maxlength} resource=false / /field field property=greenBreakpoint depends=required arg0 key=app.metric.greenBreakpoint / /field field property=redBreakpoint depends=requiredarg0 key=app.metric.redBreakpoint / /field /form - 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]
floatRange arguments in validator?
The floatRange validation is working fine but the error message show that my vars are null? This is surprising since the validation is occurring fine using the specified vars. Nathan field property=redBreakpoint depends=required,float,floatRange arg0 key=app.metric.redBreakpoint / varvar-namemin/var-namevar-value0/var-value/var varvar-namemax/var-namevar-value100/var-value/var arg1 name=floatRange key=${var:min} resource=false / arg2 name=floatRange key=${var:max} resource=false / /field - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No ValidatorAction called maxLength?
This is a basic validator why would it not be able to find it? I can however use the required validator. Here is the error : No ValidatorAction called maxLength found for field name Here is the code from my validator.xml form name=/admin/UpdateDashboard field property=name depends=required,maxLength arg0 key=app.dashboard.name / arg1 name=maxLength key=${var:maxLength} resource=false / var var-namemaxLength/var-name var-value150/var-value /var /field field property=description depends=maxLength var var-namemaxLength/var-name var-value1000/var-value /var arg0 key=app.dashbaord.description / arg1 name=maxLength key=${var:maxLength} resource=false / /field /form - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No ValidatorAction called maxLength?
Found the error. In the version of Struts in Action it has the validators listed as maxLength when it should be maxlength. Nathan On Jan 28, 2004, at 1:56 PM, Nathan Maves wrote: This is a basic validator why would it not be able to find it? I can however use the required validator. Here is the error : No ValidatorAction called maxLength found for field name Here is the code from my validator.xml form name=/admin/UpdateDashboard field property=name depends=required,maxLength arg0 key=app.dashboard.name / arg1 name=maxLength key=${var:maxLength} resource=false / var var-namemaxLength/var-name var-value150/var-value /var /field field property=description depends=maxLength var var-namemaxLength/var-name var-value1000/var-value /var arg0 key=app.dashbaord.description / arg1 name=maxLength key=${var:maxLength} resource=false / /field /form - 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]
html:link multiple parameters
Is there any reason why this has not been implemented in the struts html tags? http://www.mail-archive.com/[EMAIL PROTECTED]/msg02207.html Say I have a List of People objects that I place into the request from an action. Now I want to iterate through them and create links with two or more parameters. I now have to add a List of HashMaps that contain these two attributes of a person. Tell me there is a better way to do this. Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
best way to use multiple parameters with html:link tags
I have a collection of objects that I am interating over in my jsp. I would like to create links to another action with a few of the properties of the beans in the collection. From the docs I see that you have to use a java.util.Map if you want to have multiple params on a html:link tag. Is there no other way then creating a map for each iteration of my collection? Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: best way to use multiple parameters with html:link tags
Looks like this will work! Is there any reason to use the std tags vs the struts tags? (i.e. forEach vs iterate) ~N On Jan 14, 2004, at 10:03 AM, Kris Schneider wrote: It's not too big a deal, just reuse a single map with JSTL: jsp:useBean id=paramMap class=java.util.HashMap/ c:forEach var=bean items=${beans} c:set target=${paramMap} property=prop1 value=${bean.prop1}/ c:set target=${paramMap} property=prop2 value=${bean.prop2}/ c:set target=${paramMap} property=prop3 value=${bean.prop3}/ html:link action=/foo name=paramMap.../html:link /c:forEach Quoting Nathan Maves [EMAIL PROTECTED]: I have a collection of objects that I am interating over in my jsp. I would like to create links to another action with a few of the properties of the beans in the collection. From the docs I see that you have to use a java.util.Map if you want to have multiple params on a html:link tag. Is there no other way then creating a map for each iteration of my collection? Nathan -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dynamic parameters to DynaActionForm
is it possible to have dynamic parameters sent to to a dyna form? I do not know how many or the name of the parameters that are being sent? Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html link to a action with parameters
how do you create html links to an action that uses a dyna action form? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tree representation using html links
Here is the situation... I have a first list of items. If the used chooses to expand on any of these I need to pull the children of that element and so on. The amount of level varies on how many nodes the user expands. I think that I somehow need to keep track of what the user has clicked so far. Since I do not know how many levels deep the tree will go I can not create a form been for it. I have looked into indexed properties but I can not figure out how I can use it. The other tricky part is how do I send all of the previously selected elements to the action that will in turn return back to this same jsp? How can I use one jsp to view this? This might need more clarification, if so please ask Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dynamic parameters to DynaActionForm
Robert, I have been researching all morning and still can not find a good answer. I need to send the action a set of parameters like.. param1 param2 param3 . . . param# The amount of parameters in the form are dynamic. How or what type of object would you use in a form bean. Nathan On Jan 8, 2004, at 11:18 AM, Robert Taylor wrote: Look at IndexedProperties: http://jakarta.apache.org/struts/faqs/indexedprops.html robert -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 1:02 PM To: Struts Users Mailing List Subject: dynamic parameters to DynaActionForm is it possible to have dynamic parameters sent to to a dyna form? I do not know how many or the name of the parameters that are being sent? Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Lazy questions on this list
No search on nagoya.apache.org take less then a minute.. Way to slow to be efffective! nathan On Nov 20, 2003, at 9:22 AM, Paananen, Tero wrote: What may seem like a lazy question to some, may seem like a valid question for a newbie. Some people just need to remember what it was like to try to learn this stuff for the first time. I think people generally refer to lazy questions when the answer to the question could have been search within 30 seconds on Google or the mailing list archives. Also remember, you have total control of your delete key. I have other things to do with my time than press the delete key all the time because other people do not have the common courtesy to think before they post. My unread Struts-user posts currently count at 19,000 posts. No, I will not be using the delete key 19,000 times. -TPP - This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Good UI editor to use with Struts?
If it only worked on OSX :) On Nov 19, 2003, at 5:40 PM, Sergey Smirnov wrote: Which UI editor would you recommend someone use when developing web applications based upon the struts framework? I am using eclipse as my IDE. The new Exadel Struts Studio 5.1 was released yesterday. Eclipse based with Visual Web Flow editor, Code Generation, JSP design-time Preview, XML Prompting, GUI Editor for Validation framework and so on. URL: www.StrutsStudio.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Server manged vs. struts managed db pools
Are there any pro/con 's for either? Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No Class def error when I deploy
Every other time I deploy my app from netbeans 3.5 I get SEVERE: Error creating form bean of class org.apache.struts.validator.DynaValidatorForm java.lang.NoClassDefFoundError I then redeploy again and everything works Anyone else ever get this? Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multibox not checking the selected values.
I have an action with the following code in it String[] selectedEngineers = new String[3]; request.setAttribute(selectedEngineers,selectedEngineers); request.setAttribute(availableEngineers,selectedEngineers); here is the code from the jsp. logic:iterate id=engineer name=availableEngineers bean:write name=engineer/ br /logic:iterate logic:iterate id=engineer name=selectedEngineers bean:write name=engineer/ br /logic:iterate logic:iterate id=engineer name=availableEngineers html:multibox property=selectedEngineers bean:write name=engineer/ /html:multibox bean:write name=engineer/ br /logic:iterate both arrays display on the screen just fine. the check boxes are also displayed. 6 of them to be precise. The only problem is that they are not checked by default. I thought that the multibox took case of this? Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
example in struts-exercise-taglib.war broken!
I just deployed the struts-exercise-taglib.war and tried html-multibox.jsp. At the top of the page is states that When first started, all of the listed checkboxes should be selected. does this mean they all should be checked? If so they are not on my machine. Anyone else verify this? Nathan
simple design question
I have a simple design question.. I have to forms. first form is one simple select box that needs to have the values populated from a db. This form needs to have validation and the submit to the second form. The second form need to populate a select box based on the value from the first form. This form also need to be validated and then forward on to the display jsp. How many form beans and actions will I need? I would like to use dynavalidatorforms as well. Current setup is an action that places an arraylist into an attribute of the request then forward to the first form. I dont know how to get the first form to auto validate and forward to the second form. nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: simple design question
This sounds like what I need! Can you explain a little more.. :) Thanks in advance, nathan On Nov 13, 2003, at 10:10 AM, Saul Q Yuan wrote: Then a simple answer, one solution would be, use a single form, two actions, and use action (path) based validation. Saul -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: simple design question I have a simple design question.. I have to forms. first form is one simple select box that needs to have the values populated from a db. This form needs to have validation and the submit to the second form. The second form need to populate a select box based on the value from the first form. This form also need to be validated and then forward on to the display jsp. How many form beans and actions will I need? I would like to use dynavalidatorforms as well. Current setup is an action that places an arraylist into an attribute of the request then forward to the first form. I dont know how to get the first form to auto validate and forward to the second form. nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: simple design question
Sweet Now are you telling me that the two html form can be on the same page? What about pre-loading the select boxes with information? On Nov 13, 2003, at 10:43 AM, Saul Q Yuan wrote: Ok, then, 1. Let's say you declare your form as MyForm, which is of type DynaValidatorActionForm in Struts-config.xml. 2. And you declare your actions as /myAction1 and /myAction2 respectively. 3. Then in validation.xml, declare your validation as: form name=/myAction1 field ... arg0 ... / /field /form form name=/myAction2 field ... arg0 ... / /field /form 4. Add necessary codes in your jsp files to support client side JS validation. a. html:form action=/myAction1.do onsubmit=return validateMyForm(this); b. html:javascript formName=/myAction1 method=validateMyForm dynamicJavascript=true staticJavascript=false / script language=Javascript1.1 src=staticJavascript.jsp/script same for the other jsp page. Hope this helps Saul -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:23 PM To: Struts Users Mailing List Subject: Re: simple design question This sounds like what I need! Can you explain a little more.. :) Thanks in advance, nathan On Nov 13, 2003, at 10:10 AM, Saul Q Yuan wrote: Then a simple answer, one solution would be, use a single form, two actions, and use action (path) based validation. Saul -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: simple design question I have a simple design question.. I have to forms. first form is one simple select box that needs to have the values populated from a db. This form needs to have validation and the submit to the second form. The second form need to populate a select box based on the value from the first form. This form also need to be validated and then forward on to the display jsp. How many form beans and actions will I need? I would like to use dynavalidatorforms as well. Current setup is an action that places an arraylist into an attribute of the request then forward to the first form. I dont know how to get the first form to auto validate and forward to the second form. nathan - 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] - 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]
DynaAction differences?
What is the difference between these three DynaActionForm DynaValidatorForm DynaValidatorActionForm I assume that the first does no validation. But I can not find any docs on how to use the second two. nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: application.properties
I use Sun's application server but when I do this all web applications reload when you deploy a new one out there. Does Tomcat do this as well? Nathan On Oct 28, 2003, at 9:48 AM, Ruth, Brice wrote: You can probably reload or stop/start the individual application, whilst leaving the application server running. At least, this is what I do with Tomcat all the time ... Zhou, Qin (Eric) wrote: Can website pick up the changes from application.properties using some way, but without bouncing the applicaiton server? Eric Zhou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Q] Free charting?
JfreeChart On Oct 27, 2003, at 2:56 PM, Michael Korolyov wrote: Hello, Would anyone point me to a free chart lib? pls. tag support isn't must, but nice to have. thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to collect the values from multiple select box
how to collect the values from multiple select box? nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to collect the values from multiple select box
What about with Dyna Action Forms Nathan On Oct 27, 2003, at 4:09 PM, Chen, Gin wrote: Simplest way is to have a String[] as your property. html:select property=stringarrayproperty multiple=true -Tim -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 6:02 PM To: Struts Users Mailing List Subject: how to collect the values from multiple select box how to collect the values from multiple select box? nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to find out all of pages (links) in a directory on website.
linklint can do what you are asking for. Remotely it can only see the pages that are linked together. To see the orphan'ed files you can run linklint locally. Nathan On Oct 27, 2003, at 9:30 PM, Dinh Nguyen wrote: Hi all, I know that this is probably not a right place to ask the question, but I am sure that there are some experts on this forum knows the answer. Here is the question: I am about the write a program to list (and count) all of the pages (URL) in a directory from a website. Let say, given a URL below: http://www.xyz.com/myfolder or http://www.xyz.com there are lots of directories, each directory has number of pages. So in this case, let say there are five pages located in myfolder directory. I'd like to find out those five URLs or links, for example: http://www.xyz.com/myfolder/page1.html http://www.xyz.com/myfolder/design.doc http://www.xyz.com/myfolder/faqs.html http://www.xyz.com/myfolder/links.htm http://www.xyz.com/myfolder/mynews.html How would I do this? Can you please guide me step by step (or some ideas) to design this program? Thanks for your help. Dinh Nguyen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet call from JSP/HTML - Need help
I am looking to do just what you have proposed. How do you preload the action. Nathan On Wednesday, October 22, 2003, at 10:45 PM, Andrew Hill wrote: Well, if the values to show dont need to be dynamically loaded based on other user input on that page then of course best practice is to load them in the action before forwarding to the view. (If the values dont change at all while the app is running then it would be even more efficient to load them into servlet context with a plugin at startup) We thought you needed to do some really complex db lookup based on other fields in the same form that was too dynamic to effectively preload results for. -Original Message- From: Shishir K. Singh [mailto:[EMAIL PROTECTED] Sent: Thursday, 23 October 2003 12:35 To: Struts Users Mailing List Subject: RE: Servlet call from JSP/HTML - Need help I went through them...However, I seeing the amount of Java sript that may be involved, I am thinking of another approach. I have decided to preload the independent select fields in an Action and then show the JSP. This may result in the application starting a bit late but once loaded, I will be dealing with static values and not variables. Also, for select fields that are dependent on other select fields, I have decided to show them one by one, Hence sequence of action will be 1 Action (Preload all independent Select) - 2 forward to JSP- 3 User submits 4 Action Load the dependent Selects - goto 2 Is this crude way of doing it?? -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 12:04 AM To: Struts Users Mailing List Subject: RE: Servlet call from JSP/HTML - Need help Another one worth reading on 'remote scripting' is: http://developer.apple.com/internet/javascript/iframe.html -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Thursday, 23 October 2003 11:59 To: 'Struts Users Mailing List' Subject: RE: Servlet call from JSP/HTML - Need help You mean like this? http://www-106.ibm.com/developerworks/library/wa-resc/ -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 AIM:jmitchtx -Original Message- From: Shishir K. Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 10:18 PM To: Struts Users Mailing List Subject: Servlet call from JSP/HTML - Need help Hi, Is there anyway that I can call a servlet from a Select Input type. The idea is that the moment user clicks on the drop down of an html:select type, the option is populate by data queried from database ( this logic resides in a servlet). I think that I may have to use the onClick attribute, but I am not sure how to implement this. Any pointers ? TIA Shishir - 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] - 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]
Example of preloading a form from and Action?
Example of preloading a form from and Action? nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts newbie question
I have a form that has two select boxes. One need to be pre-populated on load. The second will be populated when a use selects one of the elements in the first list. Can this be accomplished and if so how? I would really like to use DynaActionForms if possible. Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]