Re: [OT] Standardised Environments (was RE: [OT] Eclipse IDE)

2003-01-24 Thread keithBacon
A manager I worked with said he standardised everything so work could be de-skilled cheap staff used.Then the fun part was finding the experts who can be more productive if they deviate from the standard procedures. THis was a was non IT manager but the same applies for IT I think. I saw a

RE: A Struts Haiku

2003-01-16 Thread keithBacon
isn't that 1 syllable short of the required 17? Keef http://www.haikupolice.ja/violations.do --- Mark Galbreath [EMAIL PROTECTED] wrote: Jakarta Struts rules learn it, code it, live it .NET is evil -Original Message- From: Mark Lepkowski [mailto:[EMAIL PROTECTED]] Sent: Monday,

RE: turning form parameters into queries

2003-01-10 Thread keithBacon
Below is a class of mine that is a bit primitive but does the job. There's probably plenty wrong (like using integer constants instead of type safe enum) with it as I'm a bit of an amateur. With queries I reckon the usual rules of MVC go out the window you design for 1 - performance 2 - minimum

Re: FW: dataSources outside of actionservlet

2002-12-17 Thread keithBacon
Using the command design pattern you can ensure the DB code needs to be coded only once. See the example below http://www.mail-archive.com/struts-user@jakarta.apache.org/msg24579.html --- Matthias Bauer [EMAIL PROTECTED] wrote: The normal thing to is the following: You aquire a database

Re: FW: dataSources outside of actionservlet

2002-12-17 Thread keithBacon
Hi mark, It is a good question! I've not used them so far but i think the new java Properties class is designed to supply config. info to a system. If you have a command processor class that gets the connection maybe you should make it's name a property so you can have a different class in the

Re: Newbie :Error- Cannot find ActionMappings or ActionFormBeans

2002-03-18 Thread keithBacon
: keithBacon [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, March 16, 2002 6:32 PM Subject: Re: Newbie :Error- Cannot find ActionMappings or ActionFormBeans Was the error thrown in struts code or your code? The code probably needs proper exception handling

Re: Where and when do struts call the method named toString()?

2002-03-16 Thread keithBacon
(hashCode()) So it appears that you don't really get an object pointer after all (as I also thought, must be that C++ background coming through ;-} ). Just call hashCode() when you want to get that 'object pointer'. Dave D - Original Message - From: keithBacon [EMAIL PROTECTED

Re: bean define problems

2002-03-16 Thread keithBacon
1 - you'd normally use bean:write to display data. 2 - Your bean define is doing request.setAttribute(foorBar, ); because you have scope=request. 3 - your bean define is creating a form bean putting it in the request, which is what struts does for you. If you search archive on my name I

Re: Architecture Questions - Session Management and Validation

2002-03-16 Thread keithBacon
you've missed nothing - just asking a lot! IMO (I'm not a struts developer - just an occasional user) struts can ony take on responsibility for basic common functionality of webapps - beyond that requirements for different users diverge. It's a mistake for it to take on too much. Also it's new

Re: Newbie :Error- Cannot find ActionMappings or ActionFormBeans

2002-03-16 Thread keithBacon
This can be a bit tricky - did you search the Archive? --- Anant Sagar [EMAIL PROTECTED] wrote: Hello All , I m new to struts . I had prepared my login page .It was working fine .Suddenly this exception is coming javax.servlet.ServletException: Cannot find ActionMappings or

Re: Action.setInput

2002-03-16 Thread keithBacon
Hi.set validate=false so struts doesn't call validate - call it yourself from yout Action forward to the desired place. Better still use struts in a std way use input normally. Do you have a real requirement to go to diff. places depending on the type of error? cheers - keith ---

Re: Svar: How make a forward when redirect=true

2002-03-16 Thread keithBacon
Have you solved this yet? Did your 404 message display the URL it couldn't find? That's vital evidence. K. PS. We need more kiwis on this list - swedish plot to take over. --- snurre1000 [EMAIL PROTECTED] wrote: Thank you, but the page changePasswordConfirmed.jsp does only contain static

Re: Newbie :Error- Cannot find ActionMappings or ActionFormBeans

2002-03-16 Thread keithBacon
that the error msg was irrelevant . Any way thanks Anant Sagar - Original Message - From: keithBacon [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, March 16, 2002 4:57 PM Subject: Re: Newbie :Error- Cannot find ActionMappings or ActionFormBeans

Re: Where and when do struts call the method named toString()?

2002-03-14 Thread keithBacon
If you do a bean:write on an object it's not a String struts will call it's toString() method. Same in other situations where struts expects a String. It's like when you do a System.out.println() java calls toString() on the object if it's not a String already. The default toString inherited

Re: Problem in HTML:ERROR tag

2002-03-14 Thread keithBacon
you can put HTML in your error messages errors.header=font color=red size=+1ul errors.footer=/ul/font UserValidator.userID.must.be.entered=limoron! enter required data/li I think there was talk on this list about a way of keeping all the html in your jsp. The above way is a bit of a bodge but

Re: using image as a submit button!

2002-03-14 Thread keithBacon
recommend reading through all of them at least once before developing. An excellent idea, delicately expressed! --- Jay sissom [EMAIL PROTECTED] wrote: You can do it the exact same way you would do it in html, or if you want to use a tag library, you can use the html:image tag. Please

Re: Do all action elements need to have a name (of form-bean) a ttribute?

2002-03-14 Thread keithBacon
you don't need a form bean - leave out type name you should be fine. search the archives if you have any problems - it's been well discussed. Include 'Ted Husted' in your search - I recall he did a definitive answer. cheers, Keith. --- [EMAIL PROTECTED] wrote: Hi, I have an action that I

Re: How make a forward when redirect=true

2002-03-14 Thread keithBacon
no-one else answered so.. Why are you specifying redirect when it works without it? I think of redirect as only being used to go to a URL at a diff. web-app or server. --- Nordström_Ulrika [EMAIL PROTECTED] wrote: Hi, This is how struts-config looks like action

Re: Iterate Bug?

2002-03-14 Thread keithBacon
bit hard without seeing the code! Seems like you have specified scope=session Else you have reference it after the request has gone the next request has been created. --- [EMAIL PROTECTED] wrote: I have a jsp in which I iterate over a bean... the code works as long as the bean is in the

Re: Defining a forward path- not to a JSP, but to another Action

2002-03-14 Thread keithBacon
Can you put /home.do as a forward path and it will forward to HomeAction? yes that's the recommended way - if you search the archive (I know it will take ages) there's some good discussion on this. I always use path=/home.do I think leaving the .do off means the same thing. --- MARK NICHOLS

Re: html:options problem with labelProperty

2002-03-14 Thread keithBacon
quick wild guess.. one of the calls to getMerchandiseCategoryDescriptions() returns null. try returning it was null if you are about to return a null. --- Allen Walker [EMAIL PROTECTED] wrote: I have the following: [html:select property=merchandiseCategory] [html:options

Re: Problem with mapping - prepending a slash

2002-03-14 Thread keithBacon
Hi Matt, I wonder if anyone on the list is getting my messages Hello? Is there anybody in there? The silence is respect for the quality of your problem. I'd suspect your servlet container is returning some path info differently than normal (but I'm no expert). Maybe try it on Tomcat? ---

RE: Where and when do struts call the method named toString()?

2002-03-14 Thread keithBacon
for a person to read, and it is recommended that all subclasses override this method. To compare classes, use boolean equals( Object obj). Mark -Original Message- From: keithBacon [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 4:39 AM To: Struts Users Mailing List Subject

RE: Where and when do struts call the method named toString()?

2002-03-14 Thread keithBacon
, but not typesafe enum classes). Check out pp. 25 - 35 in Joshua Bloch's Effective Java (one helluva good book!!). Mark P.S. Bloch is the Chief Architect of the Java SE API. -Original Message- From: keithBacon [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 10:51 AM To: Struts

Re: AW: Where and when do struts call the method named toString()?

2002-03-14 Thread keithBacon
in your app. --- Oliver_Refle [EMAIL PROTECTED] wrote: only if you have overridden the method, some classes have implemented this, but for your own objects you have to do that on you own, he is only look at the pointer -Ursprungliche Nachricht- Von: keithBacon [mailto:[EMAIL

Re: Proper exception handling of JDBC code?

2002-03-14 Thread keithBacon
1 - connection.close() when returning a connection to the pool needs to be in the finally block. Def. use pooling in a live mult-user app. Holding onto external resources (connections to DB's, files or servers) a bad thing on big systems. My company is full of client server systems that have to

Re: ActionForm reset

2002-03-13 Thread keithBacon
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg13402.html --- Struts Newsgroup [EMAIL PROTECTED] wrote: Subject: ActionForm reset From: Donny Ryan Chong [EMAIL PROTECTED] === Hi, Anybody know when will the actionform call the reset method ? Thanks in advance

Re: [Newbie] ActionForm with a scope session

2002-03-13 Thread keithBacon
it doesn't work anymore what's the exact problem, exception or form there but values not set as expected or what? If you create a constructor for your form print your form variable (ie' 'this' in it ( in the reset method too) you'll be able to make sure you only have 1 version of the form that

Re: newbie

2002-03-13 Thread keithBacon
I learned more from my trial and error attempts than I ever got from looking at the examples. Exactly! It's like learning driving - plenty of theory study is needed but you you have to clock up the hours actually doing it. --- MARK NICHOLS [EMAIL PROTECTED] wrote: Tony, I too am new to

RE: sturts example

2002-03-13 Thread keithBacon
they are here (or here-abouts). http://jakarta.apache.org/struts/kickstart.html + lots of stuff in the mail archive http://www.mail-archive.com/struts-user%40jakarta.apache.org/ (We can do a double act Mark!). I notice it says sturts in the title, my reply is about struts which is probably

Re: Need help with JspException: Missing message for key login.title

2002-03-13 Thread keithBacon
not sure but might be one of those where your struts.jar is in the wrong place. Make sure it is in your web app's WEB-INF/lib nowhere else where the server could find it (ie. not on your system or server classpath). --- Alok Kumar [EMAIL PROTECTED] wrote: YOu should put one more line in

Re: can anyone help me??

2002-03-13 Thread keithBacon
Cannot find bean user in scope null This is a bit mis-leading. I think it means you have used bean:define or bean:write - a tag where struts searches for the bean. You haven't specified scope... so struts searches all possible scope (page,request,session,application) hope that helps. ---

RE: Weblogic 6.1 SP2 and Struts 1.0.2 taglibs

2002-03-13 Thread keithBacon
I think ActionMessages is in the new version (from the nightly build) but not in the stable version. (If that's the name of the thing like ActionErrors but not for errors). ie. you are running new code on old version of struts. --- Arnaud Heritier [EMAIL PROTECTED] wrote: After looking at the

Re: [Newbie] ActionForm with a scope session

2002-03-13 Thread keithBacon
This code lets you see what is in your session request - usually nearly what you expect but spelled wrong! replace dbmd with what-ever you write log messages with (System.out.println probably). You can solve a lot of bugs with them. Ask again if that doesn't crack it!

Re: No getter - method order bug?

2002-03-13 Thread keithBacon
Hi Jon, Good debugging! I'd like to see some clear rules about struts bean properties, so here's my attempt. (Not having read the bean spec very carefully!). 1 - If you want something treated as a property you must have get set methods even if you won't call them both (from bean spec). 2 -

Re: Help with Oracle dates from Secs passed since 1970

2002-03-13 Thread keithBacon
Without looking it all up (maybe a bit wrong here). convert seconds into days (divide by 60 * 60 * 24) then use java.util.Date or GregorianCalendar to add that number of days to 1/1/1970. Then grapple with DateFormat objects!! I have some totally non-standard date code that I converted from VB

Re: Help with Oracle dates from Secs passed since 1970

2002-03-13 Thread keithBacon
ho ho - do it my way if you get paid by number of lines of code produced! --- keithBacon [EMAIL PROTECTED] wrote: Without looking it all up (maybe a bit wrong here). convert seconds into days (divide by 60 * 60 * 24) then use java.util.Date or GregorianCalendar to add that number of days to 1

Re: amount of data stored in session

2002-03-13 Thread keithBacon
Hopefully some-one has some better guidelines (not me!). Best I know is... 1 - Does anyone know how big is the session storage used internally by the server? Any thing you add is additional % that. 2 - I guess the more expensive your web-server the more efficient it's storage management would be.

RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread keithBacon
webapp. I have restarted the container, but still the same story. Any more suggestions. I'll try rebooting but I'm desperate now! Tomcat overrides the system classpath anyway does it not? -Original Message- From: keithBacon [mailto:[EMAIL PROTECTED]] Sent: 13 March

RE: the best way to log action hits

2002-03-13 Thread keithBacon
Give us code for being thread safe then - i always avoided that stuff! My suggestions:- If voumes are low - use Log4J or similar - minimal work If you have a really fast database do it from a normal class, key DB table on the URL - the database locking will take care of concurrent access

RE: Why no struts.jar on the classpath?

2002-03-13 Thread keithBacon
Yeah - MarkG we're becoming dependant on you. Make sure you don't take fridays off! Perhaps people on this list will get really annoyed if we start having fun on other days of the week. Personally I reckon anyone who delivers good replies deserves some play-time. Especially since the standard is

RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread keithBacon
that I cant get my head around with any confidence - like the struts-config.xml file! Cheers. You can release those straws now =OD Lindsay -Original Message- From: keithBacon [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 16:17 To: Struts Users Mailing List Subject

Re: Perhaps TABOO Question, how to convert struts apps to non-struts

2002-03-13 Thread keithBacon
1 - http://myserver/my-web-app/admin/reload.do reloads ApplicationResources I think struts-config. If I haven't recompiled any classes it works for me. On Tomcat it goes wonky if I've re-compiled so I have to restart. This is if thoe entries for admin unctions are in your struts-config.xml. They

Re: Development approach question

2002-03-12 Thread keithBacon
Hi Vlad, What ever results in the least/simplest/fastest code! The way I look at is that you have a special 'ViewSupport' layer in your app that provides sorted copies of the data for presentation. This is seperate from the main business logic. You can supply the data as maps/sets/lists

Re: Why no struts.jar on the classpath?

2002-03-12 Thread keithBacon
Below is an extract from the link below. I don't really understand it that well but if no guru answers. You might search the archives further I'm sure I've seen this answered there but didn't find it. It's something to do with which class loader loads the struts classes. It has to be your

Re: What do you call them beans?

2002-03-12 Thread keithBacon
nice one. I was thinking of DataUni Negotiotor xxxDUNG.But don't allocate too many or you'll full up th heap. --- John M. Corro [EMAIL PROTECTED] wrote: I'll occassionally run a Tiered Accessor Entity to a Business Object.in which case I just label it a TaeBo Sorry couldn't resist : )

Re: Populating complex java objects in forms

2002-03-11 Thread keithBacon
--- Jon Ferguson [EMAIL PROTECTED] wrote: Do you have the appropriate setXXX() method on the customer for name? Jon Charlesworth, Chico wrote: Hi, If I've got a complex java object (i.e Customer) in the Form class, I can then read off this object in the jsp page, but when

Re: Problem

2002-03-11 Thread keithBacon
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19543.html and search on workflow (work-flow) chaining. --- Adrian Theuma [EMAIL PROTECTED] wrote: Hi, please look at the following problem scenario. Assume that you are on page A, and there is a link on page A to page B.

Re: getting a list in Action class

2002-03-07 Thread keithBacon
tricky! does myForm.getSubstances(); return a list? is it the correct size? I would have thought putting enough debug messages would highlight the problem. I'd guess it's not even executing your debug code because you'd get a null pointer exception from list.iterator() if the list was missing

Re: [Newbie] logic:iterate

2002-03-07 Thread keithBacon
does elt.getName() return a String? --- Slimane [EMAIL PROTECTED] wrote: Hi, I try to do an iteration on a vector. When this vector contains only Strings, the iteration works well. For that, I use the following piece of code: logic:iterate id=elt name=listform scope=session

Re: nesting: iterate cannot find attrribute

2002-03-07 Thread keithBacon
just a tip - not your answer. there are problems with property names that start with multiple capital letters (odd things in the bean spec) so avoid them Maybe there is a prolem with single letter names too - - your data names are not very readable anyway.. --- Elijah Jacobs [EMAIL

Re: Multiple submit buttons solution

2002-03-07 Thread keithBacon
You're right peter. Come on the old struts pro's - do we need this or not? I don't know enough to judge. for - good to have choiice of using link or button. against - you can do it with a link so why add more fiddly functionality Hi Keith, Yes you can use links but sometimes you need to

RE: Application Scope Variables

2002-03-07 Thread keithBacon
Application Scope - Generally, application scope beans are initialized in the init() method of a startup servlet. However, it is legal for an Action class to create such beans, if this is appropriate, like this: Foo foo = ... create a Foo ...;

Re: specifying dynamic value for logic:equal

2002-03-07 Thread keithBacon
Code posted below - hope it makes sense. Keith. --- Srinivasarao Nandiwada [EMAIL PROTECTED] wrote: Hi, Let me briefly explain the problem - I am using a select box in edit page and wanted to use simple text corresponding to the selected value in view page. My select box consists of the

RE: Best Practice for parsing an XML file for application confi guration parameters?

2002-03-07 Thread keithBacon
nice thought! --- Craig Tataryn [EMAIL PROTECTED] wrote: You can put all your properties in one file as well, lets call that file config.properties 2. xml handle the structure data much better then properties file data structure might be nice for communications between computers but

RE: Multiple Form Beans for the same for the same action ... HELP !!!

2002-03-06 Thread keithBacon
you need to specify the form bean in the name attribute of your action mapping. (hence will need 2 mappings). cheers - Keith --- Ronald Haring [EMAIL PROTECTED] wrote: are both formbeans added to the page/request? Gr Ronald -Original Message- From: cool dude [mailto:[EMAIL

RE: Struts Community Opportunity

2002-03-06 Thread keithBacon
likewise - great idea, not that I know what Chiki is. I like the idea of an updateable repository of knowledge. The problem with the mail archive is that a small % of it is valuable but it is lost amidst the clutter (ie. amongst my ramblings). Hopefully you'll have a demo availble soon? ---

RE: Newbie Struts and Jbuilder6

2002-03-06 Thread keithBacon
Hey Mark, he didn't wrote nothing - he typed it cheers --- Galbreath, Mark [EMAIL PROTECTED] wrote: He didn't say anything; he wrote it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 7:33 AM To: Struts Users Mailing List

RE: Newbie Struts and Jbuilder6

2002-03-06 Thread keithBacon
I think the list needs good cop/bad cop style. lots of diff. people ask lots of diff. levels of question we need lots of diff. people to answer them. Certainly people that aren't prepared to spend the time learning themselves need to be put off a litle (but only a little). It's pretty hard work

Re: Struts Community Opportunity

2002-03-06 Thread keithBacon
Another excellent resource on the web. Too much information!! There is huge potential in these things!. --- Gabriel Sidler [EMAIL PROTECTED] wrote: keithBacon wrote: likewise - great idea, not that I know what Chiki is. I like the idea of an updateable repository of knowledge

Re: how to edit an array of records with action forms?

2002-03-06 Thread keithBacon
I just dont have time to expriement then you're in trouble mate! Sorry i can't answer I've avoided editing in grids so far. Beware that you'll end up with lots of html:text tags when you get up to 50 or more things can slow down horribly. Search archive for '50 tags' you'll find stuff. Search

Re: creating a variable set to return value of a method - using struts

2002-03-05 Thread keithBacon
Hi, HashMap myMap = someClass.getMyMap(); bean:define can do this. myMap.put(1, one); struts is designed for presentation logic, so this isn't in it's scope. Have you seen Larry's struts white paper at:- http://stealthis.athensgroup.com/presentations/ hope this helps = Keith. --- Elijah

Re: bean:message default key?

2002-03-05 Thread keithBacon
me too! Would anybody prefer returning a message like struts warning - message:+ key + not found); and just printing a warning. This is a bit mucky but at least lets the system carry on running. Not sure myself. K. --- Joachim Gjesdal [EMAIL PROTECTED] wrote: Yeah, and then submit the patch and

RE: Form Bean problem - Fixed for now

2002-03-05 Thread keithBacon
Hi Tim hurray! just for your amusement The other day I added some buttons to a form the setter methods in the form bean weren't being called when the buttons were pressed. I checked checked. I copied button code from another jsp/form/action that worked. I still couldn't get my new code to

RE: action and form contract

2002-03-05 Thread keithBacon
Do check for essential preconditions in your Actions I agree with that! Defensive / Controlled State programmimg makes debugging much simpler. makes code easier to read too. The perform method in the Action is a key hotspot in the framework, and may be realizing several different API

Re: Forwarding to referer

2002-03-05 Thread keithBacon
Hi George - I just did a post on another subject that's relevant to this. You still have to have the action name of the referrer in the struts-config but you can have a list of all possible referrers specify which one at run time. I like this as struts-config then documents all possible links

RE: design question

2002-03-05 Thread keithBacon
You have to keep the data in the session or write it to the database. (Storing it on each form as hidden fields seems too fiddly to me). Unless you have huge volumes I actually prefer to save it on the database have a status field that indicates the data is incomplete. --- Ronald Haring [EMAIL

Re: How to use the html:text tag properly.

2002-03-05 Thread keithBacon
I'm pretty sure if you use get/set in your form bean you should not use value. It specifies the literal value to display in the field (I think? - as I never use it). --- Alex Colic [EMAIL PROTECTED] wrote: Hi, I am trying to get the value attribute to work in the text tag. I have an

Re: Multiple submit buttons solution

2002-03-05 Thread keithBacon
Hi Peter, I just use links to do this. (I think you can use an Image as well). Buttons are a bit ugly so I don't need this functionality. There's lots in struts so I don't favor adding more. Keith. --- Peter Severin [EMAIL PROTECTED] wrote: Hi folks, I've been searching for a solution for

Re: Date Form Fields Question

2002-03-05 Thread keithBacon
lots in the archive about this! http://www.mail-archive.com/struts-user%40jakarta.apache.org/ --- Mattos, John [EMAIL PROTECTED] wrote: Hi all I have a form that contains a StartDate and EndDate text fields, and I'm wondering what the best way to deal with them is. Should the Form Bean

Re: Re : logic:iterate String

2002-03-05 Thread keithBacon
that looks it is the output from the toString method of an array or collection class. Specify proprty=... to make struts call that property instead of toString(). (Maybe?). --- FARINE Arnaud - SOP ( [EMAIL PROTECTED] ) [EMAIL PROTECTED] wrote: If I write this I obtain somthing like this:

RE: Pre Populating Fields - bit of a newbie question

2002-03-05 Thread keithBacon
There is lots about this in the mail archive. Did u look there? --- Mattos, John [EMAIL PROTECTED] wrote: Anyone? Pre populating fields? John Mattos Sr. Developer and Architect iNDEMAND 345 Hudson St. 16th Floor New York, New York 10014 -Original Message- From: Mattos,

Re: White Paper on Struts

2002-03-04 Thread keithBacon
Hi Larry, Excellent - well done. This looks like the sort of thing beginners shoud print out study. From a quick look at it, I'd say it should be put on the struts web-site or at least be a recommended link. Keith. --- Maturo, Larry [EMAIL PROTECTED] wrote: I've been collecting, in a document,

Re: Slight misunderstanding regarding Form-beans

2002-03-04 Thread keithBacon
You are not alone Thorbjørn! See. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg20608.html Keith. --- Thorbjørn_Ravn_Andersen [EMAIL PROTECTED] wrote: torsdag februar 28 2002 kl. 03:53 PM skrev David A. D. Konrad: I am trying to create my first real struts application,

Re: question about logic:equal

2002-02-27 Thread keithBacon
I'd guess yes - but why don't you try it out tell us the answer? --- Maris Orbidans [EMAIL PROTECTED] wrote: hello What if there is no request attribute with name READ ? NPE ? logic:equal name=READ scope=request value=true /logic:equal Maris Orbidans -- To

RE: question about logic:equal

2002-02-27 Thread keithBacon
thanks mate! --- Mâris Orbidâns [EMAIL PROTECTED] wrote: The answer is Yes :-) Maris -Original Message- From: keithBacon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 3:15 PM To: Struts Users Mailing List Subject: Re: question about logic:equal

Re: Form Bean problem

2002-02-27 Thread keithBacon
if you can't solve it post the whole lot! --- Tim Sawyer [EMAIL PROTECTED] wrote: KeithBacon [EMAIL PROTECTED] wrote : does the form work OK if you remove dateOfBirth but leave the other form fields? Nope. I only have two fields on the form, and if I remove date of birth it complains

RE: Code To Update DB With Transactions (was RE: EJB = bad = MS.n et)

2002-02-26 Thread keithBacon
Cakalic -Original Message- From: keithBacon [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 10:43 AM To: Struts Users Mailing List Subject: Code To Update DB With Transactions (was RE: EJB = bad = MS.net) Ah ha - I thought you'd imply that you only do

Re: Form Bean problem

2002-02-26 Thread keithBacon
Have you got other properties on the same form/jsp working OK? (to prove you are looking at the right form bean). As a wild desperate measure - try adding another word so it is dobTest (getDobTest). Properties are weird when they start with multiple uppercase letters maybe when it's all lower

Re: Form Bean problem

2002-02-26 Thread keithBacon
? Cheers, Tim. KeithBacon [EMAIL PROTECTED] wrote : Have you got other properties on the same form/jsp working OK? (to prove you are looking at the right form bean). As a wild desperate measure - try adding another word so it is dobTest (getDobTest). Properties are weird when

Re: Form Bean problem

2002-02-26 Thread keithBacon
You will need the form bean on the 1st use because the jsp it forwards to has the form on it struts will try to populate the form from the form bean (I am making an assumption here - it's possible it would look at the mapping, see no form bean the html:text tags would just default to blanks -

RE: How to use html:radio? Semi-solved

2002-02-26 Thread keithBacon
bean:define is good for getting at stuff. I might have this a bit wonky but it should give you the idea. It just creates a 'page scope' pointer called tempVar for logic:iterate to use. bean:define id=theList name=yourFormBean property=projectProcessGateList scope=request toScope=page/

RE: Logging in beans

2002-02-26 Thread keithBacon
Does anybody know how the new Java 1.4 logging API affects things? My guess is it increases the desirability of using the jakarta Commons Logging Package. You can use log4j for now easily switch later. But for students or people that can gurantee they will deploy on Java 1.4 shouldn't they just

Re: Form Bean problem

2002-02-26 Thread keithBacon
does the form work OK if you remove dateOfBirth but leave the other form fields? Is it possible you have 1 mapping that puts the form in the session another one that puts another form in the request but with the same name? That would explain it if you can find the form bean but struts doesn't?

Re: help with logic:iterate

2002-02-25 Thread keithBacon
Hi Sri, try html:text name=columnName / instead of property=columnName struts will then call the toString() method of your columnName objects. Often your columnName object would have a method like getName() and you would specify html:text name=columnName property=name / I hope that's right!

Re: taglibs documentation (whered it go)?

2002-02-21 Thread keithBacon
so that why i couldn't find it! Please can we have it back pronto! = ~~ Search the archive:- http://www.mail-archive.com/struts-user%40jakarta.apache.org/ ~~ Keith Bacon - Looking for

Re: How Do I trigger an actionForm reset from an Action

2002-02-21 Thread keithBacon
This looks like you aren't using struts in the spirit it was intended or are doing a very unusual bit of logic. (only a suggestion). --- [EMAIL PROTECTED] wrote: Hi, Could someone give a code snippet that I can use to invoke the reset method on an actionForm from my Action code? Thanks,

RE: struts-example won't run

2002-02-21 Thread keithBacon
: /struts-example/logon.jsp Internal Servlet Error: javax.servlet.ServletException: cant remove Attributes from request scope Root cause: java.lang.IllegalArgumentException: cant remove Attributes from request scope keithBacon [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: Hey Struts I have another email address!

2002-02-21 Thread keithBacon
It's always a pleasure to see a lying scum spamming advertiser exposed discredited. Thanks! --- Olivier Dinocourt [EMAIL PROTECTED] wrote: Completely OT, but I couldn't resist... From their Terms Of Service : -- 3. MEMBER OBLIGATIONS In consideration for this Service, you agree to

Re: Class reloading error in Tomcat on Sun Solaris

2002-02-21 Thread keithBacon
You can't complain then! If you are running multiple live web-apps on Tomcat you are pushing your luck! Maybe you need a commercial server. The more you pay the more flexible the operational environment (I would hope!!). --- Struts Newsgroup [EMAIL PROTECTED] wrote: Subject: Re: Class reloading

Re: how to decide how many beans to use?

2002-02-21 Thread keithBacon
1 form bean per form. --- Domen, Ken [EMAIL PROTECTED] wrote: I'm running into a problem. I started out with one FormBean. It's basically a flattened domain object. I'm using the Dave W. Validation package and in the validation.xml, you define that for a particular FormBean you

Re: action and form contract

2002-02-21 Thread keithBacon
I've often wondered what other people do for this sort of thing. Here's my style for constructive comment. (no insults please!). I'm trying to write code that can run for 10 years be easy to maintain. == 1 - Handling form pointer null - My preferred style in perform method is

Re: Hey Struts I have another email address!

2002-02-21 Thread keithBacon
I'm having a day off tomorrow - this is my friday. --- Olivier Dinocourt [EMAIL PROTECTED] wrote: my pleasure. :-) BTW Shouldn't we rather keep this for tomorrow ? - Original Message - From: keithBacon [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED

Re: ActionForm and default values

2002-02-21 Thread keithBacon
working on it - slowly - too slowly. --- Ted Husted [EMAIL PROTECTED] wrote: keithBacon wrote: Are we missing stuff in the struts example apps? You should be able to copy adapt them when it breaks go back copy again. Contributions welcome -:o) -- Ted Husted, Husted dot Com

Re: 400

2002-02-21 Thread keithBacon
I have mine defined with a / in front actionpath=/TimTest --- Tim Sawyer [EMAIL PROTECTED] wrote: My strange problem just got stranger. I decided that I'd try out the code on Orion, which is our deployment server, rather than Tomcat. After fixing some problems where Orion was stricter

RE: EJB = bad = MS.net

2002-02-21 Thread keithBacon
-summary.html -Original Message- From: keithBacon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 1:50 PM To: Struts Users Mailing List Subject: RE: EJB = bad = MS.net Ever tried to do a distributed transaction across multiple database connections? Hardly

Re: How to prevent users from jumping into the middle of a series of pages

2002-02-21 Thread keithBacon
I'm not the expert on this - but search the archive for 'workflow' --- Kanoza, Douglas (NCI) [EMAIL PROTECTED] wrote: I've been using Struts for all of a week now, and think it's the coolest thing since sliced bread (however, that also means there's a ton I don't know about it). That

Re: select:option SELECTED

2002-02-21 Thread keithBacon
Don't access the parms from the request in your Action class. Access them via the get/set methods of the struts formBean. To select a value on your page call the setter in the formbeam passing that value. You should find examples in archives. Ask again if any problem --- Syed Niaz [EMAIL

Code To Update DB With Transactions (was RE: EJB = bad = MS.net)

2002-02-21 Thread keithBacon
. If the query is a simple read, you don't need the transactions checks. :-) Mark -Original Message- From: keithBacon [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 9:54 AM Is there anything wrong with the design below? Is there anything simpler? (Are EJB's simpler

Re: Powered By Struts List

2002-02-21 Thread keithBacon
Ted husted should notice put it there. It certainly should be, it looks excellent. Top use of Purple it works as well! Congratulations. --- Flannery, George [EMAIL PROTECTED] wrote: This has probably been asked many times, but I can't seem to find the answer on the web site or in the mail

  1   2   >