RE: Is Struts suitable for Java client?

2002-08-14 Thread Jason Chaffee
Probably the best thing to do would be to use a filter. The filter could handle the serialized object and do any preprocessing that the controller servlet would need. -Original Message- From: Leslie Yu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 2:50 PM To: Struts Users

RE: Is Struts suitable for Java client?

2002-08-14 Thread Jason Chaffee
, Filter is not supported in J2EE1.2 (i.e. Servlet 2.2). Any other idea? Thanks. - Original Message - From: Jason Chaffee [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 11:54 PM Subject: RE: Is Struts suitable for Java client? Probably the best

RE: O/R mapping tool

2002-08-14 Thread Jason Chaffee
I haven't used it, but Jakarta's OJB sounds interesting. -Original Message- From: Stephen Ting [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 5:46 PM To: 'Struts Users Mailing List' Subject: RE: O/R mapping tool Anyone of you know any good O/R mapping tool that support

RE: Struts (MVC) Shortcomings?

2002-04-25 Thread Jason Chaffee
I have been working on extending struts mappings to allow me to pass in information through the action mappings, but I always use on generic action class. Struts is extensible, so you should be able to accomplish what you want with a minimal amount of effort. -Original

RE: What happens when our session expires?

2002-01-28 Thread Jason Chaffee
performance issues... Craig. From: Jason Chaffee [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Sun, 27 Jan 2002 22:59:04 -0800 One approach would be to not let

RE: What happens when our session expires?

2002-01-27 Thread Jason Chaffee
One approach would be to not let the session timeout. The 2.3 servlet spec. allows you to set the timeout to -1, which means the session will never expire. -Original Message- From: Craig Tataryn Sent: Sun 1/27/2002 10:37 PM To: [EMAIL PROTECTED]

RE: Bug in BeanUtils.populate()

2002-01-14 Thread Jason Chaffee
To: Struts Users Mailing List Subject: Re: Bug in BeanUtils.populate() The method definitions were literally cut-and-paste from the spec. There is no other code in the spec relating to indexed properties. Arron. Jason Chaffee wrote: The spec. supports the following: setFoo(int index, Object

RE: Bug in BeanUtils.populate()

2002-01-14 Thread Jason Chaffee
:55 AM To: Struts Users Mailing List Subject: Re: Bug in BeanUtils.populate() The method definitions were literally cut-and-paste from the spec. There is no other code in the spec relating to indexed properties. Arron. Jason Chaffee wrote: The spec. supports the following: setFoo(int index

RE: Bug in BeanUtils.populate()

2002-01-14 Thread Jason Chaffee
and submit it to the commons dev list?... ...otherwise I can look into it for you. Once again, sorry about the ignorance. Arron. Jason Chaffee wrote: Again, you are missing the point. The following is allowed: void setFoo(int index, PropertyType value) This means that the PropertyType can

Bug in BeanUtils.populate()

2002-01-13 Thread Jason Chaffee
It appears there is a bug in BeanUtils.populate() for an indexed setter of array type. It doesn't take into account that it is an indexed setter and that the second parameter is an array because it only checks the first parameter which is always an int for an indexed setter. This is the

RE: Bug in BeanUtils.populate()

2002-01-13 Thread Jason Chaffee
The spec. supports the following: setFoo(int index, Object[] array) However, BeanUtils.populate() does not. The problem is that BeanUtils.populate() isn't checking if the second parameter is an array or not, it only checks the first parameter. However, the JavaBean spec. allows for

RE: Best Struts Web Server

2001-12-07 Thread Jason Chaffee
I have investigated many app servers and I have found no of them can even compare to resin, it is by far the best. And, if you happen to find a bug, Scott will usually fix it within a couple of days or you can fix it yourself since you have the code. -Original Message- From: a b

RE: Best Struts Web Server

2001-12-07 Thread Jason Chaffee
. Performance benchmarks I saw a while back put Orion and Resin in the same overall performance ballpark. - Original Message - From: Jason Chaffee [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, December 07, 2001 10:54 AM Subject: RE: Best

RE: [NEW-USER] WebLogic 5.1 sp9 deployment issue

2001-09-07 Thread Jason Chaffee
Title: RE: [NEW-USER] WebLogic 5.1 sp9 deployment issue Mark, I ran into session problems as well with sp9. We found sp9 to be quite buggy and decided to use sp8 until sp10 was released. You could try to contact BEA and get a custom fix, but by then sp10 should be released. Sorry, but I don't

RE: Barracuda vs. Struts [LONG]

2001-08-28 Thread Jason Chaffee
Title: RE: Barracuda vs. Struts [LONG] Ted, could you point us to the reports you mentioned in your Reflection section. I would be very interested in reading about these new performance findings. Thanks, -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Monday,

RE: Extending ActionServlet

2001-06-19 Thread Jason Chaffee
Title: RE: Extending ActionServlet I have done this and it works great. I load several struts-config.xml files into one mapping in the servlet. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 1:39 PM To: [EMAIL PROTECTED] Cc:

RE: java report article says bye-bye struts

2001-06-18 Thread Jason Chaffee
Title: RE: java report article says bye-bye struts I think we all need to remember that Struts is an excellent framework and 1.0 was only released on Fri. Struts is still a work in progress, therefor many of the concerns that have been raised should be addressed in future releases.

RE: FYI Weblogic 6 sp2 and stuts

2001-06-15 Thread Jason Chaffee
Title: RE: FYI Weblogic 6 sp2 and stuts I would like to add that Weblogic 5.1 sp 9 is very buggy and I couldn't get it to work either, but I am not having any problems with Weblogic 5.1 sp 8. -Original Message- From: Grant Davies [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001

RE: [ANNOUNCEMENT] Struts 1.0 (Final) Released

2001-06-15 Thread Jason Chaffee
Title: RE: [ANNOUNCEMENT] Struts 1.0 (Final) Released Hey Craig, Will the documentation be updated anytime soon? -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 5:23 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];

RE: Form-based Authentication

2001-06-12 Thread Jason Chaffee
Title: RE: Form-based Authentication Hi Matt and Abraham, I would like to know why you say that you need to specify a login-form that does not have j_security-check as its action? I am using this as the action and using Struts action classes to do the login? -Original Message-

RE: Templates

2001-06-01 Thread Jason Chaffee
Title: RE: Templates It is a bug with Weblogic. Weblogic probaly already sent newline charaters in the response, so it won't allow you to forward the request at that point. I recommend you keep the generated java file when the jsp is compiled and you will be able to see what Weblogic is

RE: a small problem

2001-05-14 Thread Jason Chaffee
Are you using the html:errors / tag in your jsp page? -Original Message-From: Tong, Tom [mailto:[EMAIL PROTECTED]]Sent: Monday, May 14, 2001 1:03 PMTo: '[EMAIL PROTECTED]'Subject: a small problem Hello, I am new to Struts and just trying to use validate()

RE: struts and tomcat4 reload causes exception

2001-05-11 Thread Jason Chaffee
Title: RE: struts and tomcat4 reload causes exception Actually, Resin will reload your classes. In fact, it will compile your java files for you if they change as well. -Original Message- From: Eric Rasmussen [mailto:[EMAIL PROTECTED]] Sent: Friday, May 11, 2001 11:44 AM To: [EMAIL

RE: struts and tomcat4 reload causes exception

2001-05-11 Thread Jason Chaffee
reloading the classes...?Jason, Is Resin a commercial or open-source product? Can you tell us how to enable class reloading, as you describe?Thanks,SimonAt 01:05 PM 5/11/01 -0700, Jason Chaffee wrote: Actually, Resin will reload your classes. In fact, it will compile your java files

RE: Philosophical question(s) related to STRUTS

2001-05-10 Thread Jason Chaffee
Title: RE: Philosophical question(s) related to STRUTS I believe that developers are starting to committ to Struts. This info. should be in the archive, but here it is again. Its noteworthy that the new 2nd edition Professional JSP book published by WROX

RE: Struts debugging in Emacs/JDE

2001-05-09 Thread Jason Chaffee
Title: RE: Struts debugging in Emacs/JDE http://www.xemacs.org -Original Message- From: Rajan Gupta [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 12:29 PM To: [EMAIL PROTECTED] Subject: Re: Struts debugging in Emacs/JDE Where can I download emacs/JDE from? --- Jon

RE: Basic Design Question...

2001-05-09 Thread Jason Chaffee
Title: RE: Basic Design Question... Read up on the MVC/Model 2 design pattern. Struts is based on this design pattern. It much better to have one servlet (controller) and several actions (models), than to have serveral servlets. -Original Message- From: Prakash Dominic [mailto:[EMAIL

RE: Localization

2001-05-09 Thread Jason Chaffee
Title: RE: Localization It works fine for be, even with double byte lanuguages. The one thing I had to do was to set the charset in the jsp page so it would display properly. -Original Message- From: Whitney Hunter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 3:27 PM To:

RE: javascript and struts

2001-05-08 Thread Jason Chaffee
Title: RE: javascript and struts Try thg following document.form[data.emplyeeName].value -Original Message- From: Will Spies/Towers Perrin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 5:39 AM To: [EMAIL PROTECTED] Subject: javascript and struts I have some HTML tags

RE: html:text default values? how?

2001-05-08 Thread Jason Chaffee
Title: RE: html:text default values? how? Why don't you use Struts and the MVC design pattern? You should have an action class that populates your form bean, then forwards to login.jsp. Struts will get the value from the form bean and display it on your page. -Original Message- From:

RE: Struts debugging in Emacs/JDE

2001-05-08 Thread Jason Chaffee
Title: RE: Struts debugging in Emacs/JDE Actually, Emacs is one of the best editors you could use. -Original Message- From: Jonathan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:45 PM To: [EMAIL PROTECTED] Subject: Re: Struts debugging in Emacs/JDE Emacs is geek

RE: html:text default values? how?

2001-05-08 Thread Jason Chaffee
. basically for something using just JSP is a cinch. my options are: add the new action and a new class, maybe add a new action that doesn't validate the form but refer to the same class?, or add a default attribute to the html:text tag. will have to think about it i guess. jae Jason Chaffee

RE: ActionServlet to change language ?

2001-05-07 Thread Jason Chaffee
Title: RE: ActionServlet to change language ? One solution is for each page to have a hidden field that contains it's relative path. Then you can forard to that page after you have changed the locale. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday,

RE: problem with weblogic 5.1sp9 and example webapp

2001-05-07 Thread Jason Chaffee
Title: RE: problem with weblogic 5.1sp9 and example webapp Use sp8, sp9 is really, really bad. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 8:58 AM To: [EMAIL PROTECTED] Subject: problem with weblogic 5.1sp9 and example webapp

RE: Potential Security Flaw in Struts MVC

2001-05-07 Thread Jason Chaffee
Title: RE: Potential Security Flaw in Struts MVC You can easily guard against this by using simple JavaBeans in the presentation layer and having your action class do the persistant storage from you JavaBean view layer. -Original Message- From: Jeff Trent [mailto:[EMAIL PROTECTED]]

RE: problem with weblogic 5.1sp9 and example webapp

2001-05-07 Thread Jason Chaffee
Title: RE: problem with weblogic 5.1sp9 and example webapp I hope you are aware that sp9 has some serious bugs and if you are counting on it following the servlet specification, well, your Web apps won't work correctly. In fact we found that sp9 loses session scope objects. If you must use

RE: i18n...

2001-05-03 Thread Jason Chaffee
Title: RE: i18n... I concur, Resin is an excellent app server. If you need EJBs as well, you can also use JBoss with Resin. -Original Message- From: Paul Tindall [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 9:09 PM To: [EMAIL PROTECTED] Subject: Re: i18n... Jason, I

RE: locating .properties files

2001-05-03 Thread Jason Chaffee
Title: RE: locating .properties files You shouldn't be adding WEB-INF/classes to your classpath. This should be running as a web app. You should have the following in your deployment desciptor and you should have ApplicaionResoruces.properties in the WEB-INF/classes directory: servlet

RE: struts and strict MVC

2001-05-02 Thread Jason Chaffee
Title: RE: struts and strict MVC Try using extension patterns. For example, url-pattern*.servlet/url-pattern where every call to your servlet will have the the .servlet extension. -Original Message- From: Mindaugas Idzelis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02,

RE: localization hor html tags

2001-05-02 Thread Jason Chaffee
Title: RE: localization hor html tags You should do it the following way: html:submit bean:message key=xy.test.btn.submit/ /html:submit -Original Message- From: Eric Rasmussen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 10:27 AM To: [EMAIL PROTECTED] Subject: Re:

nested beans

2001-05-02 Thread Jason Chaffee
I am using nested beans in Struts, for example: html:text property="user.address.street" / In this particulat example the address bean is null. Struts still trys to call the getter and setter methods on this null object. Does anyone know if this is the desired behavior for Struts, or

RE: Reducing the burden on ActionServlet.

2001-05-01 Thread Jason Chaffee
as I can recall the struts-config.xml file is loaded and parsed in the initMappings() method of ActionServlet. Can we really have more than oneconfiguration file in our application. -Original Message-From: Jason Chaffee [mailto:[EMAIL PROTECTED]]Sent: Saturday, April 28, 2001

RE: wizard style example, anywhere?

2001-05-01 Thread Jason Chaffee
The form bean will call it's reset() method for each page. Therefore, change your implementation of the reset() method to not remove your data. -Original Message-From: Jeff Trent [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 9:11 AMTo: [EMAIL PROTECTED]Cc: [EMAIL

RE: html:message tag

2001-05-01 Thread Jason Chaffee
resources under key org.apache.struts.action.MESSAGE" error. Thanks, -Sue Jason Chaffee wrote: it should be bean:message -Original Message- From: Sue Deng [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 5:26 PM To: [EMAIL PROTECTED] Subject:

RE: html:message tag

2001-05-01 Thread Jason Chaffee
-struts-1.0-b1 under Tomcat. What should I do now? Thanks, -Sue Jason Chaffee wrote: Have you made any changes to the code? The ActionServlet should be creating the resource bundle and storing in the servlet context using this key.What app server are you using?

RE: Can not read i18n properties file

2001-05-01 Thread Jason Chaffee
Title: RE: Can not read i18n properties file That would be my guess as well. Take a look at the html source that is being produced and see if there is a charset header, if there isn't copy the source to a static file and add a charset header and try to load it in IE, this should give you your

RE: html:message tag

2001-05-01 Thread Jason Chaffee
changes on the code. What do you mean the app server? I am using jakarta-struts-1.0-b1 under Tomcat. What should I do now? Thanks, -Sue Jason Chaffee wrote: Have you made any changes to the code? The ActionServlet should be creating the resource bundle and storing

RE: html:message tag

2001-05-01 Thread Jason Chaffee
uot; in web.xml file. After I add this line, my jsp works. So, why is this line so important for using bean:message lag? Thanks, -Sue Jason Chaffee wrote: I find the following configuration easier: Simply put the the resouce file in /WEB-INF/classes directory. Then c

RE: Override the presentation of html:errors

2001-05-01 Thread Jason Chaffee
The best way to handle errors is to name them separatly and then access each one indiviually in your jsp. See the Java docs for more info on error handling. It covers this approach quite well. -Original Message-From: Jeff Trent [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01,

RE: html:message tag

2001-05-01 Thread Jason Chaffee
ed in teh deployment descriptor to be precompiled? -Original Message-From: Jason Chaffee [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 3:41 PMTo: '[EMAIL PROTECTED]'Subject: RE: "html:message" tag Your ActionServlet needs to be loa

RE: Why need to remove FormBean ??

2001-04-30 Thread Jason Chaffee
Title: RE: Why need to remove FormBean ?? I don't know the exact reason it is being done, but it may be a safety net in case the container doesn't remove it properly. As many of you have probably come to find out, many of the app servers haven't implemented every part of the servlet

RE: html:message tag

2001-04-30 Thread Jason Chaffee
Title: RE: html:message tag it should be bean:message -Original Message- From: Sue Deng [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 5:26 PM To: [EMAIL PROTECTED] Subject: html:message tag Hi, I am trying to build form using struts taglib. But I get no such tag

Re: What causes the Action Servlet to be Invoked at the Server Startup

2001-04-30 Thread Jason Chaffee
to do with J2EE web application deployment?? Thank you very much in Advance. Uday. -- Jason Chaffee Software Engineer MetaTV Inc. Phone:(415) 289-8516

RE: Creating html:hidden ... dynamically

2001-04-30 Thread Jason Chaffee
Title: RE: Creating html:hidden ... dynamically Is there a reason you don't want to store this information in a bean, It makes more sense than storing it in hidden fields. You are essentially doing your own session scope management. Why not let your container do this for you? -Original

RE: Where to forward when validate returns false in wizard style forms?

2001-04-30 Thread Jason Chaffee
Title: RE: Where to forward when validate returns false in wizard style forms? Yes, it would be better to have an action for each step in the process. That is what MVC/Model 2 is all about. -Original Message- From: Seth Ladd [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001

RE: Returning from a form apge

2001-04-30 Thread Jason Chaffee
Title: RE: Returning from a form apge If you are using the MVC design pattern then you will have an action associated with the save. What I have done is keep a hidden field for the referring page, which keeps track of the mapping key. This way I am able to forward to the jsp that originally

Re: findforward() failed to redirect my action to the next page

2001-04-29 Thread Jason Chaffee
// return null; } } M. Amin -- Jason Chaffee Software Engineer MetaTV Inc. Phone:(415) 289-8516

Re: Lookup performance on ActionMappings

2001-04-29 Thread Jason Chaffee
suspicious that the lookup time of the ActionMapping might become unsatisfactory when you reach a certain number of mappings. Does anyone have any statistics? Would you all suggest a servlet for each site in this case? Keep in mind that all fo the sites share the common core enterprise framework. -- Jason

Re: Possiblility Answer to: html form widgets not appearing

2001-04-28 Thread Jason Chaffee
+ + p.getProperty(s)); System.out.println(); }//while }//method private void displayWeblogicProperties(){ } } - Original Message - From: Jason Chaffee [EMAIL PROTECTED] To: [EMAIL

Using dynamic values with checkboxes/multiboxes

2001-04-27 Thread Jason Chaffee
Title: Using dynamic values with checkboxes/multiboxes I want to have a group of checkboxes that all have the same name (multiboxes in Struts), but I want the value to be an iterator from an array. For example I have an array of size 3 so i want to create the following 3 checkboxes: input

RE: ActionForm validation

2001-04-27 Thread Jason Chaffee
Title: RE: ActionForm validation You can set the scope of the bean in your action mappings in the struts-config.xml. See below: action path=/action/saveOptions type=com.foo.SaveOptionsAction input=/action/options.jsp name=form scope=session validate=true forward name=somePage

RE: System Console Messages

2001-04-27 Thread Jason Chaffee
Title: RE: System Console Messages Try 0 for the debug value. -Original Message- From: Scott Walter [mailto:[EMAIL PROTECTED]] Sent: Friday, April 27, 2001 1:46 PM To: [EMAIL PROTECTED] Subject: System Console Messages Does anybody know how to get rid of all those messages when

RE: html form widgets not appearing

2001-04-27 Thread Jason Chaffee
Title: RE: html form widgets not appearing What does the html source look like? You also might want to check the method loadLocale() and make sure the message strings are being loaded from the file. -Original Message- From: G.L. Grobe [mailto:[EMAIL PROTECTED]] Sent: Friday, April

Re: html form widgets not appearing

2001-04-27 Thread Jason Chaffee
trying to read the key. I saw the file it was trying to read was correct by doing a println(getClass().getResource(my.properties)... in my jsp file. I'll look at this loadLocale to see how and where to use it. Thnxs. - Original Message - From: Jason Chaffee To: '[EMAIL

Re: html form widgets not appearing

2001-04-27 Thread Jason Chaffee
/apache/struts/util/LocalStrings_en.properties name = org/apache/struts/util/LocalStrings.properties key = message.bundle key = lookup.bean key = lookup.target key = lookup.scope key = write.io key = lookup.method key = lookup.access - Original Message - From: Jason Chaffee [EMAIL

Re: html form widgets not appearing

2001-04-27 Thread Jason Chaffee
it's up to the app server to pass the found resources to struts. I thought I passed over some code where struts did the reading of params from web.xml? Therefore making it a struts problem. - Original Message - From: Jason Chaffee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday