RE: JavaServer Faces and Struts

2003-06-06 Thread Taylor, Jason
Wow. So this guy downloads some JSF stuff, gets the example running, writes an article and gets it in JP? I hope they don't pay him too much! Then again maybe he's on the Redmond payroll... I'll bet the majority of the struts-user subscribers do the same thing and think they're just playing aro

RE: [OT] Reach out and touch someone?

2003-06-06 Thread Taylor, Jason
Thank you. Some of the stuff is funny but lately I've been filtering all but Craig-- it's a good strategy in general for keeping up with struts, but I'm sure there are a lot of other posts that are interesting that I miss. He's right-- the reason most people subscribe has to do with struts not

RE: Indexed Fields

2003-05-30 Thread Taylor, Jason
It's been a while since I had this problem, but sometimes with 1.02 indexed properties you have to resort to scriptlets. You could try something like this (untested): ]"/> or maybe like this (also untested): ]" value="<% request.getAttribute("indexdProperty["

RE: [OT] Text editor usage (was RE: [OT]: What is vim?)

2003-03-03 Thread Taylor, Jason
z... > -Original Message- > From: Chappell, Simon P [mailto:[EMAIL PROTECTED] > Sent: Monday, March 03, 2003 1:38 PM > To: Struts Users Mailing List > Subject: [OT] Text editor usage (was RE: [OT]: What is vim?) > > > Actually, my primary point was text editor u

Strange question: tag acting as ActionServlet?

2003-02-03 Thread Taylor, Jason
I'm trying to migrate a large application to vanilla struts but I'm getting resistance to the idea of using the ActionServlet because there are many references to "*.jsp" in the codebase and there's a feeling that migrating things to "*.do" is too radical. I've tried overriding the servlet mapping

RE: Can " format strings" be used with html:text input fields

2002-10-29 Thread Taylor, Jason
n > stupidity, and I'm not > sure about the former." > - Albert Einstein (1879-1955) > > > > -Original Message- > > From: Taylor, Jason [mailto:jtaylor@;cobaltgroup.com] > > Sent: Tuesday, October 29, 2002 6:24 PM > > To: 'Struts Users Mailing List

RE: Can " format strings" be used with html:text input fields

2002-10-29 Thread Taylor, Jason
Hmm... Stemming from that idea, you could develop a general mechanism for setting attributes using tag body content-- like if David's example looked like this: value where the html:text tag (and any other tag) would have a means of parsing its body as xml for attribute values without reso

RE: [Nested Tags] Nested vs logic tags..

2002-10-28 Thread Taylor, Jason
Just a hunch-- have you tried specifying a 'name' for the nested:iterate tag? -Original Message- From: [EMAIL PROTECTED] [mailto:Jeff_Mychasiw@;nlgroup.ca] Sent: Monday, October 28, 2002 8:03 AM To: [EMAIL PROTECTED] Subject: [Nested Tags] Nested vs logic tags.. Greetings: I am a

RE: Proper Syntax of Nested

2002-10-25 Thread Taylor, Jason
use see docs http://jakarta.apache.org/struts/struts-nested.html -Original Message- From: C. Struts [mailto:struts@;cmbsystems.com] Sent: Friday, October 25, 2002 2:05 PM To: Struts Users Mailing List Subject: Proper Syntax of Nested Can anyone please provide a pointer to some documen

RE: Nested html:form

2002-10-25 Thread Taylor, Jason
Nested forms don't work because browsers don't handle them. The best practice so far as I know is to have one large form with multiple submission buttons that specify different values for a 'form type' form property which is inspected in the Action class that handles the request. You can always

RE: Question - DynaActionForm and indexed property

2002-10-25 Thread Taylor, Jason
rty does that type format of [] apply to Arrays and Lists? -Original Message- From: Taylor, Jason [mailto:jtaylor@;cobaltgroup.com] Sent: Friday, October 25, 2002 10:42 To: 'Struts Users Mailing List' Subject: RE: Question - DynaActionForm and indexed property hope you're

RE: Question - DynaActionForm and indexed property

2002-10-25 Thread Taylor, Jason
hope you're using struts 1.1-- you're going to need the "indexed" attribute. Here's the basic idea: Type: Name: ... and Note: this will be this simple only if all your creditCard attributes are Strings, otherwise you'll need to resort to PropertyUtils.copyProperties() or some homegrown c

RE: Security Best-Practices?

2002-10-22 Thread Taylor, Jason
Search the mail archive for container-managed authentication (CMA). There was a lot of discussion on the subject a week or two ago. Craig McClanahan has posted some good rants on the subject... -Original Message- From: Adam Sherman [mailto:adam@;teachandtravel.com] Sent: Tuesday, October

RE: How to determine the last row in a collection

2002-10-21 Thread Taylor, Jason
you can use the bean:size tag to get the size of your collection, then do a logic:equals comparing the indexId of each row with the page scope variable obtained from the bean:size tag via scriplet reference (kind of a hack, probably a better way using JSTL)... -Original Message- From: Tuan

RE: contextRelative in local forward

2002-10-21 Thread Taylor, Jason
I'll vouch for the fact that contextRelative works, and should work according to your included configuration-- barring some bug in a build more recent than the one I'm using (unlikely). Have you tried a different name for either the default or sub app's path? I know there have been some bugs su

RE: Whats the best way to use Struts?

2002-10-08 Thread Taylor, Jason
If are starting fresh, it's always better to build off an existing standard framework that is supported by an active developer pool-- Struts is a good choice. If you're midway through a project, then it depends on your resources and your deadline. If you've already built it, it works and it's un

RE: Declarative Exception handling with Struts 1.1-b2

2002-10-07 Thread Taylor, Jason
what about extending your existing Exception classes? You could make your existing ones interfaces or abstract classes that are used by the as is software, and the extending classes are there more or less just to indicate differences to the declarative exception handler. That way, you can use St

RE: Parsing error processing resource path /WEB-INF/struts-config .xml

2002-10-04 Thread Taylor, Jason
I use WLS 6.1 sp3 no problem. I use the plain vanilla ActionServlet from a nightly build in May (don't ask). I specify the init-param to the servlet in web.xml like this: config /WEB-INF/struts-config.xml I *don't* use Windoze to develop-- but the stack trace looks like you've got a valid p

RE: Design Problem: Multiple Object Update

2002-10-04 Thread Taylor, Jason
I started with Ted's example too, but I prefer to have one list of beans that contain all the properties rather than a bunch of lists of primitives. When you use the indexed attribute the controller automatically converts your form elements to request parameters that look like this: foo.do?beans[

RE: Design Problem: Multiple Object Update

2002-10-04 Thread Taylor, Jason
Yeah, I've done this stuff a fair bit. You definitely need 1.1 because the "indexed" attribute has been added to the tags and the nested extension has been folded into the core distribution. You can definitely declare an array or ArrayList of objects as a form-property of a DynaActionForm. The

RE: [OT] Mail list gone whack-o?

2002-10-03 Thread Taylor, Jason
+1 are we being bugged? -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 03, 2002 8:30 AM To: [EMAIL PROTECTED] Subject: Re: [OT] Mail list gone whack-o? Yes, I've noticed it too. James Mitchell On Thu, 03 October 2002, Eddie Bush wrote: >

RE: sharing resource file between subapp

2002-10-02 Thread Taylor, Jason
there's a post about this every couple of days-- right now, I think the best practice is to use ant or some tool to merge specific properties to shared ones at build time-- I don't think there's any way to do it otherwise. Eddie Bush has proposed a solution using the default application, but I'm n

RE: Newbie question

2002-10-02 Thread Taylor, Jason
You could also try using randomly generated strings-- that way your code could be *extra* secure since noone else could ever figure out your naming conventions! Looks like you're pretty close already ;) -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Wednesday, O

RE: Where's the form-bean???

2002-10-02 Thread Taylor, Jason
I think I understand what you're doing, but feel free to ignore me if not. What I often do is to present "availXXX" object arrays to the front-end via request/session attributes that the front-end developer knows is meant to be a read-only "informational" array shared between different actions

RE: message code not working

2002-10-02 Thread Taylor, Jason
eventually ... Taylor, Jason wrote: >According to source code, the attribute in the distribution I use is >"org.apache.struts.action.ACTION_MESSAGE", though it seems a bit odd to use >the syntax you're using. > >Why not do > userInfo = >((MessageResources)reque

RE: message code not working

2002-10-02 Thread Taylor, Jason
According to source code, the attribute in the distribution I use is "org.apache.struts.action.ACTION_MESSAGE", though it seems a bit odd to use the syntax you're using. Why not do userInfo = ((MessageResources)request.getAttribute(Action.MESSAGE_KEY).getMessage("user .info.message");

RE: indexId in nested:iterate

2002-10-02 Thread Taylor, Jason
In my experience, nested tags and indexed tags do not mix. Use indexed if you have one dimension of arbitrary length and use nested if you have more dimensions of arbitrary length. Nested has its own "indexed"-like behavior (check out the "monkey" example in the docs, and take a look at the HTML

[SURVEY] Session-based forms vs. request-based forms

2002-10-02 Thread Taylor, Jason
Right now, I'm converting my session-based forms to request-based forms because I'm trying to minimize my use of the session object. The reason is that I found out that when my container runs in clustered mode, it serializes the attributes of the session object and broadcasts the updates across

RE: display big data using bean:write

2002-10-02 Thread Taylor, Jason
Have you tried specifying your field as a String in the action form? That way when you initialize it, you can make sure it's formatted correctly... -Original Message- From: Cathy Osekizoglu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 7:35 PM To: Struts Users Mailing List S

RE: How to map the jsp files in different folder with the ActionServlet!!

2002-10-02 Thread Taylor, Jason
you could use the mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 7:33 AM To: Struts Users Mailing List Subject: Re: How to map the jsp files in different folder with the ActionServlet!! Hi, I have a same question , regarding relative path of action mapping, say i have a jsp called s

RE: QUESTION: Automatic Data Transfer To/From DynaActionForms

2002-10-01 Thread Taylor, Jason
OK, so would the solution to John's problem then be the following: 1) Define dyna form beans in struts-config.xml that duplicate value objects in the model, or at least that possess properties that duplicate the model VO properties that need to be exposed. 2) Define dyna form beans in struts-con

RE: nested:optionsCollection

2002-10-01 Thread Taylor, Jason
ption: Cannot create iterator for com.blah.blah.form.EmployeeForm@69d0cc error. Man ... I wish there was documentation somewhere about this. D. -Original Message- From: Taylor, Jason [mailto:[EMAIL PROTECTED]] Sent: October 1, 2002 12:43 PM To: 'Struts Users Mailing List' Subject

RE: nested:optionsCollection

2002-10-01 Thread Taylor, Jason
try -Original Message- From: Darren Hill [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 9:39 AM To: 'Struts Users Mailing List' Subject: RE: nested:optionsCollection Ok I'm close ... but this ... Gives me a list of the employee Objects ...

RE: [OT - Java] How can I do this in Java?

2002-09-30 Thread Taylor, Jason
Sorry I didn't think a little more before posting my 'help'. Seems it spurred a good discussion, though. I don't use reflection terribly often (just to select service factory classes at initialization usually), but then again I don't often attempt to dynamically select static final constants.

RE: [SELL STRUTS] How do you sell the ActionForm idea?

2002-09-30 Thread Taylor, Jason
DynaActionForms are more maintainable than HashMaps because their properties are configured in the standard struts config file, rather than in code or some home-grown configurator. If your colleague doesn't like lifting decisions out of code and into configuration files, he probably isn't interes

RE: SURVEY: Proper Way To Pre-populate ActionForms

2002-09-30 Thread Taylor, Jason
0, 2002 9:38 AM To: Struts Users Mailing List Subject: RE: SURVEY: Proper Way To Pre-populate ActionForms On Mon, 30 Sep 2002, Taylor, Jason wrote: > Date: Mon, 30 Sep 2002 08:54:46 -0700 > From: "Taylor, Jason" <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List

RE: [OT - Java] How can I do this in Java?

2002-09-30 Thread Taylor, Jason
e Jason's reflection method - but it never hurts to have > a couple of different methods to use on something like this! > > Thanks guys! > > Jerry > > > -Original Message- > > From: Taylor, Jason [mailto:[EMAIL PROTECTED]] > > Sent: Monday, Septemb

RE: SURVEY: Proper Way To Pre-populate ActionForms

2002-09-30 Thread Taylor, Jason
My problem with doing database lookups in ActionForm.reset() is that an exception may occur and it's not as easy to handle as it when doing things within the Action class (where you can just forward things to an error.jsp). I find that if I trap the exception, the populate method may have proble

RE: [OT - Java] How can I do this in Java?

2002-09-30 Thread Taylor, Jason
7;t see a way to do what I want - any chance that you'd have some sample code laying about? Jerry > -Original Message- > From: Taylor, Jason [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 30, 2002 9:59 AM > To: 'Struts Users Mailing List' > Subject: RE: [OT -

RE: [OT - Java] How can I do this in Java?

2002-09-30 Thread Taylor, Jason
sounds like a job for reflection (java.lang.reflect.*;) Have you looked at java.lang.Class and java.lang.reflect.Field? -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 7:50 AM To: '[EMAIL PROTECTED]' Subject: [OT - Java] How can I do this

RE: struts 2.0 naming conventions?

2002-09-27 Thread Taylor, Jason
what about objects from the session or context that you'd like to expose via form beans (which you can do currently)? Do *you* see a disconnect there? ;) -Original Message- From: Bartley, Chris P [PCS] [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 12:56 PM To: 'Struts Users

RE: struts 2.0 naming conventions?

2002-09-27 Thread Taylor, Jason
data is actually a subset of the data that can be sent via FormBeans, i.e. the set that are accessible and editable within an HTML form. It sounds like people are also using FormBeans to access data outside of forms in order to use the FormBean configuration as documentation of a sort of data

RE: How to share Tiles between webapps ?

2002-09-27 Thread Taylor, Jason
"webapps", not between "subapps". It is easy to do it between subapps. Not so easy between webapps ;-). Cedric Taylor, Jason wrote: >I've been able to share jsps between webapps using the "contextRelative" >attribute of the action forward and relative lin

RE: How to share Tiles between webapps ?

2002-09-27 Thread Taylor, Jason
ave like sourceforge, allowing subprojects to be hosted and managed by users. Sounds like this may be a good solution, as I plan to use Struts + Tiles. Thanks, James > -Original Message- > From: Taylor, Jason [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 27, 2002 11:57 AM >

RE: How to share Tiles between webapps ?

2002-09-27 Thread Taylor, Jason
I've been able to share jsps between webapps using the "contextRelative" attribute of the action forward and relative links everywhere. My default app is just a redirector to the appropriate sub-app so the user is *always* in a sub-app. -Original Message- From: Cedric Dumoulin [mailto:[E

RE: multiple sub projects

2002-09-27 Thread Taylor, Jason
Let's say you have a number of organizations using their own "flavors" of an application. You want to allow them to customize whatever features they want, but you don't want to have more code/JSPs/media than is necessary to provide the different behavior. You can think of it as the way manufactu

RE: Sub Project Example

2002-09-26 Thread Taylor, Jason
I can't give you my stuff, but I started with downloading Camino 2.0.3 and looking at the example 6 of "Horoscope IIex" or something like that. Camino is a tool that can purportedly manage sub-applications (I still haven't bothered to get the IDE itself running). -Original Message- From:

RE: multiple sub projects

2002-09-26 Thread Taylor, Jason
My interest in multiple sub-apps is more related to maintenence and post-launch life cycle issues. Modular development is nice, but to me fine-grained control of override behavior for every aspect of the deployed application is crucial-- that way I can add functionality or upgrade any feature of

RE: Startup Problem

2002-09-26 Thread Taylor, Jason
LOOK AT YOUR CONSOLE!! -Original Message- From: Kalaiselvan [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 6:32 AM To: Struts Users Mailing List Subject: Startup Problem Hi All, Here i'm facing serious problem.. I already configured test a

RE: multiple sub projects

2002-09-26 Thread Taylor, Jason
try -Original Message- From: Anthony Martin [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 9:50 AM To: Struts User List (E-mail) Subject: Re: multiple sub projects What about situations where a common .jsp file is used as a target for forward by multiple sub-applications

RE: multiple sub projects

2002-09-25 Thread Taylor, Jason
I think Eddie's right, with the only question being do you have levels of inheritance? Does "/foo/bar/baz" app inherit first from "/foo/bar" or does it just get "/foo"? On the other hand, if this question were seen as more a distraction than a useful discussion, I'd say table it for 1.1, and use

RE: multiple sub projects

2002-09-25 Thread Taylor, Jason
I think the current best practice is to have Ant or some build tool manage the files and eliminate redundancy. 1.1 Final will likely not have property or config inheritance, as far as I know... -Original Message- From: Anthony Martin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24

RE: problem getting indexed property values

2002-09-25 Thread Taylor, Jason
if you *really* want to do it this way, you need to have an embedded scriptlet: ].value" size="1"> or something like that better is to refer to a unique property of the action form which is the selected item, and a collection that houses a copy of the list of objects that possess the property l

RE: indexed attribute for html tags

2002-09-25 Thread Taylor, Jason
The documentation is not so clear on this. Basically, what happens in the case you cite is that a request parameter will be sent to the Action class you're submitting the form to that would look like "?id[34].propertyName=" if it were on a query string. If that doesn't make sense to you, yo

RE: Struts tags for display a collection of views

2002-09-25 Thread Taylor, Jason
I think you're talking about "paging" through a dataset a certain number of records at a time. If I'm right then we're talking about some sort of collection with a class or set of classes whose mission in life is to provide meta-data about the collection like "Page 5 of 6", "current selection is

RE: frames and struts

2002-09-24 Thread Taylor, Jason
Maybe not. I've logged a bug (#12600) against Struts 1.1 that deals with the inflexibility of the tag, and it may be the same basic problem. FormTag.java uses a method "getMappingURL" or something like that that always prepends your action with the context path (incl. module path for sub-apps).

RE: EJB / was Struts and high performance sites

2002-09-24 Thread Taylor, Jason
V-- What did you specifically see as a performance problem? Was it jndi lookups, I/O, serialization/deserialization, memory allocation, failover or what? I also think they are often mis- or over-used-- I'm interested in the cases you ran into. Do you care to share? -JT -Original Message

RE: Help needed with ActionForm Bean

2002-09-24 Thread Taylor, Jason
You may want to look at an example that uses DynaActionForm as the class associated with an action in the action-mappings node of the struts-config.xml -Original Message- From: Vincent Berruchon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 8:19 AM To: Struts Users Mailing

RE: Newbie question about action forms

2002-09-23 Thread Taylor, Jason
TECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 >-Original Message- >From: Taylor, Jason [mailto:[EMAIL PROTECTED]] >Sent: Monday, September 23, 2002 12:40 PM >To: 'Struts Users Mailing List' &g

RE: Newbie question about action forms

2002-09-23 Thread Taylor, Jason
Simon-- do you think you should use ActionForms to transfer objects that are shared between actions and never changed on the front end? I can see arguments either way, what's your opinion? -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Monday, September 23, 2

RE: This guy from the bank raised a question ?

2002-09-22 Thread Taylor, Jason
I've heard there are programs that randomly spit out excerpts from newsgroups that appear to all but the most discerning observer to be human and almost pass the Turing test-- maybe this is one such case. This group's getting a bit weird-- I'll be back in a day or two when it gets back to normal.

RE: I do not understand html:link with action

2002-09-22 Thread Taylor, Jason
sorry, my last post was a bit cryptic-- it was in response to Ralf's second question about multiple sub-apps, not his first one about html:link-- my bad! -Original Message- From: Taylor, Jason Sent: Sunday, September 22, 2002 2:17 PM To: 'Struts Users Mailing List' Subjec

RE: I do not understand html:link with action

2002-09-22 Thread Taylor, Jason
I found an example with Camino 2.0.3, a struts IDE. My stuff is unfortunately proprietary so I can't share it, but it's real simple to do. Basically, when you set up your web.xml, just add more "config/" init-params for your ActionServlet. Like this: action org.apache.str

RE: How to manage application properties?

2002-09-22 Thread Taylor, Jason
If you want to manage properties using Struts mechanisms, you can set up a message-resources reference to your property file (say, "ApplicationResources.properties") in the struts-config.xml file right after the action-mappings block: then call the protected getResources method within

RE: How to manage application properties?

2002-09-22 Thread Taylor, Jason
Properties are huge. I'd use properties rather than init-params unless I *knew* I had no use for sub-applications. When you use multiple sub-applications, the properties files can give you fine-grained control over copy, media references and sub-context-specific configuration data. Meanwhile, t

RE: Nested Indexed Property

2002-09-22 Thread Taylor, Jason
r example, what I would *like* to write is ].name" /> where the parameter index comes from the user selection on the previous page. Doesn't compile though!! Is there a way of writing the above that will compile? HM On 21 Sep 2002 at 13:44, Taylor, Jason wrote: > I'm no

RE: getting MessageResources within ActionForm.reset()

2002-09-22 Thread Taylor, Jason
7;t you do your initialization in the action method? Bryan - Original Message - From: "Taylor, Jason" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 21, 2002 12:06 PM Subject: getting MessageResources within ActionForm.reset() Since the ActionServlet.ge

RE: Nested Indexed Property

2002-09-21 Thread Taylor, Jason
I'd try using indexed first, that monkey stuff is so silly, it can be kind of frustrating. I've done lists of stuff like this before and I initially made the mistake of over-using nested tags. I found that if you have two or more dimensions of arbitrary listing then you need nested, but if you

RE: Nested Indexed Property

2002-09-21 Thread Taylor, Jason
I'm not sure how you mean "nested" since there's a tag library called "struts-nested" and I'm not sure if you're referring to that. If you're using that, I think you may not need to, depending on the complexity of your form. If you have only one dimension of arbitrary length, it's not really a

RE: getting MessageResources within ActionForm.reset()

2002-09-21 Thread Taylor, Jason
ithin ActionForm.reset() Why don't you do your initialization in the action method? Bryan ----- Original Message - From: "Taylor, Jason" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 21, 2002 12:06 PM Subject: getting MessageResources within

getting MessageResources within ActionForm.reset()

2002-09-21 Thread Taylor, Jason
Since the ActionServlet.getResources() method is now deprecated, you need a request and an Action object to get Resources. That's fine so long as you're operating within the Action class, but if you're in the ActionForm object and you want to get Resources, you can't because Action.getResources(H