RE: File upload produces modified files

2002-02-07 Thread Jeff Martin
Well, how do the files compare to each other? Is one longer by a byte, a lot of bytes, did it do \n - \r\n conversions on you, or what? -Original Message- From: Tingleff, Sam [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 12:24 PM To: '[EMAIL PROTECTED]' Subject: File

RE: Thread Safety Question (was Formatting Dates, Integers...)

2002-02-05 Thread Jeff Martin
safe? -Original Message- From: Jeff Martin [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 5:56 PM To: Struts Users Mailing List Subject: RE: Formatting Dates, Integers... Be very careful about using DateFormatter's that way. I learned a hard lesson in a previous

RE: Formatting Dates, Integers...

2002-02-04 Thread Jeff Martin
Be very careful about using DateFormatter's that way. I learned a hard lesson in a previous project that DateFormater (and even just the format method) is not thread safe. Jeff -Original Message- From: Peter Pilgrim [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 7:23 AM

RE: using struts for larger apps

2002-01-22 Thread Jeff Martin
I earlier JDKs (1.0, 1.1), reflection was slow. Since java 1.2, reflection is fine. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 22, 2002 11:34 AM To: Struts Users Mailing List Subject: Re: using struts for larger apps Reflection will likely

RE: html:messages is missing from struts 1.01

2002-01-19 Thread Jeff Martin
Yes, html:messages should be missing from 1.01. The messages is a new tag that is not included in the 1.01 bug fix version, only in the nightly builds and what will be struts 1.1. -Original Message- From: Hai Hoang [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 19, 2002 6:32 PM To:

RE: multipe bean:define's in one page?

2002-01-15 Thread Jeff Martin
Out of curiosity, does % mybean=bar; % work? Jeff -Original Message- From: Moritz Petersen [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 12:47 PM To: Struts Users Mailing List Subject: RE: multipe bean:define's in one page? That's what I've thought. But there must be a way

RE: ActionFormperform() action is getting passed the same forminstance when accessed by two clients at the same time.

2002-01-08 Thread Jeff Martin
Another way to get this would be to have defined the scope of the action (in struts-config.xml) to application instead of request or session. Jeff -Original Message- From: Chris Birch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 5:36 AM To: Struts Users Mailing List;

RE: Adding a button

2001-12-22 Thread Jeff Martin
Is there any other data on the form that needs posted when they click the button? If not, you could make a separate form for just that button. If yes, I (like many) use a hidden variable in the form to hold the action (or button name, etc) that they clicked on, and set a separate forward for

RE: Netscape 4.7x slow with Tomcat/Struts combination!

2001-12-21 Thread Jeff Martin
You're close but not quite correct. As an optimization, Netscape 4.x busy-waits for the response from the web server. When the web server/servlets/JSPs/etc and Netscape are on the same box, Netscape's busy-waiting (as the foreground application) will suck up almost all available cpu time from

RE: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread Jeff Martin
What kind of error do you mean? Does it parse and validate against the provided DTD? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 2:14 AM To: Struts Users Mailing List Subject: struts-config.xml-Is there a tool to find errors in

RE: 500 Error

2001-12-13 Thread Jeff Martin
I had something like this the other night. I figured out that tomcat had saved the servlet generated off of my JSP and was checking the last-modified times between the servlet and the JSP file (like it should). The problem was that I was doing tag development and thus had to touch the JSP file

RE: Help, How to display Chinese in jsp by using message tag ?

2001-12-12 Thread Jeff Martin
Have you tried putting the contentType in the JSP page directive like I had previously suggested? The html spec at http://www.w3.org/TR/html4/ section 5.2.2 says: To sum up, conforming user agents must observe the following priorities when determining a document's character encoding (from

RE: Help, How to display Chinese in jsp by using message tag ?

2001-12-11 Thread Jeff Martin
Are you sure it has found the file? If, for example, you change the Chinese to English (i.e. expression_input.ok=ok), does the ok come out? If yes, does Chinese have to be quoted or somehow escaped within the file? Also, check that you are setting the page content type correctly (%@ page

RE: 2 problems with html:errors

2001-12-10 Thread Jeff Martin
This is a HUGE source of user error. Is there a chance we can make html:errors work WITHOUT the special properties in the ApplicationResources.properties file? -Original Message- From: Jonathan James [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 8:40 AM To: Struts Users

RE: Business objects as ActionForms

2001-12-05 Thread Jeff Martin
On a similar topic, what is the recommended way to move data from the form beans [subclass of ActionForm] to my business objects. Is it: A) in each getter and setter, such as: No member variables public String getFirstName() { return customer.getFirstName(); } public void setFirstName(String

RE: Indexed tags iterate tag problems

2001-12-05 Thread Jeff Martin
Along those lines, is there a struts debug var (in the servlet's config params for example) that will print/log messages when it gets a request param that it can't map to an ActionForm setter? It seems this would be very helpful when developing pages. Optimally, output could look something like:

RE: Quickly change page to prevent user to click several times on a link

2001-12-04 Thread Jeff Martin
Send them to an html page with a meta-refresh tag to automatically transfer him to the pdf-generating page. -Original Message- From: Frédéric Houbie - ABSIS-GROUP [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 10:09 AM To: Struts-User Subject: Quickly change page to prevent

RE: Quickly change page to prevent user to click several times on a link

2001-12-04 Thread Jeff Martin
Exactly. Forward them to a JSP page that looks like: html head META HTTP-EQUIV=Refresh CONTENT=0; URL=http://pdf_generating_servlet_or_jsp; / /head body Some nice please wait message here. /body /html Note the odd quoting of CONTENT and URL is intended. The browser will display this temporary

RE: Help with Html errors not showing errors

2001-12-04 Thread Jeff Martin
You make an Action error with error.detail but your messages file has errors.detail? Jeff -Original Message- From: Strichartz, Beth [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 2:11 PM To: Struts Users Mailing List Subject: RE: Help with Html errors not showing errors I