Re: [OT] Hibernate vs. iBatis vs. POJO
Leon Rosenberg wrote: >> Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] >> >> On 7/25/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: >> > I think the problem is rather that none of the dbs scales. >> > To scale you need something in front of db in the business layer >> > (middleware), so it's no difference whether you use ibatis or sql. >> > Could be nasty with hibernate though, at least you need to turn off >> > the lazy loading... Surely that's entirely dependent on the type of transactions you're doing. I would expect lazy loading to help with scalability in some cases. >> >> I thought that database clusters exist before J2EE clusters >> ;) And I believe that former are more robust than latter too. > > Database clusters exists, true. But who tells you that they scale??? > > Actually I has often seen projects, where the architect told, if we will > have scalability problems, we will cluster the db. > Then, the day X came, they clustered the db and then... surprise, surprise > it became even slower... > > I think the sentence "clustering will help you scaling" is an urban myth > :-) It's hard to see where clustering is ever going to be more efficient than a single multi-cpu machine of the same capacity. The cluster only helps when you get into realms beyond the reach of a single machine, and generally where that machine is cpu-bound. Clusters have their place, but I'm still not sure it's in DBs. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Hibernate vs. iBatis vs. POJO
Daniel Perry wrote: >> Again, that's a situation where you are involving consultants. >> Consultants >> are expected to know the technology and not learn it on their customers' >> time. When a company has its own IT staff, there are rarely >> opportunities for somebody else to underbid them. > > Really? the majority of the work i do is for companies/organisations that > have their own IT department. > > An example: the NHS > They probably have more IT staff than most large software dev companies. > If they were a bit more organised/centralised they could save themselves a > packet, and stop using external companies (which rip them off then get the > work done in india on the cheap - note we do neither of these!). > Sorry, that should have been "When a company _uses_ its own IT staff". I've rarely worked anywhere where the IT dept competes against itself (it does happen, and I think it's generally a bad thing). In fact, I too am working for clients with their own IT staff. If the IT department has to compete against outside contractors, it _should_ be an uphill battle. I'm bidding on those contracts where I know I have expertise they don't have in-house. I should be able to underbid them, and not waste time experimenting with technologies. Often part of that contract will involve teaching the in-house staff how to maintain the end-product - and next time I may not have the edge in bidding that I had the first time. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Hibernate vs. iBatis vs. POJO
Ed Griebel wrote: > All too often that's how it works. If you say no, there are people > that will say yes. Even if they end up taking as much time as you said > it would, they've got the project, not you. Again, that's a situation where you are involving consultants. Consultants are expected to know the technology and not learn it on their customers' time. When a company has its own IT staff, there are rarely opportunities for somebody else to underbid them. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Hibernate vs. iBatis vs. POJO
netsql wrote: > Frank W. Zammetti wrote: > It has not been unusual to estimate three months >> for something, and that's fairly realistic to do it right, and the >> business says "nope, 1.5 months is when we need it". > > > I need you to paint the house, but I only have budget to wash my hair? > > That is no respect and a bit like slavery! Exactly my point. When I have worked for corporations, deadlines were set cooperatively. If I said it could be down in a month, and the user said "we need it in two weeks", I told them what they _could_ get in two weeks. If they said "we need it _all_ in two weeks" they had to either forget it or throw more resources at it. The world is _not_ a Dilbert cartoon - we're highly prized professionals, and we don't have to accept slavery. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Hibernate vs. iBatis vs. POJO
Frank W. Zammetti wrote: > In such cases, the application IS important enough to code > trials, but the business won't allow you to but they STILL want you to > sweat the decisions! This is a typical way of doing things, going by my > experience. It depends what _your_ job is. If you're a consultant, you're expected to _know_ the technology, and the customer isn't paying for you to experiment. If you're an employee, I've never worked in a situation where you don't get the time to evaluate the right techniques. > > Even if its the largest initiative of the year for the company, the most > important project, there is still a deadline, usually and unreasonable > one, and taking the time to properly evaluate options isn't always given. Then go find a new job. There's lots of them for capable people - don't work at places that put unreasonable demands on you. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] M Galbreath
Fogleson, Allen wrote: > Actually there would not have to be an ethics clause. Maryland is a > right to work state so the employer can fire you at any time for any > reason. Aren't most states this way? No, only 22 according to http://www.nrtw.org/rtws.org - however, they don't include Maryland, and it hasn't been updated since 2003, it seems. I don't think that you're describing a "right to work" state - it's something more extreme - an "employer's rights" state. "Right to work" just says that nobody (almost) can be forced to join a union. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M Galbreath
Larry Meadors wrote: > I would like the person who sent this to know that they are the lowest > form of life on the planet. > Oh, please. That's why the idiot shouldn't have been using a government email address. I've skipped almost all of this, but at the very least he _did_ make threatening noises. You just can't go doing that on government time. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help with a newbie topic-prepopulating a form
Michael Jouravlev wrote: > The only book I would follow without asking for explanation would be a > nuclear power station operator's manual. In all other cases I have > time to sit down and think things over. Strictly speaking, you shouldn't actually be operating a nuclear power station without already having read the manual and asked those questions... (My Dad used to be the guy they asked, but I imagine a fair number of his students graduated to actually working in power plants without a clue about the "why" of any of it). -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Jar file error
On Thursday 06 January 2005 03:52, Vijaya S wrote: > Struts.jar file exist in Jakarta-struts-1.2.4\lib folder. When I execute > this jar file, I get the following error. > > Failed to load Main-Class manifest attribute from > c:\Jakarta-struts-1.2.4\lib\struts.jar And you expected what? It's not an executable jar. It's expected to be used in a Web Application server, like Tomcat -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New to Struts & seeking advice
On Tuesday 04 January 2005 12:55, Jim Barrows wrote: > > From: Mark McWiggins [mailto:[EMAIL PROTECTED] > > > *Is AppFuse worth using as a basis for a real app? I tried > > working through the tutorial and got it going, > > but it is based on Hibernate and I was told that > > Hibernate may not be mature enough for deployment? > > I don't know who told you either of those, but both statement are wrong. > AppFuse can use Hibernate, iBatis or JDBC. Says so right on the box. > Hibernate is more then mature enough for deploymnet. Matt Raible uses both > appfuse and Hibernate for his production projects. Matt Raible _is_ AppFuse, isn't he? I started out a week ago with Matt's SpringLive tutorial and think I have Hibernate jumping through the hoops now. It works great. > > > * Any other tools or techniques that you fervently recommend or > > recommend avoiding? > > Appfuse is nice if you want something that is IDE agnostic. Yeah, I plugged it right into JDeveloper. > Spring is massively cool for wiring everything together. It is! It took me quite some time to figure out why I would want to use it, because it's so "behind the scenes" you can't see what it's doing. > Avoid Java on the AS400 in general. Come on, Jim, you know you really wanted to say "Avoid the AS400 in general." :-) -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Required help to name a worksheet in xls
On Sunday 26 December 2004 23:53, Eddie Bush wrote: > Actually, you can export text an HTML table to Excel too -- just lie > and tell it the data is of type "application/excel" and then give the > filename as per above. > > ... handy :-) but horribly slow :-( -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bean:write filter question
On Wednesday 22 December 2004 16:42, Jeff Beal wrote: > > The only thing that I always forget is that nodeValue() only returns a > value for text nodes. It's not like XSLT where the text value of an > element is the text value of all contained text nodes. So, basically, > this.nodeValue wouldn't have worked anyway. The DOM-compliant way of > doing this.innerText (for an element with only one child node) would be > this.childNodes.items(0).nodeValue. this.innerText is a lot neater. Darn. MS's DHTML reference says that there's no public standard for innerText, which means it's only guaranteed to work on IE. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:file value
On Wednesday 22 December 2004 02:29, Dakota Jack wrote: > There actually are a lot of things you can do with this that are not > obvious and are consistent with what seems to be impossible. You can > actually get around almost all of the restrictions on type='file'> without breaking security. You just create GUI facades > with span styles. This can allow you to actually make a person think > they are uploading a file when in fact they are just sending the file > name to the server, etc. This is also used to insert images in the > place of file upload browser based buttons. afaik, Eddie's right. Last time we kicked this around on an HTML discussion forum, we couldn't find a way to obscure, in any way, the actual file "browse" button. There's been significant changes in all the major browsers since then, so things could have changed, but I would doubt any such changes are intentional. If you overlay the browse button with an image, the button doesn't receive the onClick event. There is no way for any other control to click the button programmatically. Similarly, you can overlay the actual filename box, but nothing is permitted to programmatically change the contents of the filename. Yes, you can make it look as if you upload a file while sending just the name (other than by just leaving off the "enctype" attribute) - it's possible to read the contents of the filename box and change another object's value - you just can't write to the filename. You should, however, be able to programmatically submit the form, once the user has filled in the filename, so you can stick an image over that button (but then you could use an image button directly). -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error with JSTL 1.0.6 and struts 1.2.4
On Sunday 19 December 2004 23:36, [EMAIL PROTECTED] wrote: > Hi David, > > I copied jstl.jar to WEB-INF/lib and errors still occur when I compiled > the project. > > I am using JDeveloper 10g with jdk 1.4.2 to develop my project. > > Could you tell me how to use standard jstl in my case. Having jstl.jar in your WEB-INF/lib is probably no help at all in compiling in JDeveloper. Tools>Project Properties>Libraries>JSTL afaict, JSTL is available in the component palette by default -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page navigation links
On Friday 17 December 2004 13:25, Jim Barrows wrote: > > From: Donie Kelly [mailto:[EMAIL PROTECTED] > > > > Anybody got an example of how to implement a page navigation > > link for the > > top of a page like so... > > > > Home > MainFgorm > wizardpage1 > wizard page 2 > > You're looking for breadcrumbs. My steel seive memory fails me, but there > is a library out there that will do this for you. Oh! that's what they are for :-) struts-layout has them: http://struts.application-servers.com/ -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts, JSTL and ResourceBundle
On Wednesday 15 December 2004 14:07, Jim Barrows wrote: > > From: Nicolas De Loof [mailto:[EMAIL PROTECTED] > > My customer would like to be able to change i18n messages > > easily (without requirement to redeploy webapp or edit files > > in context/WEB-INF/classes/...) > > > The solution isn't to put the messages into a database. That just means > everything gets slowed down as you constantly make db changes. Maybe, though I'd expect that there wouldn't be "constant" changes. > What you might want to do is cause all of the i18n bundles to > reload themselves to pick up new bundles. Which seems to be somewhat > difficult, but this link might provide some help: > http://www.jguru.com/faq/view.jsp?EID=44221 Doing it the "right" way might be a real pain, but if you make context/WEB-INF/classes/ApplicationResources.properties a symlink to a file they can access, and use 'reloadable="true" allowLinking="true"' in the tag I would think it would work. Ugly, but simple. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating valid HTML from tag
On Tuesday 14 December 2004 17:09, D. Stimits wrote: > Martin Wegner wrote: > > The Struts doc does suggest that should cause the > > tag to be XHTML compliant but for some reason it does not. The W3C XHTML > > validator also does not like the Struts output of the elements. > > Struts does not close them: . > > This might help as a reference: > http://struts.apache.org/faqs/kickstart.html#xhtml How so? It says what we already said here - except that it turns out not to be true. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating valid HTML from tag
On Tuesday 14 December 2004 13:13, Martin Wegner wrote: > The Struts doc does suggest that should cause the > tag to be XHTML compliant but for some reason it does not. The W3C XHTML > validator also does not like the Struts output of the elements. > Struts does not close them: . > Well, then, I'd have to agree it's a bug :-) I've never actually _tested_ the output - silly me, I thought if they said it was "standards compliant", it would be :-) -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating valid HTML from tag
On Tuesday 14 December 2004 08:51, William Ferguson wrote: > I noticed that the html generated form the tag is not valid > HTML according to the W3C validation service (http://validator.w3.org). It > generates a tag with a 'name' attribute which has been deprecated. > > Since I'm striving to conform to relevant standards as best as possible, I > was wondering whether anyone else had faced the same issue and what > approach had been taken. > > If I don't use the tag then I can't use other tags like > etc, which means a fair bit of messing about for drop-downs. > > Does anyone else bother with HTML validation? > And if so, how do you handle Forms and Form elements? Don't you need to use or to get full standards compliance? From the Struts Developer guide: "The output is HTML 4.01 compliant or XHTML 1.0 when in XHTML mode. " -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to save last 5 searches in the cookie?
On Monday 13 December 2004 18:35, Webmaster wrote: > Personally I dislike cookies and dont allow any on my box...way too many > virus attacks this year. In fact if the site Im visiting only works with > cookies I write to the webmaster and ask them why dont they use Session?? I > would strongly recommend saving your User preferences etc back up to the > Server via "Session" attributes My 2 cents, How do you get a virus from a cookie? As a matter of habit, I don't accept cookies, but it's a privacy issue not a virus issue. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT - Friday]Corporate Stupidity
On Sunday 12 December 2004 11:40, Frank W. Zammetti wrote: > This might seem like an obvious comment, but this depends on what type > of job it is. > > I work for one of the largest financial companies in the U.S. in the > mutual fund sector. There are real, legitimate concerns with so much > money involved. To me, asking for my fingerprints wasn't an outrageous > request. I think I could have argued it was superfluous, but not > unreasonable. In my case, I'm doing contract work for a federal (Canadian) government department - nothing remotely sensitive, though there is a small amount of confidential information, as there probably is in any IT position. I didn't have nearly as much problem with the demand for my fingerprints as their insistence that federal law requires them to keep my fingerprints on file after they've served their purpose (which it doesn't). -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Opinions on Struts Layout
On Friday 10 December 2004 16:38, David G. Friedman wrote: > Derek, > > If you made a list of bullet points for the parts of struts layout you like > most, perhaps we listmembers could point you in the direction of native > Struts parts or equivalent add-ons. I don't really see how there could be "native Struts parts", since it's just an extension of Struts, but what I've been using is: , - really simplify layout of row-oriented but non-tabular data input tags - I haven't a clue how it's done, but if they fail validation, the corresponding message is displayed with the input field rather than just using . for collapsing menus I haven't yet used but it looks quite handy for tabular data. For tabbed panels, I found struts-menu more useful. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT - Friday]Corporate Stupidity
On Friday 10 December 2004 16:57, Jim Barrows wrote: > Just found out that the 800lb brass monkeys have decided that it's a good > idea to do full background and checks on all their employees. Which has got > to be the dumbest thing ever been done to me as a contractor or employee... > > so what's the stupidest thing a company has ever done to YOU? That was it. Complete with fingerprint checks because they claimed they couldn't tell from knowing my date and place of birth whether I actually had a criminal record. Never mind that the _police_ told me they knew I didn't. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Opinions on Struts Layout
On Friday 10 December 2004 14:03, Brantley Hobbs wrote: > > Well, I ran across Struts Layout > (http://struts.application-servers.com/index.html). Perhaps I've been > living under a rock for a while, but it was something that I'd never > heard of before, and it seems to offer exactly what we longed for with > MS's canned "web controls". > > Does anyone here have any familiarity with this project? How does it > compare with JSF or even with some of the other presentation layer > projects like Velocity, etc. No experience - I just ran across struts layout, too, and find it's working well for some of what I want to do. I know nothing about JSF, and tried to get into Velocity and it seemed like just too much work. I think that's really because I got some bad advice, early, but I gave up on it. The responses you've received so far strike me as odd - which makes me think none of the respondents have actually looked at Struts Layout. It's a properly struts-based tag library, and fits fine with _Struts_, but I had trouble getting it to do tabbed menus with Tiles. Since that's not it's major purpose, I just stopped doing that. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with validation (?)
On Thursday 09 December 2004 19:09, Laconia Data Systems wrote: > Derek- > Any conversions (String to Integer or whatever) need to happen in your > Business Bean layer Not me... I just replied to a reply. :-) -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with validation (?)
On Thursday 09 December 2004 18:02, Wendy Smoak wrote: > From: "Derek Broughton" <[EMAIL PROTECTED]> > > > > What happens when somebody types "ABCDE" into your Integer field on the > > > form, and it fails validation? Can you re-display the incorrect user > > input > > > > so they can see what they typed and why it was wrong? > > > > Or more concisely, because HTML only has string types. > > Oh, sure, take all the fun out of it. ;) Teach a man to fish, and all... > > It begs the question though: is there a case for using Integer in an > ActionForm? I know the reasons *not* to (and I don't) but it must be there > for a reason? Beats me. I'm still new to this. Using strings was just something I ran across in a tutorial early :-) -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts or straight HTML button for action w/ no assoc. form?
On Thursday 09 December 2004 18:28, Frank W. Zammetti wrote: > I always tend to chime in on topics like this because I sense a real > over-reliance on taglibs in general, certainly the Struts taglibs more > specifically. ... > My point is simply that, as with most good technology, use custom tahs > with care. Don't simply assume that they are the solution to every > problem. I frankly go to the extreme of NOT using them unless I have a > problem tha is ideally solved by them, which tends to not be the case > too often. I'm not saying go to that extreme, just venture forth with a > little caution is all. Very good point. I tend to use whatever is simplest _for me_, which is not necessarily the best or the most efficient solution in action. Frank's method requires a _very_ good understanding of the taglibs, which can only be a "Good Thing" :-) -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with validation (?)
On Thursday 09 December 2004 14:28, Wendy Smoak wrote: > From: "aris" <[EMAIL PROTECTED]> > > > > Use String (and occasionally Boolean) for form fields and things will > > work > > > > the way you need them to. > > > > I don't understand your answer... If I need an Integer field for my > > ActionForm derived class why I've to use a String? > > What happens when somebody types "ABCDE" into your Integer field on the > form, and it fails validation? Can you re-display the incorrect user input > so they can see what they typed and why it was wrong? Or more concisely, because HTML only has string types. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ValidatorForm ???
On Wednesday 08 December 2004 05:09, Guillaume Cottenceau wrote: > Bala.Paranj 'at' novainfo.com writes: > > Note: The information contained in this email and in any attachments is > > intended only for the person or entity to which it is addressed and may > > contain confidential and/or privileged material. Any review, > > retransmission, dissemination or other use of, or taking of any action in > > reliance upon, this information by persons or entities other than the > > intended recipient is prohibited. The recipient should check this email > > and any attachments for the presence of viruses. Sender accepts no > > liability for any damages caused by any virus transmitted by this email. > > If you have received this email in error, please notify us immediately by > > replying to the message and delete the email from your computer. This > > e-mail is and any response to it will be unencrypted and, therefore, > > potentially unsecure. Thank you. NOVA Information Systems, Inc. > > Lawyers have said that these notices have no legal value. Thus, > it's simply annoying. Which is not to say that lawyers have agreed you _can_ retransmit this mail in any way. The author _still_ holds copyright, and the extremely annoying blurb says nothing that isn't true of copyright in any case, and you can't disclaim your liability for sending viruses. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles or Frames or Both
On Tuesday 07 December 2004 12:34, [EMAIL PROTECTED] wrote: > On Tue, December 7, 2004 10:31 am, Derek Broughton said: > > If you're going to do something that makes it worthwhile putting the JS > > in the > > frame, you probably should be using a script file - in which case it is > > cached anyway and you get the same savings. > > What is caching it? The browser? In that case you can't rely on it. No, but it's not your problem if people turn off their cache. Few enough do that I'm not concerned about it being a performance problem on my server. > Also, if you use a script file, you lose all notion of state. This I think > is a bit of a blurry line between data and code, Not really. 'code' goes in the script file. 'state' data would still be in the uncached page. I'm firmly in favor of: > (c) have > some code that sets the menu states according to the application state on > each page. > But, this is information that really > only has to do with the UI, information that you really shouldn't have to > deal with every page, so why not have this functionality and state > information in a hidden frame? I actually agree with all this. I usually use frames. I just didn't agree that you would necessarily get a performance improvement by putting your functions in a frame (and think that any functions that are going to be used throughout an application belong in one or more script files, anyway, regardless of whether they're in the frame that invokes them or in another). -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles or Frames or Both
On Monday 06 December 2004 17:55, Frank W. Zammetti wrote: > Also, with frames you can do some tricks that you can't do otherwise. > For instance, having a hidden frame with cached data and Javascript > cuntions can be incredibly powerful. True... > You can boost perforance by not > sending that stuff down with every request, lower the load on your > server and make your user interface more robust. If you're going to do something that makes it worthwhile putting the JS in the frame, you probably should be using a script file - in which case it is cached anyway and you get the same savings. > > In short, if the parts of the UI you don't think will change much > doesn't contain too much, I'd say go with tiles because you probably > won't benefit very much from frames. If however the contents of those > parts is significant, and/or you can see the need for caching data and > common code, frames can be very powerful. Only for data, never for code... -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Vendor] Oracle JDeveloper 10.1.3 Preview version available
On Monday 06 December 2004 09:21, Duncan Mills wrote: > I'll bypass the fluff and get to the point - Oracle have just released a > preview (read beta) version of JDeveloper 10.1.3 for developers to have > a play with on OTN > (http://www.oracle.com/technology/products/jdev/101/index.html) . > The new features in this release are many and varied and fortunately > listed for me at: > http://www.oracle.com/technology/products/jdev/101/collateral/101/1013newfe >atures.html > > But from the Struts point of view the key changes are > 1) Support for multiple modules / diagrams within the same project Nice. > 2) Synchronized source control for the Struts configuration and the > diagram file that holds the visualization of it. I _really_ hope it's doing a better job with tiles definitions. I work mostly with Oracle, and have found JDeveloper to be a really useful tool. So when I recently started using Struts, I used JDeveloper, even though I haven't found any good documentation about using the two together. The one thing that's really annoying is that I can not use the diagram tool - any forward to a tiles definition, rather than a JSP file is treated as an error and deleted from the struts-config file! > 3) As you edit validation of the Struts config against the DTD Great! > I've created an on-line demo to wet appetites without incurring the > bandwidth to download the preview. > http://www.oracle.com/technology/products/jdev/101/viewlets/101/struts_new_ >features_viewlet_swf.html Thanks Duncan. I'm looking forward to it. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with validation using both minlength and maxlength on the same field
On Wednesday 01 December 2004 14:28, David G. Friedman wrote: > P.S. Question for the Day: Why do so many questions lately seem to be > clearly answered in the UserGuides yet always asked? Because very little is _clearly_ answered in the UserGuides, particularly that question. In hindsight, he was trying to do something that is probably illegal, but it's a matter of "what isn't specifically allowed is disallowed". I had the impression it was possible to do what he was doing too. In further hindsight, I see Jim actually said what I meant (I seem to have omitted a "not"), anyway... > -----Original Message- > From: Derek Broughton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 01, 2004 1:18 PM > To: Struts Users Mailing List > Subject: Re: Problem with validation using both minlength and maxlength > on the same field > > On Wednesday 01 December 2004 13:49, [EMAIL PROTECTED] wrote: > > I'm trying to validate a simple field. I want to validate that the field > > is an integer, and meets the min and max length requirements. In the > > same application I am able to correctly validate a date field so I'm > > confident my overall struts setup is correct. However when I try to do > > both a min and max length check on the same field, the max length check > > doesn't work. If I exceed the max length I get the min length message. > > Below is a snippet from my validation.xml file. I've setup my properties > > file to include the min and max length constants. > > > > validation.xml > > ... > > ... > > >property="myField" > >depends="minlength, maxlength, integer"> > > > > > > -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with validation using both minlength and maxlength on the same field
On Wednesday 01 December 2004 13:49, [EMAIL PROTECTED] wrote: > I'm trying to validate a simple field. I want to validate that the field > is an integer, and meets the min and max length requirements. In the same > application I am able to correctly validate a date field so I'm confident > my overall struts setup is correct. However when I try to do both a min > and max length check on the same field, the max length check doesn't work. > If I exceed the max length I get the min length message. Below is a > snippet from my validation.xml file. I've setup my properties file to > include the min and max length constants. > > validation.xml > ... > ... > property="myField" >depends="minlength, maxlength, integer"> > > > Despite two other good looking answers, I'd have to say that it seems unlikely that these should _both_ be "arg1" :-) -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: disable validation of validator.xml & validator-rules.xml
On Wednesday 01 December 2004 08:36, Joe Germuska wrote: > Ultimately, this is the responsibility of the commons-validator > library which Struts uses. For each config file, a > "ValidatorResources" object is constructed. This object uses > commons-digester to process the XML config. > > http://cvs.apache.org/viewcvs.cgi/jakarta-commons/validator/src/share/org/a >pache/commons/validator/ValidatorResources.java?view=markup > > This object exposes no way to turn off validation, but it does make > use of Digester's facility for registering DTDs against copies in the > classpath. If your file uses one of the DTDs listed in > the"registrations" array in ValidatorResources (see source at above > URL) then you won't have any problem. From a brief glance, I wonder > if some new registrations need to be added? If you have time to > check, perhaps you could file a bug against commons-validator at > http://issues.apache.org/bugzilla > > For the near term, the suggestion of specifying an alternate local > URL for the DTD is probably best. I had the same problem last week, and the simplest solution is to make sure you have the latest commons-validator jar. 1.1.3 validates properly against the DTD in the jar file, rather than needing to go to the web. (But thanks for the more detailed explanation of _why_ going to 1.1.3 worked for me, Joe) -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help : creating dynamic styleId inside Logic:iterate
On Monday 29 November 2004 14:27, Aidas Semezys wrote: > It is not allowed to have just part of attribute value as JSP expression. > Here is the correct solution: > " > property="sharesPer"/> Thanks! That solved a problem I was about to ask ... -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reset button does not clear JSP fields
On Monday 29 November 2004 10:15, aris wrote: > Instead of a reset you could use a simple button and the related onClick > event to call a javascript that sets all field to "". > What do you think about this "workaround"? > Take note that it isn't an expected behaviour for a reset button. I suggest > you to name such a button with a value different from "reset". What do you > think about "wipe" or "erase"? > Bye, > aris. > > - Original Message - > From: "O. Oke" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, November 29, 2004 3:01 PM > Subject: Reset button does not clear JSP fields > > > Please help! > > > > Background > > == > > I retrieve data from the database, copy the data into > > an Action Form, the data is then automatically entered > > into corresponding fields. > > > > > > After viewing the data, I want the RESET button to > > empty all fields whenever it is clicked. Presently, Agreed, Reset sets the form values back to their "default" values - if your tag is , then the default value is going to be "zz". The simplest way to do what you want is either to create the tags with blank values, and have javascript that iterates through the form fields and sets the values, or create the tags with the defaults you want and have the javascript set their "...defaultValue='' " I don't think you can do it without Javascript, because defaultValue is a DOM property not a tag attribute . -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tiles: using i18n string
Given a tile definition like: and a message that I would normally retrieve like: How can I pass the message to the tile? I realized that in this particular case, it made more sense to invoke the tile using: and have layout.jsp get the message from the key, but I'm sure that's not always the case. It would seem that the beanName and beanProperty attributes of the put tag should come into play, here, but I haven't found a single example of using them. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.apache.jasper.JasperException: Unable to compile class for JSP
On Thursday 25 November 2004 12:01, Danko Desancic wrote: > The problem was conflict with some jars in CATALINA_HOME/common/lib > > Thanks for help And thank _you_ :-) I had a (apparently) completely unrelated jasper error and, sure enough, I had a number of old libraries in /common/lib. I removed them and my problem went away, too. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validator : network unreachable
On Wednesday 24 November 2004 11:35, Matt Bathje wrote: > I am pretty sure this error is related to invalid/outdated versions of > validator and/or struts. Doh! I'm still pretty new to Tomcat. I keep forgetting that applications keep their own copies of everything. Though the Debian libcommons-validator-java package was updated this week, I have to still move it to my application... > Since you list an invalid validator version, I > can't tell what you are using. NMF :-) If folks could manage to keep their version numbers synchronized it would help. It's libcommons-validator-java 1.3-1 (OK, I misread it and typed 1.3.1, where the debian subversion shouldn't have been included, but I don't know why it's given as 1.3 not 1.1.3). > > I would try first seeing if the problem exists with the version of > validator that ships with the version of struts you are using. If that > does work, then try upgrading to the latest version of validator (1.1.3 > or 1.1.4 alpha) and see if the problem persists. Good enough. I expect that when I get my struts and validator jars in sync with the ones I've downloaded from Debian, the problem will go away - certainly the validator jar in my application dates back to 2003-07, whatever version it really is. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validator : network unreachable
On Wednesday 24 November 2004 11:07, [EMAIL PROTECTED] wrote: > Probably trying to do xml validation using the dtd specified on the > doctype. Save dtd locally (and change reference) or make sure you have a > network path to jakarta.apache.org > Thanks, Jeff. I'm using tiles, and I do recall seeing a reference in one place that the tiles dtd should be in /WEB-INF, but my tiles doctypes all point to the jakarta url without any such problem, so that didn't make too much sense to me. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validator : network unreachable
I'm running Validator 1.3.1, Apache 2.0.52, Tomcat 4.1.30, Struts 1.1 on a Debian Linux system. When connected to the net, Tomcat starts fine. When unconnected, I get the following message in catalina*.log. Why on earth does Validator need to reach the web? In the first place, my Tomcat is local and I don't need to go to the web, but I really, really, hate apps that want to make connections I don't know about. Is there something I can do to make Validator work when I'm unconnected, or must I wrote my own validations? INFO: Loading validation rules file from '/WEB-INF/validation.xml' Nov 23, 2004 9:47:38 PM org.apache.struts.validator.ValidatorPlugIn init SEVERE: Network is unreachable java.net.SocketException: Network is unreachable at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at sun.net.NetworkClient.doConnect(NetworkClient.java:139) at sun.net.www.http.HttpClient.openServer(HttpClient.java:402) at sun.net.www.http.HttpClient.openServer(HttpClient.java:618) at sun.net.www.http.HttpClient.(HttpClient.java:306) at sun.net.www.http.HttpClient.(HttpClient.java:267) at sun.net.www.http.HttpClient.New(HttpClient.java:339) at sun.net.www.http.HttpClient.New(HttpClient.java:320) at sun.net.www.http.HttpClient.New(HttpClient.java:315) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:512) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:489) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:617) at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:945) at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:880) at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:847) at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:281) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:959) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:338) at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:828) at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:758) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1178) at org.apache.commons.digester.Digester.parse(Digester.java:1567) at org.apache.commons.validator.ValidatorResources.(ValidatorResources.java:186) at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:233) at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:164) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3427) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3628) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307) at org.apache.catalina.core.StandardHost.install(StandardHost.java:788) at org.apache.catalina.servlets.ManagerServlet.install(ManagerServlet.java:712) at org.apache.catalina.servlets.HTMLManagerServlet.install(HTMLManagerServlet.java:306) at org.apache.catalina.servlets.HTMLManagerServlet.doPost(HTMLManagerServlet.java:286) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(Stan
Re: http://marc.theaimsgroup.com/ down and out?
On Tuesday 23 November 2004 15:46, Dakota Jack wrote: > I can get to the site, Derek, but searches do not work. Do you get > searches too? > Ah. No. I can browse the messages but a "Search" (for any of Subject, Author or Body) results in: "An unexpected error has occurred. Details of this transaction have been logged, and an administrator notified. We apologize for any inconvenience. " -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bean not found error for an existing bean
On Tuesday 23 November 2004 12:59, Alpay Ozturk wrote: > Below jsp code causes the "org.apache.jasper.JasperException: Cannot > find bean mmBoxBean in scope request" exception to be thrown. How can > this happen? > > > That closing / shouldn't be there... > > > > messageId in mmBoxBean is null but logic:present says that it is not. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: http://marc.theaimsgroup.com/ down and out?
On Tuesday 23 November 2004 15:12, Dakota Jack wrote: > Anyone know what is up with http://marc.theaimsgroup.com/ struts list > server? They have been down for days now. > It must be at your end. Works for me. -- derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]