Re: Cannot find bean viewcontactlist in scope request

2003-09-10 Thread Tim T. Young
paramName (in your case viewcontactlist) is the name of the bean in the request (paramScope="request"). You need to have a paramProperty ="beanProperty" also. >From the docs: Specify both the paramName and paramProperty attributes - The specified property getter method will be called on the JSP

Re: Exception handling 100% declarative

2003-10-29 Thread Tim T. Young
Sounds like you need to add a custom handler like so: Your "EJBCreateHandler" class would extend from ExceptionHandler and override execute. In there you can then create the custom parameterized messages you want. In the execute method of a ExeceptionHandler you have references to the

Re: Submitting a form

2003-11-03 Thread Tim T. Young
Your link could look like this : Link Text The javascript could look like this : linkClicked() { document.forms[0].myHiddenField.value = 'something'; document.forms[0].action = '/differentAction.do'; document.forms[0].submit(); } You could pass the "something" value into the

Commons Version with Struts in WSAD 5

2003-02-27 Thread Tim T. Young
Does anyone know what version of Commons is with Struts 1.1b2 in WSAD 5? Or what version of Commons Validator was distributed with Struts 1.1b2 in general? I read the release notes for 1.1b2 and while they mention using commons they do not specify versions. Thanks, Tim ---

xml validation error on Tiles plugin entry

2003-01-14 Thread Tim T. Young
I am using WSAD 5 and am having a problem enabling the Tiles plugin in the struts-config.xml file. I put this entry into the file: and I get validation errors on the first 2 set-property lines The error messages are: "Invalid data for attribute "property" in part defi

Tiles and Struts 1.0.2?

2002-07-24 Thread Tim T. Young
I am looking for the Tiles version that works with Struts 1.0.2. Google, the Tiles site, etc have not helped. I have seen mention of a file called tilesForStruts1.0.jar but I cannot find anywhere. (Of course I would love to upgrade to the latest of everything Struts/Tiles/etc but VAJ is holding

Re: Best way to get a Form's content

2002-07-24 Thread Tim T. Young
You could I tend to do that to get away from calling getters, plus if you use it in the jsp more than once you already have it defined. Tim

RE: Tiles and Struts 1.0.2?

2002-07-25 Thread Tim T. Young
ntains the 'tilesForStruts1.0.jar' you mention and also a 'tiles-blank-struts1-0.war to help you get started. g Esther > -Original Message- > From: Tim T. Young [mailto:[EMAIL PROTECTED]] > Sent: woensdag 24 juli 2002 18:04 > To: Struts Users Mailing List > Sub

Conversion from templates (Struts 1.0.2) to Tiles

2002-07-26 Thread Tim T. Young
I am converting a couple of test pages from templates in Struts 1.0.2 to use Tiles. My question is, how do I do something like this: Can I use "extends" to turn the "sidebar" off? From a couple of quick tests this seems not to work (it tries to load a file

Re: How to install Struts 1.1b on WebSphere 3.5.4 (Missing ressourcesattribute org.apache.struts.action.MESSAGE)

2002-07-30 Thread Tim T. Young
You will want to add the path of that resource file to your webapp's classpath. (Or put the resource file, with any corresponding directory structure, into a path that is already in the classpath.) Tim

Re: invalid e-mail address

2002-07-30 Thread Tim T. Young
Is anyone else getting this bounce when posting to the list? Is it possible to remove the offending address? Tim "AutoReply,

RE: Sample implementation of Applications using Struts. (aka Life, theUniverse, and Everything)

2002-07-31 Thread Tim T. Young
Just hang around this list and you will get more information than you can process in any given day about Struts, DBs, J2EE containers, beer, design patternsand stick around for casual Fridays too! Tim

Re: Newbie question on displaying lists

2002-08-09 Thread Tim T. Young
Couple of ways I have handled this... 1) Don't go to a page directly (*.jsp), go to an Action (*.do) first to prep the form and put it in whatever scope you have it configured for (request, session, etc). Some people don't care for these "preparing" actions, though. Like any design you have to

Re: Differentiating between to two actions

2002-08-09 Thread Tim T. Young
I think in this case you will need your onchange to set a flag (hidden field) indicating which list was used, then submit the form. In your actionform you would need a corresponding property. Then in the servlet you then could ask the actionform for the flag. Tim "vk vk"

Re: How do you handle non-text data in Struts forms?

2002-08-12 Thread Tim T. Young
I tend not to mix my ActionForms and any "business" type classes at all. I keep the forms lightweight, even "dumb" by having only string data (this also supports redisplay properly) In the action I take the data out of the form and give it to the business layer. This is 2-way separation - Struts

Re: Newbie iterate problem

2002-08-12 Thread Tim T. Young
Hi Tracy. Your code looks correct, so you might try tracing through the iterate tag and the write tag to get a better idea of the problem. I had to do that several times before when I get those types of errors that aren't obvious. Start at the write tag to see what it is getting (and what it i

Re: No getter error

2002-08-13 Thread Tim T. Young
I get that error when I add a property to a bean (with, in my case, Websphere still running) and then try to add that new property to a tag, and then run it. Struts caches the PropertyDescriptors and so I end up having to restart Websphere to pick up the changes. Tim

RE: Use of Iterator tag

2002-08-14 Thread Tim T. Young
Refactor mercilessly! :) Tim "nathan

Re: error handling in jsp

2002-08-15 Thread Tim T. Young
I would be curious to see if anyone has a design for this. I fixed it by moving to Tiles, as it handles errors much better. It is a little more complex than straight templates, but it is worth it once you do your first "extends" definition and realize the possibilities... Tim

Re: struts newbie

2002-08-16 Thread Tim T. Young
Hello and welcome! HTML Tags --> http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html Bean Tags --> http://jakarta.apache.org/struts/doc-1.0.2/struts-bean.html Logic Tags --> http://jakarta.apache.org/struts/doc-1.0.2/struts-logic.html Template Tags --> http://jakarta.apache.org/struts/

Re: XP (and not the Microsoft kind)

2002-08-16 Thread Tim T. Young
Why is it that everytime I read Agile/XP related material, I feel energized, inspired and positive, but everytime I am asked to fill out a Project Definition Report/Architecture Diagram/Test Planblahblah(TPS Report)blahblah, I feel drained, suffocated, and wasteful? From the resources on the art

RE: Struts Community is going crazy! :-))

2002-08-19 Thread Tim T. Young
Dan, That is a great diagram. It will save me LOADS of time explaining or training people on Struts... Thanks for the contribution, Tim

Re:

2002-08-21 Thread Tim T. Young
Someone please correct me if I am wrong, but ... works doesn't it? I think I remember doing that before. Tim "Aiken,

Anchors

2002-08-21 Thread Tim T. Young
I need to create a page that will have links on the LH navigation bar to anchors in the current page. I would like to know if this first scenario is possible. I have browsed some anchor info in the archives but did not see anything that addressed this exactly. 1. Step One ( /page.do#step

Re: [Proposal] Thread Topic Identification (was [BS] Are we gettingo ff thetopic)

2002-08-29 Thread Tim T. Young
My fear with another list is that good information will be available in both, and I will have to process 300+ emails a day (2 lists x 150 a list). Tim

RE: [BEER ] Is it Friday Yet?

2002-08-29 Thread Tim T. Young
Common guys, keeping up is hard enough without having to babelfish everything! "Galbreath,

Re: tag question

2002-08-29 Thread Tim T. Young
Not tested or anything, but from http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#image ... Ashish Kulkarni

Re: Call external page

2002-09-05 Thread Tim T. Young
You could just make a link in the jsp instead of going through an action. If you have to go through an action, mmm, does having redirect="true" make you able to go to "external" sites? Tim

RE: Call action from JSP

2002-09-05 Thread Tim T. Young
This was sorta mentioned before, but...why not have and index.do instead of an index.jsp? Does index.jsp show something to the user or does it just do some logic and then call the server? If it does the latter, make it a .do Tim

RE: Call action from JSP

2002-09-05 Thread Tim T. Young
I see nothing wrong with what you are doing. You don't even need the name ="" in the xml. You might want to look at in case you need to do anything more with maintaining session, etc. Tim |+-> || "Piper, James D CECOM SEC | |

Re: [ANN] Struts Q&A Distilled, Vol#2

2002-09-06 Thread Tim T. Young
Great resource, keep up the good work. Tim John Yu

RE: [FRIDAY] SOMEONE SAVE OUR LIST!!!!

2002-09-06 Thread Tim T. Young
including some drugs used to treat hypertension and some mood altering drugs. I hope beer is not on that list... wbchmu

Re: how to return errors from Model component

2002-09-06 Thread Tim T. Young
I would agree that your model should not be manipulating ActionError(s). If your requirement is that you MUST send multiple errors back from the model then perhaps a custom exception (with a list of other exception, errors string, or keys to i18n, internal to it), that you can pick apart in the A

RE: [Share DB Connections] how to return errors from Model component

2002-09-06 Thread Tim T. Young
Database connections (ie jdbc) are usually done through connection manager classes or container managed data sources. Our infrastructure provides a PoolManager which does db, ldap, custom, etc pooling. When we want a connection we just "PoolManager.getCurrent().getConnection(...). The connecti

Re: Building confirm screens in Struts

2002-09-09 Thread Tim T. Young
You will want to use a tag to display properties of a bean, plus the tag (you are already using) to keep the data. Tim "Smith,

Re: Disadvantages of Struts

2002-09-12 Thread Tim T. Young
It's way too productive for my taste... raghuramudu.v@pol

Re: html:errors tag funny null strings

2002-06-20 Thread Tim T. Young
Are you using Websphere? If you are, when null String objects get written to a jsp they produce a "null". Early versions of Websphere did not do this but we had problems starting with version 3.5.3. I just put a errors.header= and errors.footer= in the properties file and it takes care of it,

DispatchAction

2002-06-25 Thread Tim T. Young
I am using a subclass of DispatchAction to route multiple operations (add, delete, etc) to methods of the same name. I have named all of the buttons the same and used that name in the parameter entry of the action mapping (not concerned with i18n). The quirk I have found is that since my button

License and copyrighted code

2002-06-26 Thread Tim T. Young
I am preparing technical and business information to deliver to a technology group at my firm. I know the issue of licensing and copyright will come up and of course I have read and studied the Apache license. One question I know will be asked is this: How does the Apache process (with its comm

Re: ActionError strange behavior

2002-06-26 Thread Tim T. Young
In your ApplicationResources.properties file put errors.header= and errors.footer= lines with either something meaningful or just nothing and they will go away. Tim

Re: License and copyrighted code

2002-06-26 Thread Tim T. Young
Retain Until: 07/26/2002 Retention Category: G90 - Information and Reports On Wed, 26 Jun 2002, Tim T. Young wrote: > Date: Wed, 26 Jun 2002 10:44:25 -0500 > From: Tim T. Young <[EMAIL PROTECTED

Re: WEB-INF/web.xml hardcoded in initServlet() [struts 1.0.2]

2002-07-11 Thread Tim T. Young
Yes VAJ/WTE is a pain, but it is ok to have the same configuration in the webapp file and the web.xml file. Like this... action *.do and the actual servlet definition, etc. If you deploy WAS 3.5.x running in compatibility mode you have to do the same kinda thing in that environme