RE: Resend : Multiple Struts-config files, multiple properties and validator
Hi I have used the latest tld's .xml's But still I get the error When I go by the way u suggested I get SEVERE: Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE All I have tried is :- in the struts-config.xml Pl let me knw, if I made some mistake Thanks --- Venkat Reddy Valluri <[EMAIL PROTECTED]> wrote: > Use latest validator-rules.xml and use latest > tld's > > use bundle this way > > depends="required"> > key="userEdit.user_name.displayname" bundle="user"/> > > > > -Original Message- > From: Sagar Naik [mailto:[EMAIL PROTECTED] > Sent: Thu 7/7/2005 1:58 PM > To: user@struts.apache.org > Cc: > Subject: Resend : Multiple Struts-config files, > multiple properties and validator > Hi > I m using struts 1.2 > > mulitple struts-config files > multiple properties files > and now I have a validation.xml file for input > validation of the form > Ques 1. How do I get the keys defined in properties > files in validation.xml 's field's arg0's key > attribute > > Ques 2. Even if I get all the error messages in 1 > files , I still get NoSuchMethod Exception > ( I using the latest struts files) > > Thanks > > > > > ___ > Too much spam in your inbox? Yahoo! Mail gives you > the best spam protection for FREE! > http://in.mail.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] ___ Too much spam in your inbox? Yahoo! Mail gives you the best spam protection for FREE! http://in.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
I agree with Craig here... He is quiet right about the mailing problem... I had been using my company id and have been told by them to unsubscribe from the due to the volume of messages coming in. Despite the volume if the mails had something to defend I could've done it. But the never ending flow of OTs like these which are of no use to anyone is not quiet the way anyone would like! Friday of the week is over... At least from this point on let us cut this off. Regards, Nitesh _ Disclaimer: Information contained and transmitted by this e-mail is confidential, proprietary, and legally privileged data of Cordiant Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator. Any views expressed by an individual do not necessarily reflect the view of Cordiant Technologies. The recipient should scan this email and any attachments for viruses as Cordiant Technologies is not liable for the presence of viruses in this email. Cordiant Technologies does not accept liability for any errors or omissions as the internet communications cannot be guaranteed to be timely, secure, error or virus-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete. To know more about Cordiant Technologies, please visit http://www.cordiant.com _ -Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Saturday, July 09, 2005 4:04 AM To: Struts Users Mailing List Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations [OT] On 7/8/05, James Mitchell <[EMAIL PROTECTED]> wrote: > Andrew, you must be new here. See, on Fridays (usually), we like to > cut up and have a little fun. I think I've donated enough blood on > this list to deserve a break every now and then. And perhaps its time to reign in the freedom to cut up a little on Fridays. With freedom comes responsibility, and there's been way too many abuses of that freedom lately (including this thread). > If you don't like wasting time with [OT] posts, filter them. Every > decent mail client will allow you to do that. Note that filtering is not a complete answer. Consider a scenario where you are subscribed to a list like this from your company email address, where you have (explicitly or implicitly) agreed to whatever terms of use your company's IT department imposes on you. In more than a few companies, incoming email messages are scanned for inappropriate content -- and you could be violating the policies even if you have a personal filter set up so that *you* don't have to read the messages. "But I didn't read it" isn't going to be a very useful defense -- any more than if your mom caught you reading Playboy when growing up, and you tried "but I didn't look at the pictures, I was only reading the articles!" I'd like to point you at a blog written recently by an industry colleague, who has been observing what's going on here: http://www.groundside.com/blog/content/DuncanMills/J2EE%20Development/2005/0 7/08/Respect.html Even though Duncan works for a company that competes with my employer, and builds a tool that is competitive with the one I work on, I still consider him a friend, like many things about his product, and collaborate with him where possible to improve the overall state of the industry. I wholeheartedly subscribe to his comments about respect, and would like to see a return to the way that the Struts user list worked (nearly all of the time) until fairly recently -- where respect was the norm. Today it is not ... and even in jest many of the comments are innappropriate and embarrasing (to the rest of the community, for having to be associated with it). If you're only here for the Friday [OT] humor, then I suggest you find a different place to cut loose. The purpose of this list is to answer user questions about Struts and all its related technologies -- and you'll sure like how you look on a Google search ten years from now for your name if you've posted like a mature adult instead of an immature 8-year-old. Craig McClanahan - 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]
Our name has changed!! [struts-atlanta -> web-atlanta]
What's in this email? o Name Change o August meeting and "Code Night" o September "Put up or shut up!" Name change --- As discussed on our mailing list, we have broadened the scope of our group. We are now officially called "The Atlanta Web Developers Users Group" It just so happens (if you noticed from a few of my cross-posts from jbug-atlanta) that I have secured a nice meeting room to host our monthly meetings. The room is equipped with an overhead projector, tables, and there is free wireless internet throughout the building. I would like to invite all of you to our next meeting on July 28, 2005 from 7PM to 9PM. I will do my best to provide drinks (Coke, Sprite, bottled water, etc) and a light snack (cookies, crackers, etc), but I can't guarantee I'll find a sponsor to provide that for us. Would anyone like to volunteer to pick up the snacks, drinks, and ice if I can get a few dollars together? The topic this month will be an open forum. In the past we have generally had good success with such a forum. I would like to hear from our members about what kinds of new things you are working on. Perhaps you've got a war story to tell. Maybe you just want to ask about some new technology that you or your company is evaluating. What peaks your interest? Struts? JSF? .Net? PHP? Tapestry? SpringMVC? Please feel free to arrive as early as 6:30 if you like. I know I can never spend enough time networking. Next month -- What's next for August? --== - Code Night - ==-- If you've ever wanted to move to the next level of involvement in open source development (contributing code), join us for our first ever "Code Night". I will hold the Matrix conference room for 4 hours so we can get down to business with what we do best - CODE! When: This is still not determined, but will likely be early in August. Agenda (this is a first pass, it may change) 6:00 PM - 6:50 PM - Setting up your environment. We will walk through installing each of the following: - Cygwin - jdk-1.4.2 - Ant - Maven - Eclipse 3.1 - Subversion client 7:00 PM - 7:45 PM - Build it. - Retrieve the source (your choice) [MyFaces|Struts|Shale|Tapestry|Spring] project, - Configure and build a complete distribution. 8:00 PM - 8:50 PM - To IDE or not to IDE. - Get your chosen project setup and building in Eclipse. - Modify something and generate a patch - Attach the patch to an enhancement ticket. 9:00 PM - 10:00 PM - Open Lab - If you were not able to complete any of the previous step, use this time to finish your tasks or ask any questions you like. You are welcome to skip any of the initial portions of this class if you are already comfortable and ready to go. September - Put up or shut up! --==|| Web Development Shoot-out ||==-- Sponsored by EdgeTech, Inc. I dare you to put your money where your mouth is. That's right! A knock-down, drag-out, no holes barred web development shoot-out. Do you like Struts? Do you prefer JSF? Do you think you can make a fully functional web application in Tapestry faster then the next team can do it in PHP? Give it your best shot baby! Events like this is where the rubber meets the road. So Put up or shut up! When: September 6, 2005 Where: Currently slated for the Matrix Resources training room, but we may quickly overflow that location if this event takes off as planned. Rules: Time limit: 4 hours Team limit: 5 people The Project specification and requirements will be given to the teams all at the same time, that's when the clock starts. Your team can use any approach to getting the application written and deployed in the least amount of time. Don't forget to leave your code flexible to change, because there will be a change in requirements at the half way (2 hours) point. This event requires registration, but is free of charge. The team that places 1st will receive an Apple iPod (sorry, just 1) and $50 gift certificates for each team member. As more sponsors come on board, the prizes may indeed increase in number and value. All results will be posted online, no whining! Feel free to use any framework(s) you like, but the final product must meet the requirements, and will be scored on functional completeness, creativity, and speed. Stay tuned to this channel for more details in the coming weeks... -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Skype: jmitchtx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using the form bean
Thanks Abdullah, I took the JSP 2.0 approach. Didn't realize that was possible. The kind of worked but I wasn't able to put the inside it (it printed out static text though so it was obviously working). Thanks again, Kent -Original Message- From: Abdullah Jibaly [mailto:[EMAIL PROTECTED] Sent: Friday, 8 July 2005 11:53 PM To: Struts Users Mailing List Subject: RE: Using the form bean Don't know if this is the reason but you probably want focus="${focus}" Try using c:if instead of logic:equal, but the cleanest way if you are using jsp 2.0: focus="${form.edit ? 'password' : 'userName'}" Regards, Abdullah -Original Message- From: Kent Boogaart [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 7:59 AM To: 'Struts Users Mailing List' Subject: Using the form bean Hello, I'm trying to set focus on the first enabled field in my form. The first field is disabled if the data is being edited. I thought this would work: But this complains about "No bean found under attribute key form". The weird thing is, I use that same bean further down the page without any problem: If I take out the code then it works (but doesn't set focus to the password field when required). What am I doing wrong here? Thanks, Kent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Shale Users
sorry for emailing you privately. :) I meant it to go to the list as well. But, thanks for your info! Brandon On 7/8/05, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 7/8/05, Brandon Goodin <[EMAIL PROTECTED]> wrote: > > > Does Shale have any good documentation as of yet? > > I suppose that depends on your definition of "good", right? :-) > > There's a fair amount of material about the various features (not all > of them filled in yet) on the Shale web site: > > http://struts.apache.org/shale/ > > which I'm in the process of transferring to, from the wiki where > everything got started: > > http://wiki.apache.org/struts/StrutsShale/ > > In addition, the JavaDocs for each package are pretty thorough, > describing the motivation for that particular feature, and the > highlights of how to use them. There's a pointer to a snapshot of the > Javadocs (which is going to be updated tonight to pick up recent > changes) on the Wiki. > > Finally, with the nightly builds: > > http://cvs.apache.org/builds/struts/nightly/struts-shale/ > > there is a "use cases" web application that contains smal > self-contained examples of using nearly all of these features. Rather > than trying to craft one gigantic application with everything crammed > in, I'm trying this experiment to see if it makes learning the > individual concepts easier -- feedback would be appreciated on whether > this approach actually works! > > Craig > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
Andrew Tomaka wrote the following on 7/8/2005 2:29 PM: in the past few weeks, it's all gone downhill. A good percentage of threads are now off-topic; not off topic like discussing the pros and cons of using an IDE, but off topic like what an H1B is and personal thoughts on outsourcing. I'm guilty of this also.. so I apologize for contributing to the downhill discussion. +1. Let's all cut it out. Don't feed a pest. .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Was [OT] Re: Fired???? ...
I move that we adjourn this thread. Nothing to see here. Please move along. Cheers, Mike Michael Taylor TXE Systems, Inc. [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
There are people who are taking things way too serious around here. They fall into two groups. #1 The easily offended #2 The lude and discourteous. What is funny is often they are one and the same. My comments have been very light hearted and not intended to offend. If folks take the lighter comments to heart then they need to relax. If you have people who are being clearly lude, then we should ignore them (advice i need to take). At the same time, what community doesn't have light hearted jest. To take offense at silly jokes about H1Bs or to go off in a serious rage on an H1B is silly. Both sides need to take a breath. People, please, lighten up, lose the profane language and serious hateful attitudes. We are all here to participate in the Struts community. That doesn't mean we have to be stuffy. But, it does mean that we should have an edge of courtesy. For now I'll refrain from engaging in any off-topic discussions. I hope that people can take it down a notch and relax, then, maybe, we can learn struts, have some fun and still be a friendly community. Brandon On 7/8/05, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 7/8/05, James Mitchell <[EMAIL PROTECTED]> wrote: > > Andrew, you must be new here. See, on Fridays (usually), we like to cut up > > and have a little fun. I think I've donated enough blood on this list to > > deserve a break every now and then. > > And perhaps its time to reign in the freedom to cut up a little on > Fridays. With freedom comes responsibility, and there's been way too > many abuses of that freedom lately (including this thread). > > > If you don't like wasting time with [OT] posts, filter them. Every decent > > mail client will allow you to do that. > > Note that filtering is not a complete answer. Consider a scenario > where you are subscribed to a list like this from your company email > address, where you have (explicitly or implicitly) agreed to whatever > terms of use your company's IT department imposes on you. In more > than a few companies, incoming email messages are scanned for > inappropriate content -- and you could be violating the policies even > if you have a personal filter set up so that *you* don't have to read > the messages. "But I didn't read it" isn't going to be a very useful > defense -- any more than if your mom caught you reading Playboy when > growing up, and you tried "but I didn't look at the pictures, I was > only reading the articles!" > > I'd like to point you at a blog written recently by an industry > colleague, who has been observing what's going on here: > > http://www.groundside.com/blog/content/DuncanMills/J2EE%20Development/2005/07/08/Respect.html > > Even though Duncan works for a company that competes with my employer, > and builds a tool that is competitive with the one I work on, I still > consider him a friend, like many things about his product, and > collaborate with him where possible to improve the overall state of > the industry. I wholeheartedly subscribe to his comments about > respect, and would like to see a return to the way that the Struts > user list worked (nearly all of the time) until fairly recently -- > where respect was the norm. Today it is not ... and even in jest many > of the comments are innappropriate and embarrasing (to the rest of the > community, for having to be associated with it). > > If you're only here for the Friday [OT] humor, then I suggest you find > a different place to cut loose. The purpose of this list is to answer > user questions about Struts and all its related technologies -- and > you'll sure like how you look on a Google search ten years from now > for your name if you've posted like a mature adult instead of an > immature 8-year-old. > > Craig McClanahan > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
Yan Hu is our new troll! I wonder if Yan Hu is some kind of ancient code for Mark Galbreath :D Mark is that you? On 7/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > And so, the circle is complete. > > :) > > - Dennis > > > "James Mitchell" <[EMAIL PROTECTED]> > 07/08/2005 04:43 PM > Please respond to > "Struts Users Mailing List" > > > To > "Struts Users Mailing List" , "Andrew Tomaka" > <[EMAIL PROTECTED]> > cc > > Subject > Re: [OT] Re: Fired was...Re: Struts Books Recommendations [OT] > > > > > > > Andrew, you must be new here. See, on Fridays (usually), we like to cut > up > and have a little fun. I think I've donated enough blood on this list to > deserve a break every now and then. > > If you don't like wasting time with [OT] posts, filter them. Every decent > > mail client will allow you to do that. > > > > -- > James Mitchell > Software Engineer / Open Source Evangelist > Consulting / Mentoring / Freelance > EdgeTech, Inc. > http://www.edgetechservices.net/ > 678.910.8017 > AIM: jmitchtx > MSN: [EMAIL PROTECTED] > Skype: jmitchtx > > - Original Message - > From: "Andrew Tomaka" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Friday, July 08, 2005 2:29 PM > Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations > [OT] > > > I was trying to avoid jumping in here, but I couldn't hold out. > > How about we all grow up and act like adults? Never in my life have I > seen such a childish display. I think Rick's "My mom can beat up your > mom." made the same point I'm making here. And Yan, you may have > given it a "hahaha +1," but that was directed at you just as much as > it was directed at anyone else. > > This is supposed to be a list of professionals. We are all here > trying to help one another through our Struts issues. I fail to see > how making fun of some for using or not using an IDE or discussing > anti-discrimination laws or most everything that has been written in > the last two weeks applies to the goals of this list. And I certainly > don't see how saying things like "Can you even reason logically? Ha > you can not since you do not have a brain." helps anyone in anyway. > > When I joined the Struts list in May, it was an invaluable resource. > I was able to quickly learn the framework through the questions others > were asking. But in the past few weeks, it's all gone downhill. A > good percentage of threads are now off-topic; not off topic like > discussing the pros and cons of using an IDE, but off topic like what > an H1B is and personal thoughts on outsourcing. > > Why don't we get back to the reason this list exists and the purpose > of Sturts: making our lives easier. > > ~ Andrew Tomaka > > > On 7/8/05, Yan Hu <[EMAIL PROTECTED]> wrote: > > > > > > --- James Mitchell <[EMAIL PROTECTED]> wrote: > > > > > ROFL > > > > > > Oh ya! My mom can beat up your dad! > > > > hahaha +1 > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
On 7/8/05, James Mitchell <[EMAIL PROTECTED]> wrote: > Andrew, you must be new here. See, on Fridays (usually), we like to cut up > and have a little fun. I think I've donated enough blood on this list to > deserve a break every now and then. And perhaps its time to reign in the freedom to cut up a little on Fridays. With freedom comes responsibility, and there's been way too many abuses of that freedom lately (including this thread). > If you don't like wasting time with [OT] posts, filter them. Every decent > mail client will allow you to do that. Note that filtering is not a complete answer. Consider a scenario where you are subscribed to a list like this from your company email address, where you have (explicitly or implicitly) agreed to whatever terms of use your company's IT department imposes on you. In more than a few companies, incoming email messages are scanned for inappropriate content -- and you could be violating the policies even if you have a personal filter set up so that *you* don't have to read the messages. "But I didn't read it" isn't going to be a very useful defense -- any more than if your mom caught you reading Playboy when growing up, and you tried "but I didn't look at the pictures, I was only reading the articles!" I'd like to point you at a blog written recently by an industry colleague, who has been observing what's going on here: http://www.groundside.com/blog/content/DuncanMills/J2EE%20Development/2005/07/08/Respect.html Even though Duncan works for a company that competes with my employer, and builds a tool that is competitive with the one I work on, I still consider him a friend, like many things about his product, and collaborate with him where possible to improve the overall state of the industry. I wholeheartedly subscribe to his comments about respect, and would like to see a return to the way that the Struts user list worked (nearly all of the time) until fairly recently -- where respect was the norm. Today it is not ... and even in jest many of the comments are innappropriate and embarrasing (to the rest of the community, for having to be associated with it). If you're only here for the Friday [OT] humor, then I suggest you find a different place to cut loose. The purpose of this list is to answer user questions about Struts and all its related technologies -- and you'll sure like how you look on a Google search ten years from now for your name if you've posted like a mature adult instead of an immature 8-year-old. Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to set tiles attribute dynamically?
Dave: That worked perfectly! Thanks for the hint. Thanks, Neil -- Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com FREE! Valuable info on how your business can reduce operating costs by 17% or more in 6 months or less! http://newsletter.JAMMConsulting.com > -Original Message- > From: Durham David R Jr Ctr 805 CSPTS/SCE > [mailto:[EMAIL PROTECTED] > Sent: Friday, July 08, 2005 1:35 PM > To: Struts Users Mailing List > Subject: RE: How to set tiles attribute dynamically? > > > > The problem is that the pageTitle depends on the parameter > > value and is not fixed. Is there a way to put a method > > call in the tiles-defs.xml so I can pull the correct page > > title from the database? > > IMO, the best way to do this is at the Tiles Controller level. > Controllers receive a ComponentContext object which allows you to put > attributes into the tiles scope. Since it also receives the request > object, you basically end up with something like this: > > > public class MyController extends ControllerSupport { > > public void execute( > ComponentContext tileContext, > HttpServletRequest request, > HttpServletResponse response, > ServletContext servletContext) > throws Exception { > > tileContext.putAttribute("pageTitle", > request.getParameter("pageTitle"); > > } > > > } > > > I'm leaving out the details that go in the tiles-defs file, > because I'm > guessing that you already know them. If not, let me know and maybe I > can provide you with more help. > > > - Dave > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
And so, the circle is complete. :) - Dennis "James Mitchell" <[EMAIL PROTECTED]> 07/08/2005 04:43 PM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" , "Andrew Tomaka" <[EMAIL PROTECTED]> cc Subject Re: [OT] Re: Fired was...Re: Struts Books Recommendations [OT] Andrew, you must be new here. See, on Fridays (usually), we like to cut up and have a little fun. I think I've donated enough blood on this list to deserve a break every now and then. If you don't like wasting time with [OT] posts, filter them. Every decent mail client will allow you to do that. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Skype: jmitchtx - Original Message - From: "Andrew Tomaka" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, July 08, 2005 2:29 PM Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations [OT] I was trying to avoid jumping in here, but I couldn't hold out. How about we all grow up and act like adults? Never in my life have I seen such a childish display. I think Rick's "My mom can beat up your mom." made the same point I'm making here. And Yan, you may have given it a "hahaha +1," but that was directed at you just as much as it was directed at anyone else. This is supposed to be a list of professionals. We are all here trying to help one another through our Struts issues. I fail to see how making fun of some for using or not using an IDE or discussing anti-discrimination laws or most everything that has been written in the last two weeks applies to the goals of this list. And I certainly don't see how saying things like "Can you even reason logically? Ha you can not since you do not have a brain." helps anyone in anyway. When I joined the Struts list in May, it was an invaluable resource. I was able to quickly learn the framework through the questions others were asking. But in the past few weeks, it's all gone downhill. A good percentage of threads are now off-topic; not off topic like discussing the pros and cons of using an IDE, but off topic like what an H1B is and personal thoughts on outsourcing. Why don't we get back to the reason this list exists and the purpose of Sturts: making our lives easier. ~ Andrew Tomaka On 7/8/05, Yan Hu <[EMAIL PROTECTED]> wrote: > > > --- James Mitchell <[EMAIL PROTECTED]> wrote: > > > ROFL > > > > Oh ya! My mom can beat up your dad! > > hahaha +1 > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
Andrew, you must be new here. See, on Fridays (usually), we like to cut up and have a little fun. I think I've donated enough blood on this list to deserve a break every now and then. If you don't like wasting time with [OT] posts, filter them. Every decent mail client will allow you to do that. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Skype: jmitchtx - Original Message - From: "Andrew Tomaka" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, July 08, 2005 2:29 PM Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations [OT] I was trying to avoid jumping in here, but I couldn't hold out. How about we all grow up and act like adults? Never in my life have I seen such a childish display. I think Rick's "My mom can beat up your mom." made the same point I'm making here. And Yan, you may have given it a "hahaha +1," but that was directed at you just as much as it was directed at anyone else. This is supposed to be a list of professionals. We are all here trying to help one another through our Struts issues. I fail to see how making fun of some for using or not using an IDE or discussing anti-discrimination laws or most everything that has been written in the last two weeks applies to the goals of this list. And I certainly don't see how saying things like "Can you even reason logically? Ha you can not since you do not have a brain." helps anyone in anyway. When I joined the Struts list in May, it was an invaluable resource. I was able to quickly learn the framework through the questions others were asking. But in the past few weeks, it's all gone downhill. A good percentage of threads are now off-topic; not off topic like discussing the pros and cons of using an IDE, but off topic like what an H1B is and personal thoughts on outsourcing. Why don't we get back to the reason this list exists and the purpose of Sturts: making our lives easier. ~ Andrew Tomaka On 7/8/05, Yan Hu <[EMAIL PROTECTED]> wrote: --- James Mitchell <[EMAIL PROTECTED]> wrote: > ROFL > > Oh ya! My mom can beat up your dad! hahaha +1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations...now spellings[OT]
Too bad it also matches almost every ISP's domain name... :-O Michael Taylor TXE Systems, Inc. [EMAIL PROTECTED] Brady Hegberg wrote: Google results: struts: 2,330,000 sturts: 7,470 sruts: 1,700 srtuts: 1,040 strutus: 328 The one big advantage of .net: it's easy to spell. -Brady Why don't we get back to the reason this list exists and the purpose of Sturts: making our lives easier. ~ Andrew Tomaka - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations...now spellings[OT]
...but a real bugger to google for - #? .net? Too bad M$ couldn't somehow work an & and a ? into the name... Hmm, C#&ASP.NET? Looks like a cartoon character swearing...or me trying to write code with vs.net. Larry PS: it is friday, right? On 7/8/05, Brady Hegberg <[EMAIL PROTECTED]> wrote: > Google results: > > struts: 2,330,000 > sturts: 7,470 > sruts: 1,700 > srtuts: 1,040 > strutus: 328 > > The one big advantage of .net: it's easy to spell. > > -Brady > > > Why don't we get back to the reason this list exists and the purpose > > of Sturts: making our lives easier. > > > > ~ Andrew Tomaka > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations...now spellings[OT]
Google results: struts: 2,330,000 sturts: 7,470 sruts: 1,700 srtuts: 1,040 strutus: 328 The one big advantage of .net: it's easy to spell. -Brady > Why don't we get back to the reason this list exists and the purpose > of Sturts: making our lives easier. > > ~ Andrew Tomaka - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLVED! RE: Struts-config.xml Digester endElement problem
Hubert was correct. The problem was a wrong value to the "type" attribute of the element. The type or className attributes of a tag is an ActionFormBean. An ActionFormBean is used to store definitions of Forms. It is not an ActionForm itself. I guess Digester's message "parameter type mismatch" was correct, assuming that it is complaining that a FormBean should not be used for . (It would have been better if it made it clearer, though). -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 5:13 PM To: Struts Users Mailing List Subject: Re: Struts-config.xml Digester endElement problem This is what I think could be causing your problem: > > > > The type of class you pass for the "type" of "form-beans" is different from the one you pass to "type" of an individual "form-bean". You're using the same class for these; that would cause you problems somewhere, and could be what you're seeing now. Hubert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validation and Display Question
To get the error appear next to the field add the following : to change the text of the field label (if your form is a table) ... class="error"> Field label ... ">"Scott Purcell" <[EMAIL PROTECTED]> "Scott Purcell" <[EMAIL PROTECTED]> 07/08/2005 02:58 PM Please respond to "Struts Users Mailing List" To cc Subject Validation and Display Question I am seeking some advice on the following: I have a site which uses the validator.xml and validation.xml files, and within the jsp pages, I am using the All works great, but I want to go further with my validation. Upon some investigating on other sites, I have noticed that some sites will actually change the text in front of textfields to a red along with a message about the error. I would like to be able to perform this type of error display, instead of the simple message that comes from the html:messages error, which is a list of problems. has anyone seen this done, or have any ideas where to begin with this? Thanks, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validation and Display Question
Sorry, I'm not at my home box and I'm also in a hurry or I would have a better answer. I have always done this the hard way -- using a logic:messagesPresent switch beside each field, seeing if a message for that particular property is present, highlighting if it is. It does work but it's a lot of typing. In the archives, I would say within the last year but perhaps 18 months, is a discussion between me and Joe G. about this with code examples. Sorry, I can't remember the thread name! However, I thought I overheard Niall talking about a 1.2.6 addition that encapsulated all this in a tag or something? Erik -Original Message- From: Scott Purcell <[EMAIL PROTECTED]> Sent: Jul 8, 2005 2:58 PM To: user@struts.apache.org Subject: Validation and Display Question I am seeking some advice on the following: I have a site which uses the validator.xml and validation.xml files, and within the jsp pages, I am using the
Validation and Display Question
I am seeking some advice on the following: I have a site which uses the validator.xml and validation.xml files, and within the jsp pages, I am using the
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
Andrew Tomaka wrote the following on 7/8/2005 2:29 PM: When I joined the Struts list in May, it was an invaluable resource. I was able to quickly learn the framework through the questions others were asking. But in the past few weeks, it's all gone downhill. A good percentage of threads are now off-topic; not off topic like discussing the pros and cons of using an IDE, but off topic like what an H1B is and personal thoughts on outsourcing. I'm guilty of this also.. so I apologize for contributing to the downhill discussion. Fortunately most users are still pretty helpful and still manage to help out the people asking questions that get stuck between a million OT posts:) As annoying/amusing(?:) many of the OT posts are on this list, I still find more helpful people on this list than many of the lists I've been on. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to set tiles attribute dynamically?
> The problem is that the pageTitle depends on the parameter > value and is not fixed. Is there a way to put a method > call in the tiles-defs.xml so I can pull the correct page > title from the database? IMO, the best way to do this is at the Tiles Controller level. Controllers receive a ComponentContext object which allows you to put attributes into the tiles scope. Since it also receives the request object, you basically end up with something like this: public class MyController extends ControllerSupport { public void execute( ComponentContext tileContext, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws Exception { tileContext.putAttribute("pageTitle", request.getParameter("pageTitle"); } } I'm leaving out the details that go in the tiles-defs file, because I'm guessing that you already know them. If not, let me know and maybe I can provide you with more help. - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
Sorry, wrong posting. Not intended for this group. Thanks, -Original Message- From: Goswami, Raj Sent: Friday, July 08, 2005 2:33 PM To: 'Struts Users Mailing List'; 'Andrew Tomaka' Subject: RE: [OT] Re: Fired was...Re: Struts Books Recommendations [OT] Right click on the wsad app and select property. Take out everything after "...\wsappdev.exe." Thanks, Raj -Original Message- From: Andrew Tomaka [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 2:30 PM To: Struts Users Mailing List Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations [OT] I was trying to avoid jumping in here, but I couldn't hold out. How about we all grow up and act like adults? Never in my life have I seen such a childish display. I think Rick's "My mom can beat up your mom." made the same point I'm making here. And Yan, you may have given it a "hahaha +1," but that was directed at you just as much as it was directed at anyone else. This is supposed to be a list of professionals. We are all here trying to help one another through our Struts issues. I fail to see how making fun of some for using or not using an IDE or discussing anti-discrimination laws or most everything that has been written in the last two weeks applies to the goals of this list. And I certainly don't see how saying things like "Can you even reason logically? Ha you can not since you do not have a brain." helps anyone in anyway. When I joined the Struts list in May, it was an invaluable resource. I was able to quickly learn the framework through the questions others were asking. But in the past few weeks, it's all gone downhill. A good percentage of threads are now off-topic; not off topic like discussing the pros and cons of using an IDE, but off topic like what an H1B is and personal thoughts on outsourcing. Why don't we get back to the reason this list exists and the purpose of Sturts: making our lives easier. ~ Andrew Tomaka On 7/8/05, Yan Hu <[EMAIL PROTECTED]> wrote: > > > --- James Mitchell <[EMAIL PROTECTED]> wrote: > > > ROFL > > > > Oh ya! My mom can beat up your dad! > > hahaha +1 > > - > 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] - This email transmission and any accompanying attachments may contain CSX privileged and confidential information intended only for the use of the intended addressee. Any dissemination, distribution, copying or action taken in reliance on the contents of this email by anyone other than the intended recipient is strictly prohibited. If you have received this email in error please immediately delete it and notify sender at the above CSX email address. Sender and CSX accept no liability for any damage caused directly or indirectly by receipt of this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
Right click on the wsad app and select property. Take out everything after "...\wsappdev.exe." Thanks, Raj -Original Message- From: Andrew Tomaka [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 2:30 PM To: Struts Users Mailing List Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations [OT] I was trying to avoid jumping in here, but I couldn't hold out. How about we all grow up and act like adults? Never in my life have I seen such a childish display. I think Rick's "My mom can beat up your mom." made the same point I'm making here. And Yan, you may have given it a "hahaha +1," but that was directed at you just as much as it was directed at anyone else. This is supposed to be a list of professionals. We are all here trying to help one another through our Struts issues. I fail to see how making fun of some for using or not using an IDE or discussing anti-discrimination laws or most everything that has been written in the last two weeks applies to the goals of this list. And I certainly don't see how saying things like "Can you even reason logically? Ha you can not since you do not have a brain." helps anyone in anyway. When I joined the Struts list in May, it was an invaluable resource. I was able to quickly learn the framework through the questions others were asking. But in the past few weeks, it's all gone downhill. A good percentage of threads are now off-topic; not off topic like discussing the pros and cons of using an IDE, but off topic like what an H1B is and personal thoughts on outsourcing. Why don't we get back to the reason this list exists and the purpose of Sturts: making our lives easier. ~ Andrew Tomaka On 7/8/05, Yan Hu <[EMAIL PROTECTED]> wrote: > > > --- James Mitchell <[EMAIL PROTECTED]> wrote: > > > ROFL > > > > Oh ya! My mom can beat up your dad! > > hahaha +1 > > - > 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] - This email transmission and any accompanying attachments may contain CSX privileged and confidential information intended only for the use of the intended addressee. Any dissemination, distribution, copying or action taken in reliance on the contents of this email by anyone other than the intended recipient is strictly prohibited. If you have received this email in error please immediately delete it and notify sender at the above CSX email address. Sender and CSX accept no liability for any damage caused directly or indirectly by receipt of this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
I was trying to avoid jumping in here, but I couldn't hold out. How about we all grow up and act like adults? Never in my life have I seen such a childish display. I think Rick's "My mom can beat up your mom." made the same point I'm making here. And Yan, you may have given it a "hahaha +1," but that was directed at you just as much as it was directed at anyone else. This is supposed to be a list of professionals. We are all here trying to help one another through our Struts issues. I fail to see how making fun of some for using or not using an IDE or discussing anti-discrimination laws or most everything that has been written in the last two weeks applies to the goals of this list. And I certainly don't see how saying things like "Can you even reason logically? Ha you can not since you do not have a brain." helps anyone in anyway. When I joined the Struts list in May, it was an invaluable resource. I was able to quickly learn the framework through the questions others were asking. But in the past few weeks, it's all gone downhill. A good percentage of threads are now off-topic; not off topic like discussing the pros and cons of using an IDE, but off topic like what an H1B is and personal thoughts on outsourcing. Why don't we get back to the reason this list exists and the purpose of Sturts: making our lives easier. ~ Andrew Tomaka On 7/8/05, Yan Hu <[EMAIL PROTECTED]> wrote: > > > --- James Mitchell <[EMAIL PROTECTED]> wrote: > > > ROFL > > > > Oh ya! My mom can beat up your dad! > > hahaha +1 > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
--- Rick Reumann <[EMAIL PROTECTED]> wrote: > Yan Hu wrote the following on 7/8/2005 1:29 PM: > > > I respect good people(regardless of races) not an asshole like you. > > My mom can beat up your mom. > > -- > Rick Do you have a Mom? Come on man.. Be strong. I understand how tought life can be without a Mom? But try to talk as if you had one... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validator, sutrts-config and form-property's types
Actually, BeanUtils can convert from String to a variety of Java types; Date just doesn't happen to be one of them by default. However, it's generally recommended to use String properties in action forms exclusively so that invalid user inputs can be re-displayed as entered. For example, if you ask for a data and the user enters 'Barney', date parsing is going to fail wherever it occurs. If the form uses type Date, there's no way you can represent the invalid input 'Barney' in the form, so you can't redisplay it to the user for correction. Hence use of String valued form properties. If you don't care about round-tripping bad inputs this way, you can always register additional converters with BeanUtils to handle the String to X conversions you need. L. Borislav Sabev wrote: Hi all, The problem I'd like to discuss is how Validator works with form properties. IMHO there is a contradiction (or maybe I don't know how to resolve this problem - in this case, please help me) with types of Form properties. The end result is that if I want to use the Validator, all my form properties MUST be java.lang.String, otherwise Struts (in fact BeanUtils and ConvertorUtils) throws org.apache.commons.beanutils.ConversionException. So why should specify the type of form properties if Validator so and so doesn't work with any other type than java.util.String. To clarify the problem here is an example: I have this form: and here is the snippet of my validation.xml file that should check that the dates entered are in some special format: datePattern -MM-dd datePattern -MM-dd The idea behind this is that I want the parameters that are coming with the request, to be "translated" to their expected types once and only once! So if you try this, you will get org.apache.commons.beanutils.ConversionException (thrown from RequestProcessor if I remember correctly). As soon as I set this the validator starts to work correctly. So here I see at least 2 problems: 1. I'm forced again to parse the String properties of the form to proper java.util.Date objects (or whatever other type it has to be) 2. because of 1. , my date format string now is in 2 places instead of one place i.e. I have a support problem So IMHO this is a "framework" inconsistency since. Please tell me if I do something wrong or this is one of "known limitations". Borislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Laurie, Open Source advocate, Java geek and novice blogger: http://www.holoweb.net/~laurie/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
> ROFL > > Oh ya! My mom can beat up your dad! Your dad beat up my mom! BTW, she wants a rematch. - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
--- James Mitchell <[EMAIL PROTECTED]> wrote: > ROFL > > Oh ya! My mom can beat up your dad! hahaha +1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: generate image by servlet for large amount of requests
Using a servlet seems reasonable. Whether or not you code will scale adequately really depends on how generateMap() is implemented. If it can process calls at the rate you anticipate needing you'll be fine. If it can't you'll have to optimize it, introduce caching, use client-side pre-fetching of image data á la Google Maps, whatever. L. Tony Smith wrote:r Any ideas? --- Tony Smith <[EMAIL PROTECTED]> wrote: Let's think about maps.yahoo.com. I do not know how they handle millions of request and generate the map pictures quickly. If I use a servlet, in the post or get method I use: BufferedImage mapImage = myTookKit.generateMap(String address); response.setContentType("image/png"); OutputStream os = response.getOutputStream(); ImageIO.write(buffer, "png", os); os.close(); Is servlet a good choice? If I use servlet, is the code above good enough to handle hundreds of request? Is the choice of BufferedImage a good one? What special technique I need to implement "myTookKit" to make it faster? I am thinking about JNI. Thanks, __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Laurie, Open Source advocate, Java geek and novice blogger: http://www.holoweb.net/~laurie/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
ROFL Oh ya! My mom can beat up your dad! -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Skype: jmitchtx - Original Message - From: "Rick Reumann" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, July 08, 2005 2:03 PM Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations [OT] Yan Hu wrote the following on 7/8/2005 1:29 PM: I respect good people(regardless of races) not an asshole like you. My mom can beat up your mom. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
Yan Hu wrote the following on 7/8/2005 1:29 PM: I respect good people(regardless of races) not an asshole like you. My mom can beat up your mom. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
Personally, I try not to discriminate against idiots. I like to treat them all the same. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Skype: jmitchtx - Original Message - From: "Yan Hu" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" ; "Martin Gainty" <[EMAIL PROTECTED]> Sent: Friday, July 08, 2005 1:29 PM Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations [OT] Mr Yan: For most of us here this is not a game but a livelihood If I go to China or India I understand that am a guest in that country and aware that I must not abuse and or break the laws of the country.. Calling someone that makes fun of others an "idiot" definately does not break any law in the US. Remembering that it is against anti-discrimination law here to denigrate or vilify anyone according to ethnic and or racial heritage (even US Citizens)..> Calling someone 'an idiot' based on ANY grouping criteria as you have here is clearly discriminatory it is also against anti-discrimination law to make fun of minorities. Hahah, you are such a big idiot. Can you even reason logically? Ha you can not since you do not have a brain. In your case I would suggest that you are not Remembering that you are guests here of my country> I am asking is that you and your fellow guests extend the SAME courtesy as I a US Citizen would extend if I was working in your country. Haha again, I guess you would be a coward in a different country becuas you will NOT defend yourself when the natives make fun of you. And now you are an idiot + coward. I dispise you. That is to respect and obey ALL the laws of my country and that ALSO that your words and behaviour should extend respect to ALL of its citizens.. I respect good people(regardless of races) not an asshole like you. Remember also that any US Citizen can file a complaint against any H1B with the INS so in your case I would caution you to be careful what you say from now on. I will tell you that you can do whatever you want. Just remember not to flinch in a different country becuase you will be victimized by idoits like yourself. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
Brandon: Now you perhaps have seen his email. Was he joking? No he was very serious. --- Brandon Goodin <[EMAIL PROTECTED]> wrote: > Yan Hu, > > Take it down a notch amigo. If you hadn't noticed we were being > playful. Maybe they don't have a since of humor in other countries ;-) > <-- please notice wink face so that you are not offended and under the > assumption that i am serious. > > Brandon > > On 7/8/05, Yan Hu <[EMAIL PROTECTED]> wrote: > > Last time the price tag I checked on these 2 idiots was 0/hour. Is this > > your personal > playground > > to make fun of H1Bs or a struts list? Hey, do not hate the players. Hate > > the game. > > > > --- Martin Gainty <[EMAIL PROTECTED]> wrote: > > > > > Brandon- > > > Keeping in mind that No inductive generalisations can qualify from these > > > premises > > > The last time I checked The price for the aforementioned is pegged at > > > 1c/hour > > > which by my calculations qualifies as 'outsourcing the outsourcers' > > > This is the MSRP ..Your mileage may of course vary depending on your usage > > > habits.. > > > Viel Gluck, > > > M- > > > > > > - Original Message - > > > From: "Brandon Goodin" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" ; "Martin Gainty" > > > <[EMAIL PROTECTED]> > > > Sent: Wednesday, July 06, 2005 8:39 PM > > > Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations > > > [OT] > > > > > > > > > Where do you work!? I am going to notify your boss of you disgruntle > > > behavior on this list!!! No wonder why we have H1Bs. They never > > > complain and just take their 2 cents an hour. > > > > > > And I mean that in the best possible way :p ;-) :D > > > > > > Brandon > > > > > > On 7/6/05, Martin Gainty <[EMAIL PROTECTED]> wrote: > > > > Unfortunately in the US you can be canned for being too old or having > > > > the > > > > wrong religious views > > > > we have a ton of laws on the books but they are unenforced > > > > My question is how do I (an older engineer with politically incorrect > > > > views) > > > > get work in Germany > > > > Vielen Danke, > > > > Martin- > > > > - Original Message - > > > > From: "Christian Bollmeyer" <[EMAIL PROTECTED]> > > > > To: "Struts Users Mailing List" > > > > Sent: Wednesday, July 06, 2005 7:31 PM > > > > Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations > > > > [OT] > > > > > > > > > > > > > On Wednesday 06 July 2005 19:48, Rick Reumann wrote: > > > > > > > > > > Hi, > > > > > > > > > >> Daniel Perry wrote the following on 7/6/2005 12:49 PM: > > > > >> > Hah, it's the business use of web/email they fire you for. Go read > > > > >> > your terms of employment, and the reference to "IT acceptible use > > > > >> > policy" that you inadvertantly agreed to. > > > > >> > > > > >> (the below has nothing to do with Mark).. > > > > >> > > > > >> For the record, I'm not against an employer firing an employee for > > > > >> 'whatever' reason they deem fit. If they don't like the way you wear > > > > >> your hair, I think they should have the right to fire you if they > > > > >> want. (The public also has a right to know about it based on the use > > > > >> of the press etc). > > > > > > > > > > Now though I'm clearly not in the position to get fired anytime soon, > > > > > I still think as long as I'm doing my job right and don't blame the > > > > > company I work for, what I do in my leisure time is not my > > > > > employer's business. Including my haircut, age, religious beliefs > > > > > or whatever. What I sell are my skills, work performance and > > > > > last but not least a significant part of my lifetime, but neither > > > > > my soul nor my private life. In Germany, it's not quite that easy > > > > > to get rid of someone who, lets say, just got older because of > > > > > working for you. And I think this is just. Stealing silver spoons, > > > > > including deliberately breaking company rules in terms of > > > > > e-mail usage and the like is another issue. > > > > > > > > > >> Personally, if I owned a company and someone was using the company > > > > >> email domain name to post on sites such as "swingers" or > > > > >> "transvestitepride," I think I should have right to terminate his or > > > > >> her's employment. What I have a problem with is ... > > > > >> > > > > >> 1) The inconsistency in what is protected. For example everyone today > > > > >> talks about "tolerance." But what does this mean? What it ends up > > > > >> meaning is "There are no moral absolutes so the only valid belief > > > > >> system protected is one that doesn't espouse moral judgments." But > > > > >> what about being tolerant to the idea that someone might feel > > > > >> otherwise? Why is state sanctioned secularism the only valid > > > > >> religion (and yes secularism is a belief system - a religion). It's > > > > >> sort of funny that those whom often claim to be the most 'tolerant' > > > > >> are often the most vicious when it comes to atta
Re: Spring
Alternatively, you could consider population of the chain Context to be roughly "application assembly" -- but the commons-chain library doesn't really provide much support for setting up a complicated Context. I know, but even digester lets me assemble objects. And hivemind. I do wish Struts/Shale/Jakarta/Sun had an unimplemented Dao interfac Hm. What would this look like? Is it just a marker? The way I write my DAOs, there would never really be any useful commonality which could be extracted into an interface. The fact that there is an interface is key. Then I can change from EJB to iBatis to xyz. ex: ArrayList populate(Map args) boolean insert(Map row) etc. .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validator, sutrts-config and form-property's types
Craig McClanahan wrote: Is this with JSP by specification or it's a implementation issue? I hope it's by spec ... Sorry, my mistake, I wanted to write JSF. It's not really a JSP issue, but a component issue. In JavaServer Faces (or Tapestry), the components themselves maintain the string version of the submitted value so that it can be redisplayed, and also know how to do the appropriate conversions. Thus, in a JSF app, the data you bind to can be of appropriate native types. Struts 1.x does not have a user interface component model, so the app has to do all this work itself. Craig I think that may be I'm misunderstood or at least I didn't set the question properly. If the Validator works correctly only if I use String types for Form properties, in this case why it's possible at all I to specify them as a type in Struts-Config file? If every time BeanUtils throws this ConversionException, then even population of the forms (BEFORE any validation) doesn't work properly. So even if I don't use the validation, population works only if I specify Strings, thus no need at all the form property types to be customizable at all. Borislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
> Mr Yan: > > For most of us here this is not a game but a livelihood > If I go to China or India I understand that am a guest in that country and > aware that I must not abuse and or break the laws of the country.. Calling someone that makes fun of others an "idiot" definately does not break any law in the US. > Remembering that it is against anti-discrimination law here to denigrate or > vilify anyone according to ethnic and or racial heritage (even US > Citizens)..> Calling someone 'an idiot' based on ANY grouping criteria as you > have here > is clearly discriminatory it is also against anti-discrimination law to make fun of minorities. Hahah, you are such a big idiot. Can you even reason logically? Ha you can not since you do not have a brain. > In your case I would suggest that you are not Remembering that you are > guests here of my country> I am asking is that you and your fellow guests > extend the SAME courtesy as I a US Citizen would extend if I was working in your country. Haha again, I guess you would be a coward in a different country becuas you will NOT defend yourself when the natives make fun of you. And now you are an idiot + coward. I dispise you. > That is to respect and obey ALL the laws of my country and that ALSO that > your words and behaviour should extend respect to ALL of its > citizens.. I respect good people(regardless of races) not an asshole like you. Remember also that any US Citizen can file a complaint against any > H1B with the INS so in your case I would caution you to be careful what you > say from now on. I will tell you that you can do whatever you want. Just remember not to flinch in a different country becuase you will be victimized by idoits like yourself. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Tiles Question
[EMAIL PROTECTED] wrote: I am using Struts Tiles to layout my site. I have a vboxmenu design which contains 4 menu levels: I am wanting to control when the Authenticated menu and the Admin Menu are displayed. For example, only display the admin menu if the user is in the Admin Role. I know that the taglib tld has a role attribute, but the dtd for tiles-def does not. Has anyone created anything simular with tiles? As far as I'm aware, there's no way to do that at the tiles level. You could either wrap the tags in your JSP with or similar, or make the test in the JSP for the individual tiles, which may be cleaner. L. -- Laurie, Open Source advocate, Java geek and novice blogger: http://www.holoweb.net/~laurie/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dialog stuff (was) Re: Refresher for newbies...
Michael Jouravlev wrote the following on 7/7/2005 5:13 PM: > The good thing that company I currently work at is about to have > another web project and hopefully I will be able to use my own stuff. > On the other hand, I am not sure how I can use it at work, and still > keep it for myself and as opensource. I hope that putting it out to > the sourceforge should help a bit. Modularise it and put it out on SourceForge quickly! Make sure that your email address registered at SourceForge is not your company email! (Otherwise you might end up like Mark Galbreath!) Then just use it like any other open-source component. Rick Reumann on 08/07/05 05:24, wrote: [SNIP] This is the reason actually that I'm going to start learning .NET stuff. I think what you are proposing seems very exciting and I look forward to keeping tabs on the progress, however I have this feeling (probably unfounded) that companies are going to feel overwhelmed with the choices out there and simply say "Screw it, I'll just go with an MS solution." That's exactly why I suggested that Struts should 'shrink' - at least struts-core should shrink. At the risk of boring the list, I'll just cut and paste what I wrote (it disappeared without a reply earlier): In my humble opinion the struts community has not grasped an opportunity which would see it compete against .NET and other java frameworks. Struts should shrink. I'm thinking of Maven. The most contentious yet inspired point about Maven is that you just have to follow the 'Maven way' or you won't gain any advantage over Ant. Yet if you do make that paradigm shift and do your project the Maven way, the benefits are massive. Struts should offer a best-of approach, and offer a whole set of documentation that steers the web developer down that path. Such a focus during future struts development would allow many compromises to be thrown out in favour of the more efficient but limiting choices, which would translate into shorter turn-around times for struts web-app developers who went along with it. So Rick, I agree with your opinion, but not with your consequent actions (learning .NET) and Michael, I disagree here - choice is not good! Well not for newbies. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing data between action forms
On 7/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > From: Wendy Smoak <[EMAIL PROTECTED]> > > Sent: Jul 8, 2005 12:51 PM > > To: Struts Users Mailing List > > Subject: Re: Passing data between action forms > > > > > From: "Michael Jouravlev" <[EMAIL PROTECTED]> > > > > > > It will sound like a scratched vinil, but I believe that forwarding > > > from search page to result page is not the right thing to do, because > > > whenever you refresh result page, you run the search query again. So, > > > it should be a redirect. > > > > I think so, too. I was just looking at the old project I wrote about, and I > > could dispense with setting those request attributes if I just constructed > > the URL to the ResolveName action, and redirected to it. Back then, I was > > just glad it worked. :) > > > > -- > > Wendy Smoak > > I'm not knocking your approach, but synchronizer tokens solve the same > problem, with or without a redirect. > > Erik * You can catch resubmission in the application on server, but a user still sees POSTDATA message. This message is annoying, it gets in the way, and a user has to give an answer to a question which he does not understand, and what he should care less about. * What if I go back to the search page (which is in your case, is cached and is not reloaded, or so I presume) and resubmit the same or even a different query? Token was already removed from the session, so this would be considered as illegal resubmit. Using model to check for resubmit data is more robust and intelligent, than using tokens which know nothing about your data and workflow. Though tokens are better than nothing, of course. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validator, sutrts-config and form-property's types
On 7/8/05, Borislav Sabev <[EMAIL PROTECTED]> wrote: > Jeff Beal wrote: > > >I think that if Mark Galbreath were still around, he'd reply with > >"Validator sucks" or something similar. > > > >Basically, your statements below are all quite correct. I will add > >(in response to Point 1 below) that the BeanUtils library is what > >Struts uses internally to copy values from the request to your > >ActionForm, and it knows how to convert Strings into other types, like > >Date. I typically use BeanUtils to populate a (well typed) DTO from > >my ActionForm once the data in the form has been validated. > > > > > > > True, I use it for the same purpose, but my expectations about the forms > and validations were much higher ... obviously this is a limitation and > that's it (for now) > > >Just to add a little bit, all of this is because ActionForms (whether > >DynaForms or not) are populated first, then validated. If you have a > >form property with a type other than String, there's always a chance > >that incoming parameters can't be converted from String to that type. > >If the incoming request were validated prior to populating the > >ActionForm, we could have typed properties on ActionForms. I believe > >this is approximately the approach taken by JSF. > > > > > Is this with JSP by specification or it's a implementation issue? I hope > it's by spec ... It's not really a JSP issue, but a component issue. In JavaServer Faces (or Tapestry), the components themselves maintain the string version of the submitted value so that it can be redisplayed, and also know how to do the appropriate conversions. Thus, in a JSF app, the data you bind to can be of appropriate native types. Struts 1.x does not have a user interface component model, so the app has to do all this work itself. Craig > > Cheers > Borislav > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logic iterate
Why don't you try Struts-Layout(http://struts.application-servers.com/)? it's very nice library ..I use it and I have a special tag for this for every bean in the collection. Borislav Laurie Harper wrote: Why can't you just change your JSP? In other words, why does the markup you would like to use not work for you? It looks fine to me. L. Vijay K Anand wrote: Hi All I have a problem in logic iterate .. I would like to dispaly checkbox in each row of the iteration like instead of - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validator, sutrts-config and form-property's types
Jeff Beal wrote: I think that if Mark Galbreath were still around, he'd reply with "Validator sucks" or something similar. Basically, your statements below are all quite correct. I will add (in response to Point 1 below) that the BeanUtils library is what Struts uses internally to copy values from the request to your ActionForm, and it knows how to convert Strings into other types, like Date. I typically use BeanUtils to populate a (well typed) DTO from my ActionForm once the data in the form has been validated. True, I use it for the same purpose, but my expectations about the forms and validations were much higher ... obviously this is a limitation and that's it (for now) Just to add a little bit, all of this is because ActionForms (whether DynaForms or not) are populated first, then validated. If you have a form property with a type other than String, there's always a chance that incoming parameters can't be converted from String to that type. If the incoming request were validated prior to populating the ActionForm, we could have typed properties on ActionForms. I believe this is approximately the approach taken by JSF. Is this with JSP by specification or it's a implementation issue? I hope it's by spec ... Cheers Borislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logic iterate
Why can't you just change your JSP? In other words, why does the markup you would like to use not work for you? It looks fine to me. L. Vijay K Anand wrote: Hi All I have a problem in logic iterate .. I would like to dispaly checkbox in each row of the iteration like instead of Any help brothers?? Here goes the code name="user"/> name="user"/> name="user"/> -- Laurie, Open Source advocate, Java geek and novice blogger: http://www.holoweb.net/~laurie/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Paging in DisplayTag
It worked when I set to blank -- > requestURI="" . How come ?? Also is there anyway I can customize the header.. The following thing is on a single line.. I want the links to appear on a seperate line.. 58 items found, displaying 51 to 58.[First/Prev] 1, 2, 3, 4, 5, 6 [Next/Last] Thanks. --- Abdullah Jibaly <[EMAIL PROTECTED]> wrote: > Yes, I noticed. I find it works better when you set > it to blank. I don't know whether it will resolve > your problem but you may want to try it. > > -Original Message- > From: Phani [mailto:[EMAIL PROTECTED] > Sent: Friday, July 08, 2005 11:34 AM > To: Struts Users Mailing List > Subject: RE: Paging in DisplayTag > > > See my code.. I have requestURI set to my Action > class.. > > --- Abdullah Jibaly > <[EMAIL PROTECTED]> > wrote: > > > What happens when you set requestURI="" ? > > > > > > -Original Message- > > From: Phani [mailto:[EMAIL PROTECTED] > > Sent: Friday, July 08, 2005 10:59 AM > > To: Struts Users Mailing List > > Subject: RE: Paging in DisplayTag > > > > > > Here is my code: > > > > > pagesize="10" > > name="inventoryItems" id="inventoryItem" > > requestURI="stockingStoreInventory.do" > > > > > > align="right" /> > > > align="right" /> > > > title="Account" > > align="right" /> > > > > > > > > It displays fine without pagesize attribute..all > the > > results in a single page.. > > > > But with pagsize attribute, it gives me null > pointer > > exception when I hit next.. > > > > Thanks, > > Phani. > > --- Abdullah Jibaly > > <[EMAIL PROTECTED]> > > wrote: > > > > > Nope, you shouldnt have to. Setting > requestURI="" > > > works just fine for me. > > > > > > Are you using el: ${storeForm.myList} ? > > > > > > -Original Message- > > > From: Phani [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, July 07, 2005 5:20 PM > > > To: Struts Users Mailing List; Michael Jouravlev > > > Subject: Paging in DisplayTag > > > > > > > > > Hi, > > > > > > Shud my Action form be in session scope if I > want > > to > > > specify pagesize in display tag for paging.. > > > > > > Because I get the following error: > > > > > > Error 500: Cannot find bean storeForm in any > scope > > > > > > Thanks, > > > Phani. > > > > > > > > > > > > > > > > > > __ > > > Do you Yahoo!? > > > Yahoo! Mail - You care about security. So do we. > > > > http://promotions.yahoo.com/new_mail > > > > > > > > > - > > > 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] > > > > > > > > > > > > __ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > http://mail.yahoo.com > > > > > - > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > - > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > Sell on Yahoo! Auctions no fees. Bid on great items. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing data between action forms
I'm not knocking your approach, but synchronizer tokens solve the same problem, with or without a redirect. Erik -Original Message- From: Wendy Smoak <[EMAIL PROTECTED]> Sent: Jul 8, 2005 12:51 PM To: Struts Users Mailing List Subject: Re: Passing data between action forms From: "Michael Jouravlev" <[EMAIL PROTECTED]> > It will sound like a scratched vinil, but I believe that forwarding > from search page to result page is not the right thing to do, because > whenever you refresh result page, you run the search query again. So, > it should be a redirect. I think so, too. I was just looking at the old project I wrote about, and I could dispense with setting those request attributes if I just constructed the URL to the ResolveName action, and redirected to it. Back then, I was just glad it worked. :) -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validator, sutrts-config and form-property's types
I think that if Mark Galbreath were still around, he'd reply with "Validator sucks" or something similar. Basically, your statements below are all quite correct. I will add (in response to Point 1 below) that the BeanUtils library is what Struts uses internally to copy values from the request to your ActionForm, and it knows how to convert Strings into other types, like Date. I typically use BeanUtils to populate a (well typed) DTO from my ActionForm once the data in the form has been validated. Just to add a little bit, all of this is because ActionForms (whether DynaForms or not) are populated first, then validated. If you have a form property with a type other than String, there's always a chance that incoming parameters can't be converted from String to that type. If the incoming request were validated prior to populating the ActionForm, we could have typed properties on ActionForms. I believe this is approximately the approach taken by JSF. -- Jeff On 7/8/05, Borislav Sabev <[EMAIL PROTECTED]> wrote: > As soon as I set this > > > the validator starts to work correctly. > So here I see at least 2 problems: > 1. I'm forced again to parse the String properties of the form to proper > java.util.Date objects (or whatever other type it has to be) > 2. because of 1. , my date format string now is in 2 places instead > of one place i.e. I have a support problem > > So IMHO this is a "framework" inconsistency since. > Please tell me if I do something wrong or this is one of "known > limitations". > > > Borislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to set tiles attribute dynamically?
Hello: I have a site I am developing that has some pages with direct content and some where the content comes from a database. For the direct pages, I have a layout that depends on a pageTitle attribute in the tiles definition. Here is an example: The layout.back embeds the pageTitle into the page using For the database driven pages, I am trying to use a generic definition: With this struts action: When I code the links to the db pages, I put a page parameter on the action: http://newsletter.JAMMConsulting.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing data between action forms
From: "Michael Jouravlev" <[EMAIL PROTECTED]> > It will sound like a scratched vinil, but I believe that forwarding > from search page to result page is not the right thing to do, because > whenever you refresh result page, you run the search query again. So, > it should be a redirect. I think so, too. I was just looking at the old project I wrote about, and I could dispense with setting those request attributes if I just constructed the URL to the ResolveName action, and redirected to it. Back then, I was just glad it worked. :) -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: read init parameters in action
I think there are 2 cases: 1. you need a param that is available to the Servlet and is not uniquie to any particular Action for eample in my application users can uppload images, so after the upload I store them in a subfolder in the application. here is how I do it: a. this snippet I add in web.xml in tag imagesstorage store_images b. here is the code to get the param in one of the actions (in fact I do this in one plugin because this path is constant all the time, so I read it only on startup) StringBuilder path = new StringBuilder(); path.append(servlet.getServletConfig().getServletContext().getRealPath("/")); path.append(servlet.getServletConfig().getInitParameter("imagesstorage")); 2. every separate Action needs some initial parameter. In this case why do you need to put as an init param? it's enough just to have static field in the Action class ... I hope this is usefull for you. Borislav For traditional servlets, you can set init parameters in the web.xml and read it in a static init method in servlet class. Can I have similar things for action? If I need some of these init parameter for my web app, what is the best way to do it with struts? Thansk, __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mit freundlichen Grüßen Borislav Sabev eventsoft GmbH Max-Planck-Str. 3 85716 Unterschleißheim Tel: 089 - 35 89 03 21 Fax: 089 - 35 89 03 70 [EMAIL PROTECTED] www.eventsoft.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring
At 12:14 PM -0400 7/8/05, Access Denied wrote: It seems like the Web Flow subproject of spring is pretty cool, especially for the age-old problem of the button. Yes, I thought it looked pretty cool as well; note however that I found it impossible to find a way to implement that in a Struts application. They provide a basic Struts Action class which is meant to help, but it really doesn't play nicely with common Struts approaches to form validation and display. If you choose to use Spring WebFlow in a Struts app, you will have to develop a pretty good understanding of Spring's model for validation and page display; I ultimately decided that I didn't want my application to have two substantially different approaches to the same thing, and implemented my own simpler webflow mechanism which fit better with the rest of the Struts app. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Paging in DisplayTag
Yes, I noticed. I find it works better when you set it to blank. I don't know whether it will resolve your problem but you may want to try it. -Original Message- From: Phani [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 11:34 AM To: Struts Users Mailing List Subject: RE: Paging in DisplayTag See my code.. I have requestURI set to my Action class.. --- Abdullah Jibaly <[EMAIL PROTECTED]> wrote: > What happens when you set requestURI="" ? > > > -Original Message- > From: Phani [mailto:[EMAIL PROTECTED] > Sent: Friday, July 08, 2005 10:59 AM > To: Struts Users Mailing List > Subject: RE: Paging in DisplayTag > > > Here is my code: > > pagesize="10" > name="inventoryItems" id="inventoryItem" > requestURI="stockingStoreInventory.do" > > >align="right" /> >align="right" /> >title="Account" > align="right" /> > > > > It displays fine without pagesize attribute..all the > results in a single page.. > > But with pagsize attribute, it gives me null pointer > exception when I hit next.. > > Thanks, > Phani. > --- Abdullah Jibaly > <[EMAIL PROTECTED]> > wrote: > > > Nope, you shouldnt have to. Setting requestURI="" > > works just fine for me. > > > > Are you using el: ${storeForm.myList} ? > > > > -Original Message- > > From: Phani [mailto:[EMAIL PROTECTED] > > Sent: Thursday, July 07, 2005 5:20 PM > > To: Struts Users Mailing List; Michael Jouravlev > > Subject: Paging in DisplayTag > > > > > > Hi, > > > > Shud my Action form be in session scope if I want > to > > specify pagesize in display tag for paging.. > > > > Because I get the following error: > > > > Error 500: Cannot find bean storeForm in any scope > > > > Thanks, > > Phani. > > > > > > > > > > > > __ > > Do you Yahoo!? > > Yahoo! Mail - You care about security. So do we. > > http://promotions.yahoo.com/new_mail > > > > > - > > 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] > > > > > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: read init parameters in action
You can do similar things in Actions, to a degree... you an do... String myParamValue = getServlet().getInitParameter("myParamName"); ...to get the parameter from within execute(). If you are looking to read things like this only once at startup, you want to look at a Struts plug-in or, probably better, a context listener. I think, generally-speaking, people tend to put their application-specific configuration information into an external file (be it XML or properties, or something else) and read it in on app startup in one of the two ways I mentioned. If you want to go the listener route (which I recommend because its more portable, i.e., not Struts-specific), have a look at the AppConfigContextListener component of my Java Web Parts project (http://javawebparts.sf.net). Even if you don't use it specifically, it should serve as a good reference for a context listener. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Fri, July 8, 2005 12:25 pm, Abdullah Jibaly said: > Why not put it them in your properties file? > > -Original Message- > From: Tony Smith [mailto:[EMAIL PROTECTED] > Sent: Friday, July 08, 2005 10:30 AM > To: Struts Users Mailing List > Subject: read init parameters in action > > > For traditional servlets, you can set init parameters > in the web.xml and read it in a static init method in > servlet class. Can I have similar things for action? > If I need some of these init parameter for my web app, > what is the best way to do it with struts? > > Thansk, > > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Paging in DisplayTag
See my code.. I have requestURI set to my Action class.. --- Abdullah Jibaly <[EMAIL PROTECTED]> wrote: > What happens when you set requestURI="" ? > > > -Original Message- > From: Phani [mailto:[EMAIL PROTECTED] > Sent: Friday, July 08, 2005 10:59 AM > To: Struts Users Mailing List > Subject: RE: Paging in DisplayTag > > > Here is my code: > > pagesize="10" > name="inventoryItems" id="inventoryItem" > requestURI="stockingStoreInventory.do" > > >align="right" /> >align="right" /> >title="Account" > align="right" /> > > > > It displays fine without pagesize attribute..all the > results in a single page.. > > But with pagsize attribute, it gives me null pointer > exception when I hit next.. > > Thanks, > Phani. > --- Abdullah Jibaly > <[EMAIL PROTECTED]> > wrote: > > > Nope, you shouldnt have to. Setting requestURI="" > > works just fine for me. > > > > Are you using el: ${storeForm.myList} ? > > > > -Original Message- > > From: Phani [mailto:[EMAIL PROTECTED] > > Sent: Thursday, July 07, 2005 5:20 PM > > To: Struts Users Mailing List; Michael Jouravlev > > Subject: Paging in DisplayTag > > > > > > Hi, > > > > Shud my Action form be in session scope if I want > to > > specify pagesize in display tag for paging.. > > > > Because I get the following error: > > > > Error 500: Cannot find bean storeForm in any scope > > > > Thanks, > > Phani. > > > > > > > > > > > > __ > > Do you Yahoo!? > > Yahoo! Mail - You care about security. So do we. > > http://promotions.yahoo.com/new_mail > > > > > - > > 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] > > > > > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring
On 7/8/05, Access Denied <[EMAIL PROTECTED]> wrote: > It seems like the Web Flow subproject of spring is pretty cool, > especially for the age-old problem of the button. > > buddy Buddy, last time I checked, the best Spring Web Flow could do about Back button is to inform you that you broke the flow by submitting stale page. It did not prevent you from going back and seeing that stale page. Struts Dialogs has WizardAction (not advertised yet, cause I have not written good docs on it), which makes things much easier on user and less error-prone: http://www.superinterface.com/strutsdialog/wizardaction.do (you are not signing up for anything, this is just a demo). What you get: * Wizard state is stored completely on server, no hidden fields. * Wizard state always depends on domain model state. * Wizard view is always synchronized with wizard state. * Wizard state is an object, and contains model data or refers to it. * Wizard transition is an object, and can validate itself, taking into account domain model standing. * Back, Forward and Refresh buttons are safe to use. * Error messages are not lost on page refresh. * A wizard can be reconfigured in runtime. * Wizard rules are defined completely in Java, no XML configuration files, no server-side Javascript. * Wizard rules and domain model integration can be tested using base JDK classes only, without user interaction. * Can be used as a component. You can also check this one: http://www.superinterface.com/wizard/signupWizard.do It combines both signup wizard and login control in one easy to use component. I need some time to clean things up. Also, I decided that the simplest way to pursue people to use your stuff is to give them something that they can use in their projects right away. So, I am going to redesign my samples, making a real drop-right-in-the-page components out of them. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Paging in DisplayTag
What happens when you set requestURI="" ? -Original Message- From: Phani [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 10:59 AM To: Struts Users Mailing List Subject: RE: Paging in DisplayTag Here is my code: It displays fine without pagesize attribute..all the results in a single page.. But with pagsize attribute, it gives me null pointer exception when I hit next.. Thanks, Phani. --- Abdullah Jibaly <[EMAIL PROTECTED]> wrote: > Nope, you shouldnt have to. Setting requestURI="" > works just fine for me. > > Are you using el: ${storeForm.myList} ? > > -Original Message- > From: Phani [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 07, 2005 5:20 PM > To: Struts Users Mailing List; Michael Jouravlev > Subject: Paging in DisplayTag > > > Hi, > > Shud my Action form be in session scope if I want to > specify pagesize in display tag for paging.. > > Because I get the following error: > > Error 500: Cannot find bean storeForm in any scope > > Thanks, > Phani. > > > > > > __ > Do you Yahoo!? > Yahoo! Mail - You care about security. So do we. > http://promotions.yahoo.com/new_mail > > - > 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] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: read init parameters in action
Why not put it them in your properties file? -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 10:30 AM To: Struts Users Mailing List Subject: read init parameters in action For traditional servlets, you can set init parameters in the web.xml and read it in a static init method in servlet class. Can I have similar things for action? If I need some of these init parameter for my web app, what is the best way to do it with struts? Thansk, __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dialog stuff (was) Re: Refresher for newbies...
Works great in Firefox on my Fedora box. Erik -Original Message- From: Michael Jouravlev <[EMAIL PROTECTED]> Sent: Jul 8, 2005 11:30 AM To: Struts Users Mailing List , Wendy Smoak <[EMAIL PROTECTED]> Subject: Re: dialog stuff (was) Re: Refresher for newbies... On 7/8/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Michael Jouravlev" <[EMAIL PROTECTED]> > > Rick, check out this one: > > http://www.superinterface.com/strutsdialog/crudactionlite.do > > All CRUD operations in one web island. Check out your Back button ;-) > > Michael, check your link... "Cannot find bean crud-item-list in any scope" > > I'm interested but haven't found time to look at in depth. Patience... Oops, was rushing yesterday. I just did a quick fix, should work now. Please, open in a new window and see is your Back button enabled, while you playing with the items. I would be interested to know how it works on Mac, I don't have access to one. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database Connection
This is exactly how I've always done the DAO in Struts. I'm looking into Hibernate now, but don't yet see it's value over the POJ J2EE way. buddy On 7/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I suggest not involving Struts at all when it comes to configuration of and > access to data stores. > > Write a ConnectionManager (sounds like you've already got that idea), who > will be in charge of Connections. In the ConnectionManager's init block or > constructor, look up your DataSource using a JNDI lookup based on the name > you used in your container's DataSource configuration file (in Tomcat this > would typically be your "context.xml" file, which is often called > ".xml"), and cache the reference to the DataSource. Then provide > a static method (or a instance method on a singleton) for getting connections. > > (Please note I didn't proofread this for errors) > > DataSource ds; > . . . > InitialContext ic = new InitialContext(); > Object o = ic.lookup("java:/comp/env/jdbc/MyDataSource");// "MyDataSource" > was specified in Tomcat file, "foo.xml" > ds = (DataSource) PortableRemoteObject.narrow(DataSource.class, o); > . . . > static getConnection() { > try { > return ds.getConnection(); > } > catch (Exception e) { > //try using DriverManager > } > return null; > } > > You probably already know all this, it's the same old fashioned J2EE way . . . > > Erik > > > -Original Message- > From: Vijay K Anand <[EMAIL PROTECTED]> > Sent: Jul 8, 2005 3:47 AM > To: Struts Users Mailing List > Subject: Database Connection > > Hi All > > I have a helper class which does creating connection and exception > handling for that . How do i create connection like > > DataSource dataSource = > (DataSource)context.getAttribute(Action.DATA_SOURCE_KEY) ; > objConnection = datasource.getConnection(); > > it says error at context and Action.DATA_SOURCE_KEY > > Any help brothers? > > > - > 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]
Validator, sutrts-config and form-property's types
Hi all, The problem I'd like to discuss is how Validator works with form properties. IMHO there is a contradiction (or maybe I don't know how to resolve this problem - in this case, please help me) with types of Form properties. The end result is that if I want to use the Validator, all my form properties MUST be java.lang.String, otherwise Struts (in fact BeanUtils and ConvertorUtils) throws org.apache.commons.beanutils.ConversionException. So why should specify the type of form properties if Validator so and so doesn't work with any other type than java.util.String. To clarify the problem here is an example: I have this form: and here is the snippet of my validation.xml file that should check that the dates entered are in some special format: datePattern -MM-dd datePattern -MM-dd The idea behind this is that I want the parameters that are coming with the request, to be "translated" to their expected types once and only once! So if you try this, you will get org.apache.commons.beanutils.ConversionException (thrown from RequestProcessor if I remember correctly). As soon as I set this the validator starts to work correctly. So here I see at least 2 problems: 1. I'm forced again to parse the String properties of the form to proper java.util.Date objects (or whatever other type it has to be) 2. because of 1. , my date format string now is in 2 places instead of one place i.e. I have a support problem So IMHO this is a "framework" inconsistency since. Please tell me if I do something wrong or this is one of "known limitations". Borislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring
It seems like the Web Flow subproject of spring is pretty cool, especially for the age-old problem of the button. buddy On 7/8/05, Joe Germuska <[EMAIL PROTECTED]> wrote: > At 9:24 AM -0600 7/8/05, netsql wrote: > >David Whipple wrote: > >>We use it for the primarily for application assembly and integration with > >>iBATIS. > >> > > > > > >The rap on Spring is that it's a bit more complicated than Struts. > >It does have a dao interfcace, and... Struts does not. > >A big benefit is that you can switch from EJB to something else. > > > >Imo, Commons chain can be used for application assembly (and dao: > >execute(map)) > > I guess I don't understand this. commons-chain is a run-time process > (hence the API method "execute"). I suppose you're saying that you > can set properties on your commands, and thus have an assembled > application? But the Digester-based process for instantiating chains > which is provided with commons-chain is extremely limiting for > configuring business/service objects. (It's entirely possible to > construct commons chains with Spring, actually, but I don't think > that is what Vic has in mind...) > > Alternatively, you could consider population of the chain Context to > be roughly "application assembly" -- but the commons-chain library > doesn't really provide much support for setting up a complicated > Context. > > >I do wish Struts/Shale/Jakarta/Sun had an unimplemented Dao interface. > > Hm. What would this look like? Is it just a marker? The way I > write my DAOs, there would never really be any useful commonality > which could be extracted into an interface. > > Or are you talking about just the general persistence support that > Spring provides? > > Note that you can use Spring's persistence pieces (both its own > mapping framework as well as adapters to make IBATIS and Hibernate a > bit easier to use) without using Spring MVC. > > For application assembly, Spring is not complicated at all; the basic > XML syntax for instantiating beans and relating them to each other is > about as simple can be, although it can get a bit verbose sometimes. > > For Spring MVC, I can't really compare the complexity, because I've > used it so little. I found some things confusing, but it's hard for > me to tell how much of that is because I have Struts ingrained so > deeply in my brain. Also, I skipped right past Spring's basic MVC to > trying to use the recently released WebFlow package, and trying to > use it integrated with Struts, rather than just trying to build > something from scratch within its own environment. > > Joe > > -- > Joe Germuska > [EMAIL PROTECTED] > http://blog.germuska.com > "Narrow minds are weapons made for mass destruction" -The Ex > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing data between action forms
On 7/8/05, Mitchell, Steven C <[EMAIL PROTECTED]> wrote: > I'm curious to hear what other people are doing regarding the passing of > data between actions. Take for example an advanced search page with > validation, drop down lists, the works. Upon successful validation the > user should flow to a search results page. Assume the results page is > part of something bigger that may require additional server-side > processing. > > In the past I have put the search results list on the same action form > as the search criteria and just forwarded to a different JSP from the > same action. It will sound like a scratched vinil, but I believe that forwarding from search page to result page is not the right thing to do, because whenever you refresh result page, you run the search query again. So, it should be a redirect. I see the following choices: * pass search results in request * pass search results in session * pass results in session, and navigational info like current page, first line on page, last line on page, etc. in request. Result page for search form does not have to be stateful. What do you expect, if you navigate to result page, typing its location in address bar? If it does not have to keep previous search results, than as long as you able to fit everything into request, it probably would be the best. If you decide to use redirect and request, action forms or request object will not help you. You would have to append it manually to URL, since you cannot simply stick it into request object, it is destroyed and recreated with each request. P.S. If you have simple string results, maybe you can use some kind of hack, sticking results into session under error message key, so after the results accessed, they are removed by RequestProcessor automatically? Did not give this a lot of thought. But this idea seems promising: to define types/instances/keys of ojects, which would be removed automatically after accessed. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database Connection
I suggest not involving Struts at all when it comes to configuration of and access to data stores. Write a ConnectionManager (sounds like you've already got that idea), who will be in charge of Connections. In the ConnectionManager's init block or constructor, look up your DataSource using a JNDI lookup based on the name you used in your container's DataSource configuration file (in Tomcat this would typically be your "context.xml" file, which is often called ".xml"), and cache the reference to the DataSource. Then provide a static method (or a instance method on a singleton) for getting connections. (Please note I didn't proofread this for errors) DataSource ds; . . . InitialContext ic = new InitialContext(); Object o = ic.lookup("java:/comp/env/jdbc/MyDataSource");// "MyDataSource" was specified in Tomcat file, "foo.xml" ds = (DataSource) PortableRemoteObject.narrow(DataSource.class, o); . . . static getConnection() { try { return ds.getConnection(); } catch (Exception e) { //try using DriverManager } return null; } You probably already know all this, it's the same old fashioned J2EE way . . . Erik -Original Message- From: Vijay K Anand <[EMAIL PROTECTED]> Sent: Jul 8, 2005 3:47 AM To: Struts Users Mailing List Subject: Database Connection Hi All I have a helper class which does creating connection and exception handling for that . How do i create connection like DataSource dataSource = (DataSource)context.getAttribute(Action.DATA_SOURCE_KEY) ; objConnection = datasource.getConnection(); it says error at context and Action.DATA_SOURCE_KEY Any help brothers? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring
At 9:24 AM -0600 7/8/05, netsql wrote: David Whipple wrote: We use it for the primarily for application assembly and integration with iBATIS. The rap on Spring is that it's a bit more complicated than Struts. It does have a dao interfcace, and... Struts does not. A big benefit is that you can switch from EJB to something else. Imo, Commons chain can be used for application assembly (and dao: execute(map)) I guess I don't understand this. commons-chain is a run-time process (hence the API method "execute"). I suppose you're saying that you can set properties on your commands, and thus have an assembled application? But the Digester-based process for instantiating chains which is provided with commons-chain is extremely limiting for configuring business/service objects. (It's entirely possible to construct commons chains with Spring, actually, but I don't think that is what Vic has in mind...) Alternatively, you could consider population of the chain Context to be roughly "application assembly" -- but the commons-chain library doesn't really provide much support for setting up a complicated Context. I do wish Struts/Shale/Jakarta/Sun had an unimplemented Dao interface. Hm. What would this look like? Is it just a marker? The way I write my DAOs, there would never really be any useful commonality which could be extracted into an interface. Or are you talking about just the general persistence support that Spring provides? Note that you can use Spring's persistence pieces (both its own mapping framework as well as adapters to make IBATIS and Hibernate a bit easier to use) without using Spring MVC. For application assembly, Spring is not complicated at all; the basic XML syntax for instantiating beans and relating them to each other is about as simple can be, although it can get a bit verbose sometimes. For Spring MVC, I can't really compare the complexity, because I've used it so little. I found some things confusing, but it's hard for me to tell how much of that is because I have Struts ingrained so deeply in my brain. Also, I skipped right past Spring's basic MVC to trying to use the recently released WebFlow package, and trying to use it integrated with Struts, rather than just trying to build something from scratch within its own environment. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Paging in DisplayTag
Here is my code: It displays fine without pagesize attribute..all the results in a single page.. But with pagsize attribute, it gives me null pointer exception when I hit next.. Thanks, Phani. --- Abdullah Jibaly <[EMAIL PROTECTED]> wrote: > Nope, you shouldnt have to. Setting requestURI="" > works just fine for me. > > Are you using el: ${storeForm.myList} ? > > -Original Message- > From: Phani [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 07, 2005 5:20 PM > To: Struts Users Mailing List; Michael Jouravlev > Subject: Paging in DisplayTag > > > Hi, > > Shud my Action form be in session scope if I want to > specify pagesize in display tag for paging.. > > Because I get the following error: > > Error 500: Cannot find bean storeForm in any scope > > Thanks, > Phani. > > > > > > __ > Do you Yahoo!? > Yahoo! Mail - You care about security. So do we. > http://promotions.yahoo.com/new_mail > > - > 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] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: generate image by servlet for large amount of requests
maps.google.com uses AJAX to update their maps "on the fly" This allows you to display on the portion of the image that is required on the page. As you zoom in, out, of move around the map, they use a XML connection to update the map. http://en.wikipedia.org/wiki/AJAX Tony Smith <[EMAIL PROTECTED]> Tony Smith <[EMAIL PROTECTED]> 07/08/2005 11:32 AM Please respond to "Struts Users Mailing List" To Tomcat Users List , user@struts.apache.org cc Subject Re: generate image by servlet for large amount of requests Any ideas? --- Tony Smith <[EMAIL PROTECTED]> wrote: > Let's think about maps.yahoo.com. I do not know how > they handle > millions of request and generate the map pictures > quickly. If I use a > servlet, in the post or get method I use: > > > BufferedImage mapImage = > myTookKit.generateMap(String address); > response.setContentType("image/png"); > OutputStream os = response.getOutputStream(); > ImageIO.write(buffer, "png", os); > os.close(); > > > Is servlet a good choice? If I use servlet, is the > code above good > enough to handle hundreds of request? Is the choice > of > BufferedImage a > good one? What special technique I need to implement > "myTookKit" to > make it faster? I am thinking about JNI. > > > Thanks, > > > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using struts forms as Value Objects: your opinion?
On 7/7/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Vincent wrote: > > > > What do you thing about using forms as VO? Do you think it's a dirty > > solution? Forms are often mirrors of the database's table. > > Personally I prefer to keep form beans and value objects seperate, for two > key reasons: > +1 as well, and this matches the historical reason that form beans were invented in the first place. Form beans are part of the *view* tier, not the model ... their purpose in life is to represent the server side state of the HTML elements on a form, even if that state is invalid (i.e. not currently passing all the validations). That way, you can reproduce what the user typed so he or she can fix it, rather than presenting them with a completely blank screen. (This is why you generally use string fields in a form bean). In a component oriented framework like JSF or Tapestry, you don't need to worry about keeping track of this state information ... the components do it for you. But in Struts it is the application developer's responsibility to understand the correct design patterns -- and this is one of the most fundamental principles of how Struts was designed. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: generate image by servlet for large amount of requests
Any ideas? --- Tony Smith <[EMAIL PROTECTED]> wrote: > Let's think about maps.yahoo.com. I do not know how > they handle > millions of request and generate the map pictures > quickly. If I use a > servlet, in the post or get method I use: > > > BufferedImage mapImage = > myTookKit.generateMap(String address); > response.setContentType("image/png"); > OutputStream os = response.getOutputStream(); > ImageIO.write(buffer, "png", os); > os.close(); > > > Is servlet a good choice? If I use servlet, is the > code above good > enough to handle hundreds of request? Is the choice > of > BufferedImage a > good one? What special technique I need to implement > "myTookKit" to > make it faster? I am thinking about JNI. > > > Thanks, > > > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dialog stuff (was) Re: Refresher for newbies...
On 7/8/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Michael Jouravlev" <[EMAIL PROTECTED]> > > Rick, check out this one: > > http://www.superinterface.com/strutsdialog/crudactionlite.do > > All CRUD operations in one web island. Check out your Back button ;-) > > Michael, check your link... "Cannot find bean crud-item-list in any scope" > > I'm interested but haven't found time to look at in depth. Patience... Oops, was rushing yesterday. I just did a quick fix, should work now. Please, open in a new window and see is your Back button enabled, while you playing with the items. I would be interested to know how it works on Mac, I don't have access to one. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
read init parameters in action
For traditional servlets, you can set init parameters in the web.xml and read it in a static init method in servlet class. Can I have similar things for action? If I need some of these init parameter for my web app, what is the best way to do it with struts? Thansk, __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring
David Whipple wrote: We use it for the primarily for application assembly and integration with iBATIS. The rap on Spring is that it's a bit more complicated than Struts. It does have a dao interfcace, and... Struts does not. A big benefit is that you can switch from EJB to something else. Imo, Commons chain can be used for application assembly (and dao: execute(map)) I do wish Struts/Shale/Jakarta/Sun had an unimplemented Dao interface. .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring
We use Spring as well, but also not for the MVC portions (we use struts). We use it for the primarily for application assembly and integration with iBATIS. The AOP support seems very interesting, but at this point we are only using that w.r.t transactions. I am thinking about incorporating it into some sort of audit capabilities. I am very fond of it. Dave Joe Germuska <[EMAIL PROTECTED] > To Access Denied 07/08/2005 10:39 <[EMAIL PROTECTED]>, AMuser@struts.apache.org cc Please respond to Subject "Struts Users Re: Spring Mailing List" <[EMAIL PROTECTED] he.org> At 10:32 AM -0400 7/8/05, Access Denied wrote: >hi alls, > >I've been reading about the Spring framework at >www.springframework.org and I am wondering what the advantage, if any, >is over struts? Has/does anybody use Spring and how does it compare >to Struts? I use Spring avidly as an application assembly strategy. I use it with Struts, and in the way I use it, it doesn't compare to Struts at all. Spring does include a Web MVC toolkit. I have only passing familiarity with it. There are some elegant things about its design, but it doesn't really fit with how I build webapps, and Spring is very much designed so that you can take what you like without having to use the whole thing. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring
At 10:32 AM -0400 7/8/05, Access Denied wrote: hi alls, I've been reading about the Spring framework at www.springframework.org and I am wondering what the advantage, if any, is over struts? Has/does anybody use Spring and how does it compare to Struts? I use Spring avidly as an application assembly strategy. I use it with Struts, and in the way I use it, it doesn't compare to Struts at all. Spring does include a Web MVC toolkit. I have only passing familiarity with it. There are some elegant things about its design, but it doesn't really fit with how I build webapps, and Spring is very much designed so that you can take what you like without having to use the whole thing. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing data between action forms
From: "Mitchell, Steven C" <[EMAIL PROTECTED]> > I'm curious to hear what other people are doing regarding the passing of > data between actions. Take for example an advanced search page with > validation, drop down lists, the works. Upon successful validation the > user should flow to a search results page. Assume the results page is > part of something bigger that may require additional server-side > processing. I'll be interested in other responses... I had to make this work in my first Struts webapp, three years ago (!) now. I doubt I got it "right," but it does work. I have a 'person lookup' that has to be shared across many forms. Anywhere there is a text box with an 'add person' button, it has to go off to resolution, and most importantly, it has to come back and add the selected person to the right original form. Struts doesn't have a concept of 'go back where you came from' so I set request attributes before forwarding to the ResolveName action. And I do chain them: This is the one case where I couldn't get around going from Action-to-Action, which is (or was, I'm not so sure anymore...) frowned upon. In the LookupDispatchAction, which uses userAction to switch methods, I set request attributes for nameOrId, returnTo, and userAction. Then ResolveNameAction picks up 'nameOrId' and does its thing, and in the resulting JSP, I just used a plain old HTML form: " method="POST"> " /> ...then iterate through the choices... When the user submits that form, you're back to the original Action. HTH, -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dialog stuff (was) Re: Refresher for newbies...
On 7/7/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Oh, I am sorry, you misunderstood me. What I did, is combined > ItemListAction with CRUDAction, so I show list from the same location. > It gives the usual benefits of web island. Basically, the whole thing, > list and edit and view forms, and all operations, and everyting take > one slot in page history. So, no going Back ever. You see the list - > you cannot go back to the item you just edited. You see an item, you > cannot go back to the list (only through buttons on the form). I will > try to deploy it today or tomorrow. Rick, check out this one: http://www.superinterface.com/strutsdialog/crudactionlite.do All CRUD operations in one web island. Check out your Back button ;-) Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Spring
hi alls, I've been reading about the Spring framework at www.springframework.org and I am wondering what the advantage, if any, is over struts? Has/does anybody use Spring and how does it compare to Struts? tia, buddy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using the form bean
Don't know if this is the reason but you probably want focus="${focus}" Try using c:if instead of logic:equal, but the cleanest way if you are using jsp 2.0: focus="${form.edit ? 'password' : 'userName'}" Regards, Abdullah -Original Message- From: Kent Boogaart [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 7:59 AM To: 'Struts Users Mailing List' Subject: Using the form bean Hello, I'm trying to set focus on the first enabled field in my form. The first field is disabled if the data is being edited. I thought this would work: But this complains about "No bean found under attribute key form". The weird thing is, I use that same bean further down the page without any problem: If I take out the code then it works (but doesn't set focus to the password field when required). What am I doing wrong here? Thanks, Kent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IE Globe issue
Hi, I am also facing same problem, does anybody have any idea how to handle it. As per my understanding the control comes back to client but if there is more data then page will wait for all data to loaded first. Because in my case the whole page was under one . Regards Shoaib -Original Message- From: Abhinav Bhatnagar [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 9:58 PM To: Struts Users Mailing List Subject: RE: IE Globe issue Any body has any idea on this? Please let me know. Thx -Original Message- From: Abhinav Bhatnagar [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 7:49 PM To: Struts Users Mailing List Subject: IE Globe issue Hi All, I have a strange issue in my struts application. When I go from one page to the second page by clicking over a link, the IE globe (on the top right hand corner) moves for a moment, then stops rotating (user still on page1) and after a few seconds the second page loads. This leads the user to believe that the click didn't happen even though the call is still executing. On closer examination I found that call is made to the Action class of the submitting page and till the moment it reaches a "return mapping.findforward(xxx) , the globe moves. But after that it stops and then of course the next page is loaded, there is a gap of time for which globe didn't move and the user was on page 1. I tried searching on the net and found this : http://support.microsoft.com/?kbid=276578 " Internet Explorer Globe Stops Rotating Before Page with Frames Is Fully Loaded " But I don't have any frames on my html page. Please let me know if anybody has any idea about this. Thanks and regards, Abhinav CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS*** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: access entries in MessageResources.properties from java code
MessageResources mr = getResources(request); String messageValue = mr.getMessage(messageKey); -Abdullah -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 12:05 AM To: Struts Users Mailing List Subject: access entries in MessageResources.properties from java code How can I access entries in "MessageResources.properties" inside Action or Form code? Thanks, --- Rick Reumann <[EMAIL PROTECTED]> wrote: > Hubert Rabago wrote the following on 7/8/2005 12:24 > AM: > > There are several > > reasons why you shouldn't use VOs as your form > beans and vice versa > > (as other msgs in this thread explain). > > Actually in this thread so far I haven't heard > anyone explain why they > are a 'bad' idea. The only way I see it being 'sort > of' bad would be if... > > 1) You insist upon using the validation framework by > having validation > take place by setting validation="true" in your > struts-config mappings. > (I like to call validation manually in my Actions so > this isn't really a > problem - it's like an extra line or two of code). > > 2) Sometimes you have some odd non-VO type > properties that you want to > send to your Action. If you insist these needed to > be captured by some > kind of bean/ActionForm than yea I guess that's a > minor problem... but > what's the big deal about using an occasional > request.getParameter("") > or since you are using Struts you still 'have' to > use an ActionForm just > add the VO as a property and you can still a few > other misc fields if > you so desire. > > ActionForm == "The Black Sheep of Struts" :) > > -- > Rick > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IE Globe issue
Any body has any idea on this? Please let me know. Thx -Original Message- From: Abhinav Bhatnagar [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 7:49 PM To: Struts Users Mailing List Subject: IE Globe issue Hi All, I have a strange issue in my struts application. When I go from one page to the second page by clicking over a link, the IE globe (on the top right hand corner) moves for a moment, then stops rotating (user still on page1) and after a few seconds the second page loads. This leads the user to believe that the click didn't happen even though the call is still executing. On closer examination I found that call is made to the Action class of the submitting page and till the moment it reaches a "return mapping.findforward(xxx) , the globe moves. But after that it stops and then of course the next page is loaded, there is a gap of time for which globe didn't move and the user was on page 1. I tried searching on the net and found this : http://support.microsoft.com/?kbid=276578 " Internet Explorer Globe Stops Rotating Before Page with Frames Is Fully Loaded " But I don't have any frames on my html page. Please let me know if anybody has any idea about this. Thanks and regards, Abhinav CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS*** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Paging in DisplayTag
Nope, you shouldnt have to. Setting requestURI="" works just fine for me. Are you using el: ${storeForm.myList} ? -Original Message- From: Phani [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 5:20 PM To: Struts Users Mailing List; Michael Jouravlev Subject: Paging in DisplayTag Hi, Shud my Action form be in session scope if I want to specify pagesize in display tag for paging.. Because I get the following error: Error 500: Cannot find bean storeForm in any scope Thanks, Phani. __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
"requires theoretical and practical application of a body of specialized knowledge along with at least a bachelors degree" **or** "fashion model of distinguished merit and ability" Just think where you could get if you're a model with a degree! i love some of the obscure things in american laws/rules. (not that i'm saying british rules are any better) > -Original Message- > From: Simon Chappell [mailto:[EMAIL PROTECTED] > Sent: 08 July 2005 14:20 > To: Struts Users Mailing List > Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations > [OT] > > > Hey, I had an H-1B when I first came to America. Does that mean I can > be a fashion model? :-) > > On 7/8/05, Daniel Perry <[EMAIL PROTECTED]> wrote: > > "What is an H-1B? > > > > The H-1B is a nonimmigrant classification used by an alien who will be > > employed temporarily in a specialty occupation or as a fashion model of > > distinguished merit and ability." > > > > Now, why doesn't it suprise me that the americans make a > special case for a > > fashion model!!! > > > > Daniel. > > > > > -Original Message- > > > From: Scott Piker [mailto:[EMAIL PROTECTED] > > > Sent: 08 July 2005 13:49 > > > To: Struts Users Mailing List > > > Subject: RE: [OT] Re: Fired was...Re: Struts Books Recommendations > > > [OT] > > > > > > > > > It's a type of temporary work visa in the US. > > > > > > http://uscis.gov/graphics/howdoi/h1b.htm > > > > > > > > > > -Original Message- > > > > From: Daniel Perry [mailto:[EMAIL PROTECTED] > > > > Sent: Friday, July 08, 2005 5:33 AM > > > > To: Struts Users Mailing List > > > > Subject: RE: [OT] Re: Fired was...Re: Struts Books > > > > Recommendations [OT] > > > > > > > > Applogies for being english or maybe just naive, but what the > > > > hell is a H1B? > > > > > > > > Daniel. > > > > > > > > > > - > > > 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] > > > > > > > -- > www.simonpeter.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
Hey, I had an H-1B when I first came to America. Does that mean I can be a fashion model? :-) On 7/8/05, Daniel Perry <[EMAIL PROTECTED]> wrote: > "What is an H-1B? > > The H-1B is a nonimmigrant classification used by an alien who will be > employed temporarily in a specialty occupation or as a fashion model of > distinguished merit and ability." > > Now, why doesn't it suprise me that the americans make a special case for a > fashion model!!! > > Daniel. > > > -Original Message- > > From: Scott Piker [mailto:[EMAIL PROTECTED] > > Sent: 08 July 2005 13:49 > > To: Struts Users Mailing List > > Subject: RE: [OT] Re: Fired was...Re: Struts Books Recommendations > > [OT] > > > > > > It's a type of temporary work visa in the US. > > > > http://uscis.gov/graphics/howdoi/h1b.htm > > > > > > > -Original Message- > > > From: Daniel Perry [mailto:[EMAIL PROTECTED] > > > Sent: Friday, July 08, 2005 5:33 AM > > > To: Struts Users Mailing List > > > Subject: RE: [OT] Re: Fired was...Re: Struts Books > > > Recommendations [OT] > > > > > > Applogies for being english or maybe just naive, but what the > > > hell is a H1B? > > > > > > Daniel. > > > > > > > - > > 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] > > -- www.simonpeter.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
"What is an H-1B? The H-1B is a nonimmigrant classification used by an alien who will be employed temporarily in a specialty occupation or as a fashion model of distinguished merit and ability." Now, why doesn't it suprise me that the americans make a special case for a fashion model!!! Daniel. > -Original Message- > From: Scott Piker [mailto:[EMAIL PROTECTED] > Sent: 08 July 2005 13:49 > To: Struts Users Mailing List > Subject: RE: [OT] Re: Fired was...Re: Struts Books Recommendations > [OT] > > > It's a type of temporary work visa in the US. > > http://uscis.gov/graphics/howdoi/h1b.htm > > > > -Original Message- > > From: Daniel Perry [mailto:[EMAIL PROTECTED] > > Sent: Friday, July 08, 2005 5:33 AM > > To: Struts Users Mailing List > > Subject: RE: [OT] Re: Fired was...Re: Struts Books > > Recommendations [OT] > > > > Applogies for being english or maybe just naive, but what the > > hell is a H1B? > > > > Daniel. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using struts forms as Value Objects: your opinion?
Well put. To expand on #2, it's good to confine dependencies on the org.apache.struts packages to the presentation layer, and not build a Struts dependency into business logic. Personally I prefer to keep form beans and value objects seperate, for two key reasons: 1) form beans generally should consist of String data to facilitate round-tripping of invalid inputs. I like to constrain them to a clearly defined role of marshaling data 'into' and 'out of' the presentation layer, i.e. across the boundary between presentation and application. 2) value objects should use typed interfaces to ensure marshaling to and from presentation format (string types) is pushed as far up the application stack as possible. This also enables other, potentially type-aware, presentation / client tiers to be built on top of the same value objects (e.g. for a web-services interface). -- Bill Schneider Chief Architect Vecna Technologies 5004 Lehigh Rd. College Park, MD 20740 [EMAIL PROTECTED] t: 301-864-7253 x1140 f: 301-699-3180 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using the form bean
Hello, I'm trying to set focus on the first enabled field in my form. The first field is disabled if the data is being edited. I thought this would work: But this complains about "No bean found under attribute key form". The weird thing is, I use that same bean further down the page without any problem: If I take out the code then it works (but doesn't set focus to the password field when required). What am I doing wrong here? Thanks, Kent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
Mr Yan: For most of us here this is not a game but a livelihood If I go to China or India I understand that am a guest in that country and aware that I must not abuse and or break the laws of the country.. Remembering that it is against anti-discrimination law here to denigrate or vilify anyone according to ethnic and or racial heritage (even US Citizens).. Calling someone 'an idiot' based on ANY grouping criteria as you have here is clearly discriminatory In your case I would suggest that you are not Remembering that you are guests here of my country I am asking is that you and your fellow guests extend the SAME courtesy as I a US Citizen would extend if I was working in your country. That is to respect and obey ALL the laws of my country and that ALSO that your words and behaviour should extend respect to ALL of its citizens..Remember also that any US Citizen can file a complaint against any H1B with the INS so in your case I would caution you to be careful what you say from now on. I will tell you based on your comment that you have clearly stepped over the line of appropriateness and should not do so again I would also state your actions reflect that I consider you to be an extremely poor representative of your country and if you worked for me I would fire you on the spot..The last time I checked the INS is not in the business of supporting misbehaving and or inappropriate behaviour of H1Bs who are here as Guests of our country. Please refrain from using this list to promote and or make excuses for your clearly inappropriate behavior. Martin- - Original Message - From: "Yan Hu" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, July 08, 2005 2:40 AM Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations [OT] Last time the price tag I checked on these 2 idiots was 0/hour. Is this your personal playground to make fun of H1Bs or a struts list? Hey, do not hate the players. Hate the game. --- Martin Gainty <[EMAIL PROTECTED]> wrote: Brandon- Keeping in mind that No inductive generalisations can qualify from these premises The last time I checked The price for the aforementioned is pegged at 1c/hour which by my calculations qualifies as 'outsourcing the outsourcers' This is the MSRP ..Your mileage may of course vary depending on your usage habits.. Viel Gluck, M- - Original Message - From: "Brandon Goodin" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" ; "Martin Gainty" <[EMAIL PROTECTED]> Sent: Wednesday, July 06, 2005 8:39 PM Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations [OT] Where do you work!? I am going to notify your boss of you disgruntle behavior on this list!!! No wonder why we have H1Bs. They never complain and just take their 2 cents an hour. And I mean that in the best possible way :p ;-) :D Brandon On 7/6/05, Martin Gainty <[EMAIL PROTECTED]> wrote: > Unfortunately in the US you can be canned for being too old or having > the > wrong religious views > we have a ton of laws on the books but they are unenforced > My question is how do I (an older engineer with politically incorrect > views) > get work in Germany > Vielen Danke, > Martin- > - Original Message - > From: "Christian Bollmeyer" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Wednesday, July 06, 2005 7:31 PM > Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations > [OT] > > > > On Wednesday 06 July 2005 19:48, Rick Reumann wrote: > > > > Hi, > > > >> Daniel Perry wrote the following on 7/6/2005 12:49 PM: > >> > Hah, it's the business use of web/email they fire you for. Go read > >> > your terms of employment, and the reference to "IT acceptible use > >> > policy" that you inadvertantly agreed to. > >> > >> (the below has nothing to do with Mark).. > >> > >> For the record, I'm not against an employer firing an employee for > >> 'whatever' reason they deem fit. If they don't like the way you wear > >> your hair, I think they should have the right to fire you if they > >> want. (The public also has a right to know about it based on the use > >> of the press etc). > > > > Now though I'm clearly not in the position to get fired anytime soon, > > I still think as long as I'm doing my job right and don't blame the > > company I work for, what I do in my leisure time is not my > > employer's business. Including my haircut, age, religious beliefs > > or whatever. What I sell are my skills, work performance and > > last but not least a significant part of my lifetime, but neither > > my soul nor my private life. In Germany, it's not quite that easy > > to get rid of someone who, lets say, just got older because of > > working for you. And I think this is just. Stealing silver spoons, > > including deliberately breaking company rules in terms of > > e-mail usage and the like is another issue. > > > >> Personally, if I owned a company and someone was using the company > >> email domain n
Re: Which request is used in automatic Validation when the requirements aren't met?
Thanks Jeff and Laurie and excuse me for my slow understanding :) I understand what you said now :) >>> [EMAIL PROTECTED] 7/7/2005 11:13:46 PM >>> Thai Dang Vu wrote: > Perhaps I stated it unclearly. > > I am using automatic validation, not manual validation (which uses validate > method of the form bean). If the requirements aren't met, Struts will lead us > to the input page (in my case the /WEB-INF/provider/addprovider.jsp) without > going to the execute method of the AddProviderAction class. > > So my question is: is there any place I can interrupt the request before the > addprovider.jsp appears and displays the errors (I use in that > page)? You weren't unclear, but Jeff's response was correct. He pointed out that your input can be an action, which can then do whatever you need, instead of a JSP. You just need to change your action mapping so the 'input' attribute names the mapping for your AddProviderAction rather than pointing at a JSP directly. L. -- Laurie, Open Source advocate, Java geek and novice blogger: http://www.holoweb.net/~laurie/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
Yan Hu, Take it down a notch amigo. If you hadn't noticed we were being playful. Maybe they don't have a since of humor in other countries ;-) <-- please notice wink face so that you are not offended and under the assumption that i am serious. Brandon On 7/8/05, Yan Hu <[EMAIL PROTECTED]> wrote: > Last time the price tag I checked on these 2 idiots was 0/hour. Is this your > personal playground > to make fun of H1Bs or a struts list? Hey, do not hate the players. Hate the > game. > > --- Martin Gainty <[EMAIL PROTECTED]> wrote: > > > Brandon- > > Keeping in mind that No inductive generalisations can qualify from these > > premises > > The last time I checked The price for the aforementioned is pegged at > > 1c/hour > > which by my calculations qualifies as 'outsourcing the outsourcers' > > This is the MSRP ..Your mileage may of course vary depending on your usage > > habits.. > > Viel Gluck, > > M- > > > > - Original Message - > > From: "Brandon Goodin" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" ; "Martin Gainty" > > <[EMAIL PROTECTED]> > > Sent: Wednesday, July 06, 2005 8:39 PM > > Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations [OT] > > > > > > Where do you work!? I am going to notify your boss of you disgruntle > > behavior on this list!!! No wonder why we have H1Bs. They never > > complain and just take their 2 cents an hour. > > > > And I mean that in the best possible way :p ;-) :D > > > > Brandon > > > > On 7/6/05, Martin Gainty <[EMAIL PROTECTED]> wrote: > > > Unfortunately in the US you can be canned for being too old or having the > > > wrong religious views > > > we have a ton of laws on the books but they are unenforced > > > My question is how do I (an older engineer with politically incorrect > > > views) > > > get work in Germany > > > Vielen Danke, > > > Martin- > > > - Original Message - > > > From: "Christian Bollmeyer" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" > > > Sent: Wednesday, July 06, 2005 7:31 PM > > > Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations > > > [OT] > > > > > > > > > > On Wednesday 06 July 2005 19:48, Rick Reumann wrote: > > > > > > > > Hi, > > > > > > > >> Daniel Perry wrote the following on 7/6/2005 12:49 PM: > > > >> > Hah, it's the business use of web/email they fire you for. Go read > > > >> > your terms of employment, and the reference to "IT acceptible use > > > >> > policy" that you inadvertantly agreed to. > > > >> > > > >> (the below has nothing to do with Mark).. > > > >> > > > >> For the record, I'm not against an employer firing an employee for > > > >> 'whatever' reason they deem fit. If they don't like the way you wear > > > >> your hair, I think they should have the right to fire you if they > > > >> want. (The public also has a right to know about it based on the use > > > >> of the press etc). > > > > > > > > Now though I'm clearly not in the position to get fired anytime soon, > > > > I still think as long as I'm doing my job right and don't blame the > > > > company I work for, what I do in my leisure time is not my > > > > employer's business. Including my haircut, age, religious beliefs > > > > or whatever. What I sell are my skills, work performance and > > > > last but not least a significant part of my lifetime, but neither > > > > my soul nor my private life. In Germany, it's not quite that easy > > > > to get rid of someone who, lets say, just got older because of > > > > working for you. And I think this is just. Stealing silver spoons, > > > > including deliberately breaking company rules in terms of > > > > e-mail usage and the like is another issue. > > > > > > > >> Personally, if I owned a company and someone was using the company > > > >> email domain name to post on sites such as "swingers" or > > > >> "transvestitepride," I think I should have right to terminate his or > > > >> her's employment. What I have a problem with is ... > > > >> > > > >> 1) The inconsistency in what is protected. For example everyone today > > > >> talks about "tolerance." But what does this mean? What it ends up > > > >> meaning is "There are no moral absolutes so the only valid belief > > > >> system protected is one that doesn't espouse moral judgments." But > > > >> what about being tolerant to the idea that someone might feel > > > >> otherwise? Why is state sanctioned secularism the only valid > > > >> religion (and yes secularism is a belief system - a religion). It's > > > >> sort of funny that those whom often claim to be the most 'tolerant' > > > >> are often the most vicious when it comes to attacking someone that > > > >> disagrees with their view of "tolerance." There are many views I > > > >> could state that would get me labeled as being 'intolerant,' yet, > > > >> somehow it's supposedly not offensive to state "All views on X,Y,orZ > > > >> are equally acceptable." To me, and many others, that later position > > > >> can be considered extremely
Re: Passing data between action forms
Typically, I will create a SearchBean with all of the search parameters on it. Included in this bean is a collection to store the results in. On the ActionForm, I will include the SearchBean as a parameter on the search bean. On the JSP, I use nested tags or the . notation ( ">"Mitchell, Steven C" <[EMAIL PROTECTED]> "Mitchell, Steven C" <[EMAIL PROTECTED]> 07/08/2005 08:34 AM Please respond to "Struts Users Mailing List" To cc Subject Passing data between action forms I'm curious to hear what other people are doing regarding the passing of data between actions. Take for example an advanced search page with validation, drop down lists, the works. Upon successful validation the user should flow to a search results page. Assume the results page is part of something bigger that may require additional server-side processing. In the past I have put the search results list on the same action form as the search criteria and just forwarded to a different JSP from the same action. There are times when I would prefer to forward to a different action/form pair, especially if their is potential for additional processing. I suppose I could put the form in the session and define a different action that uses the same form to achieve some modularity, but I would prefer to be able to just hand-off the search results to a separate action/form pair. Is there an elegant way to do that in Struts? Am I just trying to make this overly complex?
RE: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
It's a type of temporary work visa in the US. http://uscis.gov/graphics/howdoi/h1b.htm > -Original Message- > From: Daniel Perry [mailto:[EMAIL PROTECTED] > Sent: Friday, July 08, 2005 5:33 AM > To: Struts Users Mailing List > Subject: RE: [OT] Re: Fired was...Re: Struts Books > Recommendations [OT] > > Applogies for being english or maybe just naive, but what the > hell is a H1B? > > Daniel. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Passing data between action forms
I'm curious to hear what other people are doing regarding the passing of data between actions. Take for example an advanced search page with validation, drop down lists, the works. Upon successful validation the user should flow to a search results page. Assume the results page is part of something bigger that may require additional server-side processing. In the past I have put the search results list on the same action form as the search criteria and just forwarded to a different JSP from the same action. There are times when I would prefer to forward to a different action/form pair, especially if their is potential for additional processing. I suppose I could put the form in the session and define a different action that uses the same form to achieve some modularity, but I would prefer to be able to just hand-off the search results to a separate action/form pair. Is there an elegant way to do that in Struts? Am I just trying to make this overly complex?
Re: Paging in DisplayTag
This is dependent on how you have structured you database query. There are multiple solutions to what you are attempting to do. 1. Create a query that will return the entire resultset and store that resultset in the session as you metion. If you are returning an extremely large result set, running the application in a clustered environment with percistant sessions to a database, or have a large number of users, this could prove problematic. The more you put into the session, the more memory your application will use. Additionally, if you persist your session, you are requerying each time you mention a session. This could be a mojor performance hit. Finnally, you are moving a lot of data across the network. If 90% of the users will find what they need on the first 1 or 2 pages of a resultset, pulling back the data to populate the reset of the menus is a waste of resources. 2. If all users are going to use the same resultset (ie multipage menuing or a product catalog), this may be a occation for a singleton class with a collection containing the data. You could refresh this singleton based on a timeframe to insure it remains current. this will only work for semistatic results. 3. Implement a fast lane reader pattern. This will subdivide your SQL results to return only the page that is being displayed using boundry conditions in the SQL or Stored procedure. This will require a database hit between each page, but if the database is properly indexed and you are using a connection pool, you can still retain very fast performance. I am sure there are many more ways to address this problem, but these are the three that I have had the most experiance with. It boils down to ever situation is different and you have to customize your solution based on the data, the business requirement, and the user habits. Phani <[EMAIL PROTECTED]> Phani <[EMAIL PROTECTED]> 07/07/2005 06:19 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List , Michael Jouravlev <[EMAIL PROTECTED]> cc Subject Paging in DisplayTag Hi, Shud my Action form be in session scope if I want to specify pagesize in display tag for paging.. Because I get the following error: Error 500: Cannot find bean storeForm in any scope Thanks, Phani. __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validating nested, indexed properties
I should probably slap myself now. This works just fine, if the struts-config doesn't turn validation off. :) Kjersti - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using struts forms as Value Objects: your opinion?
On 7/8/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Personally I prefer to keep form beans and value objects seperate, for two > key reasons: +1 == me too. -T. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using struts forms as Value Objects: your opinion?
> 1) form beans generally should consist of String data to facilitate > round-tripping of invalid inputs. I like to constrain them to a clearly > defined role of marshaling data 'into' and 'out of' the > presentation layer, > i.e. across the boundary between presentation and application. This i would agree with. Fields in BO/VOs have various types. ActionForms should only get/set strings. > > 2) value objects should use typed interfaces to ensure marshaling to and > from presentation format (string types) is pushed as far up the > application > stack as possible. This also enables other, potentially type-aware, > presentation / client tiers to be built on top of the same value objects > (e.g. for a web-services interface). > > To address Micheal's question (why not just make value objects > and business > objects the same thing?), I'd point out that it can be valuable to > distinguish between business rules and application logic. I find my > business objects often have functionality I don't want called > directly from > the presentatin layer, particularly when using a mediation layer between > the two. > > Essentially, though, it comes down to the complexity of the > problem vs. the > complexity of the solution. The more complex the application, the more it > makes sense to partition responsibilities. For very simple > applications it > makes sense to collapse layers together. I tend to merge BO,VO,and DAO all into one bean. I made a self-persistable base bean (using OJB), and then just add fields with getters/setters. All works nicely. Add any simple logic into the beans. Stick complex logic in managers/helpers/services. I tend to pass these beans straight up to jsps for pure displaying of stuff, but then use actionforms to edit/submit data. A big timesaver can be to write a constructor for an action form that accepts a BO and fills itself from that. Daniel. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Recommend a UK Tomcat host
UK2 dedicated linux servers. (uk2.net) We've got a few of these, and they're cheap and reliable. Only negative is you have to setup/manage them yourself. But with linux you honestly have to do very little. Daniel. > -Original Message- > From: Mark Benussi [mailto:[EMAIL PROTECTED] > Sent: 08 July 2005 09:45 > To: 'Tomcat Users List' > Cc: 'Struts Users Mailing List' > Subject: [OT] Recommend a UK Tomcat host > > > Apologies for the repost to the Tomcat list but I am getting desperate. > > > Can anyone recommend a UK based Tomcat hosting solution? I have been let > down by my current ISP (nameonthe.net) which has gone out of business. > > > > Your help is greatly appreciated. > > > > TIA Mark > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
Applogies for being english or maybe just naive, but what the hell is a H1B? Daniel. > -Original Message- > From: Yan Hu [mailto:[EMAIL PROTECTED] > Sent: 08 July 2005 07:40 > To: Struts Users Mailing List > Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations > [OT] > > > Last time the price tag I checked on these 2 idiots was 0/hour. > Is this your personal playground > to make fun of H1Bs or a struts list? Hey, do not hate the > players. Hate the game. > > --- Martin Gainty <[EMAIL PROTECTED]> wrote: > > > Brandon- > > Keeping in mind that No inductive generalisations can qualify > from these > > premises > > The last time I checked The price for the aforementioned is pegged at > > 1c/hour > > which by my calculations qualifies as 'outsourcing the outsourcers' > > This is the MSRP ..Your mileage may of course vary depending on > your usage > > habits.. > > Viel Gluck, > > M- > > > > - Original Message - > > From: "Brandon Goodin" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" ; > "Martin Gainty" > > <[EMAIL PROTECTED]> > > Sent: Wednesday, July 06, 2005 8:39 PM > > Subject: Re: [OT] Re: Fired was...Re: Struts Books > Recommendations [OT] > > > > > > Where do you work!? I am going to notify your boss of you disgruntle > > behavior on this list!!! No wonder why we have H1Bs. They never > > complain and just take their 2 cents an hour. > > > > And I mean that in the best possible way :p ;-) :D > > > > Brandon > > > > On 7/6/05, Martin Gainty <[EMAIL PROTECTED]> wrote: > > > Unfortunately in the US you can be canned for being too old > or having the > > > wrong religious views > > > we have a ton of laws on the books but they are unenforced > > > My question is how do I (an older engineer with politically incorrect > > > views) > > > get work in Germany > > > Vielen Danke, > > > Martin- > > > - Original Message - > > > From: "Christian Bollmeyer" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" > > > Sent: Wednesday, July 06, 2005 7:31 PM > > > Subject: Re: [OT] Re: Fired was...Re: Struts Books > Recommendations > > > [OT] > > > > > > > > > > On Wednesday 06 July 2005 19:48, Rick Reumann wrote: > > > > > > > > Hi, > > > > > > > >> Daniel Perry wrote the following on 7/6/2005 12:49 PM: > > > >> > Hah, it's the business use of web/email they fire you > for. Go read > > > >> > your terms of employment, and the reference to "IT acceptible use > > > >> > policy" that you inadvertantly agreed to. > > > >> > > > >> (the below has nothing to do with Mark).. > > > >> > > > >> For the record, I'm not against an employer firing an employee for > > > >> 'whatever' reason they deem fit. If they don't like the > way you wear > > > >> your hair, I think they should have the right to fire you if they > > > >> want. (The public also has a right to know about it based > on the use > > > >> of the press etc). > > > > > > > > Now though I'm clearly not in the position to get fired > anytime soon, > > > > I still think as long as I'm doing my job right and don't blame the > > > > company I work for, what I do in my leisure time is not my > > > > employer's business. Including my haircut, age, religious beliefs > > > > or whatever. What I sell are my skills, work performance and > > > > last but not least a significant part of my lifetime, but neither > > > > my soul nor my private life. In Germany, it's not quite that easy > > > > to get rid of someone who, lets say, just got older because of > > > > working for you. And I think this is just. Stealing silver spoons, > > > > including deliberately breaking company rules in terms of > > > > e-mail usage and the like is another issue. > > > > > > > >> Personally, if I owned a company and someone was using the company > > > >> email domain name to post on sites such as "swingers" or > > > >> "transvestitepride," I think I should have right to > terminate his or > > > >> her's employment. What I have a problem with is ... > > > >> > > > >> 1) The inconsistency in what is protected. For example > everyone today > > > >> talks about "tolerance." But what does this mean? What it ends up > > > >> meaning is "There are no moral absolutes so the only valid belief > > > >> system protected is one that doesn't espouse moral judgments." But > > > >> what about being tolerant to the idea that someone might feel > > > >> otherwise? Why is state sanctioned secularism the only valid > > > >> religion (and yes secularism is a belief system - a religion). It's > > > >> sort of funny that those whom often claim to be the most 'tolerant' > > > >> are often the most vicious when it comes to attacking someone that > > > >> disagrees with their view of "tolerance." There are many views I > > > >> could state that would get me labeled as being 'intolerant,' yet, > > > >> somehow it's supposedly not offensive to state "All views > on X,Y,orZ > > > >> are equally acceptable." To me, and many others, that > later position > > > >> can
Re: and Struts 1.2.7 possible bug?
I have the same situation that yours. My solution is to save the static part of validator in an static .js file ...and replace all ocurrences of var formName = form.getAttributeNode("name"); with var formName = form.getAttributeNode("id"); My previous setup was "> Inside validator.jsp there was: <%@ page language="java" contentType="javascript/x-javascript" %> <%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html" %> Like this you can save the javascript functions, pointing your browser to http://host/context/scripts/validador.jsp Niall Pemberton escribió: Its a bug in Version 1.2.7 caused by the changes for Bug 34027. It has been reported in Bug 35127 and a fix has been applied I have upated the upgrade notes on the wiki to make a note of this: http://wiki.apache.org/struts/StrutsUpgradeNotes124to127 Niall - Original Message - From: "Eduardo José Hernández Cisneros" <[EMAIL PROTECTED]> Sent: Friday, July 01, 2005 5:04 PM Hi everybody, I recently upgrade my struts libraries to 1.2.7 from 1.2.4. I am using the tag with: . In 1.2.4 version the html:form tag renders correctly the form name attribute, but when a I changed to 1.2.7 the form name disappeared and this causing trouble with a javascript client-side validation that I am using. The funny part is that when I remove tag with 1.2.7 version the form name appears again. Am I using wrongly the tag or could it be a bug? Thank you for your time. --Eduardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts-config.xml Digester endElement problem
On 7/7/05, Sher, Allen - BLS CTR <[EMAIL PROTECTED]> wrote: > Got this stack trace while deploying my struts 1.2.7 app into WebLogic > 8.1.4. > It seems to relate to Digester complaining something about > struts-config.xml. > Adding Xerces 2.5 into the WAR file does not help. > Can someone point a direction of where to look? > Thanks. > > > Jul 7, 2005 9:11:26 AM org.apache.commons.digester.Digester endElement > SEVERE: End event threw exception > java.lang.IllegalArgumentException: argument type mismatch > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > .java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216) > at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:208) > at org.apache.commons.digester.Rule.end(Rule.java:228) > at This sounds familiar, I know you've already posted your config file (which BTW my setup seemed to think was valid) but what do you have on your classpath? I seem to remember running into dependency issues between xalan, xerces and commons-digester, i.e. I was using the wrong version of one of the libraries. Steve -- "A witty saying proves nothing." -- Voltaire - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]