RE: [REMOVE THIS DUDE]!!!!! DELIVERY FAILURE: Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota exceeded
+1 Regards, Daniel -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 May, 2003 8:40 PM To: Struts User List Subject: [REMOVE THIS DUDE]! DELIVERY FAILURE: Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota exceeded WOULD SOMEONE PLEASE REMOVE THIS FOOL! Brandon Goodin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 6:38 AM To: Brandon Goodin Subject: DELIVERY FAILURE: Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota exceeded Your message Subject: RE: Justifying Struts was not delivered to: [EMAIL PROTECTED] because: Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota exceeded - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Justifying Struts
For a simple and small project it really doesn't matter whether you implement model 1 or 2 or any kind of framework. But when it comes to large projects and complexities, a more clean structured model is always desired. It all accounts when maintaining the whole application. Whether its a Java Bean, EJB, or a JSP, I prefer to write it clean, small and simple logics, in a clean, simple and small source file. I moved from a model 1 arch to model 2 and now to struts, I could definitely see the importance of all the elements in the framework, whether its a layout tiles, validator or taglibs. For larger and complex projects, definitely struts framework is WORTH, pays off in developing and maintaining. All I can say is its CLEAN and SIMPLE thats what we strive for in life as well. Panchasheel -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 8:38 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Justifying Struts Why can't the bean either be generated automatically or there be a general purpose bean (with properties that are created dynamically) that works for all forms? Have you looked at DynaForms? 1) I think the separation of presentation (view) from the model and controller has gone too far (or probably is not done well in Struts). For example, I like to have my front end developers do form (field) validation. These developers should not have to write beans to do this (all examples I've seen so far do form validation in Java beans). This somewhat contradicts the J2EE development model where application developers, who are basically scripters (not OO developers), do the front end work. I think in some cases though, validation constraints are complex enough they cannot all be done through simple means. Once you start adding on layers of complexity, without a good pattern to follow, you may get each developer doing it slightly differently. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 5:38 AM To: Struts Users Mailing List Subject: RE: Justifying Struts Maybe he should also drop java and the servlet api while he is at it - after all you can do all of that stuff in assembly code. How hard is it to implement a web server? - just listen on the port, send some text back and forth. Piece of cake. Run a lot faster too without all that unneccesary overhead the jvm imposes. snip application developers, who are basically scripters (not OO developers) /snip Oh we are just scripters are we? I suppose its true - real programmers write straight to the metal - none of this high level language stuff... design patterns are for quiche eaters... http://www.pbm.com/~lindahl/real.programmers.html http://www.psych.usyd.edu.au/pdp-11/rp.html Ok thats probably enough since its still only Thursday... ;- -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 May 2003 17:10 To: Struts Users Mailing List Subject: Re: Justifying Struts I'm sorry man, you're reservations are mostly wrong. one thing you have to bare in mind is that we're not all as clever as you, in fact i'd argue that I'm very stupid and many people are as equally stupid. If you've managed to maintain an MVC pattern using model 1 techniques what are you doing researching struts? Model 1 techniques were also attempts to encourage MVC but html'ists who are keen to overcome their programmer envy would break the pattern, if you don't have this problem and your current development practices don't break this pattern you don't need struts then do you? I'm interested in how many times oh that's easy is said in your team, how much unaccounted time pops up on your projects especially when completing easy tasks. taglibs have value in the real world and the struts taglibs more so, the overhead isn't that great and are far less than the cognitive overheads that some ropey scriptlet writing can cause. while i understand your preference for scriptlets, putting your team forward as the sole inhabitance of the real world sounds a little incongruous with the model 1 utopia that you're all living in. Anyway there are numerous threads like yours on this group that have been posted over the last few weeks. take a read. i'd argue that your position requires justification not struts. cheers mark I've heard about Struts and have researched it over the last few hours. The MVC approach makes sense, but I'm still not sold on it yet. Here are some doubts I have. 1) I think the separation of presentation (view) from the model and controller has gone too far (or probably is not done well in Struts). For example, I like to have my front end developers do form (field) validation. These developers should not have to write beans to do this (all examples I've seen so far do form validation in Java beans). This somewhat contradicts the J2EE development model where application developers,
RE: Checkbox ????
I had some issues with this method, so I came up with something else that works very nicely. In the JSP, right after the code for the checkbox, use: jsp:setProperty name=beanName property=checkboxProperty value=false / This works very nicely, regardless of the scope that the bean is in. However, I am no expert with this stuff, so if there is any reason not to do this I'd be interested in hearing it. - Keith www.buffalo.edu/~kkamholz -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 8:18 AM To: Struts Users Mailing List Subject: RE: Checkbox The value is what is submitted for the checkbox if the checkbox is a checked checkbox. For example: if your form has a string property named foo, and your checkbox's value is bob, then if you check the checkbox and submit, form.getFoo() will return bob. If you dont check the checkbox and submit, NOTHING is submitted (not a null, not an empty string, nothing!) - so setFoo() is NOT called and if its value was bob it will STAY bob. Note that if you are using a request scoped actionForm you probably wont notice this as a problem as you will get a new form instance each submit anyway. Of course if you set foo to bob in your reset, then the checkbox will display as checked, BUT if you uncheck it and submit, nothing is submitted, so the value will still be bob in the form... The place to preset values for your checkbox is in the action you go through before going to the view, and your reset method should should set the value for foo to unbob or false (if you use a boolean property) or false or whatever so that unchecked boxes can be detected by your code. (For various reasons its recommended to preceed all views with an action - even if its a no-op action - instead of linking directly to the jsp) -Original Message- From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 May 2003 20:00 To: Struts Users Mailing List Subject: Checkbox The documentation says : You must set the boolean property to false in the reset method of ActionForm. What does it mean. Browser will only submit those checkboxes which are checked. And what is the significance of 'value' attribute of the checkbox thus generated given that it has one of {on, off}. I have to show a checkbox prechecked when the page loads. How can I do that. The checkbox value has no influence on it. Thanx. - 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: [REMOVE THIS DUDE]!!!!! DELIVERY FAILURE: Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota exceeded
I found a solution... if you don't mail the group his mail server wont send an error message... DOOH!!! :o) On Thursday, May 29, 2003, at 13:58 Europe/London, Daniel Joshua wrote: +1 Regards, Daniel -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 May, 2003 8:40 PM To: Struts User List Subject: [REMOVE THIS DUDE]! DELIVERY FAILURE: Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota exceeded WOULD SOMEONE PLEASE REMOVE THIS FOOL! Brandon Goodin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 6:38 AM To: Brandon Goodin Subject: DELIVERY FAILURE: Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota exceeded Your message Subject: RE: Justifying Struts was not delivered to: [EMAIL PROTECTED] because: Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota exceeded - 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: newbie - help required in html: and logic:
check the user guide docs on jakarta and some examples that come with struts download also download the struts src which has most of the taglibs used all over the places. Panchasheel -Original Message- From: Vijay Pawar [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 6:13 AM To: [EMAIL PROTECTED] Subject: newbie - help required in html: and logic: Hi All, I need help locating a good detailed tutorial for using the html: and logic: tags I would appreciate if i get links to sites where i can get detailed documentation about the use/code samples of the same. Newbie :0)~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Regular Expression Help
you can define the pattern to be something like: form=([^]+) and then apply it to the string and get value of $1. I can't remember if and are special characters. If they are, you can add \ in front to escape them. I don't have a reference with me so can't give you the exact answer. Concrete example will depends on your language. On Thursday 29 May 2003 07:54, Hunter Hillegas wrote: This is off-topic but if someone could help, that would be great. Please respond off list. I need help with a regular expression. These are always hard for me. I have several lines of input like this: maillog-May 26 16:29:50 vader sendmail[22129]: h4QLTob22129: from=[EMAIL PROTECTED], size=967, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=MTA, relay=f9. law10.hotmail.com [64.4.15.9] I want to extract just the from address ([EMAIL PROTECTED]) and send it to output, but I am having trouble getting it right. Any help is appreciated. Thanks, Hunter - 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: Justifying Struts
I must speak up here. I would be so bold as to say that Struts is important to use on all level of sites. I have developed sites in Perl, ASP (not .NET), PHP and I would have to say they all lack in comparison to J2EE/Struts. Most of my sites are small non-enterprise level apps. But, there are still ample organizational needs and maintainability issues that are addressed through the use of Struts. If it requires dynamic interaction then Struts is worth the time learning an applying to any project. The most important thing to remember is REUSE. The Struts framework is the Model2 portion that is reusable. The next step is to take Struts throw in a few useful APIS and a few other complementary frameworks and you have yourself a reusable environment that can span across several project. I have successfully been able to create reusable modules that are the same across several sites. This is a major time savings and it makes me profitable. A little work up front pays off later. Brandon Goodin -Original Message- From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 6:59 AM To: 'Struts Users Mailing List' Subject: RE: Justifying Struts For a simple and small project it really doesn't matter whether you implement model 1 or 2 or any kind of framework. But when it comes to large projects and complexities, a more clean structured model is always desired. It all accounts when maintaining the whole application. Whether its a Java Bean, EJB, or a JSP, I prefer to write it clean, small and simple logics, in a clean, simple and small source file. I moved from a model 1 arch to model 2 and now to struts, I could definitely see the importance of all the elements in the framework, whether its a layout tiles, validator or taglibs. For larger and complex projects, definitely struts framework is WORTH, pays off in developing and maintaining. All I can say is its CLEAN and SIMPLE thats what we strive for in life as well. Panchasheel -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 8:38 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Justifying Struts Why can't the bean either be generated automatically or there be a general purpose bean (with properties that are created dynamically) that works for all forms? Have you looked at DynaForms? 1) I think the separation of presentation (view) from the model and controller has gone too far (or probably is not done well in Struts). For example, I like to have my front end developers do form (field) validation. These developers should not have to write beans to do this (all examples I've seen so far do form validation in Java beans). This somewhat contradicts the J2EE development model where application developers, who are basically scripters (not OO developers), do the front end work. I think in some cases though, validation constraints are complex enough they cannot all be done through simple means. Once you start adding on layers of complexity, without a good pattern to follow, you may get each developer doing it slightly differently. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 5:38 AM To: Struts Users Mailing List Subject: RE: Justifying Struts Maybe he should also drop java and the servlet api while he is at it - after all you can do all of that stuff in assembly code. How hard is it to implement a web server? - just listen on the port, send some text back and forth. Piece of cake. Run a lot faster too without all that unneccesary overhead the jvm imposes. snip application developers, who are basically scripters (not OO developers) /snip Oh we are just scripters are we? I suppose its true - real programmers write straight to the metal - none of this high level language stuff... design patterns are for quiche eaters... http://www.pbm.com/~lindahl/real.programmers.html http://www.psych.usyd.edu.au/pdp-11/rp.html Ok thats probably enough since its still only Thursday... ;- -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 May 2003 17:10 To: Struts Users Mailing List Subject: Re: Justifying Struts I'm sorry man, you're reservations are mostly wrong. one thing you have to bare in mind is that we're not all as clever as you, in fact i'd argue that I'm very stupid and many people are as equally stupid. If you've managed to maintain an MVC pattern using model 1 techniques what are you doing researching struts? Model 1 techniques were also attempts to encourage MVC but html'ists who are keen to overcome their programmer envy would break the pattern, if you don't have this problem and your current development practices don't break this pattern you don't need struts then do you? I'm interested in how many times oh that's easy is said in your team, how much unaccounted time pops up on your projects especially when completing easy tasks. taglibs
getting Resources from ExceptionHandler
Hi All, Does anyone figures out how to get MessageResources from the execute() method of an ExceptionHandler? TIA, Adolfo. _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Form validation over multiple pages
Hi all, I'm almost there with using the validator over several pages with a single form. However I'm getting a strange little error. The first page is validating fine, and it doesn't seem to try to validate the info required on the second page - correct. However once I try to validate the second page, the javascript validates correctly, but the server side validation returns an error saying the first page's required field needs validating. I think it might be because I'm not sure how to pass the page parameter to the action. I've tried using a html:hidden tag. Anyway, snippets from the jsps, struts config and validation.xml file are included below. If someone could help me out I'd be very grateful. Thanks very much, Brian. My first jsp named validatestep1.jsp looks like: html:javascript formName=validateForm page=1/ html:form action=/secure/validateStep1.jspa onsubmit=return validateValidateForm(this); method=post html:hidden name=validateForm property=page value=1 / table trtdusername/td tdhtml:text name=validateForm property=userName //td /tr tr td colspan=2 align=center html:image border=0 page=/images/button_submit.gif/ /td /tr /table /html:form My second jsp named validatestep2.jsp looks like html:javascript formName=validateForm page=2/ html:form action=/secure/validateStep2.jspa onsubmit=return validateValidateForm(this); method=post html:hidden name=validateForm property=page value=2 / table tr tdcredit card with no spaces or dashes/td tdhtml:text name=validateForm property=creditCard //td /tr tr td colspan=2 align=center html:image border=0 page=/images/button_submit.gif/ /td /tr /table /html:form in my struts config I have action path=/secure/validateStep1 type=ValidateStep1Action name=validateForm scope=session input=/validatestep1.jsp unknown=false validate=true forward name=success path=/validatestep2.jsp redirect=false / and then action path=/secure/validateStep2 type=ValidateStep2Action name=validateForm scope=session input=/validatestep2.jsp unknown=false validate=true forward name=success path=/validated.jsp redirect=false / In my validation.xml file I have form name=validateForm field property=userName depends=required,minlength page=1 field property=creditCard depends=required,creditCard page=2
Re: 281177: Struts 1.1
1) Is it mandatory to restart the application if I hav changed one action class or form ? With Tomcat I've found that most code changes require an app reload but some do not. I believe it has something to do with adding methods vs. changing the internals of a method but I could certainly be wrong. David _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Q: more an HTML/JSP issue rather than struts.. but..
Hi, I have the need to scroll the displayed jsp page (as the result of a struts action) to a specific place on the resultant html page. Is there a standard way to do this? (I thought one could use javascript onLoad or somehow re-write the URL to force the browser to move to an anchor, but both don't seem to be working.. I suspect it might be that struts is rewriting the visited page URL to be the action.do page somehow which always moves it to the top? ). Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Regular Expression Help
Regular expressions are valuable to Struts developers, too. :-) Using J2SE 1.4, you could: String[] temp_1 = new String[ 3 ]; temp_1 = line.split( ); String[] temp_2 = new String[ 1 ]; String email = temp_1[ 1 ].split( ); or import java.util.regex.Pattern; import java.util.regex.Matcher; Patter p = Pattern.compile( [^](.*) ); Matcher m = p.matcher( line ); if( m.group() != null ) { String email = m.group(); } Mark -Original Message- From: Hunter Hillegas [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 7:55 PM I have several lines of input like this: maillog-May 26 16:29:50 vader sendmail[22129]: h4QLTob22129: from=[EMAIL PROTECTED], size=967, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=MTA, relay=f9. law10.hotmail.com [64.4.15.9] I want to extract just the from address ([EMAIL PROTECTED]) and send it to output - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I have more than one properties file and retrieve from them based on the context
But be careful because validator breaks in a certain case if you do such a thing. i.e. there is no way to do this: arg0 key=label.name bundle=ASSISTENT_RESOURCE_KEY / And if you are using modules you have to do bundle=ASSISTENT_RESOURCE_KEY/modulename in the JSP tags. Which I'm not saying is broken, I'm just saying be aware of the usage for modules. ! -Original Message- From: Mouratidis, Georg [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 4:29 AM To: Struts Users Mailing List Subject: AW: Can I have more than one properties file and retrieve from them based on the context YES, you can. you have to define them in struts-config: message-resources parameter=resources.ApplicationResources / message-resources parameter=resources.Assistent key=ASSISTENT_RESOURCE_KEY / message-resources parameter=resources.psxsetup key=PSX_SETUP_RESOURCE_KEY / in your jsp you can access to them like: bean:message bundle=ASSISTENT_RESOURCE_KEY key=assistent.text.organization.save/'; the link is between the key attribute in strurs-config and the bundle attribute in the bean:message. but keep i mine: you can have only ONE message-ressorces without a key attribute in struts-config. this is then your default properties. -Ursprüngliche Nachricht- Von: Sakis Chatzinikolaou [mailto:[EMAIL PROTECTED] Gesendet: Do 29.05.2003 09:09 An: Struts Users Mailing List Cc: Betreff: Re: Can I have more than one properties file and retrieve from them based on the context Hi Thiru, No, you just have to set the language in the request and it opens the right properties file on its own. setLocale(request, new Locale(language, country)) in an action class Hope this helps Sakis - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 8:51 AM Subject: Can I have more than one properties file and retrieve from them based on the context Hi, I am using struts bean:message/ tag to retrieve messages from properties file. I need to specify the properties file name in web.xml for the action servlet. Can I have more than one properties file and retrieve it from the properties file by specifying some identifier. For e.g., bean:message key=xx.xx file=xx/. Regards, Thiru - 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: Form over multiple pages
I can think of a couple of options - 1) Use the browser back button :-) 2) Could you perhaps make your back button an html:cancel button. This way validation won't be performed. Your action class should check for cancel. - isCancelled(request) - and somehow forward to the previous page. Cheers, Paul C Gregory F. March wrote: On May 29, 2003, Paul Curren [EMAIL PROTECTED] wrote: |You then have a few options - |1) Associate the form bean with multiple actions, where each action is a |separate page in your wizard (be sure to set the form bean to session scope) |2) Have all pages of the form submit to the same action, with the action |class able to discover what page it's processing e.g. a hidden input |populate a page attribute in your form bean. Paul, But how do you implement a back button? I'm trying to do exactly this with a DynaActionForm. I set up an action that generates a forward to the previous form jsp and when I try to go back to that form where the user has already entered data, the values get reset. I have even tried overriding reset in my subclassed DynaActionForm. Do I have to do something in the jsp or somewhere else? Thanks! /greg -- Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet - 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: Populating Value Objects for the Business Tier
I would suggest option 1, with a slight variation. I think it is best to keep action classes as lean as possible. Rather than doing any heavy lifting in an action class it is better to make calls to delegates and other helper classes. The modular nature of the code enhances code reuse and maintainability. Also, the system becomes more flexible. With this said, rather than Have the action class copy information from the form to a value object., IMHO it is better to make a call to a method in a factory class that takes in an action form and returns a value object. Within the factory method, I would highly recommend use of the method BeanUtils.copyProperties(java.lang.Object dest, java.lang.Object orig) You may be able to use the copyProperties method to completely copy your action form to value object, but in all but the most simple cases you will probably need to do some additional massaging based on selections made in the web interface. As a simple example, if you have a web interface for user registration with a corresponding UserActionForm and UserValueObject, you would pass an instance of the UserActionForm to the method createFromActionForm in the UserFactory class. This method would return a UserValueObject which could then be passed to a DAO object for persistence. The UserFactory might also have other create methods that would create users from sources other than a web interface (comma delimited text file, etc.). In this simple example, it might seem like overkill to create a factory class to process a simple user form; however, as an application becomes more complex keeping to a design pattern that everyone uses truly enhances the quality of life (IMHO this is the greatest advantage of Struts; an advantage not easily seen in simple systems, but readily apparent in complex systems.). A more complex example would be the processing of energy data from a web interface and from several several different corporations and state agencies. The factory classes are the focal point for creating value objects from different resources. Mike --- Andrew Hill [EMAIL PROTECTED] wrote: 2 3 generally end in tears. They sound nice, but when you get down to the fiddly bits you will find it more problematic than you expect. As you mention, the action form is very much a view object. For a start everything in the actionForm will be strings, while your business object probably will not be. Secondly, while there is considerable overlap between your value object and your form, you will find (especially as your ui gets more complex) that the correlation is not 1 to 1 and that you are exerting a lot of effort to try and keep the two the same. Approach 3 is probably the worst - unless its for read only display - in that if the user enters a value that doesnt convert to your value objects property type you will want to redisplay the offending value string the same as the user typed it for them to correct it. Your best bet is to use approach 1. You may be interested to note that the BeanUtils class does have some methods that can make life simpler for you - copying property values and doing type conversions automatically (if I recall correctly). (Actually I generally copy the properties the 'hard' way, one by one in my action) -Original Message- From: Jordan Reed [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 May 2003 12:29 To: Struts Users Mailing List Subject: Populating Value Objects for the Business Tier All, I'm on a team that's trying to decided on a best practice for passing on populating our value objects that get passed to our business layer. We currently have three techniques we've though up and I'm wonderful if anyone has a strong opinion on which one may be the best and why. The basic problem is that the user enters information into a form. The form is a presentation object, and should not be passed to the business layer. So it's information needs to be in a presentation-agnostic interface before being passed to the data layer. 1) Have the action class copy information from the form to a value object. Have a view helper copy information from the value object into the form (for pre-population) 2) Have the form implement a value-object-like interface. The business layer accepts objects with these business interfaces. This way it is possible to pass the form objects to the business layer without the business layer knowing that they are presentation objects. 3) Have the form simply include value objects as properties. Then use the nested taglibs to populate the value objects. This way the Action can just pull the value object off directly and pass to the business layer. A view helper can just set the value object on the form. -jdr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Re: Justifying Struts
1) I think the separation of presentation (view) from the model and controller has gone too far (or probably is not done well in Struts). For example, I like to have my front end developers do form (field) validation. These developers should not have to write beans to do this (all examples I've seen so far do form validation in Java beans). This somewhat contradicts the J2EE development model where application developers, who are basically scripters (not OO developers), do the front end work. It has not gone too far. If you don't like MVC, you've chosen the wrong tool. You don't need Struts or Java, just use some scripting language like PHP. Form validation is done via an xml config. file and many times there is no code required. This is known as the Validator and is based on the Jakarta commons-validator. You need to subclass ValidatorForm or use DynaValidatorForm. 2) There is just too much junk to write to do a simple form. The samples I've seen have involve too many files to do a simple form. Plus, why should I have to write a new bean for each form. Why can't the bean either be generated automatically or there be a general purpose bean (with properties that are created dynamically) that works for all forms? You can do this with DynaForms. You configure each been in struts-config.xml and Struts handles it as if you coded a Java class. This approach leads to 1 config file for beans and the rest of the app (struts-config.xml), 1 config file for validation (validation.xml), and 1 Action class to handle the submitted form. 3) We already separate business logic nicely, usually by encapsulating the logic in beans or EJBs. By the time the application developers get to work writing JSP/HTML, they are not writing any business logic. So why add the overhead of Struts (or any other framework)? JSPs should not talk to EJBs directly, that is a known best practice. Struts is a web tier controller framework for turning web requests into business layer calls. 4) Because we separate out business logic into beans and EJBs, Java is simply used as a scripting langauge in our JSPs - in just the same way that VBScript is used in Active Server Pages. We try not to confuse the object oriented language called Java, with the scripting language called Java that we use in JSPs. We use a very small subset of Java in JSPs. There is no Java scripting language, there is only Java the OO language. Using scriptlets in JSPs is now considered an obsolete technique for many reasons you can find on the net. 5) Based on #4, I don't particularly care for taglibs either. Again, we are simply using Java to do simple scripting. Loops are probably the most complex thing we do. So why add the extra overhead of taglibs. A loop is a loop whether it has the syntax of Java or a taglib. Plus, if I want my front-end developers to get any experience with serious development, I'd rather have them dealing with Java as opposed to taglibs, which have no value in the real world of programming. I'm not sure what you mean by this; Java webapps are real world programming. The JSTL provides a common set of reusable taglibs that all Java web programmers are expected to know. 6) Performance is unknown. I've looked through the mail archives and have seen requests for performance figures, but no answers (plenty of folks pushing Struts though). Performance is known to be quite good but no one has taken the time to get actual numbers. Feel free to do this analysis and let us know the results. The only reason people push Struts is because they've found it useful and are excited about using it. Struts will most definitely not be the weakest link in your webapps performance. Database access and network speeds are usually the 2 slowest components. It sounds like you have the wrong expectations for Struts/Java web programming. This is not designed as a scripting environment. MVC webapps are designed to solve the numerous maintenance and productivity problems associated with scripted apps in PHP, ASP, Perl, etc. David Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Regular Expression Help
Yiddish? -Original Message- From: Xu Cheng [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 8:51 AM Concrete example will depends on your language. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:link along with logic:iterate
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 bean:write along with logic:iterate, the letters would only be displays, and are not clickable. How can I use the html:link 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: Justifying Struts
a) See the thread about Is it worth it? on JavaRanch at http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=58t= 001008 b) See specific comments below... I'll try not to repeat comments already made... 1) I like to have my front end developers do form (field) validation. That's fine. You can let them write normal HTML and JavaScript, reinventing the wheel on each page. You don't have to make a form bean for each form or action. Be warned though that when your SQL update or insert blows up because someone's JavaScript wasn't on par, well, don't cry about it here; you won't get much sympathy (as you've probably already noticed). How about this one from my RL experience... I filled out a eBiz order form and mis-keyed my CC exp date. My transaction was rejected, and I was returned to the form... with nothing in it! I had to re-key everything. The Struts HTML tags take care of this problem for you, rather than having to trust that the browser will cache it or the user won't mind re-keying everything. HINT: If a user has to re-key something, they probably won't, resulting in lost business. 3) We already separate business logic nicely, usually by encapsulating the logic in beans or EJBs. By the time the application developers get to work writing JSP/HTML, they are not writing any business logic. So why add the overhead of Struts (or any other framework)? The key is that Struts helps you control the flow. You can skeleton out a whole app before it's even possible to write the business logic. I speak from experience here--I had a whole app laid out and assembled 6 months before the DBA's finished the schema for my data mart. I dropped in the logic, and voila, everything worked. Struts is *not* a business logic framework. It *is* a VC framework, waiting for your M. =) Trust me when I say once you learn it, it will save you time. 4) We use a very small subset of Java in JSPs. 5) Based on #4, I don't particularly care for taglibs either. Again, we are simply using Java to do simple scripting. Loops are probably the most complex thing we do. So why add the extra overhead of taglibs. How about this argument: Someone new comes in to maintain your app. They don't know a thing about Java or any other programming language, but they do know HTML. They start looking at loops, declarations, etc. and they panic. OTOH, if they look at something with a name and attributes, and it looks like an HTML tag, they can probably figure it out. If you're already using Beans, I don't know what the big deal is with tags. Tag syntax is cleaner than the Java. It provides reuse. (In fact, the servlet engine can reuse tag instances.) 6) Performance is unknown. I've looked through the mail archives and have seen requests for performance figures, but no answers (plenty of folks pushing Struts though). The key here is that Struts does everything for you that you'd have to write yourself. If you want to write it yourself, feel free. Meanwhile, I've got a set of wheels and I'm off building apps. =) David Hibbs Staff Programmer / Analyst Distributed Applications Development and Support American National Insurance Company - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: Regular Expressions
I forgot that split() returns a String[], so the second array IS needed and email = temp_2[ 0 ]; I better get a beer...it's after 5PM Down Under, isn't it? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: more an HTML/JSP issue rather than struts.. but..
You could do a couple things: 1. With plain HTML, add #anchorName to the URL that appears in your browser's address bar, and then a name=anchorName where you want it to be. 2. With JavaScript, use onLoad=location.hash='anchorName' HTH, Matt -Original Message- From: Sundar Narasimhan [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 7:54 AM To: [EMAIL PROTECTED] Subject: Q: more an HTML/JSP issue rather than struts.. but.. Hi, I have the need to scroll the displayed jsp page (as the result of a struts action) to a specific place on the resultant html page. Is there a standard way to do this? (I thought one could use javascript onLoad or somehow re-write the URL to force the browser to move to an anchor, but both don't seem to be working.. I suspect it might be that struts is rewriting the visited page URL to be the action.do page somehow which always moves it to the top? ). Thanks. - 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]
Dispatch action and base action
Hi I have an app where I define my own base action class. I declare it abstract and have it implement a few convenience methods that all my other actions might/will use(as recommended in a few books and web pages). But, there are cases where I want to create an action that uses Dispatch action feature. So my class has to extends dispatch action class. But I still want to have my base action class convenience methods available. And I don't want to have my base extend dispatch action. that's just hideous. So after all my bitching, are there any approaches/best practices that deals with this?? thx, -Henrik Bentel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:link along with logic:iterate
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) logic:iterate name=addressListFormBean id=choice property=letterOptions html:link page=/addressListAction.do?letter= ??? bean:write name=choice property=labelStr/ /html:link /logic:iterate Mona -Original Message- From: Alawadhi, Mona Sent: Thursday, May 29, 2003 10:23 AM To: 'Struts Users Mailing List' Subject: html:link along with logic:iterate 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 bean:write along with logic:iterate, the letters would only be displays, and are not clickable. How can I use the html:link 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: Action Chaining - how to avoid?
Sorry to be a pain about this, but I'm still missing something here. The suggestion below was not so bad, for a confirmation screen. It's acceptable for all forms needing confirmation to extend a ConfirmForm. There are, however, situations where the second screen really has nothing to do with the first. For example, an Order screen and an OrderItem screen. When navigating from Order to OrderItem, I should not go directly to OrderItem.jsp for two reasons. The OrderItemForm is unrelated to the OrderForm and should not be part of the OrderForm object. Given this, it *could* still be ok to go to OrderItem.jsp when it uses it's own Form object, but not if you need to pass through OrderItemAction to verify the user is logged in. The other options are action chaining from the OrderAction to the OrderItem mapping, or linking from the Order.jsp to the OrderItem mapping, both of which are considered bad. What else is there? m --- David Graham [EMAIL PROTECTED] wrote: So if I understand what you're suggesting, I put multiple html forms into editPage.jsp, one of which maps to ConfirmEditAction. Not bad, although, what I have in this form now is a drop down for the user to specify what they intend to do. Sorry, I think the steps would actually be like this: GetEditPageAction -- editPage.jsp -- GetConfirmPageAction -- confirm.jsp -- SaveFormAction -- index.jsp Just use different submit buttons for different actions like Update and Delete. Your SaveFormAction will perform different operations based on which button they pressed. Also, if I want to use this single, generic, confirmation page in multiple places, which I do, I'll have to use scriptlet rather than the html:form tag to render the correct action attribute to take them back to the edit they came from, right? Then you will also need a generic SaveFormAction to save the data from your generic confirm page. You might look at using DispatchAction to use one action to route to different pages based on a request parameter. David m --- David Graham [EMAIL PROTECTED] wrote: If my need, for example, is to go from an Edit X screen, to a Confirm X deletion screen, how is this related to business logic, and how would I refactor? GetEditPageAction -- editPage.jsp -- ConfirmEditAction -- index.jsp David _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A question long not raised....
Hi All Just want to raise a question that does not seem to have been asked for a while When should we be expecting official release Struts 1.1? Hope we don't get the same automated response. Fred - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dynamic text boxes
hi, i need todisplay n number of textboxes on the jsp, the number which is known only at runtime. now how do i map those text boxes to the action form. i can'tuse a array , becos i need to retreive them with the unique id.. any ideas. TIA -nagi Nagendra Kumar O V S Member Technical Staff Ikigo India Private Ltd. 470-B, Road No. 36, Jubilee Hills, Hyderabad 500033 Contact(O): 23544671 Cell: 98482-41789 IncrediMail - Email has finally evolved - Click Here
Struts 1.1 in iPlanet 6.0 Vs Tomcat 4.0.5
All, I developed a web app using Tomcat 4.0.5 and struts 1.1. It is deployed in iPlanet 6.0. I use ActionErrors to validate the form. Somehow iPlanet is not displaying the errors at all. Tomcat does it correctly. iPlanet 6.0 is using servlet 2.2 and Tomcat is 2.3. I had to change the DOCTYPE in web.xml to make the app run in iPlanet. Is the version difference causing the problem? Thanks. Charlene - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple problem.
logic:iterate id=el name=%= l_strFormName % property=results indexId=index html:text property=primKey[bean:write name=index/]/ /logic:iterate primKey is an Array in the Fom Bean. So I have to Index it in the html:text .. tag. My html output is html:text property=primKey[0]/ html:text property=primKey[1]/ . . . Surprisingly, When I hardcode indices such as html:text property=primKey[0]/, the proper value is fetched from the Form Bean. Any Help. Thanx ** Message from InterScan E-Mail VirusWall NT ** ** No virus found in attached file noname.htm No Virus detected in the attached file(s). * End of message *** This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[JSTL] Hashtable
Hello group, Does anyone know how to retrieve particular elements of a hash table using JSTL? I've tried c:out value=${linkTable.get(flag)} but that does not work. Any ideas? TIA, Denis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Action Chaining - how to avoid?
There are, however, situations where the second screen really has nothing to do with the first. For example, an Order screen and an OrderItem screen. When navigating from Order to OrderItem, I should not go directly to OrderItem.jsp for two reasons. The OrderItemForm is unrelated to the OrderForm and should not be part of the OrderForm object. Given this, it *could* still be ok to go to OrderItem.jsp when it uses it's own Form object, but not if you need to pass through OrderItemAction to verify the user is logged in. The other options are action chaining from the OrderAction to the OrderItem mapping, or linking from the Order.jsp to the OrderItem mapping, both of which are considered bad. What else is there? Why is an order unrelated to its items? I would have one class called OrderForm that contained a List or array of all the items being ordered. One ActionForm object does not necessarily map to one HTML form. You can split up the view however you like but store all the data in one form object. David m --- David Graham [EMAIL PROTECTED] wrote: So if I understand what you're suggesting, I put multiple html forms into editPage.jsp, one of which maps to ConfirmEditAction. Not bad, although, what I have in this form now is a drop down for the user to specify what they intend to do. Sorry, I think the steps would actually be like this: GetEditPageAction -- editPage.jsp -- GetConfirmPageAction -- confirm.jsp -- SaveFormAction -- index.jsp Just use different submit buttons for different actions like Update and Delete. Your SaveFormAction will perform different operations based on which button they pressed. Also, if I want to use this single, generic, confirmation page in multiple places, which I do, I'll have to use scriptlet rather than the html:form tag to render the correct action attribute to take them back to the edit they came from, right? Then you will also need a generic SaveFormAction to save the data from your generic confirm page. You might look at using DispatchAction to use one action to route to different pages based on a request parameter. David m --- David Graham [EMAIL PROTECTED] wrote: If my need, for example, is to go from an Edit X screen, to a Confirm X deletion screen, how is this related to business logic, and how would I refactor? GetEditPageAction -- editPage.jsp -- ConfirmEditAction -- index.jsp David _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A question long not raised....
There's a vote underway now on struts-dev for releasing 1.1 RC2. So far there are 3 binding +1 votes (including mine :-). David Hi All Just want to raise a question that does not seem to have been asked for a while When should we be expecting official release Struts 1.1? Hope we don't get the same automated response. Fred - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:link along with logic:iterate
Alawadhi, Mona wrote: 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) logic:iterate name=addressListFormBean id=choice property=letterOptions html:link page=/addressListAction.do?letter= ??? bean:write name=choice property=labelStr/ /html:link /logic:iterate Mona When you only have the one parameter, it's easy with the paramId, paramName, paramProperty attributes. For example: html:link page=/addressListAction.do paramId=letter paramName=choice If you have more than one parameter, you have to use scriplets. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
execute() is called twice!
Hi, I noticed that the execute method was called twice when the submit button was pressed once (resulting same action being performed twice). Has any one experienced this kind of behavior? I am unable to figure out the reason for this. Any suggestions will be helpful. Thanks, Deepak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:link along with logic:iterate
Use something similar to this: logic:iterate name=addressListFormBean property=letterOptions id=choice html:link page=/addressListAction.do paramId=userSelection paramName=choice paramProperty=labelStr bean:write name=choice property=labelStr/ /html:link /logic:iterate (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: html:link along with logic:iterate 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) logic:iterate name=addressListFormBean id=choice property=letterOptions html:link page=/addressListAction.do?letter= ??? bean:write name=choice property=labelStr/ /html:link /logic:iterate Mona -Original Message- From: Alawadhi, Mona Sent: Thursday, May 29, 2003 10:23 AM To: 'Struts Users Mailing List' Subject: html:link along with logic:iterate 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 bean:write along with logic:iterate, the letters would only be displays, and are not clickable. How can I use the html:link 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]
RE: A question long not raised....
Yeah, and how do you get Flash integrated into Struts? Mark -Original Message- From: Fred So [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:54 AM To: [EMAIL PROTECTED] Subject: A question long not raised Hi All Just want to raise a question that does not seem to have been asked for a while When should we be expecting official release Struts 1.1? Hope we don't get the same automated response. Fred - 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: Form validation over multiple pages
With a little further investigation I see that the page value does not get set in the validationForm using html:hidden approach as outlined below. Ie, this doen't work: html:hidden name=validateForm property=page value=1 / When I print out the value of the page field in the action, it is still set to zero. How do you set the page property? Also, this seems to imply the validator is VERY shaky over multiple pages. For example, the properties on my second page are marked as required, and they don't get validated in the first action (this seems to show that the page based validation is working), yet on the second page, the associated action tries to validate the page 1 properties!!! Arrrg!! What's going on! Has anyone got this to work? Brian - Original Message - From: Brian McSweeney [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 2:42 PM Subject: Form validation over multiple pages Hi all, I'm almost there with using the validator over several pages with a single form. However I'm getting a strange little error. The first page is validating fine, and it doesn't seem to try to validate the info required on the second page - correct. However once I try to validate the second page, the javascript validates correctly, but the server side validation returns an error saying the first page's required field needs validating. I think it might be because I'm not sure how to pass the page parameter to the action. I've tried using a html:hidden tag. Anyway, snippets from the jsps, struts config and validation.xml file are included below. If someone could help me out I'd be very grateful. Thanks very much, Brian. My first jsp named validatestep1.jsp looks like: html:javascript formName=validateForm page=1/ html:form action=/secure/validateStep1.jspa onsubmit=return validateValidateForm(this); method=post html:hidden name=validateForm property=page value=1 / table trtdusername/td tdhtml:text name=validateForm property=userName //td /tr tr td colspan=2 align=center html:image border=0 page=/images/button_submit.gif/ /td /tr /table /html:form My second jsp named validatestep2.jsp looks like html:javascript formName=validateForm page=2/ html:form action=/secure/validateStep2.jspa onsubmit=return validateValidateForm(this); method=post html:hidden name=validateForm property=page value=2 / table tr tdcredit card with no spaces or dashes/td tdhtml:text name=validateForm property=creditCard //td /tr tr td colspan=2 align=center html:image border=0 page=/images/button_submit.gif/ /td /tr /table /html:form in my struts config I have action path=/secure/validateStep1 type=ValidateStep1Action name=validateForm scope=session input=/validatestep1.jsp unknown=false validate=true forward name=success path=/validatestep2.jsp redirect=false / and then action path=/secure/validateStep2 type=ValidateStep2Action name=validateForm scope=session input=/validatestep2.jsp unknown=false validate=true forward name=success path=/validated.jsp redirect=false / In my validation.xml file I have form name=validateForm field property=userName depends=required,minlength page=1 field property=creditCard depends=required,creditCard page=2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A question long not raised....
I'm curious, what exactly do you want to do? (How do you want them to be integrated?) - Keith www.buffalo.edu/~kkamholz -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:17 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Yeah, and how do you get Flash integrated into Struts? Mark -Original Message- From: Fred So [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:54 AM To: [EMAIL PROTECTED] Subject: A question long not raised Hi All Just want to raise a question that does not seem to have been asked for a while When should we be expecting official release Struts 1.1? Hope we don't get the same automated response. Fred - 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 text boxes
Use logic:iterate to create the text boxes and request.getParamaterNames() in your Action. Mark -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:53 AM To: [EMAIL PROTECTED] Subject: dynamic text boxes hi, i need todisplay n number of textboxes on the jsp, the number which is known only at runtime. now how do i map those text boxes to the action form. i can't use a array , becos i need to retreive them with the unique id.. any ideas. TIA -nagi Nagendra Kumar O V S Member Technical Staff Ikigo India Private Ltd. 470-B, Road No. 36, Jubilee Hills, Hyderabad 500033 Contact(O): 23544671 Cell: 98482-41789 http://www.incredimail.com/redir.asp?ad_id=309lang=9 IncrediMail - Email has finally evolved - http://www.incredimail.com/redir.asp?ad_id=309lang=9 Click Here
RE: A question long not raised....
Who's been around here long enough to answer this one? ;-) -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:18 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised I'm curious, what exactly do you want to do? (How do you want them to be integrated?) - Keith www.buffalo.edu/~kkamholz -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:17 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Yeah, and how do you get Flash integrated into Struts? Mark -Original Message- From: Fred So [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:54 AM To: [EMAIL PROTECTED] Subject: A question long not raised Hi All Just want to raise a question that does not seem to have been asked for a while When should we be expecting official release Struts 1.1? Hope we don't get the same automated response. Fred - 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: A question long not raised....
Don't encourage him, he'll soon be describing a Struts app with a Flash front-end that controls a tap specially designed for quickest Fosters delivery... ;) -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:18 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised I'm curious, what exactly do you want to do? (How do you want them to be integrated?) - Keith www.buffalo.edu/~kkamholz -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:17 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Yeah, and how do you get Flash integrated into Struts? Mark -Original Message- From: Fred So [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:54 AM To: [EMAIL PROTECTED] Subject: A question long not raised Hi All Just want to raise a question that does not seem to have been asked for a while When should we be expecting official release Struts 1.1? Hope we don't get the same automated response. Fred - 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: Extending STRUTS!!!
I do have similar kind of requirement and I have extended the necessary classes. check the latest version 1.1, you can extend those taglibs Panchasheel -Original Message- From: Nicolas Parisé [mailto:[EMAIL PROTECTED] Sent: Monday, May 26, 2003 5:19 PM To: Struts Users Mailing List Subject: Re: Extending STRUTS!!! Hi , I already extended all struts tags for supporting multiple display-mode (readOnly,hidden and readWrite). this can be done easylly by doing new class that are a composition of struts basic tags. good luck! Nicolas Parise SCJP 1.4 - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 26, 2003 8:39 AM Subject: RE: Extending STRUTS!!! But most of those tags already have a attribute whcih allows you to specify the css class to use...Cant u not use that? -Original Message- From: Tarun Dewan [mailto:[EMAIL PROTECTED] Sent: Monday, May 26, 2003 2:38 PM To: [EMAIL PROTECTED] Subject: Extending STRUTS!!! Hi All, In our project we are trying to extend some struts classes for displaying TextBox, Select, TextArea with different CSS classes. While working for the same, i found that in Struts Souces there are two packages org.apache.struts.tabglib (which is actually used by Struts Framework and most of the classes are marked as final) and org.apache.struts.tabglib.html (with higher versions than the earlier). Pls. advise if i should modify classes in org.apache.struts.tabglib packages or extend classes in org.apache.struts.tabglib.html package. Eagerly waiting for favorable response. Thanks regards, Tarun Dewan. Note : Example of modification required is as follows : package org.apache.struts.taglib.html.nuc.los; import org.apache.struts.taglib.html.TextTag; /** * @author Tarun * * This class is extended from org.apache.struts.taglib.html.TextTag * to provide additional Facitlities to HTML TextBox object */ public class NucTextTag extends TextTag { /** * Construct a new instance of this tag. */ public NucTextTag() { super(); this.type = text; } /** * The named Type associated with this tag. * This will define whether element is to be displayed as Mandatory * or Enable or Incomplete or Normal */ private String displayClass = null; public String getDisplayClass() { return displayClass; } public void setDisplayClass(String displayClass) { this.displayClass = displayClass; if(this.displayClass == null) { this.displayClass = N; } if(this.displayClass.equals(M)) { setStyleClass(MAND); } else if(this.displayClass.equals(D)) { setStyleClass(DABL); setDisabled(false); } else if (this.displayClass.equals(I)) { setStyleClass(INCO); } else { setStyleClass(NORM); } } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Regular Expression Help
Oops...off in ASP land again. The second array is not needed. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 9:57 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Regular Expression Help Regular expressions are valuable to Struts developers, too. :-) Using J2SE 1.4, you could: String[] temp_1 = new String[ 3 ]; temp_1 = line.split( ); String[] temp_2 = new String[ 1 ]; String email = temp_1[ 1 ].split( ); or import java.util.regex.Pattern; import java.util.regex.Matcher; Patter p = Pattern.compile( [^](.*) ); Matcher m = p.matcher( line ); if( m.group() != null ) { String email = m.group(); } Mark -Original Message- From: Hunter Hillegas [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 7:55 PM I have several lines of input like this: maillog-May 26 16:29:50 vader sendmail[22129]: h4QLTob22129: from=[EMAIL PROTECTED], size=967, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=MTA, relay=f9. law10.hotmail.com [64.4.15.9] I want to extract just the from address ([EMAIL PROTECTED]) and send it to output - 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:option dependant on prior html:option
Is there a way to make a pull down menu using the Struts html:option tag dependant upon another pull down menu on the same page? I want to let a user only see a list of choices based on what they chose previously. If they leave the first choice blank, then the next pull down should show no choices. Any help would be appreciated. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: dynamic text boxes
hello mark, but, i cant use html:text property=""/ , becos i cant map them in the action form i want this property also be dynamic and also get the value in the action form, can be thro' request.getParameter... how can i override the struts behaviour of not checking the corresponding get/set method of the property while rendering the html:text. or is their anyway. TIA ---Original Message--- From: Struts Users Mailing List Date: Thursday, May 29, 2003 08:52:09 PM To: 'Struts Users Mailing List'; 'Nagendra Kumar O V S' Subject: RE: dynamic text boxes Use logic:iterate to create the text boxes and request.getParamaterNames()in your Action.Mark-Original Message-From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 29, 2003 10:53 AMTo: [EMAIL PROTECTED]Subject: dynamic text boxeshi,i need to display n number of textboxes on the jsp, the number which isknown only at runtime.now how do i map those text boxes to the action form.i can't use a array , becos i need to retreive them with the unique id..any ideas.TIA-nagiNagendra Kumar O V SMember Technical StaffIkigo India Private Ltd.470-B, Road No. 36,Jubilee Hills,Hyderabad 500033Contact(O): 23544671Cell: 98482-41789http://www.incredimail.com/redir.asp?ad_id=309lang=9 IncrediMail -Email has finally evolved -http://www.incredimail.com/redir.asp?ad_id=309lang=9 Click Here IncrediMail - Email has finally evolved - Click Here
RE: execute() is called twice!
The only time(s) I've seen this are as follows: 1) JavaScript is also submitting the form in an onClick et al. method 2) The submit button is actually an image. Images implicitly submit, so if you have an HREF or JavaScript onClick attached to it, a double submit will happen. (See #1). 3) You have a user who double clicks everything... buttons, hyerplinks, etc. We have a few of those around here. =) David Hibbs Staff Programmer / Analyst Distributed Applications Development and Support American National Insurance Company I noticed that the execute method was called twice when the submit button was pressed once (resulting same action being performed twice). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [JSTL] Hashtable
I believe it is c:out value=${linkTable['flag']} assuming 'flag' is a literal. Ifnot, I'm pretty sure you can use ${linkTable[flag]}. Robert Hello group, Does anyone know how to retrieve particular elements of a hash table using JSTL? I've tried c:out value=${linkTable.get(flag)} but that does not work. Any ideas? TIA, Denis - 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: html:link along with logic:iterate
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: html:link along with logic:iterate Use something similar to this: logic:iterate name=addressListFormBean property=letterOptions id=choice html:link page=/addressListAction.do paramId=userSelection paramName=choice paramProperty=labelStr bean:write name=choice property=labelStr/ /html:link /logic:iterate (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: html:link along with logic:iterate 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) logic:iterate name=addressListFormBean id=choice property=letterOptions html:link page=/addressListAction.do?letter= ??? bean:write name=choice property=labelStr/ /html:link /logic:iterate Mona -Original Message- From: Alawadhi, Mona Sent: Thursday, May 29, 2003 10:23 AM To: 'Struts Users Mailing List' Subject: html:link along with logic:iterate 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 bean:write along with logic:iterate, the letters would only be displays, and are not clickable. How can I use the html:link 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: html:option dependant on prior html:option
Michael Lucas wrote: Is there a way to make a pull down menu using the Struts html:option tag dependant upon another pull down menu on the same page? I want to let a user only see a list of choices based on what they chose previously. If they leave the first choice blank, then the next pull down should show no choices. Any help would be appreciated. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Uh, I believe that you'd have to use Javascript for that. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A question long not raised....
Hahahaha. I should've figured. Don't mind me, any time I see flash I get interested. I'm somewhat new to it, but I love the stuff. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:24 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Don't encourage him, he'll soon be describing a Struts app with a Flash front-end that controls a tap specially designed for quickest Fosters delivery... ;) -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:18 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised I'm curious, what exactly do you want to do? (How do you want them to be integrated?) - Keith www.buffalo.edu/~kkamholz -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:17 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Yeah, and how do you get Flash integrated into Struts? Mark -Original Message- From: Fred So [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:54 AM To: [EMAIL PROTECTED] Subject: A question long not raised Hi All Just want to raise a question that does not seem to have been asked for a while When should we be expecting official release Struts 1.1? Hope we don't get the same automated response. Fred - 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]
Indexed Fields
How to dynamically generate indexed html fields as well as populate them from the form bean. I am unable to do both simultaneously. My fields will be generated by html:text property=indexdProperty[0]/ html:text property=indexdProperty[1]/ ... For this I use logic:iterator indexId=id html:text property=indexdProperty[bean:write name=id]/ /logic:iterate But the HTML output that it gives is this .. html:text property=indexdProperty[0] / html:text property=indexdProperty[1] / ... __ When instead of using iterator I use it like this (hardcoding indices) html:text property=indexdProperty[0] / html:text property=indexdProperty[1] / html:text property=indexdProperty[3] / ... i get output as input type=text name=indexdProperty[0] value=1 input type=text name=indexdProperty[0] value=2 input type=text name=indexdProperty[0] value=3 which is correct __ ANY HELP ON WHAT I AM TRYING TO DO Thanx. ** Message from InterScan E-Mail VirusWall NT ** ** No virus found in attached file noname.htm No Virus detected in the attached file(s). * End of message *** This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:option dependant on prior html:option
Is there a way to make a pull down menu using the Struts html:option tag dependant upon another pull down menu on the same page? Unless you want to go back to the server every time they change the first drop-down list (not recommended) then you'll need to use Javascript. I have a library to do exactly this: http://www.mattkruse.com/javascript/dynamicoptionlist/ This is #2 on my list of javascript libs I want to convert into struts tags, so hopefully in the near future creating dependent lists will be much simpler :) Matt Kruse
Re: Action Chaining - how to avoid?
You have to take that relationship on faith. Perhaps it's not the best example, but suffice it to say that I have many-to-many types of relationships in my data, and that the Forms are best segregated for re-use. It is highly inefficient for me to make a separate form for each combination of data relationship. Futhermore, there are many levels involved here. Distributions have Shipments, Shipments have Orders, Orders Have Items, Items have Tasks, Tasks have TaskDetails. Are you really suggesting I put all this in one Form? If I make a screen to query for TaskDetails which then uses the same jsp to display the results as the one that is linked to by the Task screen, then I must use this giant Form with mostly inconsequential fields, and add my TaskDetail query screen specifics to it, too. Where does it end? My other options are to make a new jsp, or make a jsp with some really nasty scriptlet in it to handle different forms. Right? --- David Graham [EMAIL PROTECTED] wrote: There are, however, situations where the second screen really has nothing to do with the first. For example, an Order screen and an OrderItem screen. When navigating from Order to OrderItem, I should not go directly to OrderItem.jsp for two reasons. The OrderItemForm is unrelated to the OrderForm and should not be part of the OrderForm object. Given this, it *could* still be ok to go to OrderItem.jsp when it uses it's own Form object, but not if you need to pass through OrderItemAction to verify the user is logged in. The other options are action chaining from the OrderAction to the OrderItem mapping, or linking from the Order.jsp to the OrderItem mapping, both of which are considered bad. What else is there? Why is an order unrelated to its items? I would have one class called OrderForm that contained a List or array of all the items being ordered. One ActionForm object does not necessarily map to one HTML form. You can split up the view however you like but store all the data in one form object. David m --- David Graham [EMAIL PROTECTED] wrote: So if I understand what you're suggesting, I put multiple html forms into editPage.jsp, one of which maps to ConfirmEditAction. Not bad, although, what I have in this form now is a drop down for the user to specify what they intend to do. Sorry, I think the steps would actually be like this: GetEditPageAction -- editPage.jsp -- GetConfirmPageAction -- confirm.jsp -- SaveFormAction -- index.jsp Just use different submit buttons for different actions like Update and Delete. Your SaveFormAction will perform different operations based on which button they pressed. Also, if I want to use this single, generic, confirmation page in multiple places, which I do, I'll have to use scriptlet rather than the html:form tag to render the correct action attribute to take them back to the edit they came from, right? Then you will also need a generic SaveFormAction to save the data from your generic confirm page. You might look at using DispatchAction to use one action to route to different pages based on a request parameter. David m --- David Graham [EMAIL PROTECTED] wrote: If my need, for example, is to go from an Edit X screen, to a Confirm X deletion screen, how is this related to business logic, and how would I refactor? GetEditPageAction -- editPage.jsp -- ConfirmEditAction -- index.jsp David _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL
RE: html:option dependant on prior html:option
Thanks for the help, Matt! That was exactly what I needed. At 08:32 AM 5/29/2003, you wrote: Is there a way to make a pull down menu using the Struts html:option tag dependant upon another pull down menu on the same page? Unless you want to go back to the server every time they change the first drop-down list (not recommended) then you'll need to use Javascript. I have a library to do exactly this: http://www.mattkruse.com/javascript/dynamicoptionlist/ This is #2 on my list of javascript libs I want to convert into struts tags, so hopefully in the near future creating dependent lists will be much simpler :) Matt Kruse Michael Lucas California National Primate Research Center Data Services Programmer University of California, Davis One Shields Avenue Davis, CA 95616 (530) 752-3359 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help Could not load TagExtraInfo class message
Hi all I have an app that is deployed on iPlanet server v6.0 It is giving me a lot of messages exactly like this: JSP11 Log:Could not load TagExtraInfo class org.apache.struts.taglib.html.MessagesTei: Unable to load class org.apache.struts.taglib.html.MessagesTei It seems to be non-fatal but can anyone tell me why these messages are being generated The app uses Struts 1.0.2, tiles 1.0 and struts-validator 1.0 I can give any extra information that anyone might need Nigel Vivian PS thanks to everyone contributing to this list - I have learnt loads - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Indexed Fields
http://jakarta.apache.org/struts/userGuide/struts-html.html#text look at indexed property. hth Denis Abhinav (Cognizant) wrote: How to dynamically generate indexed html fields as well as populate them from the form bean. I am unable to do both simultaneously. My fields will be generated by html:text property=indexdProperty[0]/ html:text property=indexdProperty[1]/ ... For this I use logic:iterator indexId=id html:text property=indexdProperty[bean:write name=id]/ /logic:iterate But the HTML output that it gives is this .. html:text property=indexdProperty[0] / html:text property=indexdProperty[1] / ... __ When instead of using iterator I use it like this (hardcoding indices) html:text property=indexdProperty[0] / html:text property=indexdProperty[1] / html:text property=indexdProperty[3] / ... i get output as input type=text name=indexdProperty[0] value=1 input type=text name=indexdProperty[0] value=2 input type=text name=indexdProperty[0] value=3 which is correct __ ANY HELP ON WHAT I AM TRYING TO DO Thanx. ** Message from InterScan E-Mail VirusWall NT ** ** No virus found in attached file noname.htm No Virus detected in the attached file(s). * End of message *** This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.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: Indexed Fields
I think its available in struts 1.1 am using 1.0.2 is there a way out. -Original Message- From: Denis Avdic [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 9:33 PM To: Struts Users Mailing List Subject: Re: Indexed Fields http://jakarta.apache.org/struts/userGuide/struts-html.html#text look at indexed property. hth Denis Abhinav (Cognizant) wrote: How to dynamically generate indexed html fields as well as populate them from the form bean. I am unable to do both simultaneously. My fields will be generated by html:text property=indexdProperty[0]/ html:text property=indexdProperty[1]/ ... For this I use logic:iterator indexId=id html:text property=indexdProperty[bean:write name=id]/ /logic:iterate But the HTML output that it gives is this .. html:text property=indexdProperty[0] / html:text property=indexdProperty[1] / ... __ When instead of using iterator I use it like this (hardcoding indices) html:text property=indexdProperty[0] / html:text property=indexdProperty[1] / html:text property=indexdProperty[3] / ... i get output as input type=text name=indexdProperty[0] value=1 input type=text name=indexdProperty[0] value=2 input type=text name=indexdProperty[0] value=3 which is correct __ ANY HELP ON WHAT I AM TRYING TO DO Thanx. ** Message from InterScan E-Mail VirusWall NT ** ** No virus found in attached file noname.htm No Virus detected in the attached file(s). * End of message *** This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.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] ** Message from InterScan E-Mail VirusWall NT ** ** No virus found in attached file noname.htm No Virus detected in the attached file(s). * End of message *** This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A question long not raised....
Jarnot Voytek Contr AU HQ/SC wrote: Don't encourage him, he'll soon be describing a Struts app with a Flash front-end that controls a tap specially designed for quickest Fosters delivery... ;) ... and a really cool LISP back end... DISCLAIMER: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message and attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] A question long not raised....
So.you admit to being a flasher? -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - Original Message - From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:35 AM Subject: RE: A question long not raised Hahahaha. I should've figured. Don't mind me, any time I see flash I get interested. I'm somewhat new to it, but I love the stuff. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:24 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Don't encourage him, he'll soon be describing a Struts app with a Flash front-end that controls a tap specially designed for quickest Fosters delivery... ;) -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:18 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised I'm curious, what exactly do you want to do? (How do you want them to be integrated?) - Keith www.buffalo.edu/~kkamholz -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:17 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Yeah, and how do you get Flash integrated into Struts? Mark -Original Message- From: Fred So [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:54 AM To: [EMAIL PROTECTED] Subject: A question long not raised Hi All Just want to raise a question that does not seem to have been asked for a while When should we be expecting official release Struts 1.1? Hope we don't get the same automated response. Fred - 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: [OT] A question long not raised....
No, no, he admits LOVING flashers. A fetish interest in development, looks like. ;) James Mitchell wrote: So.you admit to being a flasher? -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - Original Message - From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:35 AM Subject: RE: A question long not raised Hahahaha. I should've figured. Don't mind me, any time I see flash I get interested. I'm somewhat new to it, but I love the stuff. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:24 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Don't encourage him, he'll soon be describing a Struts app with a Flash front-end that controls a tap specially designed for quickest Fosters delivery... ;) -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:18 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised I'm curious, what exactly do you want to do? (How do you want them to be integrated?) - Keith www.buffalo.edu/~kkamholz -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:17 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Yeah, and how do you get Flash integrated into Struts? Mark -Original Message- From: Fred So [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:54 AM To: [EMAIL PROTECTED] Subject: A question long not raised Hi All Just want to raise a question that does not seem to have been asked for a while When should we be expecting official release Struts 1.1? Hope we don't get the same automated response. Fred - 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]
Order Detail page with editable line items
I have a problem that I'm sure is quite common. However, I have not seen any decent examples of how this might be implemented using Struts, so any suggestions would be greatly appreciated. The problem is this: I have an order detail page that has a list of line items with editable data inside each line item. The user is allowed to select which product they're ordering and what quantity of that product per line item. I can figure out how to create an ActionForm bean that is able to convey the values to the JSP using a collection of line item beans inside the ActionForm. And, I can figure out how to code the JSP to output the values into the form elements using the logic:iterate tag. However, what I'm having trouble with is submitting the values back to the Action. How can Struts repopulate the collection inside the ActionForm? Or, if I should not be using a collection to represent the line items, how else should I do it? In the case of not using a collection to represent the line items, how do I get Struts taglib to populate the form elements in the JSP? I've attached a gif file that depicts the prototype of the screen I'm talking about, for those of you who are visual thinkers. Any help is appreciated! Thanks! - Greg Blomquist begin 666 orderPrototype.gif M1TE.#=A+ /C!/S9@(`#-FF4! 0:9S( @(B(B+.SM-30R-OJ M]=W=WT``.V5E?;[___=W?___P`` M M M M M M M M M M M M M M M M`'Y! ``+ `L`^,$``C_`$('$BPH,# M!,J7,BPH.'$-*G$BQHL6+#-JW,BQH\/($.*'$FRI,F3*%.J7,FRIN7 M,/*G$FSILV;.$,V,FSI\^?0(,*'4JTZ $`!(TJ7JT:4^D.:-*G4JUJM6K M6+./!@J]O8,.*'4NVK-FS4 5R/NVK=NW8M-JG4NWKMV[//J-;@6KM^_ [EMAIL PROTECTED]ROJ7LRXL/'D!$2/DR9\N#*FU'WLRYL^?/H$].SDSZ[72 MJ$V'7LVZMO7G4G]BL0\.G99[EMAIL PROTECTED](.[EVVH%?=?Y'5:YZ(/O M!BLS/PZA,_AV+-KW\X]X7.PNJGRZ\^5CS;VV;-`S:O_GSW]_#CRV?]'3KY M`+7##\1/D+K^_]49UYQ:;2G7'W_[[8@?ET=Z*:,TGX8045CA7?=1EF-]] M_#7(88?(4AVA5U:((P:8HH[EMAIL PROTECTED]:-9U%M9HXXTXDH0ABRQNR+ MQJ%H'X]MF9C;?=']*.+'B:(I( SYBCEE%16*=.,B[9'X-/CFDC.XY5Z7 M7W;[EMAIL PROTECTED]:VZ:;%6*I)(=:HLDDD4!^*68; E9YHIFFHEGF' 6:NBA M\MS):[EMAIL PROTECTED]6*C,X):8H0EL4FHJ*NIF6,)%(FYHG8J [EMAIL PROTECTED]::M6UFJLO/;JZTREUIK9K*B^NNQR8[7+',D5L MLZ7MJNRTU%8K$0#89JOMMMQVZ^VWX(8K+K8$C6ONNBFNZVU[+;K[KOPQBOO MO/36:^^]^.:K[[[\]NOOOP`'+/# !!=L\,$()[EMAIL PROTECTED],`T0L\045VSQ MQ1AGK/'''?L\@ARSRR27;/+)**L\LHLM^SRRS#'+//,[EMAIL PROTECTED]:SS MSCSW[///0 M]-!$%VWTT4C?_\Q0TDPW[?334$M]=145VVUU M=K?767'?M [EMAIL PROTECTED] J-;?;9:*M]MILMTUU0F['+??=-=M]]UFPUVT0'CW[???@ N M-1ZAVR0RGQ?G/[EMAIL PROTECTED]PO'C%ETN^:=^[YUI-3G'CF$5]. M4.FG#X3Z`*JS7CGJKQ$^^NBQT[[Y[CGKOONO'^L2CWR[QXL[OKKQK?,] M^O'$VXZY\[U'+_WTU#O^^\?-KUX\\K0K+_SVQH=?_?CDEV\^W==[W'SJT'L_ M?.7!)]^][.?7;__]^%N=ON_SU\X\_/US7_BRE[\O /S9_L 'O/Z5;H#. MRYX`P3-'O.?][X()S* -VC !4+/?^_;7O$.!\'6NYVI(,@!E/(P1:Z\(6X MV]_,6 C#MKPAC;_E*',:(C#'OKPA_?3(1'2,0BG%V]#NB$I?(Q!L*L8E0 MC*(4J_?$*5KQBEB4'$(BYH NO+8 RC,=(QC*:\8QH3*,:U\C-KKQC7, MHQSG2,ZVO.,RC'O?(QS[Z\8^ [EMAIL PROTECTED]@D(A,I(7RA.O*1D(RD M)=)R4I:4I%;-TE-\G)3GKRDZ ,I2A'2I2?C*3B3.E*E?)RD4ZY96PC*4L M9TG+6@(%`*W,I2YWZ454OHZ7P RF,,]X`(#AIC(38E?E%93KSF:HLYK^. MUJ6K./S#SD-;?)34E*TU_4[*8XQZG;)+SG*8,)R_V2]UHO.=Z#0G/SSG M648,* !:P6'=W917Z*$5M?].V[EMAIL PROTECTED],^4)T([EMAIL PROTECTED]C0=OH MSXEZ$: 7W2-!]V51AGI4E_\*_@\'I%YY1G=KJ9[8L%*6LA2CQVQI2E^* MT8ZM)\JCE*6TI3:KISH_KJJ$B'6LJ0$O6]DRJ4LT8SJ;]*FXKE4P1C3 MC%HUHSZE*E2Q:M.GAH^1+J4?J2:.2M9M*36M$RA4KN(4ITY%Z5N]*M; MRC6K.VJ,*+[]:_+/$)`4M.M=H3`0A@:TWM=6\NG6F/F6L7J?:T\:Z ME%MDY.N]_$K8SC;2K)ZM)F(1]C$*O:J5\UJ7!N+USJ=JNMI2PQC1G:VEX2 MM+:M)@,0RU2]7C:U=/WM6UOK5;K*]KAN'6X8-6LOSN;VN7S$+72=:=HRHE2F MP)[EMAIL PROTECTED]:5Y'2/]?GO-\JKWO7],+WR/RMY(,K= M]9VO?L\HW_WZ-Y'[EMAIL PROTECTED]@[EMAIL PROTECTED],/5Q ._C!$(ZPA+VEX JOL;\6 MSK-\SAHA[8D!T.L8A'3.)*8KC$*$ZQBE=\X0^;,(LPCK,!U!7Q1G;^,8X M!MO#=LSC'OOXQT .LI'3.0B_G(2$ZRDI?,Y8[^E0CK*4ITSE*EOYREC. MLI:WS.4N_G+8 ZSF,=,YC*;^QH3K.:U\SF-O\_),=PCK.M9:[EMAIL PROTECTED] MVM+RS.^^[EF6?NSH =-:).5K=(3O2-;RBOZT9#68 (F3E*4]H`C+:T MIB=M`(XY^FT$C+2H1\VT36L:TP.8]+X[DMEHR'_+,86/-/5+;^M9#,[6E M4:UJ;[%Z8Y^N':R!+;SCB8_8(,2ULI=M,UU7FM)`,FI9V
RE: [OT] A question long not raised....
making him a very enthusiastic flashee, rather than a flasher -Original Message- From: Denis Avdic [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:24 AM To: Struts Users Mailing List Subject: Re: [OT] A question long not raised No, no, he admits LOVING flashers. A fetish interest in development, looks like. ;) James Mitchell wrote: So.you admit to being a flasher? -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - Original Message - From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:35 AM Subject: RE: A question long not raised Hahahaha. I should've figured. Don't mind me, any time I see flash I get interested. I'm somewhat new to it, but I love the stuff. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:24 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Don't encourage him, he'll soon be describing a Struts app with a Flash front-end that controls a tap specially designed for quickest Fosters delivery... ;) -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:18 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised I'm curious, what exactly do you want to do? (How do you want them to be integrated?) - Keith www.buffalo.edu/~kkamholz -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:17 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Yeah, and how do you get Flash integrated into Struts? Mark -Original Message- From: Fred So [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:54 AM To: [EMAIL PROTECTED] Subject: A question long not raised Hi All Just want to raise a question that does not seem to have been asked for a while When should we be expecting official release Struts 1.1? Hope we don't get the same automated response. Fred --- -- 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: Order Detail page with editable line items
ListUtils.lazyList of the commons-collections comes in handy here. Mix in a good dose of jstl and/or nested tags and it should suffice. Brandon Goodin -Original Message- From: Greg Blomqusit [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:20 AM To: [EMAIL PROTECTED] Subject: Order Detail page with editable line items I have a problem that I'm sure is quite common. However, I have not seen any decent examples of how this might be implemented using Struts, so any suggestions would be greatly appreciated. The problem is this: I have an order detail page that has a list of line items with editable data inside each line item. The user is allowed to select which product they're ordering and what quantity of that product per line item. I can figure out how to create an ActionForm bean that is able to convey the values to the JSP using a collection of line item beans inside the ActionForm. And, I can figure out how to code the JSP to output the values into the form elements using the logic:iterate tag. However, what I'm having trouble with is submitting the values back to the Action. How can Struts repopulate the collection inside the ActionForm? Or, if I should not be using a collection to represent the line items, how else should I do it? In the case of not using a collection to represent the line items, how do I get Struts taglib to populate the form elements in the JSP? I've attached a gif file that depicts the prototype of the screen I'm talking about, for those of you who are visual thinkers. Any help is appreciated! Thanks! - Greg Blomquist - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Order Detail page with editable line items
I wrote a very similar module last summer and still have the source. It may help, if you want it. Mark -Original Message- From: Greg Blomqusit [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 12:20 PM To: [EMAIL PROTECTED] Subject: Order Detail page with editable line items I have a problem that I'm sure is quite common. However, I have not seen any decent examples of how this might be implemented using Struts, so any suggestions would be greatly appreciated. The problem is this: I have an order detail page that has a list of line items with editable data inside each line item. The user is allowed to select which product they're ordering and what quantity of that product per line item. I can figure out how to create an ActionForm bean that is able to convey the values to the JSP using a collection of line item beans inside the ActionForm. And, I can figure out how to code the JSP to output the values into the form elements using the logic:iterate tag. However, what I'm having trouble with is submitting the values back to the Action. How can Struts repopulate the collection inside the ActionForm? Or, if I should not be using a collection to represent the line items, how else should I do it? In the case of not using a collection to represent the line items, how do I get Struts taglib to populate the form elements in the JSP? I've attached a gif file that depicts the prototype of the screen I'm talking about, for those of you who are visual thinkers. Any help is appreciated! Thanks! - Greg Blomquist - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Action Chaining - how to avoid?
You have to take that relationship on faith. Perhaps it's not the best example, but suffice it to say that I have many-to-many types of relationships in my data, and that the Forms are best segregated for re-use. It is highly inefficient for me to make a separate form for each combination of data relationship. Futhermore, there are many levels involved here. Distributions have Shipments, Shipments have Orders, Orders Have Items, Items have Tasks, Tasks have TaskDetails. Are you really suggesting I put all this in one Form? If I make a screen to query for TaskDetails which then uses the same jsp to display the results as the one that is linked to by the Task screen, then I must use this giant Form with mostly inconsequential fields, and add my TaskDetail query screen specifics to it, too. If you have a generic query result page then you need to supply it with a generic result bean to display the data. Your TaskDetailQueryForm object is handled by your TaskDetailQueyAction which then puts your generic result bean in the request and forwards to the result page. I don't see why you would need action chaining here. David Where does it end? My other options are to make a new jsp, or make a jsp with some really nasty scriptlet in it to handle different forms. Right? --- David Graham [EMAIL PROTECTED] wrote: There are, however, situations where the second screen really has nothing to do with the first. For example, an Order screen and an OrderItem screen. When navigating from Order to OrderItem, I should not go directly to OrderItem.jsp for two reasons. The OrderItemForm is unrelated to the OrderForm and should not be part of the OrderForm object. Given this, it *could* still be ok to go to OrderItem.jsp when it uses it's own Form object, but not if you need to pass through OrderItemAction to verify the user is logged in. The other options are action chaining from the OrderAction to the OrderItem mapping, or linking from the Order.jsp to the OrderItem mapping, both of which are considered bad. What else is there? Why is an order unrelated to its items? I would have one class called OrderForm that contained a List or array of all the items being ordered. One ActionForm object does not necessarily map to one HTML form. You can split up the view however you like but store all the data in one form object. David m --- David Graham [EMAIL PROTECTED] wrote: So if I understand what you're suggesting, I put multiple html forms into editPage.jsp, one of which maps to ConfirmEditAction. Not bad, although, what I have in this form now is a drop down for the user to specify what they intend to do. Sorry, I think the steps would actually be like this: GetEditPageAction -- editPage.jsp -- GetConfirmPageAction -- confirm.jsp -- SaveFormAction -- index.jsp Just use different submit buttons for different actions like Update and Delete. Your SaveFormAction will perform different operations based on which button they pressed. Also, if I want to use this single, generic, confirmation page in multiple places, which I do, I'll have to use scriptlet rather than the html:form tag to render the correct action attribute to take them back to the edit they came from, right? Then you will also need a generic SaveFormAction to save the data from your generic confirm page. You might look at using DispatchAction to use one action to route to different pages based on a request parameter. David m --- David Graham [EMAIL PROTECTED] wrote: If my need, for example, is to go from an Edit X screen, to a Confirm X deletion screen, how is this related to business logic, and how would I refactor? GetEditPageAction -- editPage.jsp -- ConfirmEditAction -- index.jsp David _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL
Re: Order Detail page with editable line items
This was exactly my solution to a similar problem and it works great. From: Brandon Goodin [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Thu, 29 May 2003 10:29:08 -0600 To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Order Detail page with editable line items ListUtils.lazyList of the commons-collections comes in handy here. Mix in a good dose of jstl and/or nested tags and it should suffice. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE:OT: Order Detail page with editable line items
Greg, What tool did you use to create the screen ? Marcos oliva -Original Message- From: Greg Blomqusit [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 9:20 AM To: [EMAIL PROTECTED] Subject: Order Detail page with editable line items I have a problem that I'm sure is quite common. However, I have not seen any decent examples of how this might be implemented using Struts, so any suggestions would be greatly appreciated. The problem is this: I have an order detail page that has a list of line items with editable data inside each line item. The user is allowed to select which product they're ordering and what quantity of that product per line item. I can figure out how to create an ActionForm bean that is able to convey the values to the JSP using a collection of line item beans inside the ActionForm. And, I can figure out how to code the JSP to output the values into the form elements using the logic:iterate tag. However, what I'm having trouble with is submitting the values back to the Action. How can Struts repopulate the collection inside the ActionForm? Or, if I should not be using a collection to represent the line items, how else should I do it? In the case of not using a collection to represent the line items, how do I get Struts taglib to populate the form elements in the JSP? I've attached a gif file that depicts the prototype of the screen I'm talking about, for those of you who are visual thinkers. Any help is appreciated! Thanks! - Greg Blomquist - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form validation over multiple pages
With a little further investigation I see that the page value does not get set in the validationForm using html:hidden approach as outlined below. Ie, this doen't work: html:hidden name=validateForm property=page value=1 / When I print out the value of the page field in the action, it is still set to zero. How do you set the page property? Also, this seems to imply the validator is VERY shaky over multiple pages. For example, the properties on my second page are marked as required, and they don't get validated in the first action (this seems to show that the page based validation is working), yet on the second page, the associated action tries to validate the page 1 properties!!! I believe the server side validation validates any page = the current page and the client side javascript just validates the current page. David Arrrg!! What's going on! Has anyone got this to work? Brian - Original Message - From: Brian McSweeney [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 2:42 PM Subject: Form validation over multiple pages Hi all, I'm almost there with using the validator over several pages with a single form. However I'm getting a strange little error. The first page is validating fine, and it doesn't seem to try to validate the info required on the second page - correct. However once I try to validate the second page, the javascript validates correctly, but the server side validation returns an error saying the first page's required field needs validating. I think it might be because I'm not sure how to pass the page parameter to the action. I've tried using a html:hidden tag. Anyway, snippets from the jsps, struts config and validation.xml file are included below. If someone could help me out I'd be very grateful. Thanks very much, Brian. My first jsp named validatestep1.jsp looks like: html:javascript formName=validateForm page=1/ html:form action=/secure/validateStep1.jspa onsubmit=return validateValidateForm(this); method=post html:hidden name=validateForm property=page value=1 / table trtdusername/td tdhtml:text name=validateForm property=userName //td /tr tr td colspan=2 align=center html:image border=0 page=/images/button_submit.gif/ /td /tr /table /html:form My second jsp named validatestep2.jsp looks like html:javascript formName=validateForm page=2/ html:form action=/secure/validateStep2.jspa onsubmit=return validateValidateForm(this); method=post html:hidden name=validateForm property=page value=2 / table tr tdcredit card with no spaces or dashes/td tdhtml:text name=validateForm property=creditCard //td /tr tr td colspan=2 align=center html:image border=0 page=/images/button_submit.gif/ /td /tr /table /html:form in my struts config I have action path=/secure/validateStep1 type=ValidateStep1Action name=validateForm scope=session input=/validatestep1.jsp unknown=false validate=true forward name=success path=/validatestep2.jsp redirect=false / and then action path=/secure/validateStep2 type=ValidateStep2Action name=validateForm scope=session input=/validatestep2.jsp unknown=false validate=true forward name=success path=/validated.jsp redirect=false / In my validation.xml file I have form name=validateForm field property=userName depends=required,minlength page=1 field property=creditCard depends=required,creditCard page=2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Who Has The Power?
Can we please remove [EMAIL PROTECTED] from Struts User List. His Database Disk Quota has been topped for some time now. Anybody else getting this message? Who has the power to take this guy off? --- Start of annoying message --- Your message Subject: RE: Order Detail page with editable line items was not delivered to: [EMAIL PROTECTED] because: Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota exceeded --- End of annoying message --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Who Has The Power?
I sent a message to infrastructure (hoping that's the right place) already. -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - Original Message - From: Brandon Goodin [EMAIL PROTECTED] To: Struts User List [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 12:38 PM Subject: Who Has The Power? Can we please remove [EMAIL PROTECTED] from Struts User List. His Database Disk Quota has been topped for some time now. Anybody else getting this message? Who has the power to take this guy off? --- Start of annoying message --- Your message Subject: RE: Order Detail page with editable line items was not delivered to: [EMAIL PROTECTED] because: Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota exceeded --- End of annoying message --- - 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: Who Has The Power?
+10! -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 12:39 PM To: Struts User List Subject: Who Has The Power? Can we please remove [EMAIL PROTECTED] from Struts User List. His Database Disk Quota has been topped for some time now. Anybody else getting this message? Who has the power to take this guy off? --- Start of annoying message --- Your message Subject: RE: Order Detail page with editable line items was not delivered to: [EMAIL PROTECTED] because: Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota exceeded --- End of annoying message --- - 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 text boxes
You can name the textboxes dynamically using the logic:iterate indexId=xxx attribute: logic:iterate name=myBean property=property index=index id=id html:text property=% out.println( index ) % value= / /logic:iterate In you Action class request.getParameterNames will return an array like names[ 0, 1, 2, ...] and you can access each field by the String name or element position. Mark -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:33 AM To: [EMAIL PROTECTED] Subject: RE: dynamic text boxes hello mark, but, i cant use html:text property=/ , becos i cant map them in the action form i want this property also be dynamic and also get the value in the action form, can be thro' request.getParameter... how can i override the struts behaviour of not checking the corresponding get/set method of the property while rendering the html:text. or is their anyway. TIA ---Original Message--- From: Struts Users Mailing mailto:[EMAIL PROTECTED] List Date: Thursday, May 29, 2003 08:52:09 PM To: 'Struts Users Mailing mailto:[EMAIL PROTECTED] List'; 'Nagendra Kumar O V mailto:[EMAIL PROTECTED] S' Subject: RE: dynamic text boxes Use logic:iterate to create the text boxes and request.getParamaterNames() in your Action. Mark -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:53 AM To: [EMAIL PROTECTED] Subject: dynamic text boxes hi, i need to display n number of textboxes on the jsp, the number which is known only at runtime. now how do i map those text boxes to the action form. i can't use a array , becos i need to retreive them with the unique id.. any ideas. TIA -nagi Nagendra Kumar O V S Member Technical Staff Ikigo India Private Ltd. 470-B, Road No. 36, Jubilee Hills, Hyderabad 500033 Contact(O): 23544671 Cell: 98482-41789 http://www.incredimail.com/redir.asp?ad_id=309 http://www.incredimail.com/redir.asp?ad_id=309lang=9 lang=9 IncrediMail - Email has finally evolved - http://www.incredimail.com/redir.asp?ad_id=309 http://www.incredimail.com/redir.asp?ad_id=309lang=9 lang=9 Click Here http://www.incredimail.com/redir.asp?ad_id=309lang=9 IncrediMail - Email has finally evolved - http://www.incredimail.com/redir.asp?ad_id=309lang=9 Click Here
RE: Order Detail page with editable line items
Numerous people have requested this, so I'll just send it to the list and hope it passes the censors. :-) For reference, see the view cart page at http://shop.t-mobile.com. Attached is the JSP. I'm looking for the Action class now Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:select tag
I'm new to Struts , can some one give me a good example of how to use html:select tag with options. Thanks Shriyan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:select tag
Take a look at the struts-example, there is a demonstration there. -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - Original Message - From: Shriyan Sanmuganathan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 12:59 PM Subject: html:select tag I'm new to Struts , can some one give me a good example of how to use html:select tag with options. Thanks Shriyan - 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: Who Has The Power?
Maybe we could email him and ask him to empty his mailbox? ;-) Steve Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota exceeded - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form validation over multiple pages
Hi there, I've been doing this exact thing the last couple of days and I have it working. My html:hidden tags looks like - html:hidden property=page value=1/ i.e. only difference is I don't explicitly specify the form name. My form is a DynaValidatorForm and a bug which i've seen from rc1 right up to the May 26 nightly so far means that I need to explicity define the page property on the form e.g. form-property name=page type=java.lang.Integer / Hope this helps, Paul C Brian McSweeney wrote: With a little further investigation I see that the page value does not get set in the validationForm using html:hidden approach as outlined below. Ie, this doen't work: html:hidden name=validateForm property=page value=1 / When I print out the value of the page field in the action, it is still set to zero. How do you set the page property? Also, this seems to imply the validator is VERY shaky over multiple pages. For example, the properties on my second page are marked as required, and they don't get validated in the first action (this seems to show that the page based validation is working), yet on the second page, the associated action tries to validate the page 1 properties!!! Arrrg!! What's going on! Has anyone got this to work? Brian - Original Message - From: Brian McSweeney [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 2:42 PM Subject: Form validation over multiple pages Hi all, I'm almost there with using the validator over several pages with a single form. However I'm getting a strange little error. The first page is validating fine, and it doesn't seem to try to validate the info required on the second page - correct. However once I try to validate the second page, the javascript validates correctly, but the server side validation returns an error saying the first page's required field needs validating. I think it might be because I'm not sure how to pass the page parameter to the action. I've tried using a html:hidden tag. Anyway, snippets from the jsps, struts config and validation.xml file are included below. If someone could help me out I'd be very grateful. Thanks very much, Brian. My first jsp named validatestep1.jsp looks like: html:javascript formName=validateForm page=1/ html:form action=/secure/validateStep1.jspa onsubmit=return validateValidateForm(this); method=post html:hidden name=validateForm property=page value=1 / table trtdusername/td tdhtml:text name=validateForm property=userName //td /tr tr td colspan=2 align=center html:image border=0 page=/images/button_submit.gif/ /td /tr /table /html:form My second jsp named validatestep2.jsp looks like html:javascript formName=validateForm page=2/ html:form action=/secure/validateStep2.jspa onsubmit=return validateValidateForm(this); method=post html:hidden name=validateForm property=page value=2 / table tr tdcredit card with no spaces or dashes/td tdhtml:text name=validateForm property=creditCard //td /tr tr td colspan=2 align=center html:image border=0 page=/images/button_submit.gif/ /td /tr /table /html:form in my struts config I have action path=/secure/validateStep1 type=ValidateStep1Action name=validateForm scope=session input=/validatestep1.jsp unknown=false validate=true forward name=success path=/validatestep2.jsp redirect=false / and then action path=/secure/validateStep2 type=ValidateStep2Action name=validateForm scope=session input=/validatestep2.jsp unknown=false validate=true forward name=success path=/validated.jsp redirect=false / In my validation.xml file I have form name=validateForm field property=userName depends=required,minlength page=1 field property=creditCard depends=required,creditCard page=2 - 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: html:select tag
Try this. http://bobcat.webappcabaret.net/ninsky/index.jsp I'd appreciate feedback if you find it useful (or not). Steve -Original Message- From: Shriyan Sanmuganathan [mailto:[EMAIL PROTECTED] Sent: May 29, 2003 9:59 AM To: [EMAIL PROTECTED] Subject: html:select tag I'm new to Struts , can some one give me a good example of how to use html:select tag with options. Thanks Shriyan - 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: Indexed Fields
It's been a while since I had this problem, but sometimes with 1.02 indexed properties you have to resort to scriptlets. You could try something like this (untested): logic:iterator indexId=id html:text property=indexdProperty[% request.getAttribute(id) %]/ /logic:iterate or maybe like this (also untested): logic:iterator indexId=id input text name=indexdProperty[% page.getAttribute(id) %] value=% request.getAttribute(indexdProperty[+page.getAttribute(id)+]) % / /logic:iterate or you could just upgrade to 1.1 bX. If your boss doesn't like using a beta, remind him that it's an open-source product and that the 1.02 release is no better in terms of 'support' than a well-tested beta... -JT -Original Message- From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 9:09 AM To: Struts Users Mailing List Subject: RE: Indexed Fields I think its available in struts 1.1 am using 1.0.2 is there a way out. -Original Message- From: Denis Avdic [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 9:33 PM To: Struts Users Mailing List Subject: Re: Indexed Fields http://jakarta.apache.org/struts/userGuide/struts-html.html#text look at indexed property. hth Denis Abhinav (Cognizant) wrote: How to dynamically generate indexed html fields as well as populate them from the form bean. I am unable to do both simultaneously. My fields will be generated by html:text property=indexdProperty[0]/ html:text property=indexdProperty[1]/ ... For this I use logic:iterator indexId=id html:text property=indexdProperty[bean:write name=id]/ /logic:iterate But the HTML output that it gives is this .. html:text property=indexdProperty[0] / html:text property=indexdProperty[1] / ... _ _ When instead of using iterator I use it like this (hardcoding indices) html:text property=indexdProperty[0] / html:text property=indexdProperty[1] / html:text property=indexdProperty[3] / ... i get output as input type=text name=indexdProperty[0] value=1 input type=text name=indexdProperty[0] value=2 input type=text name=indexdProperty[0] value=3 which is correct _ _ ANY HELP ON WHAT I AM TRYING TO DO Thanx. - --- ** Message from InterScan E-Mail VirusWall NT ** ** No virus found in attached file noname.htm No Virus detected in the attached file(s). * End of message *** - --- This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.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]
ActionForm and select multiple values
Help?! I have an action form with a collection as a member. The actionform has only getSelected and setSelected(selected is the member name of the collection) My web page has a multiple select list containing many values. When I submit (having several values selected) I expect the selected values(Strings) to be put into the collection of the ActionForm. But instead I get a root cause exception of java.lang.IllegalArgumentException: argument type mismatch. It seems it's trying to convert a String to a collection. thx, Henrik Bentel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
creating new DynaValidatorForm
I have a dynaValidatorForm that is linked to a class that I defined. form-bean name=associateForm type=com.nam.ui.form.AssociateForm form-property name=associateId type=java.lang.String initial=/ form-property name=dmzId type=java.lang.String initial=/ form-property name=firstName type=java.lang.String initial=/ form-property name=middleName type=java.lang.String initial=/ form-property name=lastName type=java.lang.String initial=/ /form-bean I'm trying to create a new instance of it as such: AssociateForm associate = new AssociateForm(); associate.initialize(aMapping); Unfortunately it doesn't seem to be picking up the form properties. I know this way of creating a new form works fine for ActionForms. Is there a way to do this for a DynaForm? Thanks, -Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTML:SELECT
Hi All, I am not able to get values in HTML:OPTIONS , I am adding values in my Session thru Controller , but not able to retrieve it in JSP form I put values in Session like this :- context.setAttribute(context.SESSION,OPTION,option); And try to retrieve values in JSP like this :- html:select property=status html:options collection=OPTION/ /html:select Am I doing something wrong , bcoz I am trying to figure this problem since long time , but no luck Can some body please tell me how to get values in HTML:OPTIONS when the values are added to Session thru Servlet. When I do this %System.out.println(request.getAttribute(OPTION)); % I can see all the values , but not with Struts tags Thanks in Advance Deepak This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: creating new DynaValidatorForm
Gin Chen wrote: I have a dynaValidatorForm that is linked to a class that I defined. I'm trying to create a new instance of it as such: AssociateForm associate = new AssociateForm(); associate.initialize(aMapping); Unfortunately it doesn't seem to be picking up the form properties. I know this way of creating a new form works fine for ActionForms. Is there a way to do this for a DynaForm? I had a similar problem and had not changed the 'extends' clause of the class in question. But what do you mean by not picking up the form properties? Dynamic forms don't have the traditional get/set methods, they have a Map instead. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
DynaActionForm cf. ActionForm
I understand I can subclass DynaActionForm and register this in the struts-config. I can then populate my class with dynamic methods for any properties I like with type conversion, again in the struts-config. I assume behind the scenes it is creating a new DynaClass sub class of my subclass and populating it with the attributes from the config-struts, and then producing a DynaBean instance in the same way an ActionForm instance is created? But, how do I make use of inheritance in a DAF as far as these attributes go? -- Mike W - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTML:SELECT
What is the error you are getting. Your message shows you placing a variable in session scope, and then using a scriptlet to display a variable in request scope... Here is some code I find helpful to better debug these situations: Put this at the bottom of a jsp / footer: !-- if(com.whatever.Class.DEBUG_REQUEST) out.println(com.whatever.Class.getDumpContents(request); -- public static String getDumpContents(HttpServletRequest request) { StringBuffer content = new StringBuffer(4096); content.append(dumpRequest(request)); content.append(dumpSession(request.getSession(false))); return content.toString(); } public static String dumpSession(HttpSession session) { StringBuffer buf = new StringBuffer(1024); buf.append(*(HttpSession)**\n); // Append non-attribute data here Enumeration enum = session.getAttributeNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(session.getAttribute(key)); buf.append(\\n); } buf.append(\n\n); return buf.toString(); } public static String dumpRequest(HttpServletRequest request) { StringBuffer buf = new StringBuffer(1024); buf.append(*(HttpRequest)**\n); // Append non-attribute data here buf.append(\nAttributes:\n); Enumeration enum = request.getAttributeNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(request.getAttribute(key)); buf.append(\\n); } buf.append(\nParameters:\n); enum = request.getParameterNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(request.getParameter(key)); buf.append(\\n); } buf.append(\nHeaders:\n); enum = request.getHeaderNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(request.getHeader(key)); buf.append(\\n); } buf.append(\n\n); return buf.toString(); } [EMAIL PROTECTED] wrote: Hi All, I am not able to get values in HTML:OPTIONS , I am adding values in my Session thru Controller , but not able to retrieve it in JSP form I put values in Session like this :- context.setAttribute(context.SESSION,OPTION,option); And try to retrieve values in JSP like this :- html:select property=status html:options collection=OPTION/ /html:select Am I doing something wrong , bcoz I am trying to figure this problem since long time , but no luck Can some body please tell me how to get values in HTML:OPTIONS when the values are added to Session thru Servlet. When I do this %System.out.println(request.getAttribute(OPTION)); % I can see all the values , but not with Struts tags Thanks in Advance Deepak This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] A question long not raised....
Actually, if by flasher you mean one who creates flash sites/movies, I would consider myself a flasher. I'm sensing some hostility toward us! I forget, why is that again? ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 12:20 PM To: 'Struts Users Mailing List' Subject: RE: [OT] A question long not raised making him a very enthusiastic flashee, rather than a flasher -Original Message- From: Denis Avdic [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:24 AM To: Struts Users Mailing List Subject: Re: [OT] A question long not raised No, no, he admits LOVING flashers. A fetish interest in development, looks like. ;) James Mitchell wrote: So.you admit to being a flasher? -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - Original Message - From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:35 AM Subject: RE: A question long not raised Hahahaha. I should've figured. Don't mind me, any time I see flash I get interested. I'm somewhat new to it, but I love the stuff. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:24 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Don't encourage him, he'll soon be describing a Struts app with a Flash front-end that controls a tap specially designed for quickest Fosters delivery... ;) -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:18 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised I'm curious, what exactly do you want to do? (How do you want them to be integrated?) - Keith www.buffalo.edu/~kkamholz -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:17 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Yeah, and how do you get Flash integrated into Struts? Mark -Original Message- From: Fred So [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:54 AM To: [EMAIL PROTECTED] Subject: A question long not raised Hi All Just want to raise a question that does not seem to have been asked for a while When should we be expecting official release Struts 1.1? Hope we don't get the same automated response. Fred --- -- 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: HTML:SELECT
Hi Josh, I need to print all the values which I have added in the Session to be in my HTML:OPTIONS How can I do that ? Deepak -Original Message- From: Josh McCulloch [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 1:43 PM To: Struts Users Mailing List Subject: Re: HTML:SELECT What is the error you are getting. Your message shows you placing a variable in session scope, and then using a scriptlet to display a variable in request scope... Here is some code I find helpful to better debug these situations: Put this at the bottom of a jsp / footer: !-- if(com.whatever.Class.DEBUG_REQUEST) out.println(com.whatever.Class.getDumpContents(request); -- public static String getDumpContents(HttpServletRequest request) { StringBuffer content = new StringBuffer(4096); content.append(dumpRequest(request)); content.append(dumpSession(request.getSession(false))); return content.toString(); } public static String dumpSession(HttpSession session) { StringBuffer buf = new StringBuffer(1024); buf.append(*(HttpSession)**\n); // Append non-attribute data here Enumeration enum = session.getAttributeNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(session.getAttribute(key)); buf.append(\\n); } buf.append(\n\n); return buf.toString(); } public static String dumpRequest(HttpServletRequest request) { StringBuffer buf = new StringBuffer(1024); buf.append(*(HttpRequest)**\n); // Append non-attribute data here buf.append(\nAttributes:\n); Enumeration enum = request.getAttributeNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(request.getAttribute(key)); buf.append(\\n); } buf.append(\nParameters:\n); enum = request.getParameterNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(request.getParameter(key)); buf.append(\\n); } buf.append(\nHeaders:\n); enum = request.getHeaderNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(request.getHeader(key)); buf.append(\\n); } buf.append(\n\n); return buf.toString(); } [EMAIL PROTECTED] wrote: Hi All, I am not able to get values in HTML:OPTIONS , I am adding values in my Session thru Controller , but not able to retrieve it in JSP form I put values in Session like this :- context.setAttribute(context.SESSION,OPTION,option); And try to retrieve values in JSP like this :- html:select property=status html:options collection=OPTION/ /html:select Am I doing something wrong , bcoz I am trying to figure this problem since long time , but no luck Can some body please tell me how to get values in HTML:OPTIONS when the values are added to Session thru Servlet. When I do this %System.out.println(request.getAttribute(OPTION)); % I can see all the values , but not with Struts tags Thanks in Advance Deepak This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTML:SELECT
Give the code I gave you a shot. Then view the page source, and at the bottom of the page will be a dump of the http request (and session). This lets you view what variable names / keys are available in the different scopes, and with Collections, should output [val1, val2, val3]. This is VERY helpful for debugging, it beats %= request.getAttribute(XXX) % What type of variable is OPTION. Is it a Collection, Map, Array? Is it in session or request scope? What is the error you are getting (if any?). If page is loaded, what HTML source is displayed when you view source around the select in question? Check and see if there is a OPTION variable in multiple variable scopes. I'm not sure of the precedence order, but maybe a request/session scope variable exist, one of which is empty? - Josh [EMAIL PROTECTED] wrote: Hi Josh, I need to print all the values which I have added in the Session to be in my HTML:OPTIONS How can I do that ? Deepak -Original Message- From: Josh McCulloch [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 1:43 PM To: Struts Users Mailing List Subject: Re: HTML:SELECT What is the error you are getting. Your message shows you placing a variable in session scope, and then using a scriptlet to display a variable in request scope... Here is some code I find helpful to better debug these situations: Put this at the bottom of a jsp / footer: !-- if(com.whatever.Class.DEBUG_REQUEST) out.println(com.whatever.Class.getDumpContents(request); -- public static String getDumpContents(HttpServletRequest request) { StringBuffer content = new StringBuffer(4096); content.append(dumpRequest(request)); content.append(dumpSession(request.getSession(false))); return content.toString(); } public static String dumpSession(HttpSession session) { StringBuffer buf = new StringBuffer(1024); buf.append(*(HttpSession)**\n); // Append non-attribute data here Enumeration enum = session.getAttributeNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(session.getAttribute(key)); buf.append(\\n); } buf.append(\n\n); return buf.toString(); } public static String dumpRequest(HttpServletRequest request) { StringBuffer buf = new StringBuffer(1024); buf.append(*(HttpRequest)**\n); // Append non-attribute data here buf.append(\nAttributes:\n); Enumeration enum = request.getAttributeNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(request.getAttribute(key)); buf.append(\\n); } buf.append(\nParameters:\n); enum = request.getParameterNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(request.getParameter(key)); buf.append(\\n); } buf.append(\nHeaders:\n); enum = request.getHeaderNames(); while (enum.hasMoreElements()) { String key = (String)enum.nextElement(); buf.append(key); buf.append(=\); buf.append(request.getHeader(key)); buf.append(\\n); } buf.append(\n\n); return buf.toString(); } [EMAIL PROTECTED] wrote: Hi All, I am not able to get values in HTML:OPTIONS , I am adding values in my Session thru Controller , but not able to retrieve it in JSP form I put values in Session like this :- context.setAttribute(context.SESSION,OPTION,option); And try to retrieve values in JSP like this :- html:select property=status html:options collection=OPTION/ /html:select Am I doing something wrong , bcoz I am trying to figure this problem since long time , but no luck Can some body please tell me how to get values in HTML:OPTIONS when the values are added to Session thru Servlet. When I do this %System.out.println(request.getAttribute(OPTION)); % I can see all the values , but not with Struts tags Thanks in Advance Deepak This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/
RE: creating new DynaValidatorForm
I get the following when I try to get a property from the form. ie associate.get(associateId) java.lang.NullPointerException at org.apache.struts.action.DynaActionForm.toString(DynaActionForm.java:511) Funny thing is that on the javadoc it says: java.lang.IllegalArgumentException - if there is no property of the specified name java.lang.NullPointerException - if the type specified for the property is invalid So looks like the property was picked up okay but the type is invalid?? I dont see how that could be as I have everything declared as Strings. form-bean name=associateForm type=com.nielsenmedia.nam.ui.form.AssociateForm form-property name=associateId type=java.lang.String initial=/ form-property name=dmzId type=java.lang.String initial=/ form-property name=firstName type=java.lang.String initial=/ form-property name=middleName type=java.lang.String initial=/ form-property name=lastName type=java.lang.String initial=/ form-property name=businessEntityId type=java.lang.String initial=/ form-property name=productID type=java.lang.String initial=/ form-property name=productFlag type=java.lang.String initial=N/ form-property name=notificationFlag type=java.lang.String initial=N/ form-property name=statusInd type=java.lang.String initial=/ /form-bean Btw, my class is defined as such: public class AssociateForm extends DynaValidatorForm Did you find a way around your problem? -Tim -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 1:42 PM To: 'Struts Users Mailing List' Subject: RE: creating new DynaValidatorForm Gin Chen wrote: I have a dynaValidatorForm that is linked to a class that I defined. I'm trying to create a new instance of it as such: AssociateForm associate = new AssociateForm(); associate.initialize(aMapping); Unfortunately it doesn't seem to be picking up the form properties. I know this way of creating a new form works fine for ActionForms. Is there a way to do this for a DynaForm? I had a similar problem and had not changed the 'extends' clause of the class in question. But what do you mean by not picking up the form properties? Dynamic forms don't have the traditional get/set methods, they have a Map instead. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Action Chaining - how to avoid?
My jsps currently assume use of the form specified in the mapping from html:form action=mapping. I suppose it's not a problem to always include the name property in my tags, and assign that the generic form bean name. It's a little bothersome though that the action writer needs to know what kind of object to create where for each local forward, and that pulling the data from the model is now duplicated in this action and in the generic form. My current design forwards with the UID of the data as a request parameter, the form is created for me, I populate it from the model in the reset method, then the other request paramters are populated for me, just like when the generic form is submitted. Seems a lot more straightforward, and I can still use a local forward to keep the navigation contained in the struts-config, and avoid form population anomalies, if I do this: forward = new ActionForward((mapping.findForward(forward)).getName()+?UID=+UID,true); Is there really a problem with this approach?My jsps currently assume use of the form specified in the mapping from html:form action=mapping. I suppose it's not a problem to always include the name property in my tags, and assign that the generic form bean name. It's a little bothersome though that the action writer needs to know what kind of object to create where for each local forward, and that pulling the data from the model is now duplicated in this action and in the generic form. My current design forwards with the UID of the data as a request parameter, the form is created for me, I populate it from the model in the reset method, then the other request parameters are populated for me, just like when the generic form is submitted. Seems a lot more straightforward, and I can still use a local forward to keep the navigation contained in the struts-config, and avoid form population anomalies, if I do this: forward = new ActionForward((mapping.findForward(forward)).getName()+?UID=+UID,true); Are there problems I need to be aware of, with this approach? --- David Graham [EMAIL PROTECTED] wrote: You have to take that relationship on faith. Perhaps it's not the best example, but suffice it to say that I have many-to-many types of relationships in my data, and that the Forms are best segregated for re-use. It is highly inefficient for me to make a separate form for each combination of data relationship. Futhermore, there are many levels involved here. Distributions have Shipments, Shipments have Orders, Orders Have Items, Items have Tasks, Tasks have TaskDetails. Are you really suggesting I put all this in one Form? If I make a screen to query for TaskDetails which then uses the same jsp to display the results as the one that is linked to by the Task screen, then I must use this giant Form with mostly inconsequential fields, and add my TaskDetail query screen specifics to it, too. If you have a generic query result page then you need to supply it with a generic result bean to display the data. Your TaskDetailQueryForm object is handled by your TaskDetailQueyAction which then puts your generic result bean in the request and forwards to the result page. I don't see why you would need action chaining here. David Where does it end? My other options are to make a new jsp, or make a jsp with some really nasty scriptlet in it to handle different forms. Right? --- David Graham [EMAIL PROTECTED] wrote: There are, however, situations where the second screen really has nothing to do with the first. For example, an Order screen and an OrderItem screen. When navigating from Order to OrderItem, I should not go directly to OrderItem.jsp for two reasons. The OrderItemForm is unrelated to the OrderForm and should not be part of the OrderForm object. Given this, it *could* still be ok to go to OrderItem.jsp when it uses it's own Form object, but not if you need to pass through OrderItemAction to verify the user is logged in. The other options are action chaining from the OrderAction to the OrderItem mapping, or linking from the Order.jsp to the OrderItem mapping, both of which are considered bad. What else is there? Why is an order unrelated to its items? I would have one class called OrderForm that contained a List or array of all the items being ordered. One ActionForm object does not necessarily map to one HTML form. You can split up the view however you like but store all the data in one form object. David m --- David Graham [EMAIL PROTECTED] wrote: So if I understand what you're suggesting, I put multiple html forms into editPage.jsp, one of which maps to ConfirmEditAction. Not bad, although, what I have in this form now is a drop down for the user to specify what they intend to do. Sorry, I think
Re: [OT] A question long not raised....
LOL..no hostility. I was joking. Actually, I own a copy of Flash 5 myself and have messed around with it a little bit. Even recommended it to a consultant here who's son is getting more involved in the internet. I gave him one of my books and a demo version of the software. The whole making fun of flash thing started way back when some guy by the name of Micael oge mac something tried to convince us that struts was causing his issues/errors with using Flash for his front end. I tried to explain basic HTTP concepts and how it had nothing to do with struts, but all I got back was personal insults and lies. It was actually quite amusing. Sorry you missed it. -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - Original Message - From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 1:45 PM Subject: RE: [OT] A question long not raised Actually, if by flasher you mean one who creates flash sites/movies, I would consider myself a flasher. I'm sensing some hostility toward us! I forget, why is that again? ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 12:20 PM To: 'Struts Users Mailing List' Subject: RE: [OT] A question long not raised making him a very enthusiastic flashee, rather than a flasher -Original Message- From: Denis Avdic [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:24 AM To: Struts Users Mailing List Subject: Re: [OT] A question long not raised No, no, he admits LOVING flashers. A fetish interest in development, looks like. ;) James Mitchell wrote: So.you admit to being a flasher? -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - Original Message - From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:35 AM Subject: RE: A question long not raised Hahahaha. I should've figured. Don't mind me, any time I see flash I get interested. I'm somewhat new to it, but I love the stuff. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:24 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Don't encourage him, he'll soon be describing a Struts app with a Flash front-end that controls a tap specially designed for quickest Fosters delivery... ;) -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:18 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised I'm curious, what exactly do you want to do? (How do you want them to be integrated?) - Keith www.buffalo.edu/~kkamholz -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:17 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Yeah, and how do you get Flash integrated into Struts? Mark -Original Message- From: Fred So [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:54 AM To: [EMAIL PROTECTED] Subject: A question long not raised Hi All Just want to raise a question that does not seem to have been asked for a while When should we be expecting official release Struts 1.1? Hope we don't get the same automated response. Fred --- -- 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: Order Detail page with editable line items
Can you elaborate? Or, point me to a decent example? Thanks Brandon (and Hunter). - Greg Brandon Goodin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ListUtils.lazyList of the commons-collections comes in handy here. Mix in a good dose of jstl and/or nested tags and it should suffice. Brandon Goodin -Original Message- From: Greg Blomqusit [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:20 AM To: [EMAIL PROTECTED] Subject: Order Detail page with editable line items I have a problem that I'm sure is quite common. However, I have not seen any decent examples of how this might be implemented using Struts, so any suggestions would be greatly appreciated. The problem is this: I have an order detail page that has a list of line items with editable data inside each line item. The user is allowed to select which product they're ordering and what quantity of that product per line item. I can figure out how to create an ActionForm bean that is able to convey the values to the JSP using a collection of line item beans inside the ActionForm. And, I can figure out how to code the JSP to output the values into the form elements using the logic:iterate tag. However, what I'm having trouble with is submitting the values back to the Action. How can Struts repopulate the collection inside the ActionForm? Or, if I should not be using a collection to represent the line items, how else should I do it? In the case of not using a collection to represent the line items, how do I get Struts taglib to populate the form elements in the JSP? I've attached a gif file that depicts the prototype of the screen I'm talking about, for those of you who are visual thinkers. Any help is appreciated! Thanks! - Greg Blomquist - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
test
test _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: creating new DynaValidatorForm
Did you have: Public AssociateForm() { super(); } -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 2:00 PM To: 'Struts Users Mailing List' Subject: RE: creating new DynaValidatorForm I get the following when I try to get a property from the form. ie associate.get(associateId) java.lang.NullPointerException at org.apache.struts.action.DynaActionForm.toString(DynaActionForm.java:511) Funny thing is that on the javadoc it says: java.lang.IllegalArgumentException - if there is no property of the specified name java.lang.NullPointerException - if the type specified for the property is invalid So looks like the property was picked up okay but the type is invalid?? I dont see how that could be as I have everything declared as Strings. form-bean name=associateForm type=com.nielsenmedia.nam.ui.form.AssociateForm form-property name=associateId type=java.lang.String initial=/ form-property name=dmzId type=java.lang.String initial=/ form-property name=firstName type=java.lang.String initial=/ form-property name=middleName type=java.lang.String initial=/ form-property name=lastName type=java.lang.String initial=/ form-property name=businessEntityId type=java.lang.String initial=/ form-property name=productID type=java.lang.String initial=/ form-property name=productFlag type=java.lang.String initial=N/ form-property name=notificationFlag type=java.lang.String initial=N/ form-property name=statusInd type=java.lang.String initial=/ /form-bean Btw, my class is defined as such: public class AssociateForm extends DynaValidatorForm Did you find a way around your problem? -Tim -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 1:42 PM To: 'Struts Users Mailing List' Subject: RE: creating new DynaValidatorForm Gin Chen wrote: I have a dynaValidatorForm that is linked to a class that I defined. I'm trying to create a new instance of it as such: AssociateForm associate = new AssociateForm(); associate.initialize(aMapping); Unfortunately it doesn't seem to be picking up the form properties. I know this way of creating a new form works fine for ActionForms. Is there a way to do this for a DynaForm? I had a similar problem and had not changed the 'extends' clause of the class in question. But what do you mean by not picking up the form properties? Dynamic forms don't have the traditional get/set methods, they have a Map instead. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management - 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]
FORM based Auth and Struts
Since the Archive is down this may be there already but... How do you have an action go to j_security_check and use struts? It adds the .do if I do action=j_security_check. In general, anyone using FORM based Auth and struts?
RE: FORM based Auth and Struts
yup don't use the struts tags for your login page. --m -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 12:59 PM To: [EMAIL PROTECTED] Subject: FORM based Auth and Struts Since the Archive is down this may be there already but... How do you have an action go to j_security_check and use struts? It adds the .do if I do action=j_security_check. In general, anyone using FORM based Auth and struts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] A question long not raised....
Oh, too bad I missed that. Well, I'll stand up for the non-misfit flashers of the world, we're not stupid! You just need the right tool for the job. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 2:01 PM To: Struts Users Mailing List Subject: Re: [OT] A question long not raised LOL..no hostility. I was joking. Actually, I own a copy of Flash 5 myself and have messed around with it a little bit. Even recommended it to a consultant here who's son is getting more involved in the internet. I gave him one of my books and a demo version of the software. The whole making fun of flash thing started way back when some guy by the name of Micael oge mac something tried to convince us that struts was causing his issues/errors with using Flash for his front end. I tried to explain basic HTTP concepts and how it had nothing to do with struts, but all I got back was personal insults and lies. It was actually quite amusing. Sorry you missed it. -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - Original Message - From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 1:45 PM Subject: RE: [OT] A question long not raised Actually, if by flasher you mean one who creates flash sites/movies, I would consider myself a flasher. I'm sensing some hostility toward us! I forget, why is that again? ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 12:20 PM To: 'Struts Users Mailing List' Subject: RE: [OT] A question long not raised making him a very enthusiastic flashee, rather than a flasher -Original Message- From: Denis Avdic [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:24 AM To: Struts Users Mailing List Subject: Re: [OT] A question long not raised No, no, he admits LOVING flashers. A fetish interest in development, looks like. ;) James Mitchell wrote: So.you admit to being a flasher? -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - Original Message - From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:35 AM Subject: RE: A question long not raised Hahahaha. I should've figured. Don't mind me, any time I see flash I get interested. I'm somewhat new to it, but I love the stuff. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:24 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Don't encourage him, he'll soon be describing a Struts app with a Flash front-end that controls a tap specially designed for quickest Fosters delivery... ;) -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:18 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised I'm curious, what exactly do you want to do? (How do you want them to be integrated?) - Keith www.buffalo.edu/~kkamholz -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:17 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised Yeah, and how do you get Flash integrated into Struts? Mark -Original Message- From: Fred So [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:54 AM To: [EMAIL PROTECTED] Subject: A question long not raised Hi All Just want to raise a question that does not seem to have been asked for a while When should we be expecting official release Struts 1.1? Hope we don't get the same automated response. Fred --- -- 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:
RE: FORM based Auth and Struts
I am (with Struts 1.1 and WLS) and haven't had any issues. Although the login form I use doesn't use the Struts form tag, but just an HTML FORM tag directly. -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 1:59 PM To: [EMAIL PROTECTED] Subject: FORM based Auth and Struts Since the Archive is down this may be there already but... How do you have an action go to j_security_check and use struts? It adds the .do if I do action=j_security_check. In general, anyone using FORM based Auth and struts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
test
test _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: test
Tired of spam? Get advanced junk mail protection with MSN 8. Thanks, but no thanks. -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - Original Message - From: Mick Knutson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 2:13 PM Subject: test test _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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: FORM based Auth and Struts
Mike Jasnowski wrote: I am (with Struts 1.1 and WLS) and haven't had any issues. Although the login form I use doesn't use the Struts form tag, but just an HTML FORM tag directly. After doing this, is the best way to get the username with getUserPrincipal().getName()? Just curious how others prefer to access the username from their application code (as opposed to the container's own code). Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]