Re: bean:message WITH bean:write ?!?
Jimmy, I would be interested in seeing your extension of the bean:message tag. Thanks, Mark -- Science is what we understand well enough to explain to a computer. Art is everything else. -- Donald Knuth On Jan 19, 2004, at 2:34 AM, VAN BROECK Jimmy wrote: Hi, for the moment there isn't a solution for that in Struts. You can two things with bean:message. That is provide a static key or define a dynmic key. but you cannot combine the two. What i have done is to extend the bean:message tag to implement this kind of functionality. Let me know if you are interested in the code. Its just a quick hack of the struts code. Greetings Jimmy -Original Message- From: Oliver Thiel [mailto:[EMAIL PROTECTED] Sent: maandag 19 januari 2004 9:14 To: [EMAIL PROTECTED] Subject: bean:message WITH bean:write ?!? Hi all, In my HashMap (which defines the form) I save something like that: setField(username, oliver); Know I want to the output of the message to be dynamic. For a static version this works fine: bean:message key=form.username/ For a dynamic version I think I need some thing like that: bean:message key=form.bean:write name=field property=key // But the code above does not work! Has anyone an idea? THX Oliver STRICTLY PERSONAL AND CONFIDENTIAL This message may contain confidential and proprietary material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies. Ce Message est uniquement destiné aux destinataires indiqués et peut contenir des informations confidentielles. Si vous n'êtes pas le destinataire, vous ne devez pas révéler le contenu de ce message ou en prendre copie. Si vous avez reçu ce message par erreur, veuillez en informer l'expéditeur, ou La Poste immédiatement, avant de le supprimer. Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan vertrouwelijke informatie bevatten. Als u niet de ontvanger bent, dan mag u de inhoud van dit bericht niet bekendmaken noch kopiëren. Als u dit bericht per vergissing heeft ontvangen, gelieve er de afzender of De Post onmiddellijk van op de hoogte te brengen en het bericht vervolgens te verwijderen.
[REPOST] Bean:message arg0 substitution problem
Good Afternoon Everyone, I am trying to complete the following code: logic:greaterThan name=FSCalcOutputForm property=foodstampAllotmentUnformatted value=0 bean:message key=fs.calc.result.eligible arg0=bean:write name=FSCalcOutputForm property=foodstampAllotment/ / /logic:greaterThan logic:equal name=FSCalcOutputForm property=foodstampAllotmentUnformatted value=0 bean:message key=fs.calc.result.notEligible/ /logic:equal The substitution at arg0 isn't working. How do I do delimit the bean:write inside my bean:message tag? Thanks Mark -- Black holes are where God divided by zero. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [REPOST] Bean:message arg0 substitution problem
Hmmm... I was using the bean:message to display the text I needed on the result page, and the bean:write to insert the value calculated and in need of display. Since we are trying to i18n the application I need to extract the message from the application resources file, and the value I need is in the form bean. How else would I display these two together? Mark On Jan 16, 2004, at 4:37 PM, Richard Hightower wrote: i don't think you need bean:write. did you know bean:message not only takes a key but the trinity of attributes... i define the trininty of attributes as name, property, scope thus, bean:message name=simpleForm property=widgetDescription scope=session/ the above would call simpleForm.getWidgetDescription(), which would return a key into the resouce bundle. just prep the form before you got to the page by going to an action that loads the form page. Rick Hightower Developer Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm Struts/J2EE consulting -- http://www.arc-mind.com/consulting.htm#StrutsMentoring -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 11:38 AM To: [EMAIL PROTECTED] Subject: [REPOST] Bean:message arg0 substitution problem Good Afternoon Everyone, I am trying to complete the following code: logic:greaterThan name=FSCalcOutputForm property=foodstampAllotmentUnformatted value=0 bean:message key=fs.calc.result.eligible arg0=bean:write name=FSCalcOutputForm property=foodstampAllotment/ / /logic:greaterThan logic:equal name=FSCalcOutputForm property=foodstampAllotmentUnformatted value=0 bean:message key=fs.calc.result.notEligible/ /logic:equal The substitution at arg0 isn't working. How do I do delimit the bean:write inside my bean:message tag? Thanks Mark -- Black holes are where God divided by zero. - 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]
Bean:write arg0 substitution problem
Good Morning All, I am trying to complete the following code: logic:greaterThan name=FSCalcOutputForm property=foodstampAllotmentUnformatted value=0 bean:message key=fs.calc.result.eligible arg0=bean:write name=FSCalcOutputForm property=foodstampAllotment/ / /logic:greaterThan logic:equal name=FSCalcOutputForm property=foodstampAllotmentUnformatted value=0 bean:message key=fs.calc.result.notEligible/ /logic:equal The substitution at arg0 isn't working. How do I do delimit the bean:write inside my bean:message tag? Thanks Mark -- SELECT * FROM userTBL where clue 0 ; 0 rows returned - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ApplicationResources.properties
Good Afternoon, My application works fine until I create a WAR file out of it and deploy it to Tomat. Once there I get a Missing message key for index.title error. This error doesn't occur when running the development copy of the application. I have made sure that the ApplicationResources.properties file is the correct place in the WAR file. I'm sure that I have overlooked something obvious, and I would be grateful for someone pointing it out. Thanks Mark -- The Difference Between Smart and Stupid is the Depth of the Hole You Make When You Screw Up. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Struts Tip] # 10 Use Struts JSP Tags to create dynamic JavaScripts
That's because the actual link is: http://husted.com/struts/tips/010.htm (Note the .htm, not .html extension.) /\/\ark - Original Message - From: Rob Leland [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 8:14 AM Subject: Re: [Struts Tip] # 10 Use Struts JSP Tags to create dynamic JavaScripts Ted Husted wrote: For more see http://husted.com/struts/tips/010.html Ted, I got File not found 404 when clicking on this link. -Rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: RE : [FRIDAY] Official DTD Special Offer
If it is labeled off topic ( [OT] ) or Friday ( [FRIDAY] ) then why are you reading it? Methinks you have to many control issues. /\/\ark - Original Message - From: Day, Michael-IBM/TT [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, August 30, 2002 8:33 AM Subject: RE: RE : [FRIDAY] Official DTD Special Offer I agree. I'm getting rather pissed at the sheer number of off-topic messages. I regret that I have to post this message to complain because it is (again) another off-topic message. Everyone, please take this elsewhere. I'm sure there's a comedian list for you to annoy. -Original Message- From: Michael [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 8:58 AM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE : [FRIDAY] Official DTD Special Offer This is why I really dislike mailing lists. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 2:51 PM To: Struts Users Mailing List Subject: RE: [FRIDAY] Official DTD Special Offer And wait! theres EVEN MORE! Yes thats right! More!!! We're crazy crazy crazy here at struts-user! If you order in the next ten minutes you will also receive free of charge this incredible Tension Sheet (tm). Feeling stressed? Feeling depressed? Just pop the bubbles in your Tension Sheet(tm)! Ahhh. Doesnt that feel much better? (http://www.clubi.ie/lestat/graphics/dwarf/red355.jpg) -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 20:26 To: 'Struts Users Mailing List' Subject: RE: [FRIDAY] Official DTD Special Offer But wait! You also get this incredibly versatile carving fork! -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 2:25 AM No, but if you order now you can get a free(*) limited edition set of matching steak knives. (*)Not including $699.95 shipping and handling charges -Original Message- From: Daniel Joshua [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 14:15 James, Thanks. This will help greatly, especially since today is friday for me... BTW, does this come with a matching XML Schema or Dictionary ? Regards, Daniel -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: RE : [FRIDAY] Official DTD Special Offer
+1 - Original Message - From: Eddie Bush [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 30, 2002 9:01 AM Subject: Re: RE : [FRIDAY] Official DTD Special Offer You do realize you can setup a message filter to have these messages removed at the server, right? You wouldn't ever even see them in your mailbox ... Regards, Eddie Day, Michael-IBM/TT wrote: I agree. I'm getting rather pissed at the sheer number of off-topic messages. I regret that I have to post this message to complain because it is (again) another off-topic message. Everyone, please take this elsewhere. I'm sure there's a comedian list for you to annoy. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: RE : [FRIDAY] Official DTD Special Offer
Send mail to [EMAIL PROTECTED], reply to the response you get. End of off topic e-mails on struts user list. /\/\ark - Original Message - From: Michael [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, August 30, 2002 9:11 AM Subject: RE : RE : [FRIDAY] Official DTD Special Offer Do you really think it's reasonable for me to reconfigure my mail program to filter messages every time someone decides to create a new off topic subject (OT, FRIDAY, BEER, etc.)? Wouldn't it be much easier to limit emails to relevant topics? I'm on several mailing lists and none of them contain blatant off topic totally useless emails like this one does. Really it's totally immature and instead of justifying it by telling hundreds of people to reconfigure their mail client I think it should stop! -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 3:59 PM To: Struts Users Mailing List Subject: Re: RE : [FRIDAY] Official DTD Special Offer Filter the messages with [FRIDAY] in the topic and delete them from the server. You could do the same thing with [OT] if you wanted. Most reasonable mail clients give you this ability. Regards, Eddie Michael wrote: This is why I really dislike mailing lists. -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [CRAP] Humor on Struts-User
My Friday is now complete. /\/\ark - Original Message - From: Galbreath, Mark [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, August 30, 2002 9:35 AM Subject: RE : [CRAP] Humor on Struts-User I think you need to get laid, dude. -Original Message- From: Michael [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 9:51 AM Because you're filling up my mailbox with them. Just think about it, if 1,000 people each take 5 seconds to read your email, the that's over one hour of lost productivity. Do you enjoy wasting everyone's time? The purpose of the email is to discuss struts. Offtopic is one thing but the comedy is totally out of line. Also when filling up everyone's mailbox with the crap, people will miss important struts-related emails. Michael -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 3:40 PM If it is labeled off topic ( [OT] ) or Friday ( [FRIDAY] ) then why are you reading it? Methinks you have to many control issues. /\/\ark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: RE : [FRIDAY] Official DTD Special Offer
I guess it was a bit harsh. I just was tired of someone creating more OT messages complaining about all the OT messages and wanting the OT messages to stop. I guess I should have paused before hitting send on the unsubscribe message. Apologies all around. For myself, these OT threads are a great way to blow off some stress from the week. Also, it is nice to see that I'm not the only one out here who gets fed up with this work from time to time and expresses that emotion through sometimes biting humor. Work hard, play hard. /\/\ark - Original Message - From: Eddie Bush [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 30, 2002 9:49 AM Subject: Re: RE : [FRIDAY] Official DTD Special Offer That's a bit harsh. I don't see any reason for such an action. I do feel we should all act like responsible adults though. If something offends you, either ignore it or remove it (or let your email client do it for you, so you don't have to waste any more time than absolutely necessary) Mark Nichols wrote: Send mail to [EMAIL PROTECTED], reply to the response you get. End of off topic e-mails on struts user list. /\/\ark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [VOTE] Should this list discontinue it's long,treasured heritage of relaxed fridays?
( ) Yes ( X ) No - Original Message - From: Eddie Bush [EMAIL PROTECTED] To: Struts Users List [EMAIL PROTECTED] Sent: Friday, August 30, 2002 9:47 AM Subject: [VOTE] Should this list discontinue it's long,treasured heritage of relaxed fridays? Do you feel this list should discontinue it's long heritage of relaxed fridays? ( ) Yes ( ) No --- Rather than being a jerk, as some people don't mind to do, I thought it would be very much in the spirit of your community to let everyone have a say. Cast your vote! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [Proposal] Thread Topic Identification (was [BS] Are we gettingo ff the topic)
+1 /\/\ark - Original Message - From: Jerry Jalenak [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 8:28 AM Subject: [Proposal] Thread Topic Identification (was [BS] Are we gettingo ff the topic) comment Still chuckling about the Veggie Tales thread from yesterday. Thanks to everyone for lightening up the afternoon! /comment James Mitchell had a suggestion yesterday about using a [topic] prefix in the subject line that can be used to filter threads. I know that I would use this as I don't really care about how to configure WebSphere or JBuilder (no offense intended) to use Struts. James had a pretty good start on a list (see below); I vote that we ALL begin trying to use these and expand on them as needed. It would be nice to be able to limit the number of e-mails that we all have to deal with from this list (and all of the others) that we belong to. James List: [DynaForms] [Validator] [Logging] [DTD] [EJB] [i18n] [IDE] - maybe include the name of the IDE? i.e [IDE-JBuilder] [JSTL] [Modules] or [Sub-Apps] [Struts-Example] [Tiles] [SOAP] [Taglib] [UML] I would like to add [Struts-Config] [Tiles-Config] [Validator-Config] etc. or is this getting to fine-grained? Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at (800)388-4675. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [BEER] Is it Friday Yet?
Heureusement je travaille pour le gouvernement, où le travail après 5 et des week-ends même n'a pas été découvert encore. /\/\ark - Original Message - From: James Mitchell [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 2:28 PM Subject: RE: [BEER] Is it Friday Yet? Mais vous reviendrez samedi à la finition ce que vous avez négligé. James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 3:18 PM To: 'Struts Users Mailing List' Subject: RE: [BEER] Is it Friday Yet? Je pars du bureau tot pour obtenir une biere. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 2:21 PM Can we have a [Mark] tag added? +1 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: digest unsubscribe prob
Did you reply to the mail your request generated, following the directions contained in that e-mail? /mark -Original Message- From: slickdev [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 1:25 PM To: Struts Users Mailing List Subject: digest unsubscribe prob yeah, i know: there's no problem with unsubscribing from the struts user digest. well, not for me. i've sent an unsubscribe request at least 10 times, and still get all that crap. does anyone know the solution, other than changing my email address? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: eclipse and Struts
-Original Message- From: Will Jaynes [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 6:27 AM To: Struts Users Mailing List Subject: Re: eclipse and Struts There is no capability in Eclipse to step through the JSP page code itself. You can do this in IBM's WSAD, which is built on Eclipse, but WSAD costs. FWIW, there is a trial edition of WSAD that you can download and use for free. I've had it running since January now with no troubles at all. You *can* step through the classes that are compiled from the JSPs, but who would want to. I agree with you that debugging forms, actions, and business layer classes is enough. If I have to debug a JSP then I've probably made it too complicated. Andrew Cunningham wrote: ... strangely, I never seem to get jsps to debug properly in eclipse (can anybody help?), but since I'm relying on taglibs all the time, I don't find I need to step through jsp anyway - placing breakpoints in actions and forms is just fine for me A /mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSP Completion for Struts tags using NetBeans?
WebSphere Studio Application Developer 4.x does this very nicely. /mark -Original Message- From: Scott Linford [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 5:09 PM To: Struts Users Mailing List Subject: RE: JSP Completion for Struts tags using NetBeans? That works for .java coding but not for JSPs. I want to be able to type: bean:parameter and press Ctrl+Space and get a list of valid attributes. - Scott -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 3:53 PM To: Struts Users Mailing List Subject: Re: JSP Completion for Struts tags using NetBeans? I have found that it works well. If you right click on the struts.jar and update the parser database it should do what you need. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Arrgh!!! my property has been cursed and my bean doesnt like the field on my farm , uhh form I mean
+1 /mark -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 20, 2002 5:36 AM To: Struts Users Mailing List Subject: RE: Arrgh!!! my property has been cursed and my bean doesnt like the field on my farm , uhh form I mean Old McAndrew put down the chainsaw and wiped the sweat from his brow. It had been a hard ten minutes work, but his bean fields were now clear of illegal getters. Had it been anyone other than old man McClanahan he would have given them a good scolding for talking such obvious nonsense. Cant grow extra getters indeed! Whos going to know anyway!. Indeed he hadnt heard such nonsense since some young upstart named Bill had come out from the city talking about using .nets as though he was some kind of fisherman! But he knew that Mc Clanahan had been around long enough to know what he was talking about and had decided to give his advice a go. Nevertheless it was with somewhat of a cynical eye that he looked over his bean fields before retiring for the night. Next morning old Mc Andrew got up and went to see how his fields were getting() along. Well b* me with a barge pole! he exclaimed. That McClanahan fellow was right after all!. Yep. Sure enough, his setHeaderTransformation() field was being called! cheers Craig! -Andrew -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 00:20 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Arrgh!!! my property has been cursed and my bean doesnt like the field on my farm , uhh form I mean On Thu, 18 Jul 2002, Andrew Hill wrote: Date: Thu, 18 Jul 2002 14:29:22 +0800 From: Andrew Hill [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Arrgh!!! my property has been cursed and my bean doesnt like the field on my farm , uhh form I mean Ah well now, its funny you should be mentioning that. As it happens Old Mc Andrew did once have a method to set the field with a boolean, but changed it to take a string instead as he is quite set in his ways and has never liked booleans (as he learnt from a young age that providing a certain true or false answer instead of 'maybe' tends to create a few too many expectations in folk not wise to the ways of software development...). He has looked at his ActionForm code to try and determine is there is a second setter somewhere (he even looked behind the grassyKnoll() method) but found nothing. Old McAndrew has been known to occasionally miss things that are right under his nose however, and will continue to look. There ARE however multiple getter methods, or to be precise there is a method getHeaderTransform() and an isHeaderTransform() the latter of the two returning a boolean. (The other similar fields also have these but they still work.) Despite their protestations to the contrary, having two getters like this is also a violation of the rules (the JavaBeans rules, that is). It would also be improper to have a getter that returns one type, and a setter that accepts a different one. So where are these rules? you might ask. How can I avoid such faux pas in the future? http://java.sun.com/products/javabeans/ has a link that gets you to the JavaBeans specification, which includes a whole chapter on how well mannered JavaBeans properties expose themselves to the world. Craig -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 14:05 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Arrgh!!! my property has been cursed and my bean doesnt like the field on my farm , uhh form I mean On Thu, 18 Jul 2002, Andrew Hill wrote: Date: Thu, 18 Jul 2002 13:23:02 +0800 From: Andrew Hill [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Arrgh!!! my property has been cursed and my bean doesnt like the field on my farm , uhh form I mean Or to be a little bit more specific... Old Mc Andrew had a form and on that form he had a field with the name headerTransformation but naughty Mr Struts simply would NOT call the method setHeaderTransformation in his ActionForm even though it had not been a problem yesterday! I hope old McAndrew isn't trying to have his cake and eat it too, by having more than one mistress, err, setHeaderTransformation() method that takes a different type of argument :-). Such things violate the JavaBeans specification's design patterns, and will cause the JVM to think your property doesn't have any setter method at all. No matter what Andrew looked at everything still seemed fine but it just
RE: Display tag library/font size in tables?
-Original Message- From: Dave Hodson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 8:36 PM To: Struts Users Mailing List Subject: Display tag library/font size in tables? I'm using the display tag library (cool thing) and would like to change the font size of the output. As far as I can tell, the taglib doesn't support anything like the font tag and wrapping font around the display:column tag does nothing (it is ignored). Example display:table width=85% name=logsList scope=session pagesize=15 requestURI=http://localhost:8080/something.jsp; display:column property=createDate title=Date/Time width=15%/ /display:table What are my options? I'd like to produce output like the snippet below: td width=15%font face=Verdana, helvetica color=#003366 size=1strongDate/Time/strong/font/td Maybe I'm missing the point, but isn't this something that should be handled by your CSS? Dave --- Dave Hodson MessageCast, inc. Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.messagecast.net /mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Good/Bad Practices
I prefer the more granular approach, with many actions and JSPs over a more complex and generalized approach. In my case I find that having single-function actions and JSPs leads to easier coding today (and therefore easier maintenance tomorrow). I can also split the work up over more developers, rather than single threading development through one complex action. Our intranet application has about 60 separate 'screens', each with its own action. Maybe overkill, but for a first attempt at Struts this pattern has made life easier by far. /mark -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 9:32 AM To: Struts (E-mail) Subject: Good/Bad Practices Hey everyone, I've been trying to get in the habit of using good struts programming practices, (without making things too hard on myself). I have another question for anyone that could give me some input on it. I'm working on a data entry application, and the user can make three different types of entries. Let's call them A, B, and C. They each have some form fields in common with each other, but each has a couple unique fields. To add an entry, I have a separate JSP for each, and different action mappings for each (that all refer back to the same action class). This works fine. Now I'm working on an edit function for the entries. I have a link within a logic:iterate tag that displays a link to an edit form. I tried using one action and one JSP for the edits, but it gets very messy trying to allow for the different types of entries. Is it a bad idea to use lots of different action mappings and different JSP's for each operation for each type of entry, even though they are similar and all have to perform very similar operations? Or should I go to great lengths to make very complex generalized actions and JSP's that can handle any type of entry? I'm not sure how understandable my question is, or if it's a stupid question, but I want to get this figured out before I spend too much more time on the 'edit' functionality. I'm having some issues, and I keep redesigning the operation, so I'ld appreciate some input before I rewrite this shiznat too many more times. Thanks a lot everyone! ~ Keith http://www.buffalo.edu/~kkamholz -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[OT] Keystrokes
I know it's not Friday (here) (yet) but I wanted to share this mindless bit of fluff. Go to http://dolphin.bitdevil.com and download the client there and install it on your PC. It counts the keystrokes you make and ranks you against the other dolphin users. Some parts of web application development are surprisingly keystroke intensive while others not so much. Just for grins I have created a team where like minded Struts users can combine their keystrokes. Once you have an account established, join 'teamStruts' (password: jakarta). The leading team has 486 members and over 315 million keystrokes to their name. Are Struts users up to the challenge? Join up and find out... /mark dolphin account: zan5hin -- -- mark h nichols -- principal consultant -- par-ti-tion Software -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Newbie Struts requirements question
For what it's worth I'm running (slow, but running) Tomcat 4.x, struts 1.1b1 on an old IBM ThinkPad with a 166MHz CPU and 80 MB RAM. It has Windows ME installed. Also I've got Eclipse 2.0 with EasyStruts loaded and running here too. Of course just as soon as some one is nice enough to gift me a new 2.4 GHz laptop I'll pitch this one into the nearest lake. =) /mark -Original Message- From: Ballard [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 1:57 PM To: [EMAIL PROTECTED] Subject: Newbie Struts requirements question I've got a question. I want to run this Struts sample app at home but I'm running Windows ME. I've downloaded the Apache web server but it isn't really supported on ME. I don't want to make this exercise any harder than it needs to be, so I'm thinking of upgrading my OS to Windows XP Professional. What I can't figure out from the Microsoft site is: Can I run services on Windows XP Professional? Or can I run them on the regular XP? Would I be better of upgrading to Windows 2000 Professional? I know I can run services on that. I know the missus wouldn't be pleased if I switched our PC to Linux so it's either 2000 Pro or some kind of XP. (I think). You don't happen to have any insight here, do you? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What means Beta Status in Jakarta Projekts?
You need to search the mail list archives at one of these two address for 1.1b1... http://nogoya.apache.org/eyebrowse/SummarizeList?listId=42 or http://www.mail-archive.com/struts-user@jakarta.apache.org/ /mark -Original Message- From: Roland Berger [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 14, 2002 2:18 PM To: Struts Mailinglist Subject: What means Beta Status in Jakarta Projekts? Hi We have to decide wheter we are going to use struts 1.1b1 or 1.02. Since struts 1.1 has some new cool features, we would like to use it. But it is only a beta version. So, what are the risks of using sturts 1.1b1? Thanks Roland Roland Berger Softwareentwickler __ aloba ag - Softwareentwicklung + Consulting - Lyssachstrasse 15 CH-3400 Burgdorf Tel : +41 34 424 17 70 Fax : +41 34 424 17 74 Mobil : +41 79 709 56 89 Internet: www.aloba.ch __ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Altering Configuration from command line
-Original Message- From: Brian Kirsch [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 2:18 PM To: Struts Users Mailing List Subject: Altering Configuration from command line Does any one know of a way to reload the struts-config.xml from a command line interface with out rebooting the servlet container. Have you looked into the reload action that comes with the Struts configuration file? I know it is there under 1.0.2, and I've made great use of it during development to refresh the container after making config file changes. Can new features be added to a struts application ( action mappings, form beans, and jsp templates ) through an automated command line script? Brian /mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: squeaky wheel with struts experience needs a job
I have wondered about the possibility of there being an announcement mailing list for Struts, and this posting gives me an opportunity to ask my question. In a previous development lifetime I used Forte TOOL and was active with the Forte mail list. There was the primary questions list and a separate announce list for job postings, availability postings, and product release notices. What are the chances of having such a list for Struts? /mark -Original Message- From: Dominique Plante [mailto:[EMAIL PROTECTED]] Sent: Monday, July 08, 2002 6:52 PM To: [EMAIL PROTECTED] Subject: OT: squeaky wheel with struts experience needs a job I have recently heard the saying: The squeaky wheel gets the grease, so I thought I would take a minute to be a squeaky wheel. I am familiar bunch of technologies and projects in addition to Struts, including JSP, Java, and HTML, ANT, cactus, and Tomcat. I am also very interested and have experience with refactoring, design patterns, and performance optimization. Please contact me at [EMAIL PROTECTED] to send me details about a potential opportunity. I am in the East San Francisco Bay area. Now I wait for the grease ;) Sorry about the off topic post. Dominique -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mission critical application that use Struts Frame work.
http://jakarta.apache.org/struts/resources/powered.html -Original Message- From: Farshad Ahvazi [mailto:[EMAIL PROTECTED]] Sent: Monday, July 08, 2002 2:03 PM To: [EMAIL PROTECTED] Subject: mission critical application that use Struts Frame work. Hi All I am new on Struts world. and I am gathering some info about that. can you guys tell me some mission critical application that use Struts Frame work. Thanks in advance Farshad -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: multibox bug (Help needed)
You haven't given us enough information to solve your problem for you. I suggest you reexamine the action that precedes this JSP to make sure that the proper bean is placed in the proper context under the proper name. If you want help I also suggest that you read the How to Ask Questions link listed on the Struts site. /mark -Original Message- From: Toni Nehme [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 12:28 PM To: [EMAIL PROTECTED] Subject: Re: multibox bug (Help needed) Does anybody know how to fix this bug? Thanks. From: Toni Nehme [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: multibox bug Date: Tue, 02 Jul 2002 11:35:24 -0400 Hi, I am using multibox in a Logic:iterator see below: logic:iterate id=fruits name=FRUITS scope=session property=fruits type=ch.thales.model.Fruit tr tdhtml:multibox property=selectedItems/td tdbean:write name=fruits property=fruitName//td /html:multibox /tr /logic:iterate Where fruits is ArrayList of Beans Fruit in my form. Please, let me know what cause this error? javax.servlet.jsp.JspException: Cannot find bean under name org.apache.struts.taglib.html.BEAN at org.apache.struts.taglib.html.MultiboxTag.doEndTag(MultiboxTag.java:256) at jsp_servlet.__displayonecheckboxselection._jspService(__displayonecheckboxs election.java:28 at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.jav a:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.jav a:304) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.jav a:200) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherIm pl.java:215) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:9 72) at org.apache.struts.action.RequestProcessor.processActionForward(RequestProce ssor.java:408) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269 ) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.jav a:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.jav a:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletC ontext.java:2456 at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.jav a:2039) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) Thanks. _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: how to stop struts logging
I think what you want is: servlet [...snip...] init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namedetail/param-name param-value0/param-value /init-param [...snip...] /servlet /mark -Original Message- From: Virga [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 12:39 PM To: Struts Users Mailing List Subject: how to stop struts logging how to stop struts action from flooding my server console ? i have tried to edit my web.xml and modify load-on-startup1/load-on-startup to load-on-startup-1/load-on-startup but the Action servlet doesn't work, off course ! because action servlet has to be initialized every time the server starts. my point is how to stop struts action from logging too much. i got 5 projects using struts framework, each time it starts i got log messages flooding out my console ! any ideas? VR -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: multiple parameters
In the form-bean: [...snip...] private HashMap parameters = null; [...snip...] /** * Gets the parameters * @return Returns a HashMap */ public HashMap getParameters() { HashMap parameterMap = new HashMap() ; parameterMap.put((String)id,this.getId()) ; parameterMap.put((String)lastName,this.getLastName()) ; parameterMap.put((String)firstName,this.getFirstName()) ; return parameterMap ; } /** * Sets the parameters * @param parameters The parameters to set */ public void setParameters(HashMap parameters) { this.parameters = parameters; } And in your JSP: logic:iterate [...] [...snip...] html:link page=x name=results property=parameters bean:write name=results property=clientName/ /html:link [..snip...] /logic:iterate hth, /mark - Original Message - From: hans albers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 24, 2002 8:43 AM Subject: multiple parameters Hi, there the question has been asked often, but I didn't find a full example. I have a List with names,ids and description, they are shown in a table. They must alle be passed in an html:link Passing only 1 Parameter works, all the three? I know that this works with java.util.map but how??? logic:iterate id=iter name=lsitForm property=pressen type=StatusValueBean scope=request bean:write name=iter property=name/ bean:write name=iter property=nameid/ bean:write name=iter property=descript/ html:link href=uebersicht.do paramId=id paramName=iter paramProperty=id /logic:iterate Would you be so kind and write me the code i need in the Action which is executed before the jsp which shows the list? Tanks in advance Hans _ Downloaden Sie MSN Explorer kostenlos unter http://explorer.msn.de/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Popup window, parent update, best practice
- Original Message - From: Roland Chan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 24, 2002 12:02 PM Subject: Popup window, parent update, best practice Hello, I've searched the archives and have come up with some different approaches but none really match my requirements. Let's say I have Window 'A' which contains a list of clients. There is a button to add a new client which pops up Window 'B'. The user can enter new client information in Window 'B' and click submit which will call the appropriate dispatched action and add the user. What I'm looking for is the best practice to send back information to Window 'A' after a successful addition in Window 'B'. For example, I'd like to have the first and last names, and a couple of other pieces of information sent back and added to the client list in Window 'A'. Why can't the success mapping for Action B (window B's action) simply be the action that resulted in window A. In other words if LoadAction causes the list of client to appear in Window 'A', then the success mapping for B would be LoadAction. Sure, it will re-query the data store, but you get the updated client list in window A after B completes. /mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: pager taglib !!
- Original Message - From: [EMAIL PROTECTED] anyone using pager tag library from JSPTags.com , i have a few doubts regarding the same, could some help me out I have used, and continue to use the JSPTags pager tag to great success. What are your concerns? /mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Is there a way to reverse engineer a WAR file for a struts app?
- Original Message - From: [EMAIL PROTECTED] In other words is there a way to 'reverse engineer' a WAR file into an application that can be debugged? Did you include the source when you originally created your WAR file? If so I think you should be able to load the WAR into WSAD and then set breakpoints/debug it. Or I could be wrong. /mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Error messages: other colo of input field label
- Original Message - From: hans albers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 14, 2002 2:09 AM Subject: Error messages: other colo of input field label Hi there, the error message at the top of the page about the fields which are wrong is nice, but is it possible to change the label color of the input fields where the user made a wrong input, i've seen this on many pages in the internet, can i do this with struts? Cool idea. Hmm. You'd have to write your own custom tag to display the labels on the form. This tag should be *aware* of the ActionErrors stack. When you put a new, field-specific, error on the stack use the properties attribute so the error is tied to that specific field. The error-aware label tag would examine the stack for any errors matching the current label (via the properties attribute) and if one was found it could alter the font color of the label. Works in my head, but I haven't a clue what it would take in the real world to implement. If you do get something like this to work, I'd love to see it. /mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Iterate Help
You want the JSPTags pager tag. Get it here: http://jsptags.com/tags/navigation/pager/ /mark - Original Message - From: Olikkadavath, Bobby [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, June 14, 2002 2:27 PM Subject: Iterate Help I have to write a iterate tag with features of setting up a max limit of items that can be displayed from a collection. for ex there is a collection of Employees (employeeList). The Employee class has getName and getAddress. Now out of the 50 or more employees I want to display 10 employee names at a time with a next and previous link. If the person clicks on one of the listed employee names, I have to display the full address. Can anyone suggest me how to do this with the iterate tag. Or can anyone direct me to a tutorial or help that goes in depth into the iterate tag. All the help I found on the web were very basic in nature. Thanks Bobby -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: serially numbered table
- Original Message - I want to have a serially numbered table. I have a formbean which contains an array of objects which I'm going to display. I don't want to save the numberes in these objects. So in the formbean I wrote a getId() and a setId(int i) method. The formbean holds a counter which gets increased when calling getId(). nested:form action=/saveCalendarSetting.do scope=session table nested:iterate property=cnCalendarListVMI tr td CLASS=Innercellcenter NOWRAPbean:write name=CalendarListForm scope=session property=id//td td CLASS=Innercells NOWRAPnested:write property=strOU_dc //td td CLASS=Innercells NOWRAPnested:write property=strCU_dc //td td CLASS=Innercellcenter NOWRAPnested:checkbox property=mbChanged value=on//td /tr /nested:iterate /table html:submit property=submitButton value=submit / /nested:form Is there a better method doing this? I don't know about the nested tag, but the logic:iterate tag has an indexId parameter, which already holds the relative positioning within the collection. nested:iterate property=cnCalendarListVMI indexId=serialNumber [...] -- -- Hanel Matthias Fachinformatiker (Anwendungsentwicklung) in Ausbildung Logistik World GmbH Fon: +49-841-9014-300 Marie-Curie-Strasse 6 Fax: +49-841-9014-302 D- 85055 Ingolstadtmailto:[EMAIL PROTECTED] -- -- /mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DispatchAction with Image buttons
Is anyone successfully using the DispatchAction with html:image tags??? We have this Dispatch Action: package dhs.vcm.vis.action.finishReason; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.actions.DispatchAction; import dhs.vcm.vis.business.FinishVisitReasonBO; import dhs.vcm.vis.db.exception.Fin_Vst_Rsn_Exception; import dhs.vcm.vis.entity.Constants; import dhs.vcm.vis.entity.FinishVisitReason; import dhs.vcm.vis.form.finishReason.FinishReasonDeleteForm; import dhs.vcm.vis.form.finishReason.FinishReasonUpdateForm; import dhs.vcm.vis.form.finishReason.FinishVisitReasonFormConverter; /** * Implementation of strongDispatchAction/strong that manages the * insert, update, and delete functionality for the Finish Reason Maintenance page. * * @author Mark H. Nichols * @version $Revision: 1.0 $ $Date: 2001/02/25 9:08:00 $ */ public final class DispatcherAction extends DispatchAction { // - Public Methods /** * Process the specified HTTP request, and create the corresponding HTTP * response (or forward to another web component that will create it). * Return an codeActionForward/code instance describing where and how * control should be forwarded, or codenull/code if the response has * already been completed. * * @param mapping The ActionMapping used to select this instance * @param actionForm The optional ActionForm bean for this request (if any) * @param request The HTTP request we are processing * @param response The HTTP response we are creating * * @exception IOException if an input/output error occurs * @exception ServletException if a servlet exception occurs */ public ActionForward delete( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // create a new delete form to hold the data for the delete jsp FinishReasonDeleteForm deleteForm = new FinishReasonDeleteForm() ; deleteForm.setShortDescription( (String)request.getParameter(shortDescription) ) ; request.setAttribute(Constants.FINISH_REASON_DELETE_KEY, deleteForm ) ; // Forward control to the specified success URI return (mapping.findForward(delete)); } public ActionForward insert( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // Forward control to the specified success URI return (mapping.findForward(insert)); } public ActionForward update( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // get the row to update using the selected reason Id FinishReasonUpdateForm updateForm = new FinishReasonUpdateForm() ; FinishVisitReasonBO reasonBO = new FinishVisitReasonBO() ; FinishVisitReason reasonForUpdate = new FinishVisitReason() ; try { reasonForUpdate = reasonBO.getByReasonID(Integer.valueOf(request.getParameter(finishReasonID )).intValue()) ; }catch (Fin_Vst_Rsn_Exception fvre) { System.out.println( Finish Visit Reason Exception caught: + fvre.getMessage()) ; } FinishVisitReasonFormConverter.toFinishReasonForm(reasonForUpdate, updateForm) ; updateForm.debug() ; request.setAttribute(Constants.FINISH_REASON_UPDATE_KEY, updateForm ) ; // Forward control to the specified success URI return (mapping.findForward(update)); } } That works with this JSP using image buttons !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN !-- Some standard includes -- %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/dhs-html.tld prefix=dhshtml % %@ taglib uri=/WEB-INF/pager-taglib.tld prefix=pg % html:html head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 titlebean:message key=finishReasonTest.title//title html:base/ LINK REL=STYLESHEET TYPE=text/css HREF=../theme/dhs.css script language=javascript type=text/javascript src=../js/chromeless_30.js/script script language=javascript type=text/javascript src=../js/mainScripts.js/script script language=javascript type=text/javascript src=../js/coolbuttons.js/script /head body bgcolor=#ff html:form action=FinishReason/Dispatcher method=post !-- define a page using the pager tag -- pg:pager maxIndexPages=10 maxPageItems=10 !-- use these variables to keep from getting warnings, but don't render them on the resulting page. -- !-- %= pagerPageNumber % -- !-- %= pagerOffset % -- !-- %=
Re: [WANTED] Struts Editor for Jakarta Newsletter
How about a quick rehash of the newbie thread that generated the most activity on the list. The write up might lead nicely into a new entry on the FAQ page. /mark - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, June 07, 2002 2:11 PM Subject: Re: [WANTED] Struts Editor for Jakarta Newsletter Let me knock one of these out and see what it would look like. Who has strong feelings about what was covered in the last month that should be in here? I'll use my judgement too, but would be interested in other people's insight as well. Kevin Ted Husted [EMAIL PROTECTED] on 06/06/2002 06:17:27 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Kevin Bedell/Systems/USHO/SunLife) Subject: [WANTED] Struts Editor for Jakarta Newsletter http://www.mail-archive.com/general%40jakarta.apache.org/msg05603.html I can keep the News and Status page updated from week to week, but if it would be great if someone wanted to do a monthly highlight of what's happening on the lists. -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications with Struts -- Tel: +1 585 737-3463 -- Web: http://husted.com/about/services -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- - This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. -- - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: No getter error
Sri, In my recent nested iterate problem (see thread: Multiple Parameters from Multiple Links) the 'no getter in bean' error was caused when I inadvertently used the session attribute name rather than the id value on the iterate statement. Look closely at the text of the error message and make sure that the bean referenced in the message is really the bean you want. HTH, /mark - Original Message - From: Sri Sankaran [EMAIL PROTECTED] To: Struts-User (E-mail) [EMAIL PROTECTED] Sent: Friday, June 07, 2002 3:09 PM Subject: No getter error What would cause a 'no getter in bean' error when the said form bean _does_ indeed have a (public) getter for the named property? Sri -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Not a trivial, but got very much meaning
- Original Message - From: Yaman Kumar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, June 10, 2002 9:02 AM Subject: Not a trivial, but got very much meaning Hi, Can any one help me out in enabling reset and submit functionality to image buttons? Many people suggested me to follow struts-example but i did not find any there. TIA yaman html:link page=/do/FinishReason/Dispatcher?method=delete html:img page=/images/java/general/Delete16.gif width=16 height=16 alt= border=0/ /html:link -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: help me! javascript with taglib
- Original Message - From: cello [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 9:34 AM Subject: help me! javascript with taglib Can I use a taglib for my function javascript??? Actually I use taglib html:rewrite for url... have you some ideas??? http://www.tuxedo.org/~esr/faqs/smart-questions.html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mapping-input
I want to validate my input, if there are any errors, i get a server-error mapping-input is null. How to do values come in the mapping-input, in my mapping-path, there is the correct path? hans Without seeing your code it is hard to say for sure what the problem maybe. However, I think the message is saying your action mapping is missing the input parameter which specifies the input JSP. When you get validation errors the controller would like to display them on the input page for you. Without that mapping it can't. Or I could be wrong. /mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Request Form Bean Resets UnExpectedly
Not an answer, per se, but an alternate method of doing pagination via a tag library. http://jsptags.com/tags/navigation/pager/ /mark - Original Message - From: Toni Nehme [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 11:51 AM Subject: Request Form Bean Resets UnExpectedly All, We are having problem with a particular action. The same action is called by both Next 10 and Previous 10 submits. If we have 4 pages and you are at Page 3 of 4, and we toggle the screen to a new URL that contains the same JSP/Action. Next button works and goes to 4 but Previous button always goes back to page 1. Is this a bug in Struts or some issue with JSP that escaped our tests. Please let us know if anyone encounter this issue or if you have a remedie. Thanks Toni ** PREVIOUS BEGIN ** FORM action=SearchValSummaries.do method=POST input type=submit value=Previous 10 input type=hidden name=newStartingIndex value=%= valuationSummariesResponse.getStartingIndex() - C.MAX_ROWS_PER_PAGE % input type=hidden name=itemsPerPage value=%= C.MAX_ROWS_PER_PAGE % input type=hidden name=month value=%= valuationSummariesRequest.getMonth() % input type=hidden name=year value=%= valuationSummariesRequest.getYear() % input type=hidden name=productName value=%= valuationSummariesRequest.getProductName() % /FORM ** PREVIOUS ENDS ** ** NEXT BEGIN ** FORM action=SearchValSummaries.do method=POST input type=submit value=Next 10 input type=hidden name=newStartingIndex value=%= valuationSummariesResponse.getStartingIndex() + C.MAX_ROWS_PER_PAGE % input type=hidden name=itemsPerPage value=%= C.MAX_ROWS_PER_PAGE % input type=hidden name=month value=%= valuationSummariesRequest.getMonth() % input type=hidden name=year value=%= valuationSummariesRequest.getYear() % input type=hidden name=productName value=%= valuationSummariesRequest.getProductName() % /FORM ** NEXT ENDS ** _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: WebSphere Studio Application Developer and Struts
We are developing with WebSphere Studio Application Developer Trial Edition (WSADTE?) and Struts 1.0.2 with no difficulties. What kind of problems are you having? /mark - Original Message - From: Olikkadavath, Bobby [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, June 07, 2002 11:18 AM Subject: RE: WebSphere Studio Application Developer and Struts We started on a project by initially trying to use WSAD 4.0 Trial with STRUTS. We got into a lot of issues..Then we tried to download the patch..but the patch does not work for a trial edition (I think ie the reason because the patch we could not install). Anyways we downloaded the WebSpehre4.03 version and it is working fine with STRUTS. Bobby -Original Message- From: John Menke [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 7:41 AM To: struts-user Subject: WebSphere Studio Application Developer and Struts Is anyone using Struts with Wespshere Studio? I have downloaded the trial edition of Studio and it contains the websphere v4.0 Test environment. There are posts on the list saying you need Websphere 4.03... can I patch the Test environment? john -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Design question
From: Yaman Kumar [EMAIL PROTECTED] I have a AformBean in A.jsp and the page action is actionA, actionA processed all AfromBean values and got some dynamic data from Database,Now i would like to keep this data in BFormBean and the actionA forwards the output to B.jsp how to keep the data in BformBean and how to populate them in B.jsp?. This is just a stab in the dark, but I think you need to create an instance of BFormBean in actionA, and populate it yourself with whatever data it holds. Then, before forwarding to B.jsp, you need to set BFormBean in the appropriate scope (session or request) as defined in your struts-config.xml file. mark n. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Where do I find documentation an examples about the new tags in the struts-config 1.1 dtd?
- Original Message - From: Dirk Storck [EMAIL PROTECTED] To: Struts User (E-Mail) [EMAIL PROTECTED] Sent: Thursday, June 06, 2002 4:00 AM Subject: Where do I find documentation an examples about the new tags in the struts-config 1.1 dtd? http://jakarta.apache.org/struts/userGuide/release-notes-1.1-b1.html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Multiple pararmeters from multiple links
All - I have a JSP which displays multiple rows of data. Each row starts with a link based on the first column of data. The subsequent action class needs to be passed the first three column values as parameters, like so: /do/NameSearch/Details?id=123456?lastName=Smythe?firstName=Jon In reading the archives I have come up with this: [...snip...] !-- a bean to hold the id:name pair needed for the request this page will submit -- jsp:usebean id=parms class=java.util.HashMap scope=page / [...snip...] logic:iterate id=results name=nameSearchResults scope=session type=dhs.vcm.vis.form.nameSearch.ResultsForm !-- %= results % -- pg:item dhshtml:row oddColor=#cddbeb evenColor=#ff evenStyleClass=text oddStyleClass=text td bgcolor=FFnbsp;/td td !-- populate the HashMap -- % parms.put(id,request.getParameter(id)) ; parms.put(lastName,request.getParameter(lastName)) ; parms.put(firstName,request.getParameter(firstName)) ; % html:link page=/do/NameSearch/Details name=parms scope=page !-- clientName is a combination of two other attributes, lastName firstName -- bean:write name=results property=clientName/ /html:link /td tdbean:write name=results property=address//td tdbean:write name=results property=city//td tdbean:write name=results property=state//td tdbean:write name=results property=clientBirthdate//td tdbean:write name=results property=ssn//td /dhshtml:row /pg:item /logic:iterate [...snip...] However, when I compile this I get the following message: JavaCompile: parms cannot be resolved. How do I get the parms reference inside my iterate loop to resove? TIA, mark n. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Multiple pararmeters from multiple links
- Original Message - From: Sri Sankaran [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, June 06, 2002 10:10 AM Subject: RE: Multiple pararmeters from multiple links While I don't have an answer to your question, I have an alternative. An alternate strategy would be to include a getParameters() method in the object you are iterating over. This method should have access to the current values of the id, firstName and lastName. It would return a Map containing the necessary parameters. Your html:link would then be: html:link page=/do/NameSearch/Details name=nameSearchResults property=parameters/ Much nicer indeed! Thank you Hope this helped. Yes it did! mark n. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Console basic doubt !!!!!!!
Amen - Original Message - From: Chappell, Simon P [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 7:51 AM Subject: RE: Struts Console basic doubt !!! Mark's point is a good one. But then I've never run the console under Windows. When I tried to run it under Linux, I had to comment out 90% (really!) of the provided shell script. Perhaps the Windows version equally as broken out of the box? And why is someone writing software, who can't figure out how to install a simple utility??? Can I get an Amen? Simon -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 7:42 AM To: 'Struts Users Mailing List' Subject: RE: Struts Console basic doubt !!! Yes, but for crying out loud, all one has to do is download the file, unzip it, and run the .bat script. My dog could figure that much out Mark -Original Message- From: Joseph Barefoot [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 7:35 PM Now, now, Mark, didn't you just post a reference to a book on how to be more user-friendly? Alan Cooper would call this a problem involving cognitive dissonance, methinks. ;) joe -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 4:14 PM To: 'Struts Users Mailing List' Subject: RE: Struts Console basic doubt !!! Give up and don't quit your day job. -Original Message- From: Radhika Nadkarni [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 8:39 AM To: [EMAIL PROTECTED] Subject: Struts Console basic doubt !!! hi, im trying to download the Struts Console propsed by James Holmes. However, I cld download the zip file. But after downloading the same, the zip file doesn't have anny setup file or anything to start the Console. What am I suppose to do ?? _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Best Practice for Holding Data Across Requests
All - My application has a client search facility. By entering some demographic information case workers are able to search for clients already in the database. The results of this search are displayed in a tabular format using the pager tag. The form-bean has these properties: id firstName lastName address city ssn birthdate On the results JSP everything except id is displayed. The combination of first name and last name form a link to an action which queries the database for all the details for that client. This action takes as a parameter the id associated from the selected row on the JSP. The result set from this details query has these attributes: id caseNumber caseStatus payeeType ebtNumber cases (a collection of caseInfo) etc... The details JSP that displays the detail information needs to show the client name, along with the detailed information. However the detail query doesn't return the name, therefore I need to carry the name information matching the selected row on the first JSP. Is it better to: (A) pass a Map in as the parameter from the link on the first JSP containing the id and name or (B) hold the id, name pairs in a session bean so that the details action can fill in the name before forwarding to the details JSP or (C) some other method I haven't thought of... All comments, insults, and ideas accepted. TIA, mark n. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: reloading struts config at runtime with struts-1.1b
Dan, Would you please post an example of how you are using ReloadAction? Thanks mark n. - Original Message - From: Dan Hensgen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 04, 2002 5:17 PM Subject: reloading struts config at runtime with struts-1.1b (I sent this once before my mailing list registration finalized; forgive me if you get another copy.) I'd like to reload the Struts config without restarting my Tomcat 4.0.3 app server (like I can in Struts 1.0.2 with ReloadAction). I couldn't find a similar action in Struts 1.1b. It doesn't look like ActionServlet has a reload() method anymore, so I suspect things have been reengineered (maybe to reload the config automatically?). Any help appreciated! Thanks, Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Dynamic control of errors.header and errors.footer
All - Is there a way to dynamically control the contents of the errors.header and errors.footer properties in the ApplicationResources.properties file? What I would like to be able to do is display both error and informational messages on the page via the html:errors/ tag. I like the unordered list paradigm for validation error messages. However I would like to display informational or status messages without the validation heading, or perhaps with an entirely different heading. If anyone has suggestions or examples and would like to share them I would appreciate it. Thanks Mark _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Forwarding requests to other actions?
If I am understanding your question you might want to look at the DispatchAction. http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/actions/DispatchAction.html HTH, Mark From: Struts Newsgroup (@Basebeans.com) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Forwarding requests to other actions? Date: Fri, 10 May 2002 05:10:01 -0700 Subject: Forwarding requests to other actions? From: Maurice Mills [EMAIL PROTECTED] === Can I forward a request that is sent to one Action to another Action for processing? I have a form with 4 different actions that can be done on it. I would like to keep the processing of these actions in separate Action classes. The way I see it is there are two options: 1) Use javascript to conditionally set a property depending on the button clicked. 2) Tie the submit buttons to a single property and use this in the Action class. I can then use this property to determine the processing in the Action class. These actions, though, can be used on several different screens. I would like to implement a DeleteAction, SaveAction, ForwardAction, etc. and forward to the appropriate one based on the action property from above. Can this be done and if so, how? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Where (how) to translate data type to string for use in form-bean
We re-read some of the material on struts at Ted Husted's site, especially the catalog of tips. In there we discovered the usage of BeanUtil.populate and BeanUtil.describe. With those utilities in hand we are now performing the necessary data movement and translation in our action classes. Mark From: Mark Nichols [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Where (how) to translate data type to string for use in form-bean Date: Thu, 09 May 2002 13:43:01 -0500 I'm sure that this question has been asked and answered before, but I am not having any luck finding it in the archive. My DAO has data types that match the column data types in the database. My form-bean wants to have everything be a string. Where do I put responsibility to convert the data? In the form-bean? That would mean the form knows about the model... In the DAO? Some place else? Do I have two sets of attributes, one matching the database columns and the other strings so I can use the PropertyUtils.copyProperties()? TIA /\/\ark _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SSN and/or Telephone Tag Libraries
I was wondering if anyone on the list had discovered a good taglib for formatting social security numbers, and or a tag for telephone number formatting (US). TIA Mark _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: servlet-mapping and url-pattern
servlet-mapping servlet-nameaction/servlet-name url-patterntiles/*/url-pattern /servlet-mapping Maybe you need the url-pattern to look like: url-pattern/tiles/*/url-pattern Note the extra slash at the beginning of the value Mark _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem w/ ActionForm Value Object mapper by Andrej Consulting
Roland, I, too, was struggling with how best to transfer data between form-bean and entity (value) objects. Like you I found bean utils copyProperties problematic since it didn't do conversions. Then I discovered Ted Husted's Struts Catalog (http://husted.com/about/scaffolding/catalog.htm), which has this bit of code in it: BeanUtils.populate(target,BeanUtils.describe(source)) ; This works better than copyProperties; however it doesn't work with optional types, like Date. Worth a read if nothing else. mark From: Roland Chan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Problem w/ ActionForm Value Object mapper by Andrej Consulting Date: Wed, 8 May 2002 12:42:48 -0400 To prevent from doing the tedious task of manually copy properties from value object to action forms and vice versa I looked to the the ActionForm-Value Object mapper by Andrej Consulting (http://www.mycgiserver.com/~andrej/technical/struts/struts.jsp) b/c it had the benefit over the bean utils copyProperties method in that it could do simple data type conversions. HOWEVER, I have run into a little bit of a snag and have yet to get a response from Andrej. Going from Form to VO is fine, however, I am experiencing problems with VO to Form. It seems as though Integers are not being converted, and there are frequent property copying to the wrong form properties. Has anyone experienced this? Also, what is the best way to do a copy to form if the form already exists? In the examples, Andrej uses this convention: form = VOToFormMapper.map(vo, new ExampleForm()); but in my experience, to get your form correctly populated it has to be this: form = VOToFormMapper.map(vo, form); Any thoughts? I'm also open to alternatives. Thanks in advance. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: SSN and/or Telephone Tag Libraries
Hey, that's great. mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 09:58:10 -0400 Yes. -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 9:43 AM To: [EMAIL PROTECTED] Subject: SSN and/or Telephone Tag Libraries I was wondering if anyone on the list had discovered a good taglib for formatting social security numbers, and or a tag for telephone number formatting (US). TIA Mark _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: SSN and/or Telephone Tag Libraries
Does anyone wish to share what they've found, or are we going to be childish? mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 09:58:10 -0400 Yes. -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 9:43 AM To: [EMAIL PROTECTED] Subject: SSN and/or Telephone Tag Libraries I was wondering if anyone on the list had discovered a good taglib for formatting social security numbers, and or a tag for telephone number formatting (US). TIA Mark _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: SSN and/or Telephone Tag Libraries
I have observed that you frequently post messages complaining about working long hours, working weekends, etc. I can't help but wonder if you'd be able to complete your work during a normal work week if you focused half of the energy you put into humorous replies and posting to this list on doing your job. If you feel like sharing your taglib I'd be happy to look at it. But I'd hate to put you out when recess is happening and you want to start an electronic spit wad fight. mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 10:19:58 -0400 ;-) I wrote my own. If you want a copy of the source, send me a message at [EMAIL PROTECTED] I'm pretty busy right now (trying to start a flame war), but I can get it to you by tomorrow morning at the latest. Mark -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Hey, that's great. mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 09:58:10 -0400 Yes. -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 9:43 AM To: [EMAIL PROTECTED] Subject: SSN and/or Telephone Tag Libraries I was wondering if anyone on the list had discovered a good taglib for formatting social security numbers, and or a tag for telephone number formatting (US). TIA Mark _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: SSN and/or Telephone Tag Libraries
As someone with boatloads of education (http://www.mail-archive.com/struts-user@jakarta.apache.org/msg29242.html), you are amazing in your lacking of common sense, courtesy, or open source community spirit. mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 10:22:30 -0400 You didn't ask for anything, dude. You merely made a statement. Are we to read your mind or second-guess your intentions? That is something my wife expects, but I doubt you would? Mark -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 10:20 AM Does anyone wish to share what they've found, or are we going to be childish? mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 09:58:10 -0400 Yes. -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 9:43 AM To: [EMAIL PROTECTED] Subject: SSN and/or Telephone Tag Libraries I was wondering if anyone on the list had discovered a good taglib for formatting social security numbers, and or a tag for telephone number formatting (US). TIA Mark _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: SSN and/or Telephone Tag Libraries
Sure. Why not. And when you are done with that cross, we'd like the wood to build a fire... mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 10:33:56 -0400 Would you like some cheese with that whine? -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 10:28 AM To: [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries I have observed that you frequently post messages complaining about working long hours, working weekends, etc. I can't help but wonder if you'd be able to complete your work during a normal work week if you focused half of the energy you put into humorous replies and posting to this list on doing your job. If you feel like sharing your taglib I'd be happy to look at it. But I'd hate to put you out when recess is happening and you want to start an electronic spit wad fight. mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 10:19:58 -0400 ;-) I wrote my own. If you want a copy of the source, send me a message at [EMAIL PROTECTED] I'm pretty busy right now (trying to start a flame war), but I can get it to you by tomorrow morning at the latest. Mark -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Hey, that's great. mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 09:58:10 -0400 Yes. -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 9:43 AM To: [EMAIL PROTECTED] Subject: SSN and/or Telephone Tag Libraries I was wondering if anyone on the list had discovered a good taglib for formatting social security numbers, and or a tag for telephone number formatting (US). TIA Mark _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: SSN and/or Telephone Tag Libraries
What is really sad about this kind of thread is that once Mark Galbreath jumps in and starts sniping, no one else is willing to come forward and present any kind of resonable answer for fear of getting involved in the grade school level idiocy that results. One person was kind enough to resond with a helpful suggestion to my original posting. I replied directly to him and thanked him for his effort. mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 10:34:29 -0400 ;-) It's Friday! -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 10:33 AM To: Struts Users Mailing List Subject: RE: SSN and/or Telephone Tag Libraries Oh SHI#!!! Here we go. JM -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 10:28 AM To: [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries I have observed that you frequently post messages complaining about working long hours, working weekends, etc. I can't help but wonder if you'd be able to complete your work during a normal work week if you focused half of the energy you put into humorous replies and posting to this list on doing your job. If you feel like sharing your taglib I'd be happy to look at it. But I'd hate to put you out when recess is happening and you want to start an electronic spit wad fight. mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 10:19:58 -0400 ;-) I wrote my own. If you want a copy of the source, send me a message at [EMAIL PROTECTED] I'm pretty busy right now (trying to start a flame war), but I can get it to you by tomorrow morning at the latest. Mark -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Hey, that's great. mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 09:58:10 -0400 Yes. -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 9:43 AM To: [EMAIL PROTECTED] Subject: SSN and/or Telephone Tag Libraries I was wondering if anyone on the list had discovered a good taglib for formatting social security numbers, and or a tag for telephone number formatting (US). TIA Mark _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: SSN and/or Telephone Tag Libraries
No, you brushed me off and only offered to send the source once you got done being cute by trying to start a flame war. Well I got you to start a flame war and you still haven't sent your code. Tell you what: I don't want your code. It isn't in my nature to support in any way people who are petty and mean just because they think they are somehow special. I am ashamed that I have participated in this stupid thread this long. I apologize to the list as a whole for responding when I should have known better. We all have better things to do than sit around acting like 5 year olds. Mr. Galbreath, I can forgive you your actions and rudeness. I will not, however, forget them. mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 10:43:00 -0400 I offered to send you the source, asshole. -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 10:42 AM To: [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries What is really sad about this kind of thread is that once Mark Galbreath jumps in and starts sniping, no one else is willing to come forward and present any kind of resonable answer for fear of getting involved in the grade school level idiocy that results. One person was kind enough to resond with a helpful suggestion to my original posting. I replied directly to him and thanked him for his effort. mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 10:34:29 -0400 ;-) It's Friday! -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 10:33 AM To: Struts Users Mailing List Subject: RE: SSN and/or Telephone Tag Libraries Oh SHI#!!! Here we go. JM -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 10:28 AM To: [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries I have observed that you frequently post messages complaining about working long hours, working weekends, etc. I can't help but wonder if you'd be able to complete your work during a normal work week if you focused half of the energy you put into humorous replies and posting to this list on doing your job. If you feel like sharing your taglib I'd be happy to look at it. But I'd hate to put you out when recess is happening and you want to start an electronic spit wad fight. mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 10:19:58 -0400 ;-) I wrote my own. If you want a copy of the source, send me a message at [EMAIL PROTECTED] I'm pretty busy right now (trying to start a flame war), but I can get it to you by tomorrow morning at the latest. Mark -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Hey, that's great. mark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SSN and/or Telephone Tag Libraries Date: Fri, 10 May 2002 09:58:10 -0400 Yes. -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 9:43 AM To: [EMAIL PROTECTED] Subject: SSN and/or Telephone Tag Libraries I was wondering if anyone on the list had discovered a good taglib for formatting social security numbers, and or a tag for telephone number formatting (US). TIA Mark _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e
Where (how) to translate data type to string for use in form-bean
I'm sure that this question has been asked and answered before, but I am not having any luck finding it in the archive. My DAO has data types that match the column data types in the database. My form-bean wants to have everything be a string. Where do I put responsibility to convert the data? In the form-bean? That would mean the form knows about the model... In the DAO? Some place else? Do I have two sets of attributes, one matching the database columns and the other strings so I can use the PropertyUtils.copyProperties()? TIA /\/\ark _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Taglib problems
Do you have the tag libraries properly described in the web.xml file? /\/\ark From: Abbas Valinejad [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Taglib problems Date: Thu, 09 May 2002 10:48:15 +0330 hi dear freainds I want to use struts taglibs but none of taglibs didn't work. i think the problem is because of my XMLParser. I use struts custom tags in another machine which is configured properly. i do the following tasks to use custom tags while i am using JAXP but they didn't work. 1. i set JAXP-HOME environment variable to the correct directory address of my XMLParser (JAXP) 2. copy the jar files in JAVA_HOME/jre/lib/ext 3. copy the jar files in my JSP container lib director TOMCAT_HOME/lib but the corret code didn't work. the code: %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % bean:message key=hello.message / the .properties file: hello.message=Hello Struts Users thanks alot -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Pagination
This is a little different than you describe but it may help you: http://jsptags.com/tags/navigation/pager/ HTH, /\/\ark From: Chen, Dean (Zhun) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: Pagination Date: Tue, 30 Apr 2002 11:56:04 -0400 Hi, I've got pagination to work with struts. After a user fills out a form clicks submit, the Action class parses the query invokes a stored procedure, which in turn fills the bean. If the user specified 10 items per page, the resultset will stop after 10 iterations. The correct 10 items will be displayed on the following JSP. My issue is that on the JSP, when I click Next, the users settings does not get passed to the Action class. My question is, how do I keep a users settings persistent across multiple pages? Should I use session scope (currently request scope) or should I use hidden forms? I would appreciate any sample sites using struts that implemented pagination. Thanks, Dean Chen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Nester iterate and style sheet
Check out this thread... http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19260.html /\/\ark From: Sanjay Choudhary [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Nester iterate and style sheet Date: Wed, 20 Mar 2002 18:22:44 -0800 (PST) Hi guys, I have the following code nested:iterate property=accountCode TR TDnested:checkbox property=toDelete//TD TD width=186 colspan=3 nested:text property=region//TD /TR /nested:iterate To odd rows I wish to apply different style sheet and to even a different. How can I do this? Didn't like the idea of hard coding the style sheet values in the Formbean and then retreive from there. I tried following TR class=bean:message key='bean:write property='stylesheet' name='accountCode'/'/ I thought I will configure the style sheet names in application.properties file. But this didn't work. Please advice. Thanks, Sanjay __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Warnings - Has anyone seen these warnings?
You might search the archives... I think this was asked once before. Although I could be wrong. /\/\ark From: Mark Johnston [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Struts Warnings - Has anyone seen these warnings? Date: Wed, 20 Mar 2002 10:37:33 -0800 I keep getting these two warnings output to my app server console. Warning: resetting Response buffer before forwarding the request. Warning: output committing is allowed only once. Does anyone know what these might be caused by? Thanks Mark _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: OReilly Struts book
Friday comes eariler every week. I like it. =) From: Lawson, Rick [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: OReilly Struts book Date: Tue, 19 Mar 2002 15:48:24 - Thanks for that image - I fear it will live with me for the rest of the day. -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: 19 March 2002 15:42 To:Struts Users Mailing List Subject: RE: OReilly Struts book And I don't even want to think about developers making videos and jumping around in tight leather outfits! Arrgh! Simon -Original Message- From: Cakalic, James [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 9:31 AM To: 'Struts Users Mailing List' Subject: RE: OReilly Struts book Hmm ... Developer formerly known as 'Chuck'? -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 5:42 AM To: 'Struts Users Mailing List' Subject: RE: OReilly Struts book Could be worse...you could be owned by the recording industry. ;-) -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 6:30 AM To: Struts Users Mailing List Subject: RE: OReilly Struts book I truthfully think that would be awesome. I have asked OReilly if it would be OK if I shared some of the Chapters here. I'm waiting on their response. Keep in mind that legally, they own the chapters. I've got to get permission from deep in the bowels of the OReilly complex. Chuck At 06:22 AM 3/19/2002 -0500, you wrote: Nothing like a little preemptive peer review! Come on! Share! Mark -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 6:11 AM Half of the Chapters are finished right now. Once I finish all of them, it then goes through several types of edits and technical reviews. It will probably not be out until the June or July timeframe. That's unfortunate because the need for this type of material is great and I would love to have it out right now. Chuck Cavaness -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre. For further information visit http://www.uk.uu.net/products/security/virus/ ___ CONFIDENTIALITY NOTICE The information contained in this e-mail is intended only for the individual or entity to whom it is addressed. It may contain confidential and privileged information and if you are not an intended recipient, you must not copy, distribute or take any action in reliance on it. If you have received this e-mail in error, please notify the sender and destroy and delete the message from your computer. _ This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre. For further information visit http://www.uk.uu.net/products/security/virus/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: display error message
Read the section on Displaying Error Messages here: http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/taglib/html/package-summary.html#doc.Other ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us The best laid plans o'mice and men gang aft aglay... -Robert Burns [EMAIL PROTECTED] 03/18/02 04:09AM A question about showing errors. let's suppose i have this page (just image the page on the browser): first name: textfield last name: textfield phone n.: textfield How can i reach the following result when showing error message ? first name: textfield error firstname last name: textfield error last name phone n.: textfield error phone number thanks Ivan. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Is there a scheduler for calling time based actions
Go to google.com, type servlet based scheduler for timed events in the search box. Hit enter key. Wait. Ah... first result link looks like a winner http://www.jcorporate.com/html/products/expresso/job_control.html /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us The best laid plans o'mice and men gang aft aglay... -Robert Burns [EMAIL PROTECTED] 03/18/02 10:25AM hi, i am looking for a scheduler who can call time based struts-actions... Has anybody an idea? thx Elmar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem in HTML:ERROR tag
From the example code included in the Struts download: # # error header and footer # errors.footer=/ulhr errors.header=h3font color=redValidation Error/font/h3You must correct the following error(s) before proceeding:ul Hmmm I guess this would format a neat heading and then show the errors in an unordered list, and then neatly close the ul tag so the HTML passes validation. Ya think? /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us The best laid plans o'mice and men gang aft aglay... -Robert Burns [EMAIL PROTECTED] 03/13/02 09:19PM If we do that, the errors would bring like this: abcderror,error,errorefgh, correct? Isn't that just as bad or worse than the null problem? We're having this problems with tomcat also. Jay On Thu, 14 Mar 2002, nsg wrote: I had met the problem. you append the errors.head=abcd,errors.footer=efgh two lines in your resource file. it will be OK. hope helps Laker - Original Message - From: subhendukumar mohanty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 10:07 AM Subject: Problem in HTML:ERROR tag Hi I am setting the action error in my action class. Then when the error displays in the screen it appends null in front and end of the message. For example if the error message is Error occurred, it shows as null Error Occurred null. I am using struts with visualage 4.0. I am using struts 1.0.1 and modified the form tag to work for websphere test environment. Any Help?? Thanks, Subhendu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts Documentation WAR producing validation errors underWSAD 4.0
I followed the instructions and installed the struts-documentation.war in WSAD. The pages all display and everything works fine, except that when I view the outstanding task list (all the warnings and error messages) for that project there are over 3100 messages! I suspect that the real problem lies within the validator WSAD is using against the source HTML files, but I wondered if anyone else has noticed a similar issue? I would really like to be able to eliminate these messages as repainting the task list slows the response time of some operations within WSAD down. TIA, /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us The best laid plans o'mice and men gang aft aglay... -Robert Burns -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Need help with JspException: Missing message for keylogin.title
Lindsay - You don't say what IDE you are using. I'm also new to struts and I'm using WebSphere Application Developer 4.0. WSAD has *two* copies of the ApplicationResources.properties file. One under the applicationRoot/source folder and one under the applicationRoot/webApplication/WEB-INF/classes folder. For most of a day I made changes to the .../classes version only to discover it was overlaid by the .../source copy when I deployed the application. D'oh! I guess I'm saying make sure you are working with the right copy of the .properties file. /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us The best laid plans o'mice and men gang aft aglay... -Robert Burns [EMAIL PROTECTED] 03/13/02 04:54AM Hi everyone, I've just began using Struts this week and it seems very useful, but I am totally lost for ideas when it comes to this exception: Exception in R( /struts-SACT + /login.jsp + null) - javax.servlet.ServletException: Missing message for key login.title I have placed my ApplicationResources.properties in the /classes directory and here's the relevant part of web.xml: servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param . Here's my ApplicationResources.properties (it is very simple at present - which makes this error all the more annoying): error.username.required=Username is required error.password.required=Password is required error.database.unknown=Sorry, an unknown database error occurred errors.footer=/ulbr errors.header=h2font color=redValidation Error/font/h2You must correct the following error(s) before proceeding:ul login.title=SME Agent Creation Tool - User Login prompt.login.username=Username prompt.login.password=Password And here's a part of my login.jsp: %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % html:html head titlebean:message key=login.title//title I heard that this is a common problem and that I should look at the mailing list archive, but I find no help there at all. Many thanks for any input. Lindsay Lindsay Hamoudi Web Application Developer BTexact Technologies e-mail: [EMAIL PROTECTED] tel: (+44) (0)1473 605491 mobile: (+44) (0)7985 114296 Orion Building (B62-MH), PostPoint 12, Adastral Park, Martlesham, Ipswich IP5 3RE, UK BTexact Technologies is a trademark of British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ Registered in England no. 180 This electronic message contains information from British Telecommunications plc which may be privileged or confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the numbers or address above) immediately. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: newbie
Tony, I too am new to struts and also to WebSphere Application Developer 4.0. (So new in fact I am still using the Trial Edition while the purchase order goes through... =) I started by creating projects for all the struts bits: documentation, example, taglib, upload, etc. I downloaded and read several times the strut-by-strut example from Ted Husted's site. (www.husted.com). Finally, in frustration at trying to understand what other people had done I just started building a simple application. I learned more from my trial and error attempts than I ever got from looking at the examples. With the context of my application in mind I was able to find and reuse code, tags, whatever, from the examples. I purchased a couple of books that helped my understanding as well. JSP and Tag Libraries for Web Development by Wellington L. S. da Silva (New Riders, isbn: 0-7357-1095-3) This has several chapters on Struts. Also, Professional JSP Site Design (Wrox, isbn: 1-861005-51-2) Again, several mentions of Struts, and one of the authors is Ted Husted. Use all the resources listed on the Struts Resources page (http://jakarta.apache.org/struts/resources.html). HTH, /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us The best laid plans o'mice and men gang aft aglay... -Robert Burns [EMAIL PROTECTED] 03/12/02 04:04PM I just downloaded struts and trying to create a simple web application and see it in action. Im using websphere4.0/WSAD. Whats the best way to get started? Should I try to get the struts example working with websphere instead of creating my own example? If so, do I only need to extract the files in struts-example.war and start the web server? I need to be pointed to the right direction understand struts .thanks! __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Defining a forward path- not to a JSP, but to anotherAction
I have done what you want. Here is a piece of my struts-config.xml: !-- Finish Reason Insert action -- action path=/finishReasonInsert type=vcm.vis.action.FinishReasonInsertAction name=finishReasonForm scope=session input=finishReasonInsert.jsp parameter=method forwardname=success path=/loadFinishReason.do/ forwardname=failure path=/finishReasonInsert.jsp/ /action The success path from finishReasonInsert (action) is the loadFinishReason (action). HTH, /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us The best laid plans o'mice and men gang aft aglay... -Robert Burns [EMAIL PROTECTED] 03/13/02 11:37AM Hi In the examples I've seen - any forwards that are defined (whether global-forwards or action-specific) seem to point to JSP pages, i.e. global-forwards forward name=login path=/login.jsp/ forward name=success path=/home.jsp/ /global-forwards However I'd like for my user to login (handled by LoginAction) and then not just be sent straight to home.jsp. Instead, I'd like to forward to HomeAction which will prepare the necessary beans for use by home.jsp. How do I go about defining this in structs-config.xml? I'm a bit lost because I keep seeing elements called path but some look like /login.jsp and some look like /login. Why is this? Can you put /home.do as a forward path and it will forward to HomeAction? Or is this done simply by putting /home as the forward path. I'm sure this is very simple, but I really need to figure it out before my boss realises how little progress I've made this week! =o( Thanks. Lindsay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: UML example?
John - I found these when I was starting to do UML diagramming for my application. Business Delegate Pattern Sequence Diagrams: http://www.cayambe.org/docs/design/AddToCart.html http://www.cayambe.org/docs/design/BrowserCatalog.html http://www.cayambe.org/docs/design/ManageCart.html http://www.cayambe.org/docs/design/ViewReceipt.html Here's the use case for the above sequence diagrams: http://www.cayambe.org/docs/requirements/Use_Case.html Also there is some UML stuff for struts here http://www.ifrance.fr/rollerjm/pro/Struts.html Hope this helps, /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us The best laid plans o'mice and men gang aft aglay... -Robert Burns [EMAIL PROTECTED] 03/11/02 11:09PM Are there any links to a Struts sample project modeled with UML on the web? I am starting a new Struts project and would like to use UML. I was hoping somebody had an example I could look at. -john -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What do you call them beans?
Stuffer. I like it. =) We have this: name.jsp -- nameForm -- nameAction -- nameBO -- nameDAO -- nameEntity BO = Business object - where we put the application logic DAO = Data Access Object - where the SQL is encapsulated Entity = An object representation of the table - this may have a 1:1 relationship with the Form or it may not. The BO-DAo-Entity objects are designed so that they maybe used by a struts/web application or other applications within the enterprise. HTH, /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us The best laid plans o'mice and men gang aft aglay... -Robert Burns [EMAIL PROTECTED] 03/12/02 07:46AM Struts actually has very little to say about the model side of your application. It provides the controller and the means to extend it and provides for the use of JSPs with custom tags to give you your view, but the ActionForm objects have only one foot in the model world. They are really intended as parameter objects between Actions and JSPs if I have understood them correctly. I said all that to say that you can call your model objects and their helper objects whatsoever you wish. Boring people like me use traditional pattern language like Manager and Factory, but you can use whatever sounds good. For example, if you have a Customer object, then you might have supporting objects called CustomerManager and CustomerFactory. You might even want a CustomerPersister, how about a CustomerLoader (I really like the idea of calling this a CustomerStuffer, but it's early and I haven't finished my first cup of coffee! :-) Hope this helps. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 6:35 AM To: [EMAIL PROTECTED] Subject: What do you call them beans? Hi, just a quick question. I want to have a set of classes that do all the operations on my data classes. What do you call them in Struts-speak? The Action classes will call them to take care of the updates, deletes, selects and stuff, and they'll return a data class or collection of data classes. I was thinking of calling them all with the suffix 'Man' for Manager but that's kind of Microsoft-oriented, which I'm trying to get away from. Thanks Adam Find the best deals on the web at AltaVista Shopping! http://www.shopping.altavista.com -- To unsubscribe, e-mail: mailto:struts-user-[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts resources
JSP and Tag Libraries for Web Development by Wellington L.S. da Silva (New Riders, October 2001, isbn: 0-7357-1095-3) has several chapters on Struts that were helpful to me (new struts user). /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson [EMAIL PROTECTED] 03/09/02 07:56AM On Fri, 8 Mar 2002 07:01:20 -0500, Andrew H. Peterson wrote: --snip-- Can anyone recommend some good resources for coming up to speed on --snip-- Here's some usefull sites: 1) http://www.husted.com/struts -- Ted Husted's site, lots of stuff there 2) http://stealthis.athensgroup.com/presentations/ -- a white paper on Struts, assembled by Larry Maturo 3) The book, Professional JSP : 2nd Edition (Wrox Press, ISBN 1861004958), has an excellent chapter devoted entirely on Struts Hope this helps. -- Kevin J. Turner / dot com Entertainment Group 150 Randall Street, Oakville, Ontario L6J 1P4 telephone: 905.337.8524 fax: 905.337.8630 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Newbie Struts-Config.xml help
I'm new, so take this answer with a grain of salt... The link syntax is different than the submit button syntax. For a HTML link it would look something like: html:link page=/testFinishReason.do bean:message key=finishReasonTest.testLink/ /html:link But for a submit button the coding in your JSP would be: html:form action=/testFinishReason html:submit property=submit value=Finish Reason Maintenance/ In both cases the /testFinishReason label matches the action mapping name in the struts-config.xml file. Hope this helps. /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson [EMAIL PROTECTED] 03/04/02 02:56AM I need to implement struts on my application. My application functions like page1.jsp -- servlet -- javabeans(database access) -- page2.jsp page2.jsp -- servlet -- javabeans -- page3.jsp I have implemented struts using action mappings but it only works when I use a URL link and has .do in the URL. But when I use html:form to process the request, it does not work. form-beans form-bean name=FormBean type=com.mybean/ /form-beans action-mappings action path=/dothis type=com.myServlet name=dothis scope=session validate=false forward name=page2 path=/page2.jsp/ /action action path=/forms type=com.myServlet name=FormBean scope=request input=/page2.jsp validate=false forward name=page3 path=/page3.jsp/ /action action path=/page2 forward=/page2.jsp /action I hope you can help me. Thanks Boney Sze __ Do You Yahoo!? Yahoo! Sports - sign up for Fantasy Baseball http://sports.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Best way to deal with Form object String parameters intoanother bean?
You can search to your heart's content here: http://www.mail-archive.com/struts-user@jakarta.apache.org/ ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson [EMAIL PROTECTED] 03/03/02 12:54AM I've just begun studying the struts examples and reading the documentation and have waited a bit before I posted this question. I am a newbie to struts but have done some searching and looking at examples but still need some more help. Before I begin it would be best if I ask my questions in the context of a simple example. Lets say we have a simple Employee Administration application where there might a form that allows you to enter or edit employee information. Now first off, it would seem likely using struts that I would have an EmployeeForm object and then maybe two action objects such as AddEmployee and EditEmployee (or possibly just one of them that can do all the tasks). Now it would seem like for most situations you would have an EmployeeForm object and also an EmployeeBean. Now the question I have is at what point would you transfer the info in the EmployeeForm object to the EmployeeBean? Should this be done in the AddAction and then the AddAction might call a method in the business tier of doInsert( EmployeeBean employee )? Or do you possibly just pass all the form parameters off to a doInsert() method as arguments and then in the business tier doInsert() method do what you have to do with them. I'm having some trouble seeing how they manage this with the SaveSubscriptionAction in the strut example. It looks like they are using PropertyUtils.copyProperties(subscription, subform); to get the information from the subform into a subscription object. (I admit I haven't studied using this PropertyUtils objects so I'll have to look into it). However, I'm still just generally confused about the best way to get the values in my EmployeeForm object which are all Strings into the correct format for being entered into a database. Before looking into this struts framework, my controler servlet would pass the request object off to the appropriate Action class which in turn might hand the request object to another class method that would create an EmployeeBean from the request object parameters. Than after that EmployeeBean was returned the appropriate method in the business logic tier was called such as businessTierObject.addEmployee( employeeBean ); The validation abilities using FormObjects seem really powerful, yet I'm still stuck on where to do all my casting and conversions of the String request parameters into the proper data types (ie..birth date as a String to birthDate as a java.util.Date, ss# as a String to an int, etc). I guess my basic question is where should this process take place? Do you pass the whole Form object in the Action object off to the business tier and let that level deal with creating the correct format of the request parameters? I'm sure this has all been brought up and/or answered many times so I appreciate your patience. Is there a way I can search through past posts to this mailing list? Thanks for any help. -- Rick mailto:[EMAIL PROTECTED] I can't stand cheap people. It makes me real mad when someone says something like, 'Hey, when are you going to pay me that $100 you owe me?' or 'Do you have that $50 you borrowed?' Man, quit being so cheap! -Jack Handey -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Memory consumption of tags
Maybe posting it under a subject that matches the topic would help /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson [EMAIL PROTECTED] 02/28/02 03:20PM This is posted a couple of times, hope someone can help me out: What I need to do is this: I would like to display an error message to the user in a little more customized way, such as, if some special characters are not allowed in a field, if they entered any of this special character set, (say @#$), I would like to display that @#$ is not allowed in this field. Also I would like to change the fields where erroneous data exist into red, possbly change the font of the erroneous data into a different font color. When the user correct the error, I want the background of that field to be original color and font back to original color too. I would also like to focus my cursor in the first erroneous field, if erroneous data exists, I would like to select that erroneous data. Can I do that? How do I do that? It seems like Javascript is not welcomed here, so I am looking for a solution in Struts. Hopefully there is a nice way to do this. Really appreciate all your time and help, Yanhui -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can't get ActionError back from Action class
I know it must be late on Friday or I would be able to see what is wrong with the following code. I am trying to display the exception error message via html:errors/ with no luck so far. == Action code snippet = public final class TestFinishReasonAction extends Action { // - Public Methods public ActionForward perform( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // Extract attributes we will need Locale locale = getLocale(request); MessageResources messages = getResources(); HttpSession session = request.getSession(); snipped // instantiate an ActionError collection to hold any messages ActionErrors errors = new ActionErrors(); try { snipped } }catch(Exception ex) { if (servlet.getDebug() = 1) servlet.log( Database Exception : + ex.getMessage()) ; errors.add(dberror, new ActionError(error.database)); errors.add(dbException, new ActionError(ex.getMessage())) ; return (mapping.findForward(failure)); } // Forward control to the specified success URI return (mapping.findForward(success)); } } = JSP snippet %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % html:html head titlebean:message key=finishReasonTest.title//title html:base/ /head body bgcolor=white h3bean:message key=finishReasonTest.heading//h3 html:link page=/testFinishReason.do bean:message key=finishReasonTest.testLink/ /html:link !-- show any errors here -- html:errors/ /body /html:html What dumb stfw-rtfm mistake am I making? =) /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Can't get ActionError back from Action class
Doh! thanks /\/\ ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson [EMAIL PROTECTED] 03/01/02 03:15PM Insert this: saveErrors(request, errors); before your return statement. -Original Message- From: MARK NICHOLS [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 4:07 PM To: [EMAIL PROTECTED] Subject: Can't get ActionError back from Action class I know it must be late on Friday or I would be able to see what is wrong with the following code. I am trying to display the exception error message via html:errors/ with no luck so far. == Action code snippet = public final class TestFinishReasonAction extends Action { // - Public Methods public ActionForward perform( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // Extract attributes we will need Locale locale = getLocale(request); MessageResources messages = getResources(); HttpSession session = request.getSession(); snipped // instantiate an ActionError collection to hold any messages ActionErrors errors = new ActionErrors(); try { snipped } }catch(Exception ex) { if (servlet.getDebug() = 1) servlet.log( Database Exception : + ex.getMessage()) ; errors.add(dberror, new ActionError(error.database)); errors.add(dbException, new ActionError(ex.getMessage())) ; return (mapping.findForward(failure)); } // Forward control to the specified success URI return (mapping.findForward(success)); } } = JSP snippet %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % html:html head titlebean:message key=finishReasonTest.title//title html:base/ /head body bgcolor=white h3bean:message key=finishReasonTest.heading//h3 html:link page=/testFinishReason.do bean:message key=finishReasonTest.testLink/ /html:link !-- show any errors here -- html:errors/ /body /html:html What dumb stfw-rtfm mistake am I making? =) /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
html:link Tag and Actions
I have searched the archive, and read through the documentation but I can't seem to find how to set my html:link tag to point to an Action class. Here are some code examples... Using the html:form/ block I can get the proper action when the submit button is pressed. ...snip... html:form action=/testFinishReason table border=0 width=100% tr td align=right html:submit property=submit value=Submit/ /td td align=left html:reset/ /td /tr /table /html:form ...snip... However, when I try coding it with the html:link/ block like this: html:link page=/testFinishReasonbean:message key=finishReasonTest.testLink//html:link it doesn't work. I've tried page= and forward= with equally bad results. I'm guessing that I need to change my global forward in some way to point at the proper action class so that the forward= would work. But I haven't been successful in figuring out how to code that forward. If anyone could point me in the right direction I would appreciate it very much. best regards, /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: html:link Tag and Actions
Thanks. I thought I had tried that before, but I must have had a competing error hiding the correctness of that syntax. I'm still new to struts and I guess I don't understand all I know about it yet. =) /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson [EMAIL PROTECTED] 02/26/02 02:41PM Try html:link page=/testFinishReason.do Tim. -Original Message- From: MARK NICHOLS [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 8:37 PM To: [EMAIL PROTECTED] Subject: html:link Tag and Actions I have searched the archive, and read through the documentation but I can't seem to find how to set my html:link tag to point to an Action class. Here are some code examples... Using the html:form/ block I can get the proper action when the submit button is pressed. ...snip... html:form action=/testFinishReason table border=0 width=100% tr td align=right html:submit property=submit value=Submit/ /td td align=left html:reset/ /td /tr /table /html:form ...snip... However, when I try coding it with the html:link/ block like this: html:link page=/testFinishReasonbean:message key=finishReasonTest.testLink//html:link it doesn't work. I've tried page= and forward= with equally bad results. I'm guessing that I need to change my global forward in some way to point at the proper action class so that the forward= would work. But I haven't been successful in figuring out how to code that forward. If anyone could point me in the right direction I would appreciate it very much. best regards, /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Hey Struts I have another email address!
boxfrog.com is a DBA for Intercosmos Media Group, Inc. Intercosmos Media Group is registered to Sigmund Solares (650 Poydras Street, Suite 2311, New Orleans, LA, 70130, 504-679-5170) Why not sign up a bunch of new anonymous e-mail accounts using his information for the contact information? whois is a great thing. =) /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson [EMAIL PROTECTED] 02/21/02 08:26AM I'm having a day off tomorrow - this is my friday. --- Olivier Dinocourt [EMAIL PROTECTED] wrote: my pleasure. :-) BTW Shouldn't we rather keep this for tomorrow ? - Original Message - From: keithBacon [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 1:10 PM Subject: Re: Hey Struts I have another email address! It's always a pleasure to see a lying scum spamming advertiser exposed discredited. Thanks! --- Olivier Dinocourt [EMAIL PROTECTED] wrote: Completely OT, but I couldn't resist... From their Terms Of Service : -- 3. MEMBER OBLIGATIONS In consideration for this Service, you agree to provide certain information about yourself as prompted to do so by the Service, and update this information as necessary to keep it current, complete and accurate. All information requested on original sign up shall be referred to as registration data (Registration Data). Furthermore, you are granting BoxFrog.com and/or BoxFrog.com Mail the right to disclose to third parties certain information about you. If any information provided by you is inaccurate, BoxFrog.com retains the right to terminate your membership and all associated rights to the Service. We may share, rent or sell your Registration Data to THIRD PARTIES as outlined in Paragraph 1. After the transfer of your Registration Data to a THIRD PARTY, Members who wish to unsubscribe from that THIRD PARTY'S emails must contact THIRD PARTY directly. Neither BoxFrog.com nor BoxFrog.com Mail can assist you with removal of emails or solicitations from the THIRD PARTY. -- Is that what they call anonymous ? :-) - Original Message - From: [EMAIL PROTECTED] To: Struts Users [EMAIL PROTECTED] Sent: Wednesday, February 20, 2002 5:24 PM Subject: Hey Struts I have another email address! Hey Struts I just wanted to let you know I got a new email address and you will want to add it to your address book as another way to reach me :) My new address is [EMAIL PROTECTED] You should get an account there too! They are simple, fast, offer huge email boxes, you can access your account from any PC and best of all they are FREE and ANONYMOUS! Check it out Struts www.boxfrog.com Free Anonymous Email! Chad Brak -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = ~~ Search the archive:- http://www.mail-archive.com/struts-user%40jakarta.apache.org/ ~~ Keith Bacon - Looking for struts work - South-East UK. phone UK 07960 011275 __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = ~~ Search the archive:- http://www.mail-archive.com/struts-user%40jakarta.apache.org/ ~~ Keith Bacon - Looking for struts work - South-East UK. phone UK 07960 011275 __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Development Environment
WebSphere Studio Application Developer 4.0. Windows NT 4.0 for development, AIX for deployment. It's big, it's slow, it's from IBM. /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson [EMAIL PROTECTED] 02/21/02 11:41AM Hello, Quick question, what is the preferred development environment that you are all using, Linux - Emacs, VIM, Windows - JBuilder, VisualAge? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[Off Topic] Using Struts with WebSphere Studio ApplicationDeveloper 4.0
Hello, I am new to struts development (I've only been lurking in the list for 5 days) and I noticed some members seem to be using IBM products, or at least have familiarity with them. I realize that my questions about getting struts installed and working with WSAD 4.0 are not germane to the group as a whole. However, if some kind soul on the list, who has been down this path before, would e-mail me directly I do have some questions about getting the example application installed and running, as well as installing and using the documentation WAR. best regards, /\/\ark ___ - mark h. nichols - par-ti-tion Software - mark at partitionsoftware dot com (always) - dhsv022 at dhs dot state dot il dot us (currently) Ooo. They've got the Internet on computers now. - Homer Simpson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Software Requirements Specification document templates
All - I am working in a new initiative for my client to develop an enterprise web application using Struts. As this project is piloting new (to the client) technologies they want a complete SRS document as an example for future development projects. Does anyone have or know about a freely available set of document templates that would be useful for documenting the various artifacts that are designed, created and maintained in a Struts applications? I would prefer Word format, but I'll take anything I can get. =) Thanks, /\/\ark _ /\/\ark /\/ichols Ooo. They've got the Internet on computers now. - Homer Simpson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Software Requirements Specification document templates
Ted - Thank you! This should be very helpful. /\/\ark _ /\/\ark /\/ichols Ooo. They've got the Internet on computers now. - Homer Simpson [EMAIL PROTECTED] 02/06/02 07:53AM There's a rough outline here that some people have found useful. If you improve on it, and want to contribute something back, that would be great! http://husted.com/struts/resources/example-spec.html -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ MARK NICHOLS wrote: All - I am working in a new initiative for my client to develop an enterprise web application using Struts. As this project is piloting new (to the client) technologies they want a complete SRS document as an example for future development projects. Does anyone have or know about a freely available set of document templates that would be useful for documenting the various artifacts that are designed, created and maintained in a Struts applications? I would prefer Word format, but I'll take anything I can get. =) Thanks, /\/\ark _ /\/\ark /\/ichols Ooo. They've got the Internet on computers now. - Homer Simpson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Preselecting Radio Buttons
Add the 'checked' parm to your default radio button, like so... What is your gender?br Female input type=radio name=gender value=female checked Male input type=radio name=gender value=male _ /\/\ark /\/ichols Harris I, 2nd Floor 217.558.2919 Ooo. They've got the Internet on computers now. - Homer Simpson [EMAIL PROTECTED] 02/04/02 09:57AM I would have thought this was a simple thing, but I must be missing something. Is there an attribute to the html:radio tag that sets it as selected? I want to have a group of radio buttons w/ 1 button being the default. I didn't see anything in the tag lib documentation and I tried coding in the default value into the reset method (so if the form attribute was programmerLanguage, I would say 'programmerLanguage = java;' in the reset method., but no luck on either front. Can anyone provide some insight into this simple problem? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]