RE: Reflecting Changes in a Form After data has been updated

2003-07-29 Thread Mainguy, Mike
You shouldn't have to do that. If your form already has all of the values coming in, unless you reinitialize your form, it will still have them going out. The only things you may have to fool with are values that where not submitted with the form. Am I missing something? -Original Message--

RE: Problem with nested:select

2003-07-29 Thread Mainguy, Mike
Most likely the web browser isn't sending the value of the disabled drop down. Try enabling it via javascript before posting the data to the servlet. -Original Message- From: Swaroop George [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 10:00 AM To: Struts Users Mailing List Subj

RE: Reflecting Changes in a Form After data has been updated

2003-07-29 Thread Mainguy, Mike
form redisplay again) _CJ On Tuesday 29 July 2003 04:45 am, Mainguy, Mike wrote: > You shouldn't have to do that. If your form already has all of the values > coming in, unless you reinitialize your form, it will still have them going > out. The only things you may have to fool w

RE: Form Bean Help?

2003-07-29 Thread Mainguy, Mike
My angle on this is to only load the data from the database when the user is submitted a request to "read" data. If they are submitting an "update" action, I don't load the data from the database. -Original Message- From: Matt E [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 12:

RE: Form Bean Help?

2003-07-29 Thread Mainguy, Mike
gs like Radio buttons could be "preselected" based on what I loaded from the database. Cheers. --- "Mainguy, Mike" <[EMAIL PROTECTED]> wrote: > My angle on this is to only load the data from the > database when the user is > submitted a request to "read"

RE: Reflecting Changes in a Form After data has been updated

2003-07-29 Thread Mainguy, Mike
he same form redisplays again reflecting the updated information. It just seems that the session still holds on to the previous information (before the update). _CJ On Tuesday 29 July 2003 09:05 am, Mainguy, Mike wrote: > So you're saying the form that is used to update the data is differ

RE: Form Bean Help?

2003-07-29 Thread Mainguy, Mike
Whoops, I completely missed that, Red Herring alert! -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 12:56 PM To: 'Struts Users Mailing List' Subject: RE: Form Bean Help? Matt wrote: > I had been using the value property of the struts-html > ta

RE: Unable to compile

2003-07-30 Thread Mainguy, Mike
If you have these errors... > [javac] file org\xml\sax\helpers\DefaultHandler.class not found Make sure you have xerces.jar in your classpath Ignore the time warnings or set your clock. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003

extension + extended path info

2003-07-30 Thread Mainguy, Mike
All,   I have a question about extended path info.  It seems like an increasingly common way of passing additional information (action/read/update type info) to the servlet context.  Is there any move to suggest this (or has it been suggested) as an improvement to the framework?  It seems

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

RE: ..javascript

2003-07-31 Thread Mainguy, Mike
I my html:javascript looks like this 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- From: Prashant Samant [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 7:1

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 port

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

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

RE: JSTL and Struts

2003-07-31 Thread Mainguy, Mike
r yourself exactly what "this functionality" really means. > -Original Message- > From: Mainguy, Mike [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2003 7:44 AM > To: 'Struts Users Mailing List' > Subject: RE: JSTL and Struts > > I did

RE: JSTL and Struts

2003-07-31 Thread Mainguy, Mike
: JSTL and Struts Hey Mike, Why would you need the formatting inside of an input tag? You are only processing the data on the server side and that doesn't require formatting or am I missing something here? Chuck -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Th

RE: JSTL and Struts

2003-07-31 Thread Mainguy, Mike
exactly -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:16 PM To: Struts Users Mailing List Subject: Re: JSTL and Struts Mainguy, Mike wrote: > When I return a currency or date value, the client has a specific format > they want

RE: JSTL and Struts

2003-07-31 Thread Mainguy, Mike
Or rather, the value stored in my database -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:16 PM To: Struts Users Mailing List Subject: Re: JSTL and Struts Mainguy, Mike wrote: > When I return a currency or date value, the client ha

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: [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: Struts and synchronization (Off Topic)

2003-08-14 Thread Mainguy, Mike
he >>ones registered to a servlet) >> >>#2 - I'll have to check with the sysadmin. Where is the number of >>request processors defined? >> >>#3 - I'm using the Jakarta Commons PoolingDataSource. I have used this >>before without any problems &

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 buttons

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 4:5

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 lo

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 f

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 app

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 whethe

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 th

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 th

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 how

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

RE: mesage message account

2003-08-19 Thread Mainguy, Mike
while, and just 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

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 Us

RE: Struts as a framework

2003-08-26 Thread Mainguy, Mike
Have been 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 thi

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

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

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 >

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

RE: populating Drop down -pls help

2003-09-04 Thread Mainguy, Mike
Are those typos in your jsp? ===>>>mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 5:38 AM To: [EMAIL PROTECTED] Subject: populating Drop down -pls help Hello, I have a JSP in which there are number of dropdown along with text boxes. I am using struts tag lib for getting the value whe

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... http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>

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 DT

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 t

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 T

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 eff

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

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

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

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 distribu

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

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

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 o

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

2003-09-18 Thread Mainguy, Mike
ending this message, I guess I'll just dump it out there and see what people think... Joe At 12:35 -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

RE: Refreshing Form Submission and Duplicates

2003-09-19 Thread Mainguy, Mike
I would use the synchronizertoken and just perform the "read" action if they are submitting a duplicate. -Original Message- From: Shane Mingins [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 10:26 PM To: 'Struts Users Mailing List' Subject: RE: Refreshing Form Submission an

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

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

RE: .do as welcome-file

2003-09-23 Thread Mainguy, Mike
} > } > > -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 23, 2003 9:05 AM > To: Struts Users Mailing List > Subject: Re: .do as welcome-file > > > I can confirm that this hack works for tomcat. Create the dummy file &

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

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 clas

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
ssage- 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? Ar

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
all. 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

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
its methods don't return 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

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
n 2 votes to #2 including myself.. -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 my

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
factory 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&#x

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
o me earlier, 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

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. And then you're all set... Of course, then you don't really need a dispatch action, you need to create your own version that reads this para

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

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
Original Message- 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 exact

RE: any known issues with WAS 4.0?

2003-10-03 Thread Mainguy, Mike
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, 2003 10:27 AM To:

RE: any known issues with WAS 4.0?

2003-10-03 Thread Mainguy, Mike
action] > > I am 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

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. 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 10, 2003 11:22 AM To: [EMAIL PROTECTED] S

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

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 a

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 All

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 pop

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 /US/crafts/c

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 Mai

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

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

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 que

RE: Actions which create sessions seem to hang

2003-11-21 Thread Mainguy, Mike
ver? Cheers, Brian -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 hitt

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 reco

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 flexib

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

struts-user@jakarta.apache.org

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

  1   2   >