Re: DTDS Required for Struts and Web Application.

2002-02-12 Thread Keith Bacon
I can't find it on the struts site but i think it's Under definition servlet servlet-nameaction/servlet-name This bit - change it to false. Try it out - sorry if it's not. init-param param-namevalidate/param-name param-valuetrue/param-value /init-param --- Sudhir S.

RE: page do not refresh

2002-02-12 Thread Keith Bacon
There was a post the other day mentioning the trick of putting a timestamp in the query string at the end of the URL's. --- Frédéric_Houbie_-_ABSIS-GROUP [EMAIL PROTECTED] wrote: In fact, the value in the session is ok, but it seems that the proxy is caching a lot, because the url inn the

Re: setting mapped property in ActionForm

2002-02-11 Thread Keith Bacon
Not sure but try defining a getter as well. Maybe the method doesn't get treated as a property unless get/set are defined correctly. --- Tom Goemaes [EMAIL PROTECTED] wrote: Hi, I have a form in which i want checkboxes to use mapped properties. input type=Checkbox name=library.genericId(A)

Re: ActionErrors

2002-02-08 Thread Keith Bacon
Hi Steve, For the ActionErrors collection, get() returns an iterator which will return ActionError objects, not sure but hopefully their toString() will give the message you want. yuk! Much better to use html:errors tag to display them! I see the 'errors' tag only gets the collection from the

Re: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-02-08 Thread Keith Bacon
It will indeed be called. Ted posted advice on how to deal with this a few weeks ago - try to find it in the archives. Basically reset() needs to know which form was submitted so it can reset only the fields on it. Keith. --- Antony Stace [EMAIL PROTECTED] wrote: Hi Rick Thank you very

RE: Redirect to a jsp page

2002-02-08 Thread Keith Bacon
Struts gives you an excellent implementation of the standard solution to this problem. Search archives for token. http://www.mail-archive.com/struts-user%40jakarta.apache.org/ http://www.mail-archive.com/struts-user@jakarta.apache.org/msg22452.html is a good explanation I found after a quick

RE: ActionErrors

2002-02-08 Thread Keith Bacon
this (without hacking the struts taglibs) then please let me know!! regards, steve __ Steve Earl InfoGain Limited -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:37 AM To: Struts Users

Re: actions and business logic

2002-02-08 Thread Keith Bacon
I agree. Is it worthwhile adding a facade layer if you only have 1 or 2 different user interfaces? I can see the value if a change to business logic requires dozens of GUI changes. Also if you are writing a UI for a part of a complex system it's a way of the owners of the system presenting you

Re: [Off-topic]Transaction Management

2002-02-08 Thread Keith Bacon
Use a database that manages transactions, store all data on it, then only the database is involved in transactions. The container is irrelevant. I'm not sure if you can get a 'proper' DB free. With J2EE you can store data in sessions, container managed storage multiple database servers etc

RE: Need help to build/find a pager with struts

2002-02-08 Thread Keith Bacon
Marks in his feisty friday mood! --- Galbreath, Mark [EMAIL PROTECTED] wrote: STFW Mark -Original Message- From: Dirk Storck [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 8:38 AM Can someone tell me where I can find or how I can build a pager with struts ? --

Re: bean:write .... filter =true and HTML question

2002-02-08 Thread Keith Bacon
Not an answer Jeff, just another related issue which I've been postponing. When user types data into a html:textarea they can use new line chars. If I display it in a web page as free text the new lines are ignored. So I want to be able to optionally convert new lines to br / probably multiple

Re: logic:equal tag problem

2002-02-08 Thread Keith Bacon
maybe try value=%= var% --- Philippe Hodapp / 1genia [EMAIL PROTECTED] wrote: I would like a parameter in the value of the equal tag. Is this possible : logic:equal name=categorieitem property=noCat value= i try value=%out.println(var)% but this don't work. -- To unsubscribe, e-mail:

Re: AW: ResultSet and ListObject - List Screens

2002-02-07 Thread Keith Bacon
Is it 16cm down this page? --- Dirk Storck [EMAIL PROTECTED] wrote: WHERE do I find that taglib? Thanks! -Ursprungliche Nachricht- Von: Matt Raible [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 31. Januar 2002 22:21 An: [EMAIL PROTECTED] Betreff: ResultSet and ListObject -

Re: ActionForm:reset() method

2002-02-07 Thread Keith Bacon
I think it's this simple:- (but experts please correct me if I'm wrong) When your action is invoked if it specifies a form bean struts will call reset on it before calling your perform method. This is true when the action is invoked from HTTP either when your form is

Re: Problem with validation

2002-02-07 Thread Keith Bacon
Not sure I understand but maybe this is your problem... Is this because you are letting struts call your form bean's validate() method? If your action is putting data in the request for your jsp to display it will be lost. Then you should set validate=false call validate from your action

Re: feed-forward data

2002-02-07 Thread Keith Bacon
I need an answer to this in a hurry It's a big question - a hurried answer might be wrong. not had luck searching the archives. but there's lots of stuff there! Has anyone got this logic in a live system can comment from practical experience? --- Hidden fields are passed

Thread Safety Question (was Formatting Dates, Integers...)

2002-02-05 Thread Keith Bacon
Do you know what the problem was that made your use of format objects non-thread safe? -Original Message- From: Jeff Martin [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 5:56 PM To: Struts Users Mailing List Subject: RE: Formatting Dates, Integers... Be very

Re: Wizard Interface question / Hi Taylor

2002-02-05 Thread Keith Bacon
--- Guillaume Labelle [EMAIL PROTECTED] wrote: Hi Taylor, are you the Taylor that used to work for Brightstar in Dallas - Original Message - From: Taylor Cowan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 12:33 PM

Re: way to use bean:write with label value beans

2002-01-24 Thread Keith Bacon
Hi Rob, struts handles this for you in it's usual brilliant style! in jsp== html:select name=linkListForm property=selectedLinkSelectionOption html:options

Re: Includes and processing time

2002-01-24 Thread Keith Bacon
Hi all, I tend to think that %@ include file=my_page.jsp % is bad, %jsp: include page=my_page.jsp % is best. Any opinions on this? If you change an included file I assume all the jsp's that access it are recompiled next time they are used (or can be manually recompiled). Which could be very

RE: Should all validation be done in the Action class instead of the ActionForm class?

2002-01-24 Thread Keith Bacon
IMHO.. The simple design is to do all validation in your business logic classes none elsewhere. Easier to maintain less code. Business logic classes shouldn't make any assumptions that validation has already been done in the GUI so anything done in the GUI must still be duplicated in the

Re: Solved: Splitting ApplicationResource.properties

2002-01-24 Thread Keith Bacon
got me past all my confusion was printing out the relevent classes and writing all sorts of notes all over. Then I slapped my forehead and said Duh!, and put the code together this morning. That's where I've been going wrong - I left out the going Duh step. Thanks Becky. My office is full of

RE: way to use bean:write with label value beans

2002-01-24 Thread Keith Bacon
for a value as text (not as a select list) from a Collection of LabelValue beans. Hope that makes sense and thanks for taking the time to answer. Rob -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 3:53 AM To: Struts Users Mailing

RE: bean comparison using tags

2002-01-24 Thread Keith Bacon
Thinking about this I suspect the esteemed designers of struts think you shouldn't want to do this! It means you are putting logic in the jsp that should be in the Action class (or even the business logic). example:- for Cust Type = DisplayParm.CustTypOption1 display is in one format for

Re: Question about forwarding back.

2002-01-21 Thread Keith Bacon
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19635.html doing it with a tag. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19597.html doing it in action class. Any questions about my version, I'll happily answer. I've used my version but not heavily so can't

Re: struts Token usage.

2002-01-21 Thread Keith Bacon
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18877.html for more (lots more) info do a search from that page for 'transaction token' --- Robert Tyler Retzlaff [EMAIL PROTECTED] wrote: Exactly what are transaction tokens used for? How are they used? rob -- To

Re: Design question on loading form data

2002-01-21 Thread Keith Bacon
Hi Mattias, The form bean is designed for easing the coding for moving of data from action class to HTML form vice versa. Has any-one got a good case for doing anything else? Keith. --- Struts Newsgroup [EMAIL PROTECTED] wrote: Subject: Re: Design question on loading form data From: Vic

Re: Is bean:include supposed to JSP process the page?

2002-01-21 Thread Keith Bacon
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % did you remember to add this line to your JSP too? Keith. --- Alex Paransky [EMAIL PROTECTED] wrote: I replaced the following (which is working as expected): jsp:include page=%= /private/component/detail/memberComponent +

Re: Struts Example Still Not Working

2002-01-21 Thread Keith Bacon
Hi Mark, 'remove struts.jar from your claspath' solution from here:- http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10093.html If that's not the answer look for other errors in your server log, your error may be the by-product of some other error (like security). To everyone -

RE: Things that use Struts

2002-01-21 Thread Keith Bacon
is this abuse of this list - had it better stop? Belgian beer - Rochefort 10, English beer - Youngs Winter Warmer yumm - sorry I got caught up in it now. --- Robert J. Sanford, Jr. [EMAIL PROTECTED] wrote: hmm, beer. bass, guiness, newcastle brown ale, harp... yummy!

Re: How to initialize form to values coming from another bean ...

2002-01-18 Thread Keith Bacon
Seems to me this logic belongs in your Action class or better still in you Business Logic class. In action class code like:- yourFormBean.setName(BusinessClass.getUsersPreferredDefaultDeviceName(userPreferenceStyle)); . The form bean is supposed to be for transferring data between the form

Re: a list of radio button

2002-01-17 Thread Keith Bacon
try changing the name= to:- html:radio name=myCollectionElement struts will call myCollectionElement.getAns() to get the string to label each radio button. Keith (not an expert!). --- timothy [EMAIL PROTECTED] wrote: Hi expert, i want to generate this: input type=radio name=ans

Re: Getting a value from request in html:hidden

2002-01-17 Thread Keith Bacon
Hi Jerome, http://jakarta.apache.org/struts/struts-html.html#hidden the documentation doesn't mention it but try html:hidden name=userBean property=callingPage scope=request/ If that doesn't work I'd say you can't good thing too. The standard way is to have stuff like this travel between

Re: about connectionPool

2002-01-17 Thread Keith Bacon
http://www.google.com/search?q=poolmanbtnG=Google+Search ie. search on google for poolman. K. --- Yan Zhu [EMAIL PROTECTED] wrote: where do you download poolman? yan Nick Thomson wrote: Thank you for the clairification. Good job. -Original Message- From: Dick

Re: Is there a better way to write this code?

2002-01-17 Thread Keith Bacon
I like struts as a 'practical' tool for business development. I haven't had a problem with it being restrictive in (fairly limited) practice. I hope that struts guides you towards best practise standard techniques. On wrappers - I normally wrap collections anyway to apply restrictions to add

Re: How to store a String[] in a hidden field?

2002-01-16 Thread Keith Bacon
How about putting a helper class in your session which has methods:- String stringArrayToTokenizedString(String[] array) //store array elements delimted by some char that's not in the data. String[] tokenizedStringToStringArray. //Use StringTokeniser to build the array again. Then you

Re: Application resources and logic:notPresent

2002-01-15 Thread Keith Bacon
Hi Jeff, is it because name=org.apache.struts.action.MESSAGE is the class name of the messages when you should specify the attribute name that class has been stored under? (It'll be defined as a constant somewhere but I don't know where off-hand). Keith. --- Jeff Oberlander [EMAIL PROTECTED]

RE: Question on Struts debugging - one more time

2002-01-15 Thread Keith Bacon
my error.jsp in hopes of seeing more but so far nothing. If I have better luck with this I will let the group know. Developing in Struts would be much faster if there was a way to diagnose such problems. Erich -Original Message- From: Keith Bacon [mailto:[EMAIL

RE: Application resources and logic:notPresent

2002-01-15 Thread Keith Bacon
new to struts, I would have guessed that would've given me a jsp compile error but it doesn't. -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 3:54 AM To: Struts Users Mailing List Subject: Re: Application resources

RE: Help using Struts Logic tags.

2002-01-15 Thread Keith Bacon
logic:equal name=KEY scope=session value=True /logic:equal not tested - done my best..watch the capitalisation! K. --- Andrew B Forman [EMAIL PROTECTED] wrote: I've been using the session taglib http://jakarta.apache.org/taglibs/doc/session-doc/intro.html which would end up looking

RE: Loading data for html:select

2002-01-15 Thread Keith Bacon
Hi Larry, I agree very much with you! Use form bean only for data going to from form. Struts will call get/setSelectedItem(). On 1st use your action bean calls formBean.setSelectedItem() to specify the default later calls getSelectedItem to get what user selected. Data displayed only (ie.

Re: Returns from erroneous validation without aditional information

2002-01-10 Thread Keith Bacon
Hi João, Basicially you call the validation method from your action class tell struts not to call it. (validate=false in action def. in config file). This is already answered better than mine in the archives. Keith. --- João_Guilherme_Del_Valle [EMAIL PROTECTED] wrote: Hi, Struts´

Re: Multiple Forms on On One Page

2002-01-10 Thread Keith Bacon
I think you want each form to have it's own action form bean but them to use the same Action class. eg. action path=/form1 type=myAction1 name=form1Form action path=/form2 type=myAction name=form2Form

Re: why have another xml file?

2002-01-10 Thread Keith Bacon
here's my 2 bobs worth One aim is to be able to deploy apps change optional characteristics without recompiling. Big software is full of config files programs use symbolic names which are mapped to real external entities in config files. This becomes more desirable the bigger the system.

RE: Populating a Form with values

2002-01-10 Thread Keith Bacon
I think you've missed the point of form beans. On submission of an html form struts looks at the request parameters. If it can find a matching set method in the form bean it calls it. ie. the form parms are copied into the form bean. When you forward to a jsp with a form struts calls the get

Re: RES: RES: bean:write.../

2002-01-10 Thread Keith Bacon
Do you mean you want this? logic:iterate id=eachRow name=DATASET scope=request trtd bean:write name=eachRow property=field1 / /td trtd bean:write name=eachRow property=field2 / /td/tr where you array list contains objects eachRow, which has methods String getMyField1(),

RE: Struts design advice requested please.

2002-01-10 Thread Keith Bacon
Hi Alex, I'd try to use just 1 Form Bean 1 Action 1 jsp. Use logic:present to decide whether to put the fields extra on the form. Make the same test in the action class to decide whether to process the extra fields. The form bean doesn't even need to know that it's only 1/2 used sometimes.

RE: Populating a Form with values

2002-01-10 Thread Keith Bacon
/resources.htm Keith. --- Daniel Jaffa [EMAIL PROTECTED] wrote: So i should call my action bean to pre-populate the jsp form? Original Message Follows From: Keith Bacon [EMAIL PROTECTED] I think you've missed the point of form beans. On submission of an html form struts looks

Re: getting the form populated.

2002-01-10 Thread Keith Bacon
looks like your action is invoked by editDocType.do so has been started by struts. You should use the form parameter passed in the perform method. Struts has created it for you to fill in then will store it in the scope specified your action definition in struts-config.xml, where your jsp can

RE: Populating a Form with values

2002-01-10 Thread Keith Bacon
the database. Am I missing something? Mike -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 10:11 AM To: Struts Users Mailing List Subject: RE: Populating a Form with values I think you've missed the point of form beans

RE: Populating a Form with values

2002-01-10 Thread Keith Bacon
, or is there a better way? -- Jim Tomlinson -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 7:11 AM To: Struts Users Mailing List Subject: RE: Populating a Form with values I think you've missed the point of form beans. On submission

Re: Question on Struts debugging - one more time

2002-01-09 Thread Keith Bacon
I've not had better luck. I think it's the way it is. Here's how I do it - I'd like to know how others do. I use hundreds of log messages so I can trace the flow of my program. I make the method calls for logging easy to type - dbmd(a debug msg) or dbmw(warning message). I code traces into

Re: New to Struts and stuck already...

2002-01-09 Thread Keith Bacon
welcome to struts, I'd need more info - more of the error stack trace. Also maybe the struts-config entry for the action class involved. If this is from your jsp maybe it refers to the form bean but you've started the jsp directly (localhost:8080/myapp/myJsp.jsp) rather than through the action

Re: Working with tokens

2002-01-08 Thread Keith Bacon
hi Nicolas , We stored, in the session, the id of the page we last sent, if the tokens don't match (user has messed with the flow) we re-send the page we sent last time. (Could put a message on it saying 'please don't mess with the flow' but we felt that wasn't needed.) keith. --- Peter

Re: Some newbie questions (state/session info)

2002-01-08 Thread Keith Bacon
Hi Kevin e.g. the top of the page contains some information regarding the user, the application is stateless and extraction of the data is cheaper than storing it in a session variable Your app also risks being totally hackable! Anything coming from the client can be faked so you need

Re: A suggestion for Product-quality Code

2002-01-08 Thread Keith Bacon
Thanks Frank for that list - I wanted to do one but spent very little time on struts. I'll agree with anyone that complains about the error handling documentation. In general I do solve errors quite quickly, but I worry about the level of skill needed to use struts. I've briefly seen bits of

Re: Dynamic drop down lists

2002-01-07 Thread Keith Bacon
Hi Michael - this is how I do it - with a special class to manage the options in the list. Mine has hard coded non-internationalized values (terrible really). Sorry about absurdly long names - I wasn't in an abbreviating mood that day! hope it helps - Keith.

Re: How to set Dynamic hyper link using html:link

2002-01-03 Thread Keith Bacon
Hi dennis - not sure - but try, html:link forward='bean:write name=menu property=menuAction/' (using single quote marks). Keith. --- Lee, Dennis [EMAIL PROTECTED] wrote: Hi , I would like to know the way to set a dynamic hyper link using Struts html: I am trying to do it as follows:

Re: No getter method for property (but it's there!)

2001-12-24 Thread Keith Bacon
could it be that getScaleID() returns an int when it should be a String? hth - Keith. --- Vic Cekvenich [EMAIL PROTECTED] wrote: One guess is that sometimes you have to reset the container. If you use TomCat, clean the TomCat / work folder and restart the container. Other containers

RE: strutshtml select tag initial value

2001-12-21 Thread Keith Bacon
Use struts option tag. That will cause a call to your form bean to get the value to be selected when page is displayed. --- Tom Watkins [EMAIL PROTECTED] wrote: I have a jsp using the strutshtml:select tag with nested option tags. I need to give the drop down list an initial value first

Re: form beans bound to session

2001-12-21 Thread Keith Bacon
1 - Avoid putting stuff in the session or 2 - Name all your apps attrs with the same prefix. Have pages where the state of the session is known to be clean - in these clear everything with your prefix. I've got code for looping thru getting names/items in the session if you ask for it. (It's not

Re: servlet question

2001-12-20 Thread Keith Bacon
HttpServletRequest and did not find anything useful. if you know which xml file allows for the configuration of these classes, would you tell me? -will Keith Bacon writes: Hi William - just quick suggestions 1 - search for files called *.xml look in them. 2 - or scan all files

Re: servlet question

2001-12-20 Thread Keith Bacon
call the next valve in the chain or does the valve implementor not have such conrtol? -will Keith Bacon writes: Will, If I new I'd have told. I don't, I was only suggesting the path you long ago went down! If the only entry is the one for the servlet I'd guess Tomcat

RE: AW: accessing EJB components from a Struts application?

2001-12-20 Thread Keith Bacon
Hi james, woo hoo! That'll start some fun! If you want to a system that will run for 10 years where core parts of it will be enhanced dozens of times, user interfaces re-vamped written on new platforms etc... then your company/client will benefit from all these disciplines. More money is spent

RE: Help with bean:write\bean:define whn property requires an arg umen t

2001-12-19 Thread Keith Bacon
I'm sure you can only pass args in scripting code % String bankst = customerResults.getBanks(bankCode) % bean:write name=banks / I curious why you can't add a method to your action class that makes this unnecessary in the jsp? Keith. --- Strichartz, Beth [EMAIL PROTECTED] wrote:

Re: strutshtml select tag initial value

2001-12-19 Thread Keith Bacon
If you use the struts option tag it will get the selected value from the formbean when the page is displayed (reverse of the way it sets the selected value when the form is submitted). Then you have full control! Keith. --- Tom Watkins [EMAIL PROTECTED] wrote: I have a jsp using the

Re: servlet question

2001-12-19 Thread Keith Bacon
Hi William - just quick suggestions 1 - search for files called *.xml look in them. 2 - or scan all files for HttpServletRequest That ought to find them. Just maybe the servlet spec specifies where this info is stored? Keith. --- William Shulman [EMAIL PROTECTED] wrote: Assume one is using a

RE: Problem with bean:define?

2001-12-19 Thread Keith Bacon
are you saying your jsp is getting null pointer excp in setAttribute() in the bean:define tag? does this work? bean:write name=editRegForm property=postDate / Keith. (not much use I suspect - try my best!). --- Siggelkow, Bill [EMAIL PROTECTED] wrote: Specifically, I am trying to use the

Re: Forwarding from one action to another action

2001-12-19 Thread Keith Bacon
I Hope I have this right! The form bean is lost, struts doesn't add it to the request before running browse.jsp is run. So - make browse map to /browse.do so browseAction will be called can get your object. I see you are adding that object to the formbean - I prefer to add things like this to

Re: Invalidating a session

2001-12-18 Thread Keith Bacon
From the stack trace of your error I see a struts class in there. I'd guess it assumes the session exists. Struts stores the users locale there - It seems odd that you would want to invalidate the session here. Keith. --- Nicolas_Parisé [EMAIL PROTECTED] wrote: Hi Rakesh, Here a piece of

Re: My implementation of Action chaining - Fixed

2001-12-17 Thread Keith Bacon
Hi Tuomo, I've had a quick look - seems good. I only do struts part time so I can't really keep up with you, which is a shame. I'll try to use your code - if you'd like to post it here or mail latest version(s). Someone is working on a workflow component for struts, which I think is the same job

Re: form bean populated from wrong request

2001-12-17 Thread Keith Bacon
In Struts a request is forwarded to another jsp - those parameters are part of the 'request'. In the case where the 1st jsp exams the request routes it to an appropriate action to handle it you might want struts to work as it does now. It's common to have code in your action class that detects

Re: how to detect which form is being posted ?

2001-12-17 Thread Keith Bacon
Here it is - this is my way - a design pattern copied from non-strus programs. == in your jsp html:hidden property=formName value=Form-EditUser/ === in your action class EditUserForm thisForm = (EditUserForm) form; String formName =

RE: html:errors handling

2001-12-17 Thread Keith Bacon
Frédéric, I think you need these 2 lines in your ApplicationResources.properties file. (obviously the html can be different (maybe just nbsp;) errors.header=font color=red size=+1ul errors.footer=/ul/font Struts assumes you will always have them (it should default to a null string if you don't

Re: howto set html:select value=[bean value]

2001-12-17 Thread Keith Bacon
did u get an answer - in case you didn't. Does this line bean:write name=AttributesForm property=app/ put outside the select tag work? If so try using single quotes surrounding it. value='bean:write name=AttributesForm property=app/' The message seems to be saying there is no attribute name

Re: possible to keep old and new values inside of a form bean

2001-12-14 Thread Keith Bacon
Hi Fehmi. I think you should do things like this in your Action class rather than the Form bean - which should strictly be used for data that goes from forms to Action class vice versa. This is part of your business logic (or maybe of DB integrity checking) - so if your system is large(ish)

RE: multiple buttons on a form

2001-12-13 Thread Keith Bacon
Lachlan, I hope this helps - a bit long I know. Below is what I have used. It shows multiple buttons how to have data associated with the buttons. I hope this can be understood! I've seen other similar examples in archive butnot with the passing of data with the button, th way i do

RE: How do you pass a data object for editing?

2001-12-13 Thread Keith Bacon
I agree with Ryan. An old rule from way back:- Pass Keys Round Not Data It's simpler to only keep keys across user interactions (either stored on the form or in the session). Otherwise you have 3 versions of data 1 - what's on the database. 2 - what you've saved in the session (or on the form)

RE: How do you pass a data object for editing?

2001-12-13 Thread Keith Bacon
wrong. It would simplify my life a lot :) tomK -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: donderdag 13 december 2001 10:41 To: Struts Users Mailing List Subject: RE: How do you pass a data object for editing? I agree with Ryan. An old

re: How to return to the page that called the action class?

2001-12-13 Thread Keith Bacon
Sorry - this is a bit of a long example. It's my attempt to implement some chaining logic using a generic chainToPage class. Seems rather long winded to me - but it sure works doesn't do anything sneaky involving struts. In this example the linkList page forwards to linkMaint tells linkMaint

Re: Alternate form action

2001-12-12 Thread Keith Bacon
Tuomo, Not totally finalised but at the moment I do it a bit like the example below. If you searched the archives for 'logon page' there are ways you can forward to the logon page have it return to the page that started it, which is the same thing. These example are probably better than mine!

Re: Alternate form action - corrected!

2001-12-12 Thread Keith Bacon
--- Keith Bacon [EMAIL PROTECTED] wrote: Tuomo, Not totally finalised but at the moment I do it a bit like the example below. If you searched the archives for 'logon page' there are ways you can forward to the logon page have it return to the page that started it, which is the same

Re: Alternate form action - corrected!

2001-12-12 Thread Keith Bacon
attributes as hidden form fields and pass them on like that.. But I wasn't sure if it's a good idea to pass them on as hidden fields.. /tuomo Keith Bacon wrote: --- Keith Bacon [EMAIL PROTECTED] wrote: Tuomo, Not totally finalised but at the moment I do it a bit like the example below

Re: Struts and dual forms help!

2001-12-11 Thread Keith Bacon
Hi John, http://jakarta.apache.org/struts/userGuide/resources.html has loads of info! find 'mail archive' specifically for that. Not experienced enough to answer your actual question. I'd suggest look at Tiles in the archive. hope this helps. Keith. --- Collard, John [EMAIL PROTECTED] wrote: I

Re: Design question - option lists populated from db

2001-12-11 Thread Keith Bacon
Rob, Hope this helps - it's from a 'working' system. Ask for more explanations - or better still beat your way thru the struts docs. No escaping it takes time to get your head around this stuff - but it's brill once you get the hang of it! Keith. PS - My code hasnon-standard msg logging the text

RE: access a Collection from JSP page

2001-12-11 Thread Keith Bacon
Hi. I prefer to store beans in request rather than form bean. Action class fetches data from business logic places it in request for jsp to access. This is a simpler structure, only go via the form bean when necessary. When using options type tags the collection is in the request the get/set

RE: Design question - option lists populated from db

2001-12-11 Thread Keith Bacon
for taking the time to put this together, Rob -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 7:34 AM To: Struts Users Mailing List Subject: Re: Design question - option lists populated from db Rob, Hope this helps - it's from

RE: Please Help! Passing variables with the html:link tag, how do I do this?

2001-12-11 Thread Keith Bacon
John, Looks to me that what you have coded will do what you want. Have you tried this found it doesn't work? Keith --- John Regan [EMAIL PROTECTED] wrote: Can someone answer this please, i'm stuck. thank you -Original Message- From: John Regan [mailto:[EMAIL PROTECTED]] Sent:

Re: logic:present always true ?

2001-12-11 Thread Keith Bacon
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % Have you got the taglib defined as above? Keith. --- Mâris Orbidâns [EMAIL PROTECTED] wrote: These lines between logic:present tags always are printed regardless of name I use in logic:present tag. I had specified scope=request but

RE: Can't forward to a global-Here's the code in question?

2001-12-10 Thread Keith Bacon
Alex, I haven't got the docs to hand but I think request.getSession(); creates a session if there isn't one - ie. can never return null. Also I think struts might be creating the session before calling your perform method. Maybe you want to test for some object that your application puts in the

RE: Action an overkill ??

2001-12-07 Thread Keith Bacon
Edward, Bravo! The fewer facilities you use on the client the fewer problems you'll have. But for systems with huge numbers of users the more work you can off-load to the client the lower your server workload, so it's always going to be trade-off. Keith. --- Edward Q. Bridges [EMAIL PROTECTED]

Re: Question/Issue with forward specifications

2001-12-07 Thread Keith Bacon
Hi gurus! I use helper methods that log a warning when a null is returned - makes it easy to track down errors. Q1 - Is this good practice? I suspect I'm replicating logging that struts already has. Q2 - Are there problems with such methods being static(will they be a bottleneck)? Frank - your

Re: Action an overkill ??

2001-12-07 Thread Keith Bacon
-- http://www.husted.com/struts/ Keith Bacon wrote: Edward, Bravo! The fewer facilities you use on the client the fewer problems you'll have. But for systems with huge numbers of users the more work you can off-load to the client the lower your server workload, so it's always

Seperate Actions For Form Init Validation (was JSPs past WEB-INF --- Please Help!)

2001-12-06 Thread Keith Bacon
My way may be no better! I have a hidden variable called formName on every form, set to a literal value. I code the same name in that forms action class. Then at top of the perform method in the action class, if the 2 values are equal I know I was started from my form being submitted so I

RE: Can a form submit to a vector?

2001-12-06 Thread Keith Bacon
The form is 'submitted' to you action class. In your perform method you get the values out of the form bean (passed into the perform method) add them to you vector (or to them to an object representing 1 row that you add to your vector) Keith. --- Alex Colic [EMAIL PROTECTED] wrote: Hi,

RE: Help with Html errors not showing errors

2001-12-05 Thread Keith Bacon
in applicationResources.properties you have errors.detail={0} when adding the error you have ActionError(error.detail,e.getCauseMessage())); is it just a simple spelling mistake? error.detail/errors.detail Keith. --- Strichartz, Beth [EMAIL PROTECTED] wrote: I am getting desperate on what

RE: Test application.resources file

2001-12-05 Thread Keith Bacon
you could have a message like 'application.resources.changed=application resources change 20 Nov 01 10:30' display it on some page - manually changing that message when updating app resources(yuk!). I have no time to do it but I'd like to create a file object on the app resources file call

Re: Cannot find ActionMappings or ActionFormBeans collection

2001-12-05 Thread Keith Bacon
Simon, A wild shot but best I can suggest When I've recompiled classes, instead of the new class loading automatically I start getting struts messages (things not found). Restarting Tomcat fixes them - but I'm sure you've tried that a million times. Please - experts hear this persons plea - I

Re: Missing message for key index.title - general comments

2001-12-04 Thread Keith Bacon
Frank, I agree very much! Error messages that have a unique cause point you towards the solution are much better than things like 'can't find x in scope null'. It takes time to add this stuff to code. An alternative is for us users to set up a faq list or a common errors suggested solutions

RE: Problem with Iterating-No getter method for property....... Any Ideas?

2001-11-27 Thread Keith Bacon
logic:iterate id=messagestag name=Messages property=messages means struts will look for an object called Messages call getMessages() on it. maybe you mean logic:iterate id=messagestag name=messages property=messages Keith. --- Shri [EMAIL PROTECTED] wrote: logic:iterate id=messagestag

  1   2   >