RE: Validator multiple message-resources

2004-03-02 Thread Mainguy, Mike
I'm not 100% sure but I believe this came up before. I that, while you can define multiple message.resources, you really can only actually USE one of them in sruts 1.1. I'd do a search of the archive because I think this has come up before. An Obstacle is something you see when you take your

RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))

2004-03-01 Thread Mainguy, Mike
It's included at the bottom of every message... An Obstacle is something you see when you take your eyes off the goal -Original Message- From: Tarik El Berrak [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 12:02 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re:

RE: hiding jsp files under WEB-INF

2004-03-01 Thread Mainguy, Mike
I usually code my index.jsp as follows: jsp:forward page=Welcome.do / If your index.jsp isn't being processed through the struts controller, I'm not sure how much the logic tags like that. That should eliminate at least one problem. An Obstacle is something you see when you take your eyes off

RE: hiding jsp files under WEB-INF

2004-03-01 Thread Mainguy, Mike
Also, are sure sure welcome is not supposed to be Welcome? (case sensitive?) An Obstacle is something you see when you take your eyes off the goal -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 11:59 AM To: [EMAIL PROTECTED] Subject:

RE: hiding jsp files under WEB-INF

2004-03-01 Thread Mainguy, Mike
, March 01, 2004 12:35 PM To: Struts Users Mailing List Subject: Re: hiding jsp files under WEB-INF Mainguy, Mike wrote: Also, are sure sure welcome is not supposed to be Welcome? (case sensitive?) The way I understand it, welcome is globally forwarded to /Welcome.do, as per the struts-config.xml

RE: java.lang.NullPointerException struts form is null

2004-03-01 Thread Mainguy, Mike
It seems like that user is getting that text automagically added to the top of his messages... An Obstacle is something you see when you take your eyes off the goal -Original Message- From: Daniel Kalcevich [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 11:57 AM To: Struts

[OT] extension [WAS] RE: Action not forwarding to another Action

2004-03-01 Thread Mainguy, Mike
Wow, that's almost like me setting the mapping extension to .asp and confusing the heck out of the people I was talking too. Has that issue come up? An Obstacle is something you see when you take your eyes off the goal -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL

RE: Phase in Tiles?

2004-02-23 Thread Mainguy, Mike
Sure, you can refer to both tiles definitions and .jsp files in the same application. -Original Message- From: Marcella Turner [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 9:34 AM To: [EMAIL PROTECTED] Subject: Phase in Tiles? I'm interesting in converting an existing

RE: [OT] - Request against Session

2004-02-16 Thread Mainguy, Mike
Just to throw a little liquid (gasoline or water) on this fire... Let's say there are two ways to look at determining your current session state: #1 Is the Deterministic Automaton (for any set of inputs there is an output) #2 Is the Nondeterministic Automaton (for any set of inputs the output is

RE: Re-populating form after validate fails

2004-02-05 Thread Mainguy, Mike
I've seen this happen a couple of times with different people (myself included). It seems like the default (expected) behavior is: use the bean value unless it's blank, then use the html i.e. if html= and bean=text it should be the bean value if the bean= and the html=asdasdf then it should be

RE: [POLL] Your PSE? Struts, Tomcat, Java, Apache, SSL, mod_jk, e tc.. .

2004-01-21 Thread Mainguy, Mike
Current: Tomcat 4.1, IIS, mod_jk2, Windows 2000, SSL on external device Future: Websphere 5.1, Apache 2.0, HP-UX 11, SSL on external device Preference: Tomcat 4.1, Apache 2.0, mod_jk2, Linux (Redhat 8), mod_ssl The future is defined by the suits and their money, not by my personal preference. I

RE: [OT] Eclipse/Tomcat WebappLoader

2004-01-09 Thread Mainguy, Mike
If that class never changes just deploy it in a jar... No matter what we use today, sooner or later I'm sure we'll be using something else -Ted Husted -Original Message- From: Raphaƫl di Cicco [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 5:11 AM To: Struts Mailing List

RE: Checkboxes with session-scoped DynaActionForms

2003-12-17 Thread Mainguy, Mike
I think there is a common misconception that if you use DynaActionForms you don't need to write an ActionForm AT ALL. While this is true, you may also subclass the DynaForm and provide a similar level of functionality as a normal form. Kmart Tech News news://uskihsvtfinsys The essence of

RE: [OT] 833r

2003-12-12 Thread Mainguy, Mike
IMHO Schoefferhoffer hefe-weisen is probably one of the best beers in the world... Of course it is impossible to get in the states so I'm stuck with JW Dundee's Honey brown lager. Note, anyone in the Heidelberg/ area who could fax me a few Schoefferhoffers I'll reimburse you the long distance

RE: Cahin actions and GZIP filter

2003-12-12 Thread Mainguy, Mike
Just as a side note, if you are using apache as a web server, you could also just turn on the mod_deflate or mod_gzip in apache and not have to screw around the the filter in your servlet engine. Kmart Tech News news://uskihsvtfinsys The essence of knowledge is, having it, to apply it; not

RE: Digester does not like ''

2003-12-11 Thread Mainguy, Mike
Yes, you can't use '' for the same reason you can't use '' or (potentially) ''. They are special characters. There are ways around this, for a (very) little more info: http://www.xml.com/pub/a/2003/02/26/qa.html Kmart Tech News news://uskihsvtfinsys The essence of knowledge is, having it,

RE: Question regarding ActionForms.

2003-12-01 Thread Mainguy, Mike
Welll, Common misconception, but, technically all java calls are by value. That is, there is no such thing in java as passing something by reference. The hook is, the value passed in when something is an Object is actually a reference (aka a pointer) to the existing object. While you can

RE: Copy properties from DynaActionForm

2003-11-26 Thread Mainguy, Mike
Same thing, beanutils is designed to work with DynaBeans... worse is better -Original Message- From: Franck [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 4:15 PM To: 'Struts Users Mailing List' Subject: Copy properties from DynaActionForm Hi, With an ActionForm, there

RE: Struts Exception Handling

2003-11-25 Thread Mainguy, Mike
Welll, The way I've done this before is to wrap all Exceptions in a Custom type and throw it all the way back to struts. This seems to work well for trivial business style apps, I'm not sure how it would hold up in something with more complexity in the business layer. For example, My CRUD code

RE: [OT] Stress Test

2003-11-25 Thread Mainguy, Mike
I use Jmeter for this. Works very nicely. Assuming your application is easily scriptable, you can record a series of actions (via the built in proxy) and replay them in a very short time. It is much easier to use than QA load and about as easy to use as M$ webcat. It is, however about as

RE: Problem

2003-11-21 Thread Mainguy, Mike
Also check $CATALINA_HOME/logs and see if there is more information in one of the log files. It is certainly not a struts specific problem and the tomcat-user list is probably a more appropriate location for this query. worse is better -Original Message- From: Gurpreet Dhanoa

RE: Actions which create sessions seem to hang

2003-11-21 Thread Mainguy, Mike
Perhaps you don't have a session timeout set in JBoss and you are hitting an upper limit (65K sessions or something)? worse is better -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 6:11 AM To: 'Struts Users Mailing List' Subject:

RE: Lazy questions on this list [FRIDAY!]

2003-11-21 Thread Mainguy, Mike
Excellent! I've not seen that before, can we get that put on in a web form? Hmmm, maybe that's a weekend project worse is better -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 5:16 AM To: Struts Users Mailing List Subject: Re: Lazy

RE: Actions which create sessions seem to hang

2003-11-21 Thread Mainguy, Mike
-Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: 21 November 2003 13:48 To: 'Struts Users Mailing List' Subject: RE: Actions which create sessions seem to hang Perhaps you don't have a session timeout set in JBoss and you are hitting an upper limit (65K sessions

RE: URGENT: getting a Session Attribute from ActionForm

2003-11-21 Thread Mainguy, Mike
I agree with Richard and Wendy, you probably don't need to actually instantiate the form, get your bean from somewhere (the ether?) and do a BeanUtils.copyProperties(dest,source). This will allow a nice decoupling of your business code from your web application code Alternatively, I would

RE: Fruits of your help

2003-11-20 Thread Mainguy, Mike
Cool, my wife uses that stuff all the time... However, just in case you're interested... HTTP Status 400 - Invalid path /US/crafts/crafts/category was requested type Status report message Invalid path

RE: Tokens

2003-11-20 Thread Mainguy, Mike
Call saveToken() in GET (or read) Test isTokenValid() in the POST (or write) to see if it is a dupe (duplicate returns false [bad token]) worse is better -Original Message- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 11:19 PM To: Struts Users

RE: Form data vs request attributes

2003-11-18 Thread Mainguy, Mike
Although, I don't really see a major problem with storing the options in the form itself (just to make things simple). Anybody have a compelling reason NOT to do this? i.e. I put my statesCollection as a property on my ActionForm with a List datatype. Then I can just use the form property to

RE: How to Run Java App. as an NT Service?

2003-11-10 Thread Mainguy, Mike
Javaservice will do this for you... Check out the tomcat distribution, they have an example. worse is better -Original Message- From: Vicky [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 6:17 PM To: [EMAIL PROTECTED] Subject: How to Run Java App. as an NT Service? Hello

RE: [Semi OT] When does a servlet get a session?

2003-10-16 Thread Mainguy, Mike
That does not compute Your servlet HttpSession is associated with a set of requests that a specific user makes to a particular servlet. You will, at any point have many sessions for 1 instance of your servlet. I believe a session will be created when you call getSession() if one does not

[Poll] Action Form data types

2003-10-13 Thread Mainguy, Mike
Here's my weekly(ish) question: For the purposes of this discussion, ActionForms also mean DynaActionForms and the like... Where does everyone cast their (String) request parameters to the 'proper' datatype? #1 My ActionForms only have Strings, I manually cast stuff somewhere else. #2 My

RE: Cannot find BEAN in any scope

2003-10-10 Thread Mainguy, Mike
Generally this means you did not specify the name properly i.e. bean:write name=MyForm property=whatever/ Where MyForm= your formbean name property (or any bean stuffed in your request for that matter) -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Friday, October

RE: any known issues with WAS 4.0?

2003-10-03 Thread Mainguy, Mike
I've not had ANY problems in struts-1.1 that where websphere specific (mostly they where me not exactly knowing what I was doing). Have you tried to go directly to welcome.do in your browser? It could be a problem with the logic:redirect tag in you index.jsp (I've personally never used it).

RE: any known issues with WAS 4.0?

2003-10-03 Thread Mainguy, Mike
- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:23 AM To: 'Struts Users Mailing List' Subject: RE: any known issues with WAS 4.0? I've not had ANY problems in struts-1.1 that where websphere specific (mostly they where me not exactly knowing what I was doing). Have

RE: any known issues with WAS 4.0?

2003-10-03 Thread Mainguy, Mike
in the lib directory. I noticed it contains dtds for struts 1.0 AND struts 1.1 in it. Do you think I installed the wrong release maybe? I'll hunt down the right jar file and see if that fixes it... -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03

RE: any known issues with WAS 4.0?

2003-10-03 Thread Mainguy, Mike
totally new to this. It sounds like I'm just doing something wrong. Does this error help guess what I might need to change? Thanks!, Jim -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:23 AM To: 'Struts Users Mailing List

RE: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Mainguy, Mike
BeanUtils.copyProperties also works with DynaForms (They implement DynaBean and BeanUtils treats them (for the most part) as POJB's (c). I will concede that code completion is a definite plus. My only counter to that would be that, if I'm simply copying all my properties to another class (Torque

[POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Mainguy, Mike
Next in my series of struts-user polls (please complain if this gets old). What sort of ActionForms does everyone use? #1 ActionForm #2 DynaActionForm Personally, I'm an advocate of the DynaActionForm as it seems to be able to do 80-90% of everything I need to do and everything else can be done

RE: Action Design Question

2003-09-26 Thread Mainguy, Mike
You know, this is an enhancement I've been thinking about. You could certainly add it as a parameter in the action mapping. action path=/EmpTblDisplay type=ProjectAction name=EmpTblFormBean scope=request

RE: How to make a form pre-filled from an action class

2003-09-25 Thread Mainguy, Mike
Just call the setters on the ActionForm from your Action class and fill the form with data. -Original Message- From: EL AKARI Mehdi [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 6:58 AM To: Struts Users Mailing List Subject: How to make a form pre-filled from an action

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 11:06 AM To: [EMAIL PROTECTED] Subject: [Poll] action mappings I have yet another opinion poll for struts-user... What are folks currently doing for action mappings in relation to CRUD operations? Are you

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
. Is there some reason multiple action mappings are needed for the same Action? Matt - Original Message - From: Mainguy, Mike [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:47 AM Subject: RE: [Poll] action mappings So far the results

RE: Value assignment to html:hidden field...

2003-09-25 Thread Mainguy, Mike
I personally would assign that value in the Action or somewhere else in the java code (even default it in the form bean perhaps), not in the jsp. I'm not sure that you can use a scriptlet variable in a CustomTag. -Original Message- From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] Sent:

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
or take as parameters anything directly from the javax.servlet.* API, but it does return references to things like the ActionServlet which clearly are dependent on the servlet API. Thoughts? Matt - Original Message - From: Mainguy, Mike [EMAIL PROTECTED] To: 'Struts Users Mailing List

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
.. -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 3:47 PM To: 'Struts Users Mailing List' Subject: RE: [Poll] action mappings So far the results are as follows: #1 5 #2 1 #3 2 #4 0 I added myself to both 1 and 3 as I've done a project

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
or 'business delegate') plus a host of mappings. On 09/25/2003 03:59 PM Mainguy, Mike wrote: You don't have to create a different ActionClass for every Operation with the same display/FormBean... I.E. If you use the same formbean and display component, you don't want to also always create another

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
Whoops!, I goofed up my response, let me clarify. From: Sgarlata Matt [mailto:[EMAIL PROTECTED] I just find it naturally easier to grasp what is going on with one Action and one form bean for each object in my model (and normally one factory or 'business delegate') plus a host of mappings.

BeanMapping WAS: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
, and will be adding this to my API in the next few minutes. Matt - Original Message - From: Mainguy, Mike [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:28 AM Subject: RE: [Poll] action mappings That is exactly the method signature I use (well

RE: .do as welcome-file

2003-09-23 Thread Mainguy, Mike
I haven't tried it, but I've been told that, in tomcat, if you create a file with that exact name it will work properly. Evidently you cannot specify a servlet path as a welcome file. -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003

RE: .do as welcome-file

2003-09-23 Thread Mainguy, Mike
: Re: .do as welcome-file I can confirm that this hack works for tomcat. Create the dummy file start/start.do and tomcat will be happy, and you will still get the actual struts mapping. On 09/23/2003 02:06 PM Mainguy, Mike wrote: I haven't tried it, but I've been told that, in tomcat, if you

RE: getting the current thread inside an action

2003-09-23 Thread Mainguy, Mike
Thread.currentThread()??? -Original Message- From: Menke, John [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 10:49 AM To: Struts (E-mail) Subject: getting the current thread inside an action Is there a way to get reference to the current thread from within an Action?

[Poll] action mappings

2003-09-23 Thread Mainguy, Mike
I have yet another opinion poll for struts-user... What are folks currently doing for action mappings in relation to CRUD operations? Are you: #1 creating a unique Action mapping for each atomic operation (potentially mapped to the same action class) /createUser.do -

RE: Refreshing Form Submission and Duplicates

2003-09-19 Thread Mainguy, Mike
I.E. in your Action Class Public ActionMapping execute ... boolean isValidSynchronizerToken= isTokenValid(request); this.saveToken(request); if (request.getMethod().equals(POST)) if (isValidSynchronizerToken) {

[OT] RE: Connection Pooling

2003-09-18 Thread Mainguy, Mike
Can any one explain,What does one mean by Connection Pooling? Is it advisable to prcatice Connection Pooling and if so,in WHAT CIRCUMSTANCES and Is there any aspect which should be kept in mind/taken care of while using Connection Pooing how connection pooling changes the working of an Web

RE: Reuse of JSP's and relative links

2003-09-18 Thread Mainguy, Mike
Just so I'm clear, the problem is you have 2 different actions that link to the same jsp and your intent is to have the jsp map to itself under BOTH paths? That's an interesting question, you could probably use the href attribute instead of the action attribute... Href=show.do instead of

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

2003-09-18 Thread Mainguy, Mike
I also would like other's opinion on this. Right now, use a service locator style class 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

RE: Is it possible to remove *.do or /do/* from the URL

2003-09-18 Thread Mainguy, Mike
Hmmm, that could be entertaining... Change the extension to .asp and sell it to a microsoft shop... -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 12:34 PM To: Struts Users Mailing List Subject: Re: Is it possible to remove *.do

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

2003-09-18 Thread Mainguy, Mike
-0400 9/18/03, Mainguy, Mike wrote: I also would like other's opinion on this. Right now, use a service locator style class 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

RE: FormBean question...

2003-09-16 Thread Mainguy, Mike
This is by design. If you want to ensure this will not happen, you need to set all the values to or null beforehand for fields that should be empty. The short answer is change the field name. Especially if you are going to store data in a form in the session you will have a big mess on your

RE: Retrieving the ModuleConfig object

2003-09-16 Thread Mainguy, Mike
I'm not sure what you mean by backwork, but it is accessible from the Action Class by overridding the setServlet Method.. E.g. ModuleConfig moduleConfig = (ModuleConfig) servlet.getServletContext().getAttribute( Globals.MODULE_KEY);

RE: Easy Question

2003-09-16 Thread Mainguy, Mike
The property attribute of the tag should point to a boolean property of the FormBean. If that property is true the box will be checked. ...unless you're using an old(er) version of the checkbox tag... I know in the older (1.0x) versions this was rather broken (i.e. only a string of 'T' or 'F' or

RE: [OT] Subject line filter tag

2003-09-16 Thread Mainguy, Mike
Maybe we could use Struts Technical Forum Users [STFU] Errr, maybenot. This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or

RE: Passing variables for logic:iterate

2003-09-15 Thread Mainguy, Mike
1st, Thank you, I didn't realize the logic:Iterate tag had those two properties, so you've indirectly saved me some effort. 2nd, After looking at the source code for the iterate tag, it looks like it tries to look up those two values straight out of the pageContext. This would imply to me, that

RE: Bug :: Replace \n Character with #

2003-09-11 Thread Mainguy, Mike
It might be that \n is interpreted as a char(13) and only 1/2 of the crlf pair is getting replaced. -Original Message- From: Chawla, Yogesh [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 1:22 AM To: 'Struts Users Mailing List' Subject: Bug :: Replace \n Character with #

RE: [OT] Problem stopping Tomcat 4.1.18

2003-09-11 Thread Mainguy, Mike
Perhaps, I have also seen this if you start the server as root then try to shut it down as a different user... -Original Message- From: Suresh Addagalla [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 8:44 AM To: [EMAIL PROTECTED] Subject: [OT] Problem stopping Tomcat 4.1.18

RE: What's a well defined Struts Project Structure?

2003-09-10 Thread Mainguy, Mike
I'm kinda in the middle of this whole process too and this is what I'm leaning toward MyProject |- source(doesn't get deployed) |- documentation (doesn't get deployed) |- static (webserver stuff) |- styles |- javascript |- images

RE: What's the best strategy to handle this kind of thread issues ?

2003-09-10 Thread Mainguy, Mike
I think, however that this proposed solution (almost) entirely defeats the purpose of having a multithreaded environment. If you try and synchronize all responses and disregard duplicates, you will most likely end up with a slow and cumbersome application. I would say to achieve the sort of

RE: Any potential drawbacks with this design

2003-09-08 Thread Mainguy, Mike
I'm interested in folks response to this also. This is the approach I have used on 2 different projects and seems to work very nicely. In addition, I modified the signature of my abstract method (in this case executeTask) to take a custom ActionForm with some additional functionality. It seems

RE: Searching facility questions

2003-09-08 Thread Mainguy, Mike
Hide your .jsp files in /WEB-INF/foo (I use /WEB-INF/pages) so that the user cannot navigate directly to them. Alternatively hide them ANYWHERE so they cannot directly link to them. -Original Message- From: Marco Tedone [mailto:[EMAIL PROTECTED] Sent: Sunday, September 07, 2003 2:03 PM

RE: populating Drop down -pls help

2003-09-04 Thread Mainguy, Mike
Are those typos in your jsp? ===htrml If so, that may be part of the problem... Also, I'd check to verify that the values are not padded (i.e. CHAR(2) datatype may yield m instead of m which is not the same value. -Original Message- From: Goldy J [mailto:[EMAIL PROTECTED] Sent:

RE: struts begineer mahavir

2003-09-04 Thread Mainguy, Mike
They left out a very import piece... the struts piece! Add a file called hello-world/WEB-INF/struts-config.xml (you should have gotten an error that it was missing I would think) and put the following content in it... ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts-config PUBLIC

RE: Copying DynaActionForm to Map DTO

2003-09-04 Thread Mainguy, Mike
BeanUtils.copyProperties (but I'd use a DynaBean instead). -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 1:22 PM To: 'Struts Users Mailing List' Subject: Copying DynaActionForm to Map DTO Hi all, I am using both DynaActionForm and a

RE: Migrating to struts

2003-09-03 Thread Mainguy, Mike
If you are using scriptlets, move the scriptlet code to an Action class. Then link through the Action class to run that code first. If the code created scripting variables before, use request properties instead. Likewise, any place where you were using request parameters, start using request

RE: basic struts question...

2003-09-03 Thread Mainguy, Mike
It looks like your webapp is named taglib, if so, change your action mapping to 'path=/jsp/submit ' and all should be well. The action mapping path is relative to your webapp (or module, but, that's for a later date). -Original Message- From: Bradley Handy [mailto:[EMAIL PROTECTED]

RE: J2EE IDE

2003-08-27 Thread Mainguy, Mike
I would have said netbeans a year ago, but now I'm an eclipse 2 (2.1) fan. Haven't tried any recent (last 6 months) IDEs other than eclipse. -Original Message- From: Greg Reddin [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 5:09 AM To: Struts Users Mailing List Subject: Re:

[OT} RE: Small request...

2003-08-27 Thread Mainguy, Mike
I have had this problem too. I'm not sure why this happens, but, at home I very often get messages that are far into the future (or past). I'm thinking it's an Evolution problem because I don't have the same problem under outlook. -Original Message- From: Keith Pemberton [mailto:[EMAIL

RE: Struts as a framework

2003-08-26 Thread Mainguy, Mike
bitten by the design bug lately. Mohan -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 8:26 PM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: Struts as a framework For those of us who think outside the box could you

RE: Struts as a framework

2003-08-25 Thread Mainguy, Mike
For those of us who think outside the box could you elaborate on what you are asking? My copy of struts was downloaded from the internet, it came with no box ;) -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 10:37 AM To: 'Struts

RE: Please Guide : STRUTS Versions

2003-08-19 Thread Mainguy, Mike
1.1 is no longer beta. It has been released since the end of July. I haven't heard of any show stopping problems with it and am fairly confident it is a good choice for any projects going forward. I think the document you are referring to is a bit dated. -Original Message- From: [EMAIL

RE: Why would I want to use the ActionForm validate() method

2003-08-19 Thread Mainguy, Mike
The short answer is, you cannot always depend on javascript. There is a small percentage (Probably less than 1% I would expect) of users who either disable javascript or don't have it in their browser (e.g. lynx). In these cases you will have no validation. Also there are differences between

RE: mesage message account

2003-08-19 Thread Mainguy, Mike
I will put money on the fact that nobody on this list wants to read about your idiotic conspiracy theories. Please amuse yourself by trolling on Slashdot or usenet and stop wasting our time. -Original Message- From: object worlds [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19,

RE: mesage message account

2003-08-19 Thread Mainguy, Mike
wanted to double check that conspiracy theorys were still tolerated on fridays... -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 2:19 PM To: 'Struts Users Mailing List' Subject: RE: mesage message account I will put

RE: Struts and synchronization (Off Topic)

2003-08-14 Thread Mainguy, Mike
the Jakarta Commons PoolingDataSource. I have used this before without any problems #4 - Something to look into. I'm closing my result sets, statements and connections (which returns them to the pool), but it might not be done in the best way. Mainguy, Mike wrote: The closest I ever came

RE: How to maintain data b/w pages?

2003-08-14 Thread Mainguy, Mike
Is the ActionForm in session scope? -Original Message- From: Swati [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 4:37 AM To: [EMAIL PROTECTED] Subject: How to maintain data b/w pages? Hi, I have a wizard to add objects, each wizard screen has back/next/cancel/finish

RE: where is the correct place to create DAO ?

2003-08-14 Thread Mainguy, Mike
Action class (or another class that it contains). Your taglibs should be for display and format only. They should be a consumer of data, not a producer. -Original Message- From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi) [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003

RE: Signup Wizard and Edit mode

2003-08-14 Thread Mainguy, Mike
I usually do it exactly as you described, with a hidden field that is called Command or Action. There seems to be a split on whether this is a good practice or not. I, for one, like this way of doing it because you get to reuse code from the action class and you can very often do your CRUD logic

RE: Struts design consideration

2003-08-14 Thread Mainguy, Mike
Crap! Sorry, I forgot outlook formatted my email as HTML (don't use outlook at home). Accept my apologies. -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 11:45 AM To: [EMAIL PROTECTED] Subject: Struts design consideration Hello fellow

RE: J2EE certified [Off-Topic]

2003-08-14 Thread Mainguy, Mike
I'll certify it for $1000 -Original Message- From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: J2EE certified A colleague mentioned to me something about getting J2EE certified. I could only find getting an

Struts design consideration

2003-08-14 Thread Mainguy, Mike
Hello fellow struts-users. I have a quick question. In what manner is everyone mapping their actions? Do you have multiple actions per action class or just one action per action class. We're working on a demo application and extension framework, but are rather undecided on whether

RE: Struts and synchronization

2003-08-14 Thread Mainguy, Mike
The closest I ever came to this sort of problem involved the following: #1 Sending static content (and lots of it) through the servlet engine instead of using the web server. #2 Not having enough request processors and listeners configured. #3 Not using pooling for my connections and killing

RE: Struts is incomplete [OT]

2003-08-14 Thread Mainguy, Mike
Hmmm, and I thought all the trolls lived in Slashdot... ;) -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Sunday, August 10, 2003 11:08 AM To: Struts Users Mailing List Subject: Struts is incomplete I guess Struts development is not yet complete. Since one of the

RE: Pre-populating forms dynamically

2003-08-14 Thread Mainguy, Mike
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { MyDynaValidatorActionForm ourForm = (MyDynaValidatorActionForm) form; ... Do all our magic to get

RE: [OT] Retrieve all messages ever sent to this list

2003-08-07 Thread Mainguy, Mike
I believe on the apache site there is a full mbox archive or something like that. -Original Message- From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 11:01 AM To: Struts Users Mailinglist Subject: [OT] Retrieve all messages ever sent to this list Hi,

RE: DynaValidatorForm question

2003-08-01 Thread Mainguy, Mike
My gut reaction would be to use a depends=required on both fields. This should give you the behavior you desire. -Original Message- From: Jones, Marty B. [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 5:37 PM To: [EMAIL PROTECTED] Subject: DynaValidatorForm question I have a

RE: Buttons and Actions without forms

2003-07-31 Thread Mainguy, Mike
#1 you could just include javascript in the jsp #2 you could use validator to create a rule (I believe) that could do that for you. -Original Message- From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 7:59 AM To: Struts Users Mailing List Subject:

RE: html:radio..javascript

2003-07-31 Thread Mainguy, Mike
I my html:javascript looks like this html:javascript formName=logonSubmit dynamicJavascript=true staticJavascript=true/ don't know if those other two attributes matter or not... In addition, I put the html:javascript tag at the bottom of my page. For What It's Worth -Original Message-

RE: Struts and Jetspeed

2003-07-31 Thread Mainguy, Mike
I'll agree, if you're already using Turbine, then struts is really a waste of time and effort. Just use the turbine framework (it's more complete anyway IMHO). If you really want to use struts for portlets, I'd recommend using struts in a different servlet context and then wrapping it in a

RE: struts access to protected jsp

2003-07-31 Thread Mainguy, Mike
You should be able to go to cramerLoad.do and all will be well. I put my .jsp files in WEB-INF with not problems... I Noticed that you didn't capitalize WEB-INF, that could be a potential problem. -Original Message- From: Tridev Kodamasingh [mailto:[EMAIL PROTECTED] Sent: Thursday,

JSTL and Struts

2003-07-31 Thread Mainguy, Mike
I'm in a quandary. We're examining a way to do simple formatting of our model data. For example, when currency data comes out of the database, it needs to be rendered as $1,000.00 or whatever. This is a very common thing and we where going to do it using a custom formatting object to do

RE: JSTL and Struts

2003-07-31 Thread Mainguy, Mike
and Struts One way is to localize inside the getter of the formbean. .V Mainguy, Mike wrote: I'm in a quandary. We're examining a way to do simple formatting of our model data. For example, when currency data comes out of the database, it needs to be rendered as $1,000.00 or whatever

  1   2   >