RE: Graphical Configuration Utility

2008-12-17 Thread Fogleson, Allen
You probably ought to just compile for jdk6. Since javax.swing.GroupLayout is not available in jdk5, at least the user of jdk5 would get a message that is a bit better than the ClassNotFoundException you get in jdk5. Al -Original Message- > > If anyone wants to take a look at it

RE: Application based Security

2008-12-15 Thread Fogleson, Allen
We have a similar system of application security. What we do is create session scoped user object in our spring application.xml, then use a servlet filter to see if the user is there. The servlet filter redirects to login.action if the user is attempting to access a protected resource. Here are

RE: session handling

2008-12-03 Thread Fogleson, Allen
, December 03, 2008 8:26 AM To: Struts Users Mailing List Subject: RE: session handling --- On Wed, 12/3/08, Fogleson, Allen wrote: > I should be more explicit. When I say I recommend avoiding > using sessions with struts2 of course I meant I recommend > avoiding implementing SessionAware. When P

RE: session handling

2008-12-03 Thread Fogleson, Allen
AIL PROTECTED] Sent: Wednesday, December 03, 2008 8:19 AM To: Struts Users Mailing List Subject: RE: session handling --- On Wed, 12/3/08, Fogleson, Allen wrote: > In the case of using Sessions with Struts2 - by the way I > would recommend avoidin

RE: session handling

2008-12-03 Thread Fogleson, Allen
I should be more explicit. When I say I recommend avoiding using sessions with struts2 of course I meant I recommend avoiding implementing SessionAware. When Possible I try to do it the way I outlined using session scoped spring injections. (makes testing a whole lot easier too) Al -

RE: session handling

2008-12-03 Thread Fogleson, Allen
Hmm, I'm not sure I understand the question at all. 1) What version of struts are you in? Since you are referring to needing to understand how to use Sessions I assume struts 2, since struts 1 would be obvious, the action class has a request object you can get the session from. 2) What do you

RE: Is there any way to avoid session being created

2007-06-28 Thread Fogleson, Allen
-Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Thursday, June 28, 2007 10:48 AM To: Struts Users Mailing List Subject: Re: Is there any way to avoid session being created Fogleson, Allen wrote: > I assume you are using JSP? If so... well no there is

RE: Is there any way to avoid session being created

2007-06-28 Thread Fogleson, Allen
I assume you are using JSP? If so... well no there is not. JSP by default has a contract that a session is always available to it. Since it is always available an HTTPSession is always created if one is not available. We have gotten around this by having a session listener and cleaning up a session

RE: How to format util date with JSTL

2007-04-13 Thread Fogleson, Allen
Doesn't really belong in a struts list but here If you want them all in GMT you will have to convert them in your action. Al From: Vinit N [mailto:[EMAIL PROTECTED] Sent: Fri 4/13/2007 3:42 PM To: [EMAIL PROTECTED] Subject: How to format util date wi

RE: struts.action.extension question

2007-04-11 Thread Fogleson, Allen
Hmm Yes... What is the problem then? I don't think I understand it now either. Al >I believe I didn't follow the original issue, then. > >I thought that struts2 was swallowing the requests for the css files because >they fit the pattern specified by the filter. >I can't see how making them abso

RE: struts.action.extension question

2007-04-11 Thread Fogleson, Allen
Are you fronting with Apache? What we normally do if we are fronting with apache is serve all the static content from there (of course) so it never gets to the app server to cause this kind of confusion there. A simple JkUnmount /movie/*.css workerName will do it for Apache-Tomcat (or Apache-jbo

RE: [S2] Adding Calendar function to a form.

2007-04-11 Thread Fogleson, Allen
dding Calendar function to a form. Fogleson, Allen wrote: > Skip, > > There is a pretty good tutorial out there to create a component > using the struts tags - this is what I did for exactly what you are > doing. Granted it is not as "pretty" as stuff > here but it do

RE: [S2] Adding Calendar function to a form.

2007-04-11 Thread Fogleson, Allen
Skip, There is a pretty good tutorial out there to create a component using the struts tags - this is what I did for exactly what you are doing. Granted it is not as "pretty" as stuff here but it does the job and now that I have it written I can use it in all the places I need to. Check out

RE: [OT] M Galbreath

2005-07-06 Thread Fogleson, Allen
Actually there would not have to be an ethics clause. Maryland is a right to work state so the employer can fire you at any time for any reason. Aren't most states this way? Not that I get fired but I would love to know where in the US it is different. I know in some European countries (for instanc

RE: multi-level indexed proproerty validation

2005-04-27 Thread Fogleson, Allen
Wow There is something funky going on with either my mailserver or some server between me and the list. I have seen this msg like 9 times now, I checked the archives... it was sent once and I don't see all the list. Anyone else experiencing this? At least before I unsubscribe and re-subscribe :) E

RE: multi-level indexed proproerty validation

2005-04-27 Thread Fogleson, Allen
Nothing personal but how many times are you going to ask this? I think I have gotten it about 7 times now. Al -Original Message- From: Saul Qunming Yuan [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 3:27 PM To: user@struts.apache.org Subject: multi-level indexed proproerty vali

RE: Displaying Formatted Vector Data

2005-04-25 Thread Fogleson, Allen
You could use logic:iterate to iterate through the collection. Al -Original Message- From: Andrew Thorell [mailto:[EMAIL PROTECTED] Sent: Monday, April 25, 2005 4:51 PM To: Struts Mailing List Subject: Displaying Formatted Vector Data Greetings all, I was wondering if anyone had any i

RE: [OT] xdoclet actionforms

2005-04-21 Thread Fogleson, Allen
Nils, In your @struts.form you need to give it a name like... @struts.form name="accountForm" Al -Original Message- From: Nils Liebelt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 21, 2005 2:03 AM To: 'Struts Users Mailing List' Subject: [OT] xdoclet actionforms Hi, I am using

RE: Using checkbox to delete items

2005-04-20 Thread Fogleson, Allen
And why not to use FORM? Michael. On 4/20/05, Fogleson, Allen <[EMAIL PROTECTED]> wrote: > Ahh now I understand better. > > Well unfortunately the easiest way to get the checkboxes submitted is to > have them inside of a form. That doesn't necessarily mean an > but they m

RE: Using checkbox to delete items

2005-04-20 Thread Fogleson, Allen
Ahh now I understand better. Well unfortunately the easiest way to get the checkboxes submitted is to have them inside of a form. That doesn't necessarily mean an but they must be in a form of some type to get them submitted. Now with that said I am going to say there is a way to do it without

RE: Validation's disappearing messages

2005-04-20 Thread Fogleson, Allen
Christopher, It might help if you include portions of the offending code, struts-config and such. I have seen this before but usually it is the result of a bad config or such. Al -Original Message- From: Marsh-Bourdon, Christopher [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 20

RE: Using checkbox to delete items

2005-04-20 Thread Fogleson, Allen
Rafael, I am confused by what you mean. But yes you can have a checkbox and use it for deletion of objects. Presuming you have something like this: xxx xxx xxx You would get an array of user ids in the request that you can iterate through and delete. Note I just used the html markup there is no

RE: single action for multiple forms

2005-04-20 Thread Fogleson, Allen
Yes. :) Ok that is the short answer. The longer answer is that yes you can do it but it could be almost as easy to have separate actions depending on how you are handling the actionForm(s). There is nothing in the framework however that disallows the use of a single action for multiple forms. Con

RE: [OT] looking for salary surveys

2005-04-20 Thread Fogleson, Allen
Matt, Yup :) The only thing I miss about independent consulting is the $$. Of course once I average in the taxes, health insurance, disability, not having to do my own marketing, etc. I figure I came out about even, in fact in my case a little above even as I moved from the DC area to Atlanta. In

RE: [OT] looking for salary surveys

2005-04-20 Thread Fogleson, Allen
Erik, I also live in the Atlanta area. The going rate seems to be around 45-50 per hour for most of the "consulting firms" (body shops) assuming most of those do W2 instead of 1099 then you can probably get about 10-15 more per hour 1099. HTH, Al -Original Message- From: [EMAIL PROTECT

RE: html:text area

2005-04-20 Thread Fogleson, Allen
Are you tied to doing this real time? As in by keystroke? I would think you could do this with the validator framework in almost real time (well ok at submit) Al -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 11:21 AM To: 'Struts User

RE: HTML:tags in a Tag

2005-04-20 Thread Fogleson, Allen
Scott, The short answer is you can't use a "tag" in a taglib class.. however there are ways "around" that. You could subclass the tag so that the processing can still occur. You could (though this would likely be messy) call the taglibs classes yourself. But you would basically then have to manage

[OT] RE: AJAX: Whoa, Nellie!

2005-04-19 Thread Fogleson, Allen
The move towards specialization has ups and downs, depending on where you live, what you do, and what your company's management thinks. As we specialize into very discreet tasks (that presumably can have very precise requirements wrapped around them) the business owners begin to gain the ability to

RE: [ANN] Fw: Java DevCon 2005 - May 25

2005-04-19 Thread Fogleson, Allen
Dang, What's really bad is I live in Atlanta (well ok, north of Atlanta on the I-75 corridor) but I work in Chicago M-Thurs so I won't be able to make it. :( Al -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 19, 2005 12:20 PM To: Struts Users Ma

RE: Identify users

2005-04-18 Thread Fogleson, Allen
But if the user is in the session, then we know that when he submits a request, or at least when that browser submits a request it is the user who is in the session. You could store roles for the user in the session also and then just use the session.. if the role is not present populate it from th

RE: AJAX: Whoa, Nellie!

2005-04-18 Thread Fogleson, Allen
I agree, however I have worked for product companies who simply say "To use X you MUST have javascript enabled." In fact my last company did this. And after seeing the codebase shortly after starting there in their services division I understood why. A choice had been made early in the development

RE: AJAX: Whoa, Nellie!

2005-04-18 Thread Fogleson, Allen
But windows (at least in it's "newest" form - XP) doesn't ship with fdisk anymore :) (Heck the way windows is going pretty soon you wont be able to format either except at install time) Al -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Monday, April 18, 2005 1

RE: AJAX: Whoa, Nellie!

2005-04-18 Thread Fogleson, Allen
Although I will admit the usefulness overall of javascript and in specific AJAX's use thereof I still have an uneasy feeling whenever you are using JS. Users, in general, have become smarter security wise and many are turning off JS altogether. Unfortunately there is no other client side "secure" t

RE: cvsignore not ignoring

2005-04-14 Thread Fogleson, Allen
Don't feel bad Vic my .cvsignore ignores everything except my .project and .classpath files :) it just grates on me to see the little > in eclipse when I know it is just the stupid project and classpath files. Worse is the fact that because of that I always have to check to make sure I haven't miss

RE: accessing session variables in java Bean(In business logicLayer)

2005-04-13 Thread Fogleson, Allen
There isn't a "good" way to do this in my opinion other than by passing the values to the bean class. IMHO (and probably most others) things that tie you to the view technology (such as javax.servlet.*) shouldn't be present in the model. Maybe no one will ever create a swing client that calls your

RE: Test: Is the Struts list working?

2005-04-13 Thread Fogleson, Allen
YES -Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 8:16 PM To: Struts Users Mailing List Subject: Test: Is the Struts list working? TEST -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ --

RE: HTML Form

2005-04-12 Thread Fogleson, Allen
If there is a different rule on advocating Shale-Struts as Struts.next for Craig, that is understandable. But where in his post did he say that Shale-Struts was Struts.next? All he said was that the way the rest of the world is going (and imho HAS been going) with a variety of view techniques

RE: [OT]question about open source data base selection

2005-04-11 Thread Fogleson, Allen
In my experience at least two of the databases you list excel at something my one caveat is, that although postgresql does do everything you want I have found it to be rather slow under load. That may be because there is little documentation on tuning it and such. MYSQL simply screams at reads. I

RE: [OT]question about open source data base selection

2005-04-11 Thread Fogleson, Allen
Dave, I'm confused here. What do you mean by "link to it?" If I simply use the connector-J drivers in my appserver, or directly using the DriverManager in a program it is not a violation of the GPL. Mostly the GPL protects Connector-J itself, and any derived works. In fact the GPL provides for n

RE: [OT] Open source paginator

2005-04-07 Thread Fogleson, Allen
Comments inline -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 2:41 PM To: Struts Users Mailing List Subject: Re: [OT] Open source paginator N G wrote the following on 4/7/2005 3:31 PM: > Does anyone know of some open source paginator packa

RE: [resources] was: Re: RESEND: RE: Load message resourcesfromDB???

2005-04-07 Thread Fogleson, Allen
50 PM, Fogleson, Allen <[EMAIL PROTECTED]> wrote: > Ahh that makes sense. Yes. > > -Original Message- > From: James Mitchell [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 07, 2005 11:45 AM > To: Struts Users Mailing List > Subject: Re: [resources] was: Re: RE

RE: Error Messages from the Database - Simple method?

2005-04-07 Thread Fogleson, Allen
David, Well the answer is simple yet complex. First off what you want to do is of course not quite possible right now. MessageResources are loaded from a property file based on locale, and are initialized in the loadLocale method. Examination of that method shows that if the locale is already

RE: Anxiously awaiting...

2005-04-07 Thread Fogleson, Allen
Runtime and non runtime... The rt version allows the use of runtime expressions for attribute values while the regular one allows the use of expression language. Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 12:22 PM To: Struts

RE: [resources] was: Re: RESEND: RE: Load message resources fromDB???

2005-04-07 Thread Fogleson, Allen
Ahh that makes sense. Yes. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 11:45 AM To: Struts Users Mailing List Subject: Re: [resources] was: Re: RESEND: RE: Load message resources fromDB??? For localized configuration, I'm thinking Tile

RE: [resources] was: Re: RESEND: RE: Load message resources from DB???

2005-04-07 Thread Fogleson, Allen
James, I'm with you here. I haven't dug much into commons-configuration, but it seems to me there is little need for localized configuration information. Maybe I'm just not thinking outside the box here, but the configuration can be in virtually any locale. I can still configure something for Engl

RE: Anxiously awaiting...

2005-04-07 Thread Fogleson, Allen
But craig he used empLy :) -Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 11:03 AM To: Struts Users Mailing List Subject: Re: Anxiously awaiting... Note that "empty" is an operator name in the EL language, used to detect whether a pro

RE: How to set attribute in ForwardAction?

2005-04-07 Thread Fogleson, Allen
Public ActionMapping execute(.) { String myValue = request.getParameter("myRequestVal"); Request.setAttribute("myRequestVal", myValue); Return mapping.findForward("success"); } On Apr 7, 2005 11:21 PM, Fogleson, Allen <[EMAIL PROTECTED]> wrote: > You don

RE: Authentication question

2005-04-07 Thread Fogleson, Allen
It is certainly possible, however your old methodology could just as easily be used by creating a baseAction class and then extending that class. { Al -Original Message- From: Tom Ziemer [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 9:58 AM To: Struts Users Mailing List Subje

RE: How to set attribute in ForwardAction?

2005-04-07 Thread Fogleson, Allen
You don't need a form but you will have to create your own action... something like this execute method in it will do the trick: Action Execute method Public ActionMapping execute(.) { String myValue = request.getParameter("myRequestVal"); Request.setAttribute("myRequestVal", myValue)

RE: [OT]Tool to find amount of data transfered in web application

2005-04-07 Thread Fogleson, Allen
You might check out jmeter (http://jakarta.apache.org/jmeter/index.html) it might be able to do what you want. Don't remember off the top of my head if it includes bandwidth reports but I think it does. Al -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Thursday

RE: RESEND: RE: Load message resources from DB???

2005-04-06 Thread Fogleson, Allen
James, Does your JDBCResources differ greatly from the one that is in Commons-resources already? (I'm trying to remember which version of CR I checked out but I cant heh) i.e. does it take advantage of any container connection pooling etc? The one I see in cr basically does a connection to the db

RE: Html:messages vs html:errors

2005-04-06 Thread Fogleson, Allen
Michael, Are you capturing exceptions in the jsp? (i.e. do you wrap a giant try catch block or something?) I ask this because it must be finding the message since if a key is not found you should get an exception along the lines of "Cannot find message resource for key " (I cant remember the e

RE: RESEND: RE: Load message resources from DB???

2005-04-06 Thread Fogleson, Allen
Yes there is the OJBMessageResource class and I believe the same author wrote a HibernateMessageResource class. The class I wrote is mostly a "JNDIJDBCMessageResource" which has a timeout cache attached to it. The config is comprised of three elements (comma separated) 1) The JNDI Name of the d

RE: [OT] edit HTML code on fly using java

2005-04-06 Thread Fogleson, Allen
ce on doing so with speed, it will be for every request for that particular jsp Ashish --- "Fogleson, Allen" <[EMAIL PROTECTED]> wrote: > Actually if it is something that occurs on every > request im not even > sure I would go the filter route. Post processing > the h

RE: MessageResources

2005-04-06 Thread Fogleson, Allen
patch you're just as likely to have someone saying "code talks" - its a bit chicken and egg!!! Niall ----- Original Message - From: "Fogleson, Allen" <[EMAIL PROTECTED]> Sent: Wednesday, April 06, 2005 4:18 PM I know last week we had some discussions about Message

MessageResources

2005-04-06 Thread Fogleson, Allen
I know last week we had some discussions about MessageResources (mostly about pulling from a DB). I did a little digging and extending and came up with a quick hit that pulled the resources from a db. At the same time I rememebered an earlier discussion about having submessages in messages. That is

RE: [OT] edit HTML code on fly using java

2005-04-06 Thread Fogleson, Allen
Actually if it is something that occurs on every request im not even sure I would go the filter route. Post processing the html is going to be expensive in terms of performance then no matter what you do. I would probably reconsider the architecture and see if I couldn't somehow pre-process the htm

RE: [OT] edit HTML code on fly using java

2005-04-06 Thread Fogleson, Allen
I imagine there are several options here. 1) assuming you know the html is well formatted. And if you use the struts tags it is not necessarily well formatted (i.e. the base tag does not include a closing tag it renders as not ) you could simply run the html into jaxp 2) use an object orient

RE: Session Idle

2005-04-05 Thread Fogleson, Allen
That is exactly how the session timeout works. If the user is idle (i.e has not submitted a request in X time) then it is timed out (assuming X is the timeout) otherwise a request acts sort of as a "renew this session for X more minutes" Al -Original Message- From: Eain Mat [mailto:[EMAI

RE: [OT] RE: AW: JSF (the same old stuff?). We prefer Laszlo+Struts

2005-04-05 Thread Fogleson, Allen
Jack, Oh yeah, that has always been my argument... ok Im using spring. Its just a FRAMEWORK for pete's (usually I want to use a more.. ahem appropriate word there) sake. If I write a custom IOP framework I am allowed to use it, but because we are using "external" frameworks we suddenly have to jus

RE: [OT] RE: AW: JSF (the same old stuff?). We prefer Laszlo +Struts

2005-04-05 Thread Fogleson, Allen
Ohh I agree that Laszlo is pure view stuff. My contention is that because it is it doesn't belong in struts core really at all, but it is possible that a contrib module that integrates Laszlo into struts is possible. Al - To uns

[OT] RE: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Fogleson, Allen
Paulo, I can certainly agree that value to the customer is the prime ingredient in any solution. However the problem I have seen, at least here in the US (I can't speak to the west coast but I have had clients up and down the east coast, most of the Midwest, and very little on the west coast) is t

RE: Tag inside a cell.

2005-04-05 Thread Fogleson, Allen
CSS is probably the easiest solution. An alternate solution would be to subclass the bean:write tag, and add an attribute. Call it "alt" although in html that often means something else (hmm maybe "alttext" but whatever...) alt will be the text returned if the write would return null. In this cas

RE: Reloading ApplicationResources

2005-04-05 Thread Fogleson, Allen
Mark, Within struts messageResources are loaded at startup and that's it, they aren't loaded again unless the app is restarted of course. If you wanted this kind of functionality you would have to write a couple classes. 1) Write a MessageResourceFactory class that returns your specific messag

RE: [OT] tool to compate properties file

2005-04-04 Thread Fogleson, Allen
I don't know about gui utils but here is a command line util which will probably do what you want. http://www.javaworld.com/javaworld/javatips/jw-javatip135.html Al -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 2:40 PM To: user@struts.

RE: Multi Step Forms

2005-04-04 Thread Fogleson, Allen
Brian, But you don't HAVE to define a COMPLETE form in the configuration. At least if you want to give up DynaActionForm you don't. You can define your own form in a class that extends ActionForm. Granted you have to add this to the config but with Xdoclet, or even just a gui editor (James Holme's

RE: passing object in request from jsp to action

2005-03-31 Thread Fogleson, Allen
No, you weren't wrong. You cant set an attribute in the request uri. Those are only parameters, and there is no way from the jsp to populate an attribute and send it along with the request. Al -Original Message- From: Apte, Dhanashree (Noblestar) [mailto:[EMAIL PROTECTED] Sent: Thursday

RE: passing object in request from jsp to action

2005-03-31 Thread Fogleson, Allen
You serialize the object sort of. At least for a hacky solution. That is you add each attribute of it to the request. Lets say I have an object user I wish to pass and user has firstname and lastname as whatever. Going to actionA: Then in my action I can create a user object by getting all th

RE: passing object in request from jsp to action

2005-03-31 Thread Fogleson, Allen
You cant. Not from a jsp. The request is already processed by the time you see the jsp and is no longer available. All you can do coming FROM a jsp TO an action is to use the request parameters. This is no different than if you were going from jsp1 to jsp2 directly so it should be familiar to you

RE: [OT] Re: Iterate through blah.properties file

2005-03-30 Thread Fogleson, Allen
bundle in the action servlet ( ) then i sould be able to get a collection in the same manner and spare the action the work. Its pretty nit picky i know. -Ya think this is possible? ____ From: Fogleson, Allen [mailto:[EMAIL PROTECTED] Sent: Wed 3/30/2005 6:48 PM To: St

RE: [OT] Re: Iterate through blah.properties file

2005-03-30 Thread Fogleson, Allen
Actually it doesn't matter whether it's a servlet or a jsp. A JSP is a servlet after all. Now granted this is way off topic, and I would be like wendy and do it in an action then put the properties (or some other collection of the key-value pairs) into the request and do it that way. With that said

RE: prepopulation action form

2005-03-30 Thread Fogleson, Allen
Hmmm really? I do it all the time for request scope. Are you setting redirect="true"? that would likely mess it up. Al -Original Message- From: temp temp [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 9:44 AM To: Struts Users Mailing List Subject: RE: prepopulation action for

RE: prepopulation action form

2005-03-30 Thread Fogleson, Allen
Sure... Lets say jsp1 posts to actionA which forwards to jsp2 In actionA simply create and instance of the actionForm for jsp2, populate the parameter into it and save it in the appropriate scope. For instance if my actionMapping for actionB is: blah blah you would just do a: request.se

RE: Struts - Not instantiating Action class.

2005-03-29 Thread Fogleson, Allen
in that filter forward to the processAction.do Of course in all of these processAction.do and processAction should be renamed to whatever you have in your actionMappings. At any rate one of those three should get you to your goal. Al -Original Message- From: Shashikant Hire [mailto:[EMA

RE: Struts - Not instantiating Action class.

2005-03-29 Thread Fogleson, Allen
Hmm 1) Why can't it use the XX.do of struts? Its just a resource as far as an external system is concerned. 2) How do you know the action is not instantiated? Are you getting an error message in tomcat? Can you send that along if so. Without an error message I would be want to think that the act

RE: Load message resources from DB???

2005-03-29 Thread Fogleson, Allen
Dang, sorry I forgot to change the to field, and couldn't catch it before it went out. But at least it was only about 2K, so shorter than some reply's in here :) Al - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

RE: Load message resources from DB???

2005-03-29 Thread Fogleson, Allen
Mick, I figured you would want a copy so I'm sending without you asking :) Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 6:52 PM To: user@struts.apache.org; [EMAIL PROTECTED] Subject: RE: Load message resources from DB??? Even if

RE: Load message resources from DB???

2005-03-29 Thread Fogleson, Allen
Actually you have to extend MessageResources, and MessageResourcesFactory. I have a quick hack I did up tonight that works for a minimal case. (it does not do the substitution and such. But if you just have a key=value and value does not contain {x} in it then it will work. (Actually it will work

RE: Help Validator Not Validating on Tomcat?

2005-03-28 Thread Fogleson, Allen
Dave, Very true for the most part. The one case where I have seen the struts libraries in a common (be it tomcat, jboss, weblogic, etc) directory is when you want to enforce a certain version across all applications on the server. Mainly this is in "productized" applications and allows product sup

RE: Bean linebreakes

2005-03-24 Thread Fogleson, Allen
In the jsp do... Al -Original Message- From: Rutger Heijmerikx [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 3:06 AM To: user@struts.apache.org Subject: Bean linebreakes Hello, Does anyone has experience with linebreaks and beans? I retreive content from a MySQL database

RE: Place message in jsp from action?

2005-03-23 Thread Fogleson, Allen
You can do this 1) create an ActionMessages object and populate it with the ActionMessage you wish to show. 2) in the jsp include the following snippet: ${message} You can of course format that however you want. Al -Original Message- From: Scott Purcell [m

RE: Action Question

2005-03-23 Thread Fogleson, Allen
Before forwarding to failure try this... Action: Public ActionForward execute(Mapping mapping Form form, ...) { YourFormClass newuserbeanform = (YourFormClass)form; . . . boolean recordInsert = userbo.insertNewUser(); //By The way this looks backwards... I thought true

Something strange is happening

2005-03-22 Thread Fogleson, Allen
Maybe it is my system but something strange started happening this morning. I have an app that I have been deploying on tomcat, and I needed to add some ejb's to the app so I went to jboss. (that's just for background since it may be a weird jboss problem) The app uses tiles and was deploying fine

RE: Struts Portlets, jBoss Portal

2005-03-16 Thread Fogleson, Allen
Karan, The problem is you are submitting to struts. About a year and a half ago we had this same problem. We had legacy apps running that the client wanted to display inside a portal. The major portal vendors and J2EE portal vendors (bea etc) all have solutions to do this that you can purchase.

RE: nested tags

2005-03-10 Thread Fogleson, Allen
Nope, Part of the problem here is that the struts tag is rendered as The other part is that you would have to write some kind of preprocessor for the page that basically acts as a web container to process your tags, then pass the preprocessed page to the jsp compiler. Its not "un-doable" but

RE: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Fogleson, Allen
Jeff, Not to rain on the parade but the parenthetical abstract to me doesn't mean "optional" but it is a definition of the "style" of class. Its sort of like: we need a (male) soldier to join the infantry. Male is not optional - it is a description of the type of soldier. (my old military sense

RE: Eliminate Setup Actions

2005-03-09 Thread Fogleson, Allen
What I based it on was a project where we had 3 apps being developed and I got injected at the user acceptance testing phase. 2 used Spring and one did not. The client chose to not use EJB Facades, but regular POJO Facades. In the 2 that used spring it took me approximately 20 minutes to change b

RE: Eliminate Setup Actions

2005-03-09 Thread Fogleson, Allen
I think the real power here is NOT in whether it is more or less code, but the move to a declarative way of handling the setup. I can compare it to the bean factory portion of spring. Technically I may write more code to use Spring. I certainly have to include other resources (spring jars) to use

RE: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Fogleson, Allen
Well maybe other than the singleton pattern :) I don't know, in fact, if a single class can have a pattern. I think that most, if not all, of the patterns only make sense in combination with other classes. - To unsubscribe,

RE: Eliminate Setup Actions

2005-03-09 Thread Fogleson, Allen
Well im in the camp of "never show a jsp if you can get away with it" so almost everything in the app is fronted by an action. Now lets say I have a class that gets a bunch of stuff out of a db, caches it, etc for dropdowns or whatever. And let's further suppose that the page (or tile) I want t

RE: overwriting default tile attribute value

2005-03-09 Thread Fogleson, Allen
In the tiles-def.xml subclass the common.default, then use an action to forward to the subclassed definition. Of course if you are using the tiles taglib in your jsps... you are going to have to write a bunch of jsp's to do it. Doing it with struts built in support... Al ---

RE: MVC Frameworks

2005-03-09 Thread Fogleson, Allen
Yeap that is the game. I have been a first option kind of guy for a long time. This particular project was not mine at inception, or construction, I ended up with it in my lap at transition time. Unfortunately for me I had to do the apologizing/explaining :) Al -Original Message- From: S

RE: MVC Frameworks

2005-03-09 Thread Fogleson, Allen
It's not a matter of it impacting the UI, it's a matter of approval of architecture. The client of course approves the entire architecture and though ultimately they allowed Spring it was not "specified in the architecture docs" as the framework we would use to manage the instantiation. The real

RE: MVC Frameworks

2005-03-08 Thread Fogleson, Allen
I think the biggest argument was stated by Nicolas. I use struts because I like it sure, but I really use it because it is the framework that the client will accept and pay for and my developers know best. We recently used (portions) of Spring on a project and had a heck of a time getting the cl

RE: Action without ActionForm

2005-03-03 Thread Fogleson, Allen
Yeap, The same way you would with a form, just don't use use Al -Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 8:06 AM To: Struts Users Mailing List Subject: Re: Action without ActionForm ah, ok. Yes, I'm using as I want a button r

RE: Action without ActionForm

2005-03-03 Thread Fogleson, Allen
In the page with the button are you using ??? if so you MUST have a form, you can get around this of course by not using . Al -Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 7:49 AM To: Struts Users Mailing List Subject: Re: Action witho

RE: How to reduce jsp files by using Tiles?

2005-03-02 Thread Fogleson, Allen
To: Struts Users Mailing List Subject: Re: How to reduce jsp files by using Tiles? Thank you, Allen. I have tried your advice. But I do not know how write that entry in struts-config.xml if change it to because I do not have a form to associate the link On Wed, 2 Mar 2005 22:06:14 -0500, Fogle

RE: How to reduce jsp files by using Tiles?

2005-03-02 Thread Fogleson, Allen
p? If yes, then I have to write 2 jsp files for each change of body layout. Can I write only 1 jsp file for each change of body layout? On Wed, 2 Mar 2005 18:21:44 -0500, Fogleson, Allen <[EMAIL PROTECTED]> wrote: > Eric is correct. If you use the tiles-def.xml file y

RE: How to reduce jsp files by using Tiles?

2005-03-02 Thread Fogleson, Allen
Eric is correct. If you use the tiles-def.xml file you can get rid of a lot of duplication. In this case you could do exactly what you want by creating definitions in the xml that extend the original and only change the body portion. To me it is a lot easier to use the tiles-d

RE: Spring Framework Good or Bad

2005-03-02 Thread Fogleson, Allen
This is probably a personal opinion based on my having more experience with Struts but we recently did 3 fairly large sized apps 2 of which we used struts/spring and the third (which was actually the first) used just struts. All three have the potential to use EJB or POJO Facades. We originall

  1   2   >