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 Subject: RE:

Re: Example of a non-threadsafe Action?

2003-12-23 Thread Sgarlata Matt
internal instance variables. -Richard -Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 23, 2003 11:40 AM To: Struts Users Mailing List Subject: Re: Example of a non-threadsafe Action? What if the SimpleDateFormat variable is declared as final

Re: Initializing DynaActionForm

2003-12-22 Thread Sgarlata Matt
The correct syntax is form-property name=name type=java.lang.String initial=init/ 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

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 -

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: Checkboxes with session-scoped DynaActionForms

2003-12-17 Thread Sgarlata Matt
, 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 that I can reset the checkboxes in the reset() method of the form bean

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

2003-10-15 Thread Sgarlata Matt
input! -Sasha On 10/10/03 20:25, Sgarlata Matt [EMAIL PROTECTED] wrote: I have a 4 tier architecture. PRESENTATION TIER - Struts - Action classes BUSINESS TIER - Business Objects INTEGRATION PERSISTENCE TIER - DAO Manager - DAOs - Other database access mechanisms (I do

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 discussion,

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

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. I use

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 HashMap

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

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

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 tomcat_home\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

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

Re: BeanMapping WAS: [Poll] action mappings

2003-09-27 Thread Sgarlata Matt
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: - Original Message - From: Mainguy, Mike [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent

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 Reasons

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

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 supplied

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: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
access layer from any web stuff and use request parameters to determine which business operation I was performing. -Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:54 AM To: Struts Users Mailing List Subject: Re: [Poll] action mappings

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:

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

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
and therefore get automagic form population without a lot of muss and fuss. I agree that #3 is probably better, but it seems 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

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
#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 -Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent

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: [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 folks

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 based on

Re: any replacement for include file dynamic

2003-09-23 Thread Sgarlata Matt
You would have to use jsp:include because %@ include % does the include at compile-time. jsp:include 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

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, 2003 4:49

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:

[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

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

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 order to use a

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: 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.

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 html:hidden then the hidden parameter you are passing MUST be a property of the form bean. A simple work-around is to just use input type=hidden directly instead of using the Struts HTML taglib. Search results is a long discussion, and I'm not sure what the best practices are.

Re: Tool to diagnose J2EE/Struts/Oracle problem

2003-09-18 Thread Sgarlata Matt
-Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 10:56 PM To: Struts Users Mailing List Subject: Re: Tool to diagnose J2EE/Struts/Oracle problem You should investigate using connection pooling, such as is offered by the DBCP project

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

2003-09-18 Thread Sgarlata Matt
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] Sent: Thursday, September 18, 2003 10:15 AM To: Struts Users Mailing List Subject: [repost] Special view information

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

2003-09-18 Thread Sgarlata Matt
- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 10:15 AM To: Struts Users Mailing List Subject: [repost] Special view information - ActionForm or request? Sorry for the repost. Has this already been discussed? I couldn't find it in the archives. Original

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 thread and

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

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 16, 2003

Re: Slow file upload?

2003-09-16 Thread Sgarlata Matt
[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 machine should be as fast as a file copy. What am I missing? Try

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

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

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: 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=andformat=shortconfig=struts-dev_jakarta_apache_orgrestrict=exclude=words=Decomposing+RequestProcessor+ Matt -

[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: 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

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
resources at http://jakarta.apache.org/struts/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

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
David Graham wrote: I'm confused by your setup: arg0 name=fieldname key=label.bin.title/ Yeah, I was trying random stuff. The final thing that worked was: field property=description depends=maxlength arg0 key=label.bin.title resource=true/ arg1 name=maxlength key=${var:maxlength}

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,

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

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

2003-09-02 Thread Sgarlata Matt
type=text/css href=/ebspnp/css/default.css/ /head 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] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL

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 [EMAIL PROTECTED] Reply-To: Struts

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

2003-09-02 Thread Sgarlata Matt
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] Subject: Re: Warning: Page has Expired The page you requested was created using information Date

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

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

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

Re: AW: What in the world is bean:page 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

Re: AW: What in the world is bean:page 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

Re: Resource Bundle Inheritance - please vote!

2003-08-27 Thread Sgarlata Matt
by me) strings. Is that 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

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 talking

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: 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: forward name=success path=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

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

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 div version - which requires a hidden div and such - so I hope you'll incorporate this. Maybe something

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 html:link page=/reg.do?method='edit' / to go into edit. My

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

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

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

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

2003-08-16 Thread Sgarlata Matt
' 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: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Saturday, August 16, 2003 7:26 PM

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

2003-08-16 Thread Sgarlata Matt
: 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'd never see one.. :-) I've really ran into a wall but somehow

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),

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

Re: Vertical Checkboxes..

2003-08-14 Thread Sgarlata Matt
. Thank you, Matt -Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 11:00 AM To: Struts Users Mailing List Subject: Re: Vertical Checkboxes.. I'm kind of confused as to exactly what you are trying to do because you keep saying HashMap. I think

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 Didn't know

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
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

html:form and multiple modules

2003-08-14 Thread Sgarlata Matt
Does anyone know of a way to use the html:form 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 html:form action=/datasharing/multiItem and html:form action=datasharing/multiItem In both cases I get this error:

Re: Getting hashmap value based on bean value.

2003-08-14 Thread Sgarlata Matt
Raghu - instead of using input type=submit in your form, use input type=button onclick=document.myFormName.submit(); 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

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 tomcat root/webapps/ROOT directory. Hope that helps, Matt - Original Message - From: Paul Yunusov [EMAIL

Re: html:form 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: action path=/switchToDatasharing type=org.apache.struts.actions.SwitchAction/ In

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

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: 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, August

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: html:form and multiple modules

2003-08-14 Thread Sgarlata Matt
Still not working for me. I tried these 5 things: html:form action=switchToDatasharing.do?prefix=/datasharingpage=/multiItem.do method=post html:form action=/switchToDatasharing.do?prefix=/datasharingpage=/multiItem.do method=post html:form

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 logic tag library is deprecated in favor of the

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 from