Re: OT Friday - Random sorting

2005-06-03 Thread Dave Newton
Mark Benussi wrote: I am trying to write a comparator that randomly sorts a collection. I'm not entirely convinced that the word "sort" it applicable here. Collections.shuffle might do what you want if you have a List. Dave ---

Re: Tricky configuration?

2005-06-03 Thread Dave Newton
amol k wrote: Here is what I am trying to achieve: http://myserver/Login.do --> (maps to) LoginAction http://myserver/Logout.do --> (maps to) LogoutAction http://myserver/user/blahblah --> UserPageAction (notice that there is no .do in this case. blahblah can be replaced by anything at runtime)

Re: html:img tag question

2005-06-06 Thread Dave Newton
Scott Purcell wrote: But today, I realized that a lot of sites use a fully qualified: http://mysite/mycontext/images/images/spacer.gif";> for their sites. I would like to be able to do that. Why? Seems unnecessary if you're linking to your own site. If you're linking off-site, there's no go

Re: Cannot find bean in any scope

2005-06-07 Thread Dave Newton
Daniel Kies wrote: index.jsp does a redirect to my action. action loads a bean with data forwards to x.jsp x.jsp looks fine, data comes up fine. I do a refresh. I get Cannot find bean in any scope. The first time i have data with no problems because the action class loads the request with th

Re: How to get posted data into a nested object ?

2005-06-07 Thread Dave Newton
[EMAIL PROTECTED] wrote: Hello, Short description: - How do I get posted data into a bean within the form bean ? Do you have the bean defined in the struts-config for that particular action? The "name" attribute of the action mapping should contain the name of the b

Re: Cannot find bean in any scope

2005-06-07 Thread Dave Newton
Daniel Kies wrote: If I forward to the jsp via an action, how do I make it so when the jsp refreshes it hits the action? The URL will show the URL of the action, not the JSP. When you refresh it's refreshing the action, which will again forward to the JSP. Dave -

Re: struts - view, create, update user page

2005-06-07 Thread Dave Newton
Tony Smith wrote: What is the best way to implment this with Struts? Need help, please, please, please, What exactly are you asking? How to do CRUD pages in Struts? Which Actions you might want to subclass to handle this (look at DispatchAction, probably)? How to build forms in Struts? D

Re: default current_timestamp problem

2005-06-07 Thread Dave Newton
Scott Purcell wrote: I am trying to create simple reference table for some cookies I am creating. I wanted to put in a current_timestamp each time I do an insert so I can delete this data after 2 or 3 weeks. Here is the insert statement: CREATE TABLE COOKIE_REF (cookie_ref varchar(50), dat ti

Re: Please reply to the mailing list, not to the person

2005-06-08 Thread Dave Newton
Minor additions : Hubert Rabago wrote: 1) People on the list help each other out voluntarily. So thank the people that help you, even if they help you off-line. If they help you a LOT, thank them even more, especially for off-topic or RTFM/STFW answers, even MORE especially if you ask a lot

Re: Please reply to the mailing list, not to the person

2005-06-08 Thread Dave Newton
Wendy Smoak wrote: Hubert, when I reply to one of your messages, the 'To:' line comes up with both the Struts list _and_ you personally. It happens (to me) with several people on the list, but not everyone. I don't know if it's something on my end, or something in the messages you're sending,

Re: validation -- best practices

2005-06-08 Thread Dave Newton
Suzanne Rizzo wrote: I don't know if this is a good practice or not, but my app uses two entries in struts-config. One with validate="true" and one with validate="false". I 've never actually used the validate="true" in my code; I have an action superclass that checks for the request typ

Re: Please reply to the mailing list, not to the person

2005-06-08 Thread Dave Newton
David G. Friedman wrote: Wendy is my sister's name. If you're expecting her to be a he and not a she, think again. :) I thought something was strange about him. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Multiple user - problem

2005-06-09 Thread Dave Newton
croffman wrote: Using Struts & EJB's - For load testing, facing a problem, that if 10 multiple users are accessing at the same time, only one user is getting other user data (WRONG data) out of 10 users. But all other 9 users are getting correct data. The wrong data for that one user, is from

Re: Multiple user - problem

2005-06-09 Thread Dave Newton
Martin Gainty wrote: -synchronisation of all method calls Why all? (Really, why _any_, since you can synchornized any shared data structures.) -scoping of data entities(assuming you are implementing with beans) Unless he's storing user data in application scope, this shouldn't be an iss

Re: Multiple user - problem

2005-06-09 Thread Dave Newton
Ray Madigan wrote: Also - are you resetting all of the properties in your forms classes. If not, some of the data set by one user can bleed over to another user. ?! Really? I was not aware of that; we deployed and load-tested a Really Big Sruts app internally at a large company. Under what

Re: Multiple user - problem

2005-06-09 Thread Dave Newton
Ray Madigan wrote: It is hard for me to believe you got past a single user with out resetting the properties, unless you only write to them. If you use the form properties to assist in populating your form, the properties need to be reset. Well, if I'm hitting a form with existing values (li

Re: Having ttruble with actions and buttons

2005-06-13 Thread Dave Newton
Paul Goepfert wrote: [...] try { session = request.getSession(); action = request.getParameter("action"); if(action.equals("enterInfo")) { return (mapping.findForward("enter")); } else if(action.

Re: Having ttruble with actions and buttons

2005-06-13 Thread Dave Newton
You don't need to have forwards named "success" or "failure"; I'm not sure how this part of the thread got started. If they don't make sense for your app obviously you can call them whatever you want. Although I'd shy away from 'Fred' ;) Dave Martin Gainty wrote: This is straight from BEA

Re: Confused

2005-06-13 Thread Dave Newton
Pierre Thibault wrote: There are talking about Tomcat but not about JBoss. I'll continue with JBoss because I want to access J2EE. I think you might be confused about what "J2EE" is. If you need EJBs, then yeah, JBoss would be one way to go. If you don't, there's a lot of other parts of J2E

Re: html:text and html:textarea same width

2005-06-13 Thread Dave Newton
Tony Smith wrote: I want the text and textarea have the same widths. But it is not true with the above code when displayed in the browser. How can I fix it? CSS? This isn't a Struts issue, but HTML. Dave - To un

Re: ensuring valid forwards

2005-06-14 Thread Dave Newton
David Whipple wrote: I would really like to see this as well. +1 I had a very convoluted "solution" involving pre-processing my java/jsp/xml files (mostly for the automagic creation of web app documentation along with the bulk of CRUD actions/form pre-population/etc.) but an exception mi

Re: carriage returns

2005-06-14 Thread Dave Newton
Ed Griebel wrote: We had a problem with XML having too many carriage returns and whitespace for a downstream system. Heck, XML has too much NON-whitespace, too ;) To solve the problem I wrote a simple javax.servlet.Filter instance that would get the response and strip out extraneous stuff us

Re: [OT] Session ID in the URL

2005-06-15 Thread Dave Newton
Michael Jouravlev wrote: Does anyone know, how to find out that URL contains session ID in it? Session ID is separated with semicolon, and is not treated as query parameter, so I cannot read as parameter. Check for "sessionId" in getQueryString? Dave

Re: [OT] Session ID in the URL

2005-06-15 Thread Dave Newton
David G. Friedman wrote: See the HttpServletRequest API for these methods: boolean isRequestedSessionIdFromUrl() (pre 2.1) boolean isRequestedSessionIdFromURL() (2.1 or later) boolean isRequestedSessionIdFromCookie() This answer is better than mine :) Must... keep... reading... JavaDocs..

[More OT] Re: [OT] Session ID in the URL

2005-06-16 Thread Dave Newton
Is anybody else getting a lot of message duplicates this evening? We're having email server strangeness so I'm not sure if it's me or... uh... not me. Dave Michael Jouravlev wrote: On 6/16/05, Adam Hardy <[EMAIL PROTECTED]> wrote: Even quicker would be to check if you have the first requ

Re: [FRIDAY] package naming nonsense

2005-06-17 Thread Dave Newton
Simon Chappell wrote: That's easy: com.evergreennohypheninvestments Nah, that's too easily confused with my EvergreenNoHypeInvestements.com site. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: [FRIDAY] package naming nonsense

2005-06-17 Thread Dave Newton
Brian Lee wrote: Nope, this guy was from San Diego. He had many other pearls of wisdom. My favorite was when he designed a system that would dynamically load an EJB bean implementation at run-time. He wasn't using delegates or proxies or anything coded, he wanted to use deployment descriptors.

Re: HTML:LINK

2005-06-17 Thread Dave Newton
Zarar Siddiqi wrote: Let's give credit where credit is due: http://www.michaelmcgrady.com/button/ - Original Message - From: "Michael Jouravlev" <[EMAIL PROTECTED]> Yep, a lot of work. SimpleDispatchAction indeed looks much simpler: http://wiki.apache.org/struts/StrutsCatalogDispatch

Re: [OT] package naming nonsense

2005-06-17 Thread Dave Newton
Michael Jouravlev wrote: I'd love to see a package name built from GUID. What, you don't want to name your packages 013f891c58a842f1ba17a3954dded562.utils.StringUtils? Pansy! Dave - To unsubscribe, e-mail: [EMAIL PROTE

Re: running tomcat on port 80

2005-06-21 Thread Dave Newton
Tony Smith wrote: Hi, Can I run Tomcat 5.0 on port 80? After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Sure, you can run it on any port you want, if you have

Re: running tomcat on port 80

2005-06-21 Thread Dave Newton
Tony Smith wrote: How can I set the permission? It is my box, viturally I can do whatever I want. I don't know what OS you're running, so it's... problematic. How about STFW for "setting port permissions under [whatever OS you're running]"? FWIW, this is pretty far afield from Struts. D

Re: Error: FormTag does not have a setter for "name"

2005-06-22 Thread Dave Newton
Sher, Allen - BLS CTR wrote: I got this error complaning that FormTag does not have a setter for "name". Is this related to some kind of mismatch between the TLD and struts.jar? No, it's because there's no "name" attribute in the html:form tag. http://struts.apache.org/userGuide/struts-html

Re: Validation & Anchoring

2005-06-22 Thread Dave Newton
Dylan Stamat wrote: The problem I'm running into is that since I'm using a DynaValidationForm, and errors are found, I'm never even reaching my Action... so, the setting of the anchor in the request wouldn't work. I would somehow need to determine if there "were" errors on the JSP page itsel

Re: Validation & Anchoring

2005-06-22 Thread Dave Newton
Dylan Stamat wrote: Yeah, I could... however this would defeat the purpose (convenience) of using a DynaValidatorForm. Apparently it isn't all that convenient for you as it is, either. The main purpose of using a dyna form, at least for me, is that I don't have to write a class and the get

Re: How to encode byte array as url parameter

2005-06-22 Thread Dave Newton
David Erickson wrote: Hi I am wondering how I can take a byte[] and use it as a URL parameter? I have tried converting it to a string using varying character sets, but when I call string.getbytes I never get back my original array. Any help would be greatly appreciated. Googled "url encode

Re: How to encode byte array as url parameter

2005-06-22 Thread Dave Newton
David Erickson wrote: I took a look at that commons encoder and for encoding a byte[] it returns a byte[].. seems pointless to me? Or use String encode(new String(byte[])). Or look at the second reference; all you have to do is put %HH where HH is the hex ASCII rep of the character in ques

Re: Validation & Anchoring

2005-06-22 Thread Dave Newton
Dylan Stamat wrote: Thanks for your comments everybody I fiinally found the answer :) I'm still using the DynaValidatorForm, and basically just had to do what Laurie recommended in her 2nd point. I just need to check for messages on the JSP page using the messagesPresent logic tag...

Re: validate data problem in ActionForm - combine with tiles

2005-06-23 Thread Dave Newton
Michael Jouravlev wrote: 1) In action mapping: validate = "false" 2) Validate manually from Action class 3) Forward where you need. On 6/23/05, Grzegorz Stasica <[EMAIL PROTECTED]> wrote: hi, The problem is that after I validate values in the method, the controller forwards me to input pag

Re: [FRIDAY] Why isn't Java Open Source?

2005-06-24 Thread Dave Newton
Mark Galbreath wrote: http://www.catb.org/~esr/writings/let-java-go.html Words to ponder in an age of .NET and Python ascendancy! Pah, Lisp is still better :/ Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: [FRIDAY] Why isn't Java Open Source?

2005-06-24 Thread Dave Newton
Rick Reumann wrote: Frank W. Zammetti wrote the following on 6/24/2005 12:45 PM: I notice your label for this group is 'Struts Luzers'... hmmm, did I just feed a troll? O, how I wish Mark would have been around for many of the Frank and Dakota Jack discussions in the past:) I wouldn't

Re: [FRIDAY] uh oh

2005-06-24 Thread Dave Newton
Frank W. Zammetti wrote: On Fri, June 24, 2005 1:52 pm, Mark Galbreath said: I have "no doubt" my boss is looking for a friggin' H-1B Indian faggot to replace me for 1/2 the rate. You DO realize this is a PUBLIC mailing list, right?? I am neither Indian nor homosexual, but dude, come

Re: [FRIDAY] uh oh

2005-06-24 Thread Dave Newton
Mark Galbreath wrote: James: when ru going to port struts to a Lisp framework? I'm almost done. The Tileth (Tileth Is Like Enhanced Tiles, Hey?) part is dragging a little bit due to laziness and other obligations (it's too bad I have to have a job...) So far I can take a simple Struts/J

Re: [FRIDAY] uh oh

2005-06-24 Thread Dave Newton
Simon Chappell wrote: Hey, this isn't a joke is it? I would love to see a Lisp version of Struts. I'm trying to learn Lisp as a background process, so a working example of something I was already familiar with would be appreciated. Fished in, fished in. It's partially a joke, partially sub-

Re: iterate on properties of a DynaActionForm

2005-06-27 Thread Dave Newton
Goswami, Raj wrote: I had the same problem. Thanks for your answer. How do I provide a the key name though? For e.g. suppose I have a map with key names as employeeId, employeeLastName, employeeFirstName etc. and I want to print it by calling the individual key names, not just arbitrarily

Re: tag usage?

2005-06-28 Thread Dave Newton
Anybody else notice the state.md.us email address? Is this Mark using Struts but to embarassed to admit it? *rotflmao* Thai Dang Vu wrote: class MyUtilBean { private Collection c; public Collection getC() { c = new ArrayList(); c.add(new DataBean("value", "name"));

Re: c:out not finding values that are in a pojo, inside an actionForm.

2005-06-28 Thread Dave Newton
Mick Knutson wrote: Here is my stack: As you can see, the values are there, but it just is not picking them up. Also, here is what I have in the jsp:   <%%> [] What would be the I'm tired and crabby so probably thinking poorly, but if you do a isn't the ob

Re: Is there any Jsp template like Smarty template ?

2005-06-29 Thread Dave Newton
Mark Galbreath wrote: Sun's Creator Studio rulez the inexpensive Java IDE world; JetBrain's IDEA rulez the $300+ IDEs. Eclipse isn't worth a shit. But REAL programmers prefer ed or vi. Emacs, dammit. Eclipse's editor doesn't even have macros :/ Dave --

Re: Is there any Jsp template like Smarty template ?

2005-06-29 Thread Dave Newton
Yan Hu wrote: Why 85% of the Java developers use Eclipse? Because Java programmers are cheap bastards? You should be thankful since Eclipse is such a good IDE and it is free. Pah. Any "programmer's editor" that doesn't have macros... You could do a lot more(control) using assembly than J

Re: [OT] Stinking IDEs

2005-06-29 Thread Dave Newton
Brian Lee wrote: I've also noticed that programmers who talk about how other programmers are the worst, are the worst programmers. Real programmers are too busy fixing the worst programmers to complain. No no, we must take complain-breaks in order to keep from pulling our own heads off. Da

Re: [OT] Stinking IDEs

2005-06-29 Thread Dave Newton
Durham David R Jr Ctr 805 CSPTS/SCE wrote: How exactly do you fix a worst programmer? Take away their keyboard? Actually, with all this auto-generation stuff, you'll have to take their mouse too. Monochrome 80x25 ADM31A or Hazeltine 1510 w/ 9600 baud serial link. Dave --

Re: [OT] Stinking text editors

2005-06-29 Thread Dave Newton
Yan Hu wrote: Most morons think the majorty are morons.. And we're right. Dave "Hey! You tricked me!" Newton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT]Linux server market share...

2005-06-29 Thread Dave Newton
Yan Hu wrote: Since linux has clearly more then 50% of the server market Linux has never had more than 30% of the server market http://www.alwayson-network.com/comments.php?id=P5013_0_6_0_C Was probably referring to web server market share. Dve

Re: [OT]VS.NET is awesome

2005-06-29 Thread Dave Newton
Yan Hu wrote: I love VS.NET very much. VS.NET pretty much blows chunks and is outpaced even by Eclipse. The 2005 version may raise my opinion of it (gee, refactoring... what an idea), but I haven't had a chance to play with it much yet. Not too impressed by .NET, though. Dave -

Re: [OT]Linux server market share...

2005-06-29 Thread Dave Newton
ing to web server market share. I never disputed a 40% claim for ASP; I have no idea (or care) what % ASP has. Dave --- Dave Newton <[EMAIL PROTECTED]> wrote: Yan Hu wrote: ince linux has clearly more then 50% of the server market inux has never had more than 30% of the se

Re: This is how wonderful VS.NET is

2005-06-29 Thread Dave Newton
Yan Hu wrote: The other has no choice but VS.NET. Man, bums NEVER get a break. Need I go on? We're considering taking up a collection to pay you to not. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: This is how wonderful VS.NET is

2005-06-29 Thread Dave Newton
Yan Hu wrote: WTF you expect from bums(they are not retards) is cheap labor The means do not matter too much. Only the end results matter "End results"... Hmm... I guess if you don't need your developers to understand anything they're doing, maybe VS.NET _is_ a Great Choice.

Re: This is how wonderful VS.NET is

2005-06-29 Thread Dave Newton
Jesse Alexander (KBSA 21) wrote: -Original Message- I'm sure you can find someplace else. -/Original Message- Most probably he is everywhere else already banned for lifetime ;-) I still think it's Mark. Dave

Re: Is there any Jsp template like Smarty template ?

2005-06-30 Thread Dave Newton
Zarar Siddiqi wrote: An old woodcutter once had to chop down a very large tree and all he owned was a hacksaw. He was really really good at using this hacksaw since he had used it all his life. Just as he was about to start cutting the tree another woodcutter who had just cut a similar tree

Re: Unacceptable Behaviour of Mark Galbreath @ elections.state.md.us

2005-06-30 Thread Dave Newton
Niall Pemberton wrote: Pretty much all of Mark Galbreath's posts to this mailing list are IMO either rude, obnoxious or irrelevant. Its obvious that he has no interest in Struts or contributing constructively to this community and his only purpose is to disrupt. Below I include a selection of th

Re: [OT] Re: Unacceptable Behaviour of Mark Galbreath

2005-06-30 Thread Dave Newton
Yan Hu wrote: ...just trying to keep the conversation lively. ;-) by insulting people? Beats hittin' 'em with a stick. Dave

Re: My apology

2005-06-30 Thread Dave Newton
Mark Gallbreath wrote: To make matters worse, I've recently been abused by an older Indian gentleman down the street for me. While making love, he forced me to scream out Java API calls, which I think explains why I've moved on to C#/.NET and have a prejudice against Indians. "I said name my

[OT] Re: This is how wonderful VS.NET is…

2005-06-30 Thread Dave Newton
Larry Meadors wrote: Sweet, VS.NET just decided to crap out on me and not open my project. Hmm, thank goodness for jEdit!! Ah, jEdit. How come when I switch focus away from jEdit and then back I have to hit ESC in order to get back to the edit window? I HATE that! Dave --

Re: This is how wonderful VS.NET is

2005-06-30 Thread Dave Newton
Dave Newton wrote: [blah blah blah] You know, it just occured to me that the quantity of off-topic posts on this list is a telling metric of the massive productivity gains we get by using Struts. By way of comparison, we see almost no off-topic posts from .NET users here, thus further

Re: This is how wonderful VS.NET is

2005-06-30 Thread Dave Newton
Dave Newton wrote: You know, it just occured to me that the quantity of off-topic posts on this list is a telling metric of the massive productivity gains we get by using Struts. By way of comparison, we see almost no off-topic posts from .NET users here, thus further proving that we have

Re: [OT]java bean question

2005-07-02 Thread Dave Newton
Leon Rosenberg wrote: You must be scott ambler fan :-) Or maybe not, he suggests words like a, an, some public void setValue(int aValue){ value = aValue; } I ended up doing the public class Foo { private int _bar; public void setBar(final int bar_) { _bar = bar_; } }

Re: [OT] Re: Unacceptable Behaviour of Mark Galbreath

2005-07-02 Thread Dave Newton
Larry Meadors wrote: You love men? Is it "coming out" day on struts-users, or what? Man, I love Friday. Remember, only Robinson Crusoe could get everything done by Friday. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [OT] Re: Unacceptable Behaviour of Mark Galbreath

2005-07-02 Thread Dave Newton
Dakota Jack wrote: The first person who steps far enough over the line is going to be slammed with a lawsuit by yours truly. You are getting close Friedman. Impish grin that! *rotflmao* I like lines. Mark could care less about code. Yep, I bet he could. You, however, probably meant "

Re: Struts vs .NET???

2005-07-02 Thread Dave Newton
netsql wrote: In my shop, GUI tools for Swing or UI, such as VS, are not allowed. You must make UI handcoding it. You'll just have to take my word that it's *MUCH* more productive to hand code a UI when you are building a complex UI. Usually more performant, too: it's easy to code a slow Swi

Re: Struts vs .NET???

2005-07-02 Thread Dave Newton
Gregory Seidman wrote: On Sat, Jul 02, 2005 at 02:16:49AM +0200, Leon Rosenberg wrote: } Heh, } } I hate this kind of discussion... } } Maybe you are the fastest keyboard user on the world... } } I want to see you refactoring a method, lets say change the method name, } with emacs/vi/notepa

Re: Struts vs .NET???

2005-07-02 Thread Dave Newton
John Henry Xu wrote: I was working on Java until I became a manager. AH-HA! NOW we know what's going on here. Money is the No. 1 factor for a owner/manager. That's pathetic, and I would NEVER work for somebody with that opinion. Dave -

Re: [OT] Re: Unacceptable Behaviour of Mark Galbreath

2005-07-11 Thread Dave Newton
Dakota Jack wrote: You know what a "canard" is Newton? Front control surface on an airplane? Really, these questions are too easy. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Handling VOs

2005-07-12 Thread Dave Newton
Brady Hegberg wrote: EmployeeVO emp = new EmployeeVO( eForm ); Would that be considered tying the view to the business layer? It seems like it would work nicely especially since you could use polymorphism if you needed to generate VOs from other Forms (ie AnotherEmployeeActionForm). Yep, t

Re: Handling VOs

2005-07-12 Thread Dave Newton
Dave Newton wrote: Brady Hegberg wrote: EmployeeVO emp = new EmployeeVO( eForm ); Would that be considered tying the view to the business layer? It seems like it would work nicely especially since you could use polymorphism if you needed to generate VOs from other Forms (ie

Re: anyone else pass their ActionForm off to another layer

2005-07-12 Thread Dave Newton
Rick Reumann wrote: For what it's worth, I found a way I can get around passing my ActionForm to another layer, but in theory, I'm not convinced that doing so would really mean that I'd be breaking the seperation of components. How so? If I have to include the Struts libraries to compile my

Re: anyone else pass their ActionForm off to another layer

2005-07-12 Thread Dave Newton
Rick Reumann wrote: Dave Newton wrote the following on 7/12/2005 1:57 PM: Rick Reumann wrote: For what it's worth, I found a way I can get around passing my ActionForm to another layer, but in theory, I'm not convinced that doing so would really mean that I'd be breaking th

Re: anyone else pass their ActionForm off to another layer

2005-07-12 Thread Dave Newton
Rick Reumann wrote: Dave Newton wrote the following on 7/12/2005 2:50 PM: Of course not. But you just said that you're passing an ActionForm to another layer-- Yea, I just realized that was a bad choice of words- "layer" -- totally bad. I didn't really mean another l

[OT] Re: How to hide URL in Adress bar?

2005-07-14 Thread Dave Newton
John Henry Xu wrote: It is bad using only one URL. Not always. For some applications, especially non-search-engine-sensitive ones, it makes perfect sense. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: Validation Framework Manual

2005-07-14 Thread Dave Newton
Rafael Taboada wrote: Yeah, that was the problem... Do u know a tutorial about how to fill my validation.xml? I want to know what i have to put in each tag. Are the docs at http://struts.apache.org/userGuide/dev_validator.html not satisfactory? Dave -

Re: Manually Instantiating Action classes

2005-07-18 Thread Dave Newton
a k wrote: What is a better way in this scenario? In particular, is it bad to manually instantiate Action classes? I don't know if it's "bad" per se, but if it's shared functionality then from an architectural standpoint I would think it'd better to move it into a helper class. Dave --

[OT] Re: Copying of properties vs. nested VO

2005-07-18 Thread Dave Newton
Adam Hardy wrote: Not all users can think like geeks! And the (probably more important!) corollary: Most geeks can't think like users. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: Which version of Eclipse does current release of Struts support?

2005-07-18 Thread Dave Newton
Fei Jiangnan wrote: I am newbie to struts, and tried current release of struts with Eclipse 3.1, they seems not working together, coule you please make me some sense from the versions between struts and eclipse? What do you mean by "they don't work together?" Dave

Re: validate nested beans part 2

2005-07-19 Thread Dave Newton
Scott Purcell wrote: I dug myself into a corner last night and cannot assemble a viable solution. I created a bean (usercheckout) which holds two nested beans (Shipping), and (Billing). Basically I have the user fill out a shipping form, then they fill out a Billing form. The problem is, when

Re: Validate Followup

2005-07-19 Thread Dave Newton
Scott Purcell wrote: What do you mean by the action mappings as the keys in the validation file? If I have the following in my struts-config.xml what is the action mapping you are describing? Action mappings map an action to a URL, or the 'path' attribute. And then instead of th

Re: how forward to servlets?

2005-07-19 Thread Dave Newton
Jane Eisenstein wrote: LogonServlet LogonServlet com.med.servlet.cp.LogonServlet LogonServlet /servlet/com.med.servlet.cp.LogonServlet Its struts-config.xml contains When I try to load this servlet via this code: src="logonServlet.do&targetAction=displayLogonPage" scrolling="

Re: how forward to servlets?

2005-07-19 Thread Dave Newton
one more knowledgable than myself could talk about accessing the Struts config from the outside, or you could parse the parts you're interested in, or something. Dave -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 19, 2005 3:32 PM To:

Re: how forward to servlets?

2005-07-19 Thread Dave Newton
Laurie Harper wrote: You would simply change the type and/or value attributes as appropriate once you'd migrated your servlet functionality to a Struts action. Your JSPs, etc. would continue to reference /somepath without change. Would this work for the original example, which was using

Re: Creating a valid web.xml version 2.4

2005-07-19 Thread Dave Newton
Frasso, Anthony wrote: I'm new to struts, and to web development in general, and after tinkering with the struts tag libraries, I've decided to switch to using the JSTL tag library. This requires JSP 2.0 support, which I should have, as I am using Tomcat 5.5. No it doesn't. Unfortunately,

Re: Creating a valid web.xml version 2.4

2005-07-20 Thread Dave Newton
Brian Lalor wrote: On Jul 19, 2005, at 4:53 PM, Dave Newton wrote: I'm new to struts, and to web development in general, and after tinkering with the struts tag libraries, I've decided to switch to using the JSTL tag library. This requires JSP 2.0 support, which I should hav

Re: Creating a valid web.xml version 2.4

2005-07-20 Thread Dave Newton
Frasso, Anthony wrote: So then I can completely remove the tag from my web.xml file, making it look like the following? http://java.sun.com/xml/ns/j2ee";; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee ht

Re: Hi-New to this group

2005-07-20 Thread Dave Newton
Maya menon wrote: Now, back end I am thinking about session ejbs which reads database tables. Unless there's a requirement or Very Compelling Reason to use EJB I'd sure try to avoid them. Now, what should I use in the middle layer ? ie, intercation between action classes and session ejb: Fo

Re: Hi-New to this group

2005-07-20 Thread Dave Newton
Maya menon wrote: Also, As Dave wrote about session ejbs, please suggest some give work arounds for a session ejb. Requirement is to read contents from database. There are quite a few decent ways of doing database access; I'd probably recommend Hibernate at this point but there are a lot of

Re: Hi-New to this group

2005-07-20 Thread Dave Newton
[EMAIL PROTECTED] wrote: I don't understand Dave's concern. Perhaps he would elaborate on why he says to avoid Session beans. Anything EJB-related I've run in to (except in a few instances) has been mind-blowing overkill, that's all. I'm not saying they're _never_ the right answer, and I

Re: Hi-New to this group

2005-07-20 Thread Dave Newton
Maya menon wrote: If any one has any sample implementations using ibatis / hibernate, please send them to me. It would be really helpful Check their respective sites; I'm betting both have sample code. Hibernate, at least, has several books available. Dave -

Re: unable to parse xml string

2005-07-22 Thread Dave Newton
temp temp wrote: I get premature end of file sax exception when I try to parse a string which is an xml file returned from database as blob . I printed this string in console copied and pasted in browser .Browser displayed xml without any parse errors.Can somebody guide me what could go wron

Re: Issue - Database Architecture

2005-07-22 Thread Dave Newton
Vijay K Anand wrote: I get error : "java.sql.SQLException: Closed Connection: next " when number of concurrent requests is more public class PortfolioMgmtAction extends Action{ private Connection con; public ActionForward execute(..){ this.con = dao.getConnection(); } } public class DA

[FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Dave Newton
Niall Pemberton wrote: I presume you're referring to the fact that Michael Jouravlev's flavour of DispatchAction uses the ".x" and ".y" suffixes which HTML appends to image button parameters to determine the method to execute as being "code purloined from Michael McGrady"? (If not, then what?)

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Dave Newton
Wendy Smoak wrote: At one time I thought JDO was going to help, and "Bean Managed Persistence" has always sounded promising. Unfortunately, all of the examples are SQL based and I don't immediately see how to plug in this strange API that does not have Connection or DataSource. Has anyone else

Re: [FRIDAY] Re: SelectAction - an improved DispatchAction

2005-07-22 Thread Dave Newton
Craig McClanahan wrote: This philosophy is one of the lessons we took to heart in designing JSF. In the particular case of buttons and hyperlinks, the label of the button and the binding to an action are separated and explicit: Thank goodness there's another reader macro for JSPs!!! ;)

Re: [OT] Java & .Net web services interoperability

2005-07-22 Thread Dave Newton
Brent Vaughn wrote: We have a web service written in Java and a C# client to consume the Java web service. We are trying to send SOAP messages with attachments, but the problem is that .NET only accepts DIME attachments. Is it possible for Java to send its SOAP attachments in the DIME format?

Re: Session mixup

2005-07-22 Thread Dave Newton
Srinivas Gunturu wrote: We don't have any static method calls or static objects we reference in action classes. Do you have any _instance_ variables in any servlets, actions, filters, etc.? I will almost guarantee you that you are accessing a non-synchronized object or instance data. D

  1   2   3   4   5   6   7   8   9   10   >