Re: Example of a non-threadsafe Action?

2003-12-23 Thread Sgarlata Matt
the instances of the class. > Neither modifier affects how the SimpleDateFormat uses internal instance > variables. > > -Richard > > -Original Message- > From: Sgarlata Matt [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 23, 2003 11:40 AM > To: Struts Users Mailing

Re: Example of a non-threadsafe Action?

2003-12-23 Thread Sgarlata Matt
What if the SimpleDateFormat variable is declared as final and/or static? Thanks, Matt - Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Nifty Music" <[EMAIL PROTECTED]> Sent: Tuesday, December 23, 2003 2:35 PM Subj

Re: Initializing DynaActionForm

2003-12-22 Thread Sgarlata Matt
The correct syntax is I usually look directly at the DTD (struts-config_1_1.dtd) when I have questions like this. Matt - Original Message - From: "Marco Mistroni" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Monday, December 22, 2003 12:17 PM Subject:

Re: [OT] Debugging w/Eclipse Tomcat Sysdeo Plugin? Help!

2003-12-19 Thread Sgarlata Matt
I think another possibility would be to 1) Delete the classes directory 2) Add your project to CVS Now you don't have the classes directory in CVS, but of course if someone pulls the code from CVS they can build the classes directory for themselves using Eclipse, Ant, or whatever. Matt - Orig

Re: Checkboxes with session-scoped DynaActionForms

2003-12-17 Thread Sgarlata Matt
Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 17, 2003 3:03 PM Subject: RE: Checkboxes with session-scoped DynaActionForms > From: Sgarlata Matt [mailto:[EMAIL PROTECTED] > Also, It looks like I am going to have to subclass > DynaActionForm or DynaValidatorForm so th

Checkboxes with session-scoped DynaActionForms

2003-12-17 Thread Sgarlata Matt
Does anyone know a good reference on how to use checkboxes with session-scoped DynaActionForms? The problem I am running into is that when the form bean is session scoped, the checkbox "sticks" to always being checked even if the user unchecks the checkbox. This makes some sense to me, because I

Re: Keeping Actions clean - separating actions from businessmodel from persistence

2003-10-15 Thread Sgarlata Matt
ing the right DaoManager implementation, and retrieving the > needed DAO classes... > > Anyone make the business entity classes themselves responsible for finding > and using their respective dao's (say, when an Order is issued a save() > command)? > > Thanks for all your

Re: [Poll] Action Form data types

2003-10-13 Thread Sgarlata Matt
#2, and sometimes #1 - Original Message - From: "Mainguy, Mike" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Green, Matt" <[EMAIL PROTECTED]> Sent: Monday, October 13, 2003 3:37 PM Subject: [Poll] Action Form data types > Here's my weekly(ish) question: > For the purposes of this dis

Re: HashMap with options

2003-10-10 Thread Sgarlata Matt
You might want to investigate using a List of LabelValueBean objects instead. Matt - Original Message - From: "Manav Gupta" <[EMAIL PROTECTED]> To: "Struts Developers (E-mail)" <[EMAIL PROTECTED]> Sent: Friday, October 10, 2003 12:24 PM Subject: HashMap with options > Hi > > Can i use H

Re: Keeping Actions clean - separating actions from businessmodel from persistence

2003-10-10 Thread Sgarlata Matt
- Original Message - From: "Sasha Borodin" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, October 10, 2003 8:33 PM Subject: Re: Keeping Actions clean - separating actions from businessmodel from persistence > Matt, thanks for your quick feedback. >

Re: Keeping Actions clean - separating actions from business modelfrom persistence

2003-10-10 Thread Sgarlata Matt
I use my own framework because I don't know any better. I am using Torque as my underlying persistence mechanism, and I have introduced a very simple level of indirection that I think should keep me independent of Torque in the future (I plan to swap in Hibernate or OJB on the next app I work on).

Re: [OT]Keel

2003-10-10 Thread Sgarlata Matt
I'm interested in Keel also. I heard Joe Germuska collectively call the following products 'microkernels': Hivemind http://jakarta.apache.org/commons/sandbox/hivemind/ Keel http://keelframework.org/ Spring http://www.springframework.org/ PicoContainer http://www.picocontainer.org/ I've only done

Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's

2003-10-03 Thread Sgarlata Matt
I've done a good bit of research on this, and here's the general impression I get from various different sources: * EJBs are good when you need very advanced enterprise features like advanced transaction support and a distributed architecture. However, you need to be careful that your EJBs are de

Re: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Sgarlata Matt
There is a package in BeanUtils devoted to dealing with locales. The package documentation for this package (org.apache.commons.beanutils.locale) states, "Locale-aware extensions of the standard beanutils classes. This package allows locale-dependent population of JavaBean's.". If you're interest

Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Sgarlata Matt
Definitely not old; I love the polls! There is not a single regular ActionForm in my project. #2 all the way. I will also mention that Craig McClanahan did some speed tests of ActionForms vs. DynaActionForms and since ActionForms use reflection whereas DynaActionForms do simple method calls on M

Re: Servlet action is currently unavailable

2003-09-30 Thread Sgarlata Matt
Try checking in the Tomcat log. You can usually find the source of the error there. The Tomcat log is in <>\logs. If your Tomcat is set up like mine, the correct log file will be localhost_log.2003-09-30.txt Matt - Original Message - From: "Parthasarathy Kesavaraj" <[EMAIL PROTECTED]>

Re: Accessing action error problem

2003-09-27 Thread Sgarlata Matt
You can use the attached JSPs to display all the attributes in the request. Just look for the attribute that stores the errors. In general when I was starting with Struts I found the attached JSPs very helpful because you can see the types of information Struts stores for you and where it is store

Re: Reasons for using Struts

2003-09-27 Thread Sgarlata Matt
http://jakarta.apache.org/struts/userGuide/introduction.html - Original Message - From: "Martin Gainty" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 27, 2003 12:53 AM Subject: Reasons for using Struts What are the reasons for using Struts? That is what are the Re

Re: BeanMapping WAS: [Poll] action mappings

2003-09-27 Thread Sgarlata Matt
ke > you mention, but I only use strings, since incorrect form entries for > non-string types don't make it back into the form after validation failure. > > And I would want to have types in my transfer objects. > > Adam > > On 09/26/2003 10:44 PM Sgarlata Matt wrote:

Re: BeanMapping WAS: [Poll] action mappings

2003-09-26 Thread Sgarlata Matt
- Original Message - From: "Mainguy, Mike" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, September 25, 2003 3:35 PM Subject: BeanMapping WAS: [Poll] action mappings > I think your way is perfectly acceptable. I like to try and use the > suppli

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
e form bean for design #3 :) Matt - Original Message - From: "Shane Mingins" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, September 25, 2003 4:42 PM Subject: RE: [Poll] action mappings > > --

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
that #1 is pretty popular > and I want to make sure I'm not missing some significant advantage to doing > it that way. > > -Original Message- > From: Sgarlata Matt [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 25, 2003 10:14 AM > To: Struts Users Mailing

Re: [OT] Application Config Mgmt

2003-09-25 Thread Sgarlata Matt
We do development on Tomcat and testing/production on Oracle 9iAS, release 2. To accomplish this we: 1) Store our main directory with Tomcat files in our source repository (say in $\PROJECT) 2) Store any Oracle-specific configuration info is in a separate directory WITH A DIRECTORY STRUCTURE MIRRO

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
How is #3 different from #5? Matt - Original Message - From: "Richard J. Duncan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 25, 2003 10:29 AM Subject: RE: [Poll] action mappings What about: #5: A DispatchAction (struts 1.1) with a single action map entry: /m

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
> security context as the input, and a List or DynaBean as the output. This > let me completely decouple my data access layer from any web stuff and use > request parameters to determine which business operation I was performing. > > > -Original Message- > From: Sgarlata

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
I think for #3 it would be silly not to use a DispatchAction or LookupDispatchAction, right? It seems like you would also want DispatchAction or LookupDispatchAction for #1, but I really don't understand why people are using #1 at all. Is there some reason multiple action mappings are needed for

Re: any replacement for include file dynamic

2003-09-23 Thread Sgarlata Matt
Hehe, unfortunately can't have it both ways ;) You'll have to either use static includes or start storing things in the request. Matt - Original Message - From: "Gandle, Panchasheel" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, September 23, 20

Re: any replacement for include file dynamic

2003-09-23 Thread Sgarlata Matt
You would have to use because <%@ include %> does the include at compile-time. does includes at runtime. Matt - Original Message - From: "Gandle, Panchasheel" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, September 23, 2003 3:48 PM Subject: an

Re: Connection Pooling + User Authentication

2003-09-23 Thread Sgarlata Matt
- Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, September 23, 2003 1:41 PM Subject: Re: Connection Pooling + User Authentication > For Oracle in particular, I've had a lot of success doing things base

Re: [Poll] action mappings

2003-09-23 Thread Sgarlata Matt
#3 - almost all of my actions descend from DispatchAction - Original Message - From: "Mainguy, Mike" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 23, 2003 11:05 AM Subject: [Poll] action mappings > I have yet another opinion poll for struts-user... > > What are fo

Re: .do as welcome-file

2003-09-23 Thread Sgarlata Matt
Unfortunately, you cannot do that. You must specify a physical file. A standard technique is to make your welcome file a .jsp that redirects the user to your struts start page, in this case /start/start.do. You can probably find more info about this in the archives. Matt - Original Message

Re: What's an ActionForm? - best practice?

2003-09-22 Thread Sgarlata Matt
This issue was discussed in two different threads last week: http://www.mail-archive.com/[EMAIL PROTECTED]/msg81101.html and also in a post called "action form design question" which i am having trouble bringing up b/c of the very generic subject line ;) Matt - Original Message - From:

Re: [repost] Special view information -> ActionForm or request?

2003-09-18 Thread Sgarlata Matt
- Original Message - From: "Robert Taylor" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, September 18, 2003 2:02 PM Subject: RE: [repost] Special view information -> ActionForm or request? > Sorry for jumping in, but I've been lurking on this thr

Re: [repost] Special view information -> ActionForm or request?

2003-09-18 Thread Sgarlata Matt
ass to stuff all my lookup stuff into the request > >object manually. I have, however, used collections in the formbeans for > >this. I can't, off the top of my head, think of any significant > >advantages to using a form bean. One disadvantage, however, is you can > >

Re: [repost] Special view information -> ActionForm or request?

2003-09-18 Thread Sgarlata Matt
y significant advantages to using a form > bean. One disadvantage, however, is you can only have 1 form bean per > action, so lookups across multiple actions will need to have duplicate code. > > > -Original Message- > From: Sgarlata Matt [mailto:[EMAIL PROTECTED] >

Re: Tool to diagnose J2EE/Struts/Oracle problem

2003-09-18 Thread Sgarlata Matt
ng for weeks I still forget to close connections weekly and AbandonedObjectPool comes to the rescue :) > Stella > > > -Original Message- > From: Sgarlata Matt [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 17, 2003 10:56 PM > To: Struts Users Mailing List >

Re: REPOST: IMP :: Defining a single parameter when returning Collection of F orm Beans as Request Attribute

2003-09-18 Thread Sgarlata Matt
If you are using then the hidden parameter you are passing MUST be a property of the form bean. A simple work-around is to just use directly instead of using the Struts HTML taglib. Search results is a long discussion, and I'm not sure what the best practices are. There's no info in the archiv

Re: Validation Failed error message

2003-09-18 Thread Sgarlata Matt
I'm not sure I understand the problem here, can you send the full error message you are receiving? Your getters and setters are correct for the contactId parameter. FYI here are some useful links for more information about correct JavaBeans naming conventions. http://jakarta.apache.org/commons/be

Re: org.apache.commons.digester.Digester error

2003-09-18 Thread Sgarlata Matt
It sounds like you might have installed the JSTL correctly. Did you copy the appropriate JARS into your WEB-INF/lib directory and the TLDs into your WEB-INF directory? I believe this is all that is required for installation. Also make sure that you are referring to the TLDs correctly if you also

Re: apache-like logs

2003-09-18 Thread Sgarlata Matt
Take a look at jakarta commons logging. - Original Message - From: "Frédéric Dreier" <[EMAIL PROTECTED]> To: "struts user" <[EMAIL PROTECTED]> Sent: Thursday, September 18, 2003 7:32 AM Subject: apache-like logs > Hi, > > Is there a way to make tomcat generating apache-like logs? In orde

Re: [OT] RE: Connection Pooling

2003-09-18 Thread Sgarlata Matt
Were the google resources no good? The DBCP front page also gives a good, though concise definition. Basically, if you have an app with more than 1 or 2 users you should definitely use it. Also, see post called "Re: Connection Pooling" by Kwok Peng Tuck earlier this week. Matt - Original Me

[repost] Special view information -> ActionForm or request?

2003-09-18 Thread Sgarlata Matt
Sorry for the repost. Has this already been discussed? I couldn't find it in the archives. Original message: Sometimes views need special information to display correctly, like a bean with the values needed to render a dropdown list. Is it considered a Struts best-practice to include this info

Re: Tool to diagnose J2EE/Struts/Oracle problem

2003-09-17 Thread Sgarlata Matt
You should investigate using connection pooling, such as is offered by the DBCP project, which is a Jakarta Commons subproject. Garbage collection does not release database connections. I'm not sure on all the details why not, but there are other reasons to use connection pooling such as performa

Re: Portals and managing UI changes

2003-09-17 Thread Sgarlata Matt
- Original Message - From: "Ghanakota, Vishu" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 7:38 PM Subject: Portals and managing UI changes > Hi, > I have been using Struts for a while and is working great. Now some of our

Re: [scaffold] session object

2003-09-17 Thread Sgarlata Matt
Will request.getSession() work? - Original Message - From: "Lázaro Miguel Fung" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 7:50 PM Subject: [scaffold] session object > Hi > > Can any body tips me about get session object va

Re: Slow file upload?

2003-09-16 Thread Sgarlata Matt
To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, September 15, 2003 10:40 PM Subject: Re: Slow file upload? Sgarlata Matt wrote: >Rob, why is it faster to upload all on one machine instead of going across a >LAN? It seems to me uploading on the same

Re: [OT] Subject line filter tag

2003-09-16 Thread Sgarlata Matt
I filter based on the To address (all emails to [EMAIL PROTECTED] go into my Open Source\Struts folder). Is this not possible with your mail client? Matt - Original Message - From: "Adam L" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, September 1

Re: Slow file upload?

2003-09-15 Thread Sgarlata Matt
Rob, why is it faster to upload all on one machine instead of going across a LAN? It seems to me uploading on the same machine should be as fast as a file copy. What am I missing? Thanks, Matt - Original Message - From: "Robert Leland" <[EMAIL PROTECTED]> To: "Struts Users Mailing List

Re: One form, multiple JSPs, multiple validations

2003-09-15 Thread Sgarlata Matt
Check out http://jakarta.apache.org/struts/userGuide/dev_validator.html Under "Pluggable Validators" there is a section called "Multi Page Forms". I've not done this before, but I think this wizard-like functionality you are trying to build is built directly into Struts and the Validator. Matt -

Special view information -> ActionForm or request?

2003-09-15 Thread Sgarlata Matt
Sometimes views need special information to display correctly, like a bean with the values needed to render a dropdown list. Is it considered a Struts best-practice to include this information in the ActionForm or should the Action which prepares this information store the information in the reque

Re: suggestion: RequestProcessor hooks/plugins instead of subclassing?

2003-09-12 Thread Sgarlata Matt
Check out the discussions on the struts-dev list concerning the sandbox Chain component and decomposable request processors: http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=struts-dev_jakarta_apache_org&restrict=&exclude=&words=Decomposing+RequestProcessor+ Matt -

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
David Graham wrote: That's correct, the default is true. Maybe it's broken when you don't provide a name attribute? I agree; I will add this info to BugZilla. Thanks again for all your help. David Matt - To unsubscribe, e-mail:

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
David Graham wrote: I'm confused by your setup: Yeah, I was trying random stuff. The final thing that worked was: maxlength 2000 I think this is a bug (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23034) because resource="true" should not be required, right? The nam

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
/userGuide/dev_validator.html Thanks for your help Mike & David, Matt Mike Kienenberger wrote: Sgarlata Matt <[EMAIL PROTECTED]> wrote: I'm having some trouble using the maxlength validation and I was hoping someone could give me some help. I have a form with one required field and one fi

Re: ReloadAction

2003-09-09 Thread Sgarlata Matt
I believe the ReloadAction was removed in Struts 1.1 because it didn't work anymore because of support for multiple modules. However, some application servers will let you reload a context. Tomcat allows you to do this from the Tomcat manager, which is accessible from http://localhost:8080/ma

[validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
I'm having some trouble using the maxlength validation and I was hoping someone could give me some help. I have a form with one required field and one field with a maximum length of 2000 characters. When input validation fails for both fields I get the following messages (text in parentheses

Re: Warning: Page has Expired The page you requested was createdusing information

2003-09-02 Thread Sgarlata Matt
d, the behaviour should be the same for all the pages, but only few pages I'm getting this messages. From: "Sgarlata Matt" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED

Re: Warning: Page has Expired The page you requested was createdusing information

2003-09-02 Thread Sgarlata Matt
Do you have the browser's cache disabled in your browser? If that's not what's causing the message then I'm stumped :) Matt Anand M S wrote: I looked into code, I did not have any meta tags in my code, but still the cache is disabled. From: "Sgarlata Matt"

Re: Warning: Page has Expired The page you requested was createdusing information

2003-09-02 Thread Sgarlata Matt
Here is the beginning of one of my web pages... EBS Plans & Programs - Link Detail View Matt Anand M S wrote: Thanks for your reply Matt. Please can you provide code sample of meta tags. Thanks, Anand From: "Sgarlata Matt" <[EMAIL PROTECTED]> Rep

Re: Warning: Page has Expired The page you requested was createdusing information

2003-09-02 Thread Sgarlata Matt
I think that happens when you combine a form POST with meta tags that specify to the web browser that cacheing of the web page shoudl be disabled. Matt Anand M S wrote: Hi All, Its not related to struts, but I need help. If I submit a form and if I come back using browser back button browser d

Re: AW: What in the world is tag for???

2003-09-01 Thread Sgarlata Matt
I'm not sure what you bean by "declare a bean in application scope". You can definitely store any type of java object in the application scope, including java beans. If you mean can you have an ActionForm with scope="application" in the struts-config file, I seriously doubt this is supported be

Re: AW: What in the world is tag for???

2003-09-01 Thread Sgarlata Matt
I'm not sure what you bean by "declare a bean in application scope". You can definitely store any type of java object in the application scope, including java beans. If you mean can you have an ActionForm with scope="application" in the struts-config file, I seriously doubt this is supported be

Re: Problem switching to Struts 1.1

2003-09-01 Thread Sgarlata Matt
Yes, this does look like a problem with your logging configuration. I am no expert on this issue, but I will tell you how I have log4j set up for my application. You must have a file called commons-logging.properties and a file called log4j.properties in the root of your /WEB-INF/classes direc

Re: jsp question

2003-09-01 Thread Sgarlata Matt
This sounds like a pretty fancy requirement to me. Why are you doing this? Probably what you would have to do is define the Struts ActionServlet to map to all .do requests and some other servlet to map to all .jsp requests. Then you could only let some JSPs display instead of letting them al

Re: pop up window

2003-09-01 Thread Sgarlata Matt
Probably the easiest solution would be to use the javascript confirm() function before submitting the form. Will this work for you or does it really need to be a popup window? Matt David Terry wrote: How can I read the values out of a page, do some processing on those values, display a pop-up

Re: Resource Bundle Inheritance - please vote!

2003-08-27 Thread Sgarlata Matt
Craig R. McClanahan wrote: On Wed, 27 Aug 2003, Sgarlata Matt wrote: Two quick comments on this general topic. - You'll have a lot better chance influencing whether this actually happens to Struts by raising it in an enhancement request http://nagoya.apache.org/bugzilla/ and ta

Re: Resource Bundle Inheritance - please vote!

2003-08-27 Thread Sgarlata Matt
hat what you mean? Adam On 08/26/2003 03:53 PM Sgarlata Matt wrote: There was discussion a while back about allowing resource bundles to inherit from other resource bundles. I prepared a patch which is an important step to allow this to happen and it looks like it's dying in BugZilla.

Re: Forward to external url

2003-08-26 Thread Sgarlata Matt
You probably want to change your forward declaration so that it is a redirect like this: https://wcs-kbarnwell.com/index.jsp"; redirect="true"/> Raj Atchutuni wrote: I am trying to forward to an external link (commerce server). Here is my code. Can anyone tell me what is wrong with it. Is ther

Resource Bundle Inheritance - please vote!

2003-08-26 Thread Sgarlata Matt
There was discussion a while back about allowing resource bundles to inherit from other resource bundles. I prepared a patch which is an important step to allow this to happen and it looks like it's dying in BugZilla. I would appreciate anyone who would like to see this functionality make it

Re: Suggestions for Calendar Popup taglib?

2003-08-18 Thread Sgarlata Matt
Ack! Too many Matts ;) More comments below... Matt Raible wrote: Cool Matt - I've always loved you pop-up calendar. Does this mean it'll write JS for the popup calendar too? I like the version - which requires a hidden div and such - so I hope you'll incorporate this. Maybe something like:

Re: Suggestions for Calendar Popup taglib?

2003-08-18 Thread Sgarlata Matt
I think that's a great idea... thanks :) I think it'd be cool if you included your color chooser popup as well. Actually I'll be honest, I already implemented this in exactly the way you describe for a project I am working on. If you like I can investigate whether my company would allow this

Cleaning Sessions (was: How to work with DispatchAction ?)

2003-08-16 Thread Sgarlata Matt
e... Thanks, Erez -Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Saturday, August 16, 2003 9:36 PM To: Struts Users Mailing List Subject: Re: How to work with DispatchAction ? (please help) Erez Efrati wrote: Matt, thanks for replying, I almost though I'

Re: How to work with DispatchAction ? (please help)

2003-08-16 Thread Sgarlata Matt
to 'edit' or 'create' but it cannot know that once the value has changed to 'update'. That is why I keep an 'action' parameter on the side to differ between the two. Is there a better way - I hope there is :) Erez -Original Message- From:

Re: From prepopulation, validation and reset

2003-08-16 Thread Sgarlata Matt
Hi Craig, I've actually never used the validate() method at all. Instead, I set up a DispatchAction with 3 methods (add, edit, save) and 2 forwards (viewForm, and viewDetails). When the input validation fails in the save method, the user is forwarded to the viewForm forward. When the user i

Re: Required Template Variables

2003-08-16 Thread Sgarlata Matt
I'm not sure exactly what you are trying to do, but I have 2 different ideas you can choose from: 1) Subclass the Action class to do this for you, and have all of your Action classes extend from this new subclass. 2) Store this information in the session so you don't have to pass it back and fo

Re: Problems switching to Struts 1.1

2003-08-16 Thread Sgarlata Matt
1.1 Final is out... why not work with that instead of rc2? Matt Marco Tedone wrote: I tried also with rc1 (it works) and rc2 (it doesn't work). The reason must be some major changes between rc1 and rc2. Marco - To unsubscribe,

Re: How to work with DispatchAction ?

2003-08-16 Thread Sgarlata Matt
Erez Efrati wrote: I am trying to work with the DispatchAction that everybody is saying is such a good type of action. Say I have a 'RegAction' sub-classing DispatchAction with the following methods: edit, create, and save. I use 2) In RegAction.save(), after I've validated the form and found er

Re: PropertyMessageResources - have I outgrown it?

2003-08-15 Thread Sgarlata Matt
You have definitely outgrown PropertyMessageResources ;-) You would be much better off with some sort of object-to-relational mapping tool. I use Torque, but I have heard a lot of talk about Hibernate on this list. Good luck, Matt - Original Message - From: "Sasha Borodin" <[EMAIL PROTE

Re: Iterate Tag Question

2003-08-15 Thread Sgarlata Matt
You can implement this just as you would in any other programming environment: by saving the previous and the current value in different variables. You can do this using scriptlets, as I see you doing here. You can also do this using the JSTL (for more info, see the Jakarta Taglibs project), w

Re: and multiple modules

2003-08-14 Thread Sgarlata Matt
Still not working for me. I tried these 5 things: I still get: org.apache.jasper.JasperException: ServletException in '/datasharing/multiItem-body.jsp': Cannot retrieve definition for form bean null Any more ideas? Thanks again, Matt - Original Message - From: "Reinhard" <[EMAI

Re: question about modules

2003-08-14 Thread Sgarlata Matt
I am having difficulty with multiple modules also, but I do have answers to some of your questions. > - Is it possible, to do a transparent fallback for messages, tiles and/or > images, common to all modules ? For images I actually wrote my own custom tag, which is ugly but I didn't want images

Re: displaying errors relative to a form within JSP

2003-08-14 Thread Sgarlata Matt
I think the easiest thing to do would be to give the fields different names, say criteria1 and criteria2. Perhaps not the most elegant solution, but it should work. Matt - Original Message - From: "Daniel Washusen" <[EMAIL PROTECTED]> To: "Struts-User" <[EMAIL PROTECTED]> Sent: Monday, A

Re: Vertical Checkboxes..

2003-08-14 Thread Sgarlata Matt
I'm kind of confused as to exactly what you are trying to do because you keep saying HashMap. I think what you want to do is write a JavaScript function that loops through all the checkboxes, determines which are checked, builds a URL based on the values that are checked, and then opens a new

Re: and multiple modules

2003-08-14 Thread Sgarlata Matt
No luck with the SwitchAction. To recap, I have a "bin" module and a "datasharing" module, and I want to do a submit from the bin module to an action in the datasharing module. In struts-config-bin.xml: In struts-config-datasharing.xml: In my JSP in the bin module: And the a

Re: Mapping Struts controller servlet to webapp root: trouble

2003-08-14 Thread Sgarlata Matt
As far as I know this is an issue that is specific to your web server and outside the scope of struts. For example, in tomcat I believe the solution is to put your app in the To

Re: Getting hashmap value based on bean value.

2003-08-14 Thread Sgarlata Matt
Raghu - instead of using in your form, use Matt Raghu.Ramakrishnan wrote: Hi I would like to know how to make sure that when the user clicks 'Enter' on the Keyboard, the form does not Get submitted. Does any one have any ideas.. Thanks. Raghu -Original Message- From: Wes

Re: Struts 1.1 Modules and application resources

2003-08-14 Thread Sgarlata Matt
I had the same problem in my project. Originally we employed option #1, but eventually found that to be unmanageable. I would warn you that option #2 does not work with all struts components, because some of them (the validator if I recall correctly) look only at the default resource bundle for t

and multiple modules

2003-08-14 Thread Sgarlata Matt
Does anyone know of a way to use the tag to submit to a module other than the current module? In the "bin" module I want to submit to the "datasharing" module. I tried and In both cases I get this error: org.apache.jasper.JasperException: ServletException in '/datasharing/multiItem-bod

Re: Struts Validator Javascript

2003-08-14 Thread Sgarlata Matt
I like the concept of the validator, but personally I don't have a lot of confidence in it. The second thing I tried to do with it was use the inRange (or whatever) test, and it didn't work. I use it server-side and only for required fields. Matt - Original Message - From: "Erez Efrati"

Re: JSP Includes, Actions, and Struts 1.0

2003-08-14 Thread Sgarlata Matt
You might want to reconsider your approach and try using Tiles instead. I think you will find that easier. If your JSP code with the include is contained in a JSP that is fronted by an action it will mean that you are going through the ActionServlet twice for a single request, which according to

Re: Struts Validator Javascript

2003-08-14 Thread Sgarlata Matt
You can reach Bugzilla at: http://nagoya.apache.org/bugzilla Matt - Original Message - From: "Erez Efrati" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, August 10, 2003 12:44 PM Subject: RE: Struts Validator Javascript > Di

Re: Vertical Checkboxes..

2003-08-14 Thread Sgarlata Matt
have a Vector capturing all the employee Ids checked, and then put the values of the Vector into a hashMap, to be able to pass the params using the taglibs. But the javascript way definately works. Thank you, Matt -Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Thursd

Re: Struts design consideration

2003-08-12 Thread Sgarlata Matt
Using your example, I have ProjectAction.class which extends from DispatchAction (or you may find LookupDispatchAction more appropriate). I think this is good for performance reasons because only a single action class needs to be cached instead of 4. Also, as you pointed out, it may be easier

Re: Struts is incomplete

2003-08-11 Thread Sgarlata Matt
Struts is intended as a framework in which you can develop your application. It does not and cannot do everything. Instead, the framework makes it very easy to plug in different components. In your particular case, I believe just about the entire tag library is deprecated in favor of the JSTL.

Re: How to log with TOMCAT and Struts?

2003-07-03 Thread Sgarlata Matt
Check out log4j, also from Jakarta. http://jakarta.apache.org/log4j/docs/index.html - Original Message - From: "du-it" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 03, 2003 9:34 AM Subject: How to log with TOMCAT and Struts? > Can anyone tell me how to use logging fro