Re: Database pooling code

2001-03-08 Thread Matthias Bauer
I am just testing the isClosed() method. In my opinion it is the driver's responsibility to use the most efficient way to test if the connection is valid or not. Testing with a simple statement like "select * from dual" is certainly also an option, but definitely less efficient. Because

struts, tomcat and own JNDI service provider

2001-03-08 Thread Roland Huss
Ahoi, I have a problem with tomcat 3.2.1, stuts, Jdk 1.3 and JNDI. In our struts application we are using an own JNDI provider for looking up plugins. However, since we are using JDK 1.3, which includes the javax.naming packages itself, they are always loaded by the system classloader. Hence,

Re: Minimizing Action class proliferation

2001-03-08 Thread Elod Horvath
Niall Pemberton wrote: Donnie, How about this as an alternative. I have created a subclass of Action called StandardAction which uses reflection to invoke a method with the same name as the "actions" path (defined in the struts-config.xml file). So all you have to do is extend the

Re: Anyway to onFocus without Javascript?

2001-03-08 Thread William Jaynes
If the focus attribute is used in the html:form tag it actually generates JavaScript. - Original Message - From: "Eric Rasmussen" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 07, 2001 10:05 PM Subject: Re: Anyway to onFocus without Javascript? Well, there is, but I

Re: My struts-template is broken

2001-03-08 Thread Maya Muchnik
Hi, I have the similar result for Tomcat 3.1. But I do not have the problem with the Cerdric's "Components". Why do they react different? Maya Tom Miller wrote: Turned out the problem was using Tomcat 3.1, templates seem to work properly with Tomcat 3.2.1. Tom Miller wrote: Whew! Somehow

Problem using struts-example.war with J2SDKEE1.3(beta)

2001-03-08 Thread Thai Thanh Ha
I can't use struts-example.war with J2SDKEE1.3(beta). The JSP pages work normally, but when I use *.do, server always returns: HTTP Status 404 - /editRegistration.do The requested resource (/editRegistration.do) is not available. What's wrong? Please help me! I know that J2EESDK isn't a

RE: build problems, finding javax.sql.DataSource

2001-03-08 Thread Winters, Jason
It's located in the JDBC 2.0 Optional Package API. You can download it from http://java.sun.com/products/jdbc/download.html. Jason -Original Message-From: Mike Begeman [mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 07, 2001 3:34 PMTo: [EMAIL PROTECTED]Subject: build

RE: Help! Can't access ActionForm properties in Action perform()!

2001-03-08 Thread Dorai, Harish (c)
I also got a similar exception, and for me the reason was that I had different form field name and bean property name. Make sure that the form that you are submitting have the field names same as the ActionForm bean's properties. -Original Message- From: Firmin David [mailto:[EMAIL

Re: My struts-template is broken

2001-03-08 Thread Cedric Dumoulin
Certainly because Components do the flush by default. Cedric Maya Muchnik wrote: Hi, I have the similar result for Tomcat 3.1. But I do not have the problem with the Cerdric's "Components". Why do they react different? Maya Tom Miller wrote: Turned out the problem was using

RE: alternate flow control

2001-03-08 Thread Nanduri, Amarnath
Thanks a lot. It surely helps. Amar.. -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 8:12 PM To: [EMAIL PROTECTED] Subject: Re: alternate flow control The names "success" and "failure" are arbitrary. You can actually define as many

RE: Anyway to onFocus without Javascript?

2001-03-08 Thread Nanduri, Amarnath
I believe that if we use javascript it can be done. When struts shows the previous page with errors in it, using javascript we can send the focus to the first error field in the group. I believe that i have done something similar to this with my previous client. Basically we used jsp tags to get

RE: URGENT RE: token issue in hyperlink

2001-03-08 Thread Nanduri, Amarnath
Thanks. It sure does help. cheers, Amar.. -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 11:59 PM To: [EMAIL PROTECTED] Subject: Re: URGENT RE: token issue in hyperlink The session ID will only show up in the URL in two cases: 1) On

RE: Help! Can't access ActionForm properties in Action perform()!

2001-03-08 Thread Firmin David
Thanks, but sadly, that wasn't the problem, and I still haven't figured it out... The exception is being thrown from the Action's perform() method, meaning validation in the bean is successful, and therefore all the field names match up. For some reason when I reference the formbean in the action

RE: Minimizing Action class proliferation

2001-03-08 Thread DONNIE HALE
Niall, Thanks for the sample code. This is one approach I was considering. One enhancement would be to use a map of method name to Method object so that you only need to do the reflection once per method name. Just a thought... It would be nice to do a standard implementation of this, with

ymtd.html - Stuts/JSP and Velocity/Turbine

2001-03-08 Thread dion
Hi Jon, you may know my biases, but in the interests of keeping the article even handed, I have some comments to make. Say Hello - * e.g. "The primary difference between the two is the way that output is performed. With JSP, one needs to embed "code" within % % tags and for

RE: You make the decision Velocity/Turbine vs. Struts/JSP

2001-03-08 Thread dion
Or to put it another way, Putting Velocity on top of Servlets doesn't fix the warts in Servlets. It simply hides them until your developers find them. See getInitParameter in ymtd. -- dIon Gillard, Multitask Consulting Work: http://www.multitask.com.au NetRexx:

Action executed twice !

2001-03-08 Thread Houghton,Neil
Hi, I am currently using Weblogic 5.1 SP8 with the latest nightly build of struts (08-03-01) and am observing some very odd behaviour with my Actions. I have placed a line of debug output into my Action which itself does nothing except return an ActionForward pointing to the input JSP. The JSP

Using Struts With WebSphere.

2001-03-08 Thread Anwar Mehdi
Hi, I don't know if this is the right place to post the following question although it seems more related to WebSphere. If this is not the right place, could some please guide me to the right newsgroup for this. If it is then here's my question. I'm a new user to WebSphere/ IBM Visual Age

Re: Minimizing Action class proliferation

2001-03-08 Thread Jens Rehpöhler
Hy all, there's an article about using reflection in servlets on the javaworld homepage: http://www.javaworld.com/javaworld/jw-12-2000/jw-1221-reflection_p.html Jens Niall Pemberton wrote: Donnie, How about this as an alternative. I have created a subclass of Action called StandardAction

RE: Anyway to onFocus without Javascript?

2001-03-08 Thread Anderson, Jessica
is the event for this onLoad? or something else? -Original Message- From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 7:40 AM To: '[EMAIL PROTECTED]' Subject: RE: Anyway to onFocus without Javascript? I believe that if we use javascript it can be done.

significance of property attribute in select tag

2001-03-08 Thread Anand Raman
hi guys What exactly should be the value of the property attribute of select tag I am using a string and it reports that the value doesnt confirm to the TLD. html:select property="paymentMode" html:options collection="paymentModeList" property="id" labelproperty="value"/ /html:select

RE: Anyway to onFocus without Javascript?

2001-03-08 Thread Nanduri, Amarnath
I believe this is for the onLoad() that you use in the BODY tag. Is there any proposal as to include this in the 1.1 (or) 1.0 version of struts ? Basically everytime a jsp page is called, the onLoad() method is called which send the focus to the first error (if any exists). With my previous

RE: Minimizing Action class proliferation

2001-03-08 Thread DONNIE HALE
Jeff, I do understand the flip side of the issue. In our environment, one developer "owns" what would be considered the related actions. In any case, CVS does a great job of handling multiple developers working on the same file. As far as a common base class goes, well Java doesn't support

jdbc explorer

2001-03-08 Thread soh syed
has any one used jdbc explorer which comes with Jbuilder 4.0 i am trying to use it but its not loading the oracle driver,classpath issue... any suggestions! __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail.

RE: Cannot find message resources underkeyorg.apache.struts.action.MESSAGE

2001-03-08 Thread Jeff Schnitzer
I still don't understand why you need to store anything more than the Locale in the user's session. When you want a resource, you call: String message = ResourceBundle.getBundle(resourceName, locale, classLoader).getString(key); And you get your message. Why more complexity? Jeff

Re: struts, tomcat and own JNDI service provider

2001-03-08 Thread Maya Muchnik
Roland, I think, you can specify JNDI provider in env.put statements. Or alternative way to set the following lines in jndi.properties file (marked with red - replace with your implementation): java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory java.naming.factory.url.pkgs=your_path

Re: jdbc explorer

2001-03-08 Thread Dallas_Browning
You'll need to edit your jbuilder.config file (in Jbuilder/bin/). You'll see a line that looks like this: # Add JDBC Drivers And under it is where you'll add the path to your jdbc driver. Then, restart Jbuilder, and your jdbc explorer should work.

RE: Minimizing Action class proliferation

2001-03-08 Thread Jeff Schnitzer
I've found very few cases where single inheritance has been a problem: Action - MyActionBase - MyAction is a useful pattern. My personal opinion is that you would be doing yourself a favor by breaking your aversion to lots of little files. That's why we have packages :-) Don't fight the

Re: Minimizing Action class proliferation

2001-03-08 Thread Richard Reich
- Original Message - From: "DONNIE HALE" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 08, 2001 06:31 Subject: RE: Minimizing Action class proliferation It would be nice to do a standard implementation of this, with Craig's blessing of course :), and add it to Struts to

ActionForm question (repost)

2001-03-08 Thread Bryan Field-Elliot
Question reposted (never got any responses) -- please respond, someone :) Question about creating ActionForm beans -- What kinds of data types are supported? I could not find a reference to this in the docs. For example, I want to have an input box on my forms, where the user can enter a

RE: Minimizing Action class proliferation

2001-03-08 Thread nic.hobbs
Memo from Nic Hobbs of PricewaterhouseCoopers Start of message text Donnie, Can't you just subclass the struts Action class add the necessary common functionality and then subclass this new class for each of your actions? Then there is no multiple

RE: From where to download the XML parsers...

2001-03-08 Thread Shamdasani Nimmi-ANS004
http://java.sun.com/xml/download.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 4:32 AM To: [EMAIL PROTECTED] Subject: From where to download the XML parsers... Hi all, Can anyone tell me where do i get these packages I'm

RE: Action executed twice !

2001-03-08 Thread Fickes, Vic
I had a similar problem when using the submit onClick attribute which submitted its own action. If you are doing the same thing, all I did was switch over to using the html:button tag. Vic -Original Message- From: Houghton,Neil [SMTP:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001

RE: significance of property attribute in select tag

2001-03-08 Thread Shamdasani Nimmi-ANS004
Anand, Try using: html:select property='%= new String("paymentMode") %' notice ' instead of " -Nimmi -Original Message- From: Anand Raman [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 10:09 AM To: struts Subject: significance of property attribute in select tag hi guys

ugly code using iterate tag over a form with html tags

2001-03-08 Thread Brian Knorr
This is code looks pretty complicated and ugly, which to me defeats the whole purpose of struts, but this is the only way I can get struts to support dynamic input and select tags in an html form. Does anyone know of an easier way? Are there plans for better support of this in the future? %

RE: Minimizing Action class proliferation

2001-03-08 Thread DONNIE HALE
As brilliant as Craig M. clearly is, it doesn't mean there's no room to question and/or improve upon the framework's design or to make it flexible enough to suit various development tastes while still fulfilling its primary objectives. Donnie [EMAIL PROTECTED] 03/08/01 11:16AM I've found

Problem with multiple submit image buttons

2001-03-08 Thread Wax, Michael
I need to determine which of several html:image buttons in a form has been clicked. I have tried the following: public class MyForm extends ActionForm { ... private MyFormBean bean1 = new MyFormBean(); private MyFormBean bean2 = new MyFormBean(); ... public MyFormBean getBean1 () {return

Newbie Struts Question

2001-03-08 Thread Damien_Evans
Hi all, I'm new to Struts (although not to JSPs Servlets in general), and am having problems getting the example (as well as a simple hello world app) to run. I'm using IBM VisualAge for Java 3.5, with the VisualAge Tomcat Test Environment 3.1. When I try to access

Tomcat3.2 cannot load ActionServlet on startup????

2001-03-08 Thread Dung Hoang
2001-03-08 12:57:41 - Ctx( /dvbs ): JasperException: R( /dvbs + /index.jsp + null) E:\DVBS\Apps\tomcat_3.2\webapps\dvbs\index.jsp(1,0) Unable to open taglibrary /WEB-INF/struts-bean.tld : Could not locate TLD META-INF/taglib.tld The above line I got from tomcat.log Any ideas would be

RE: Minimizing Action class proliferation

2001-03-08 Thread Cook, Levi
Title: RE: Minimizing Action class proliferation For what its worth, I find Niall Pemberton's StandardAction to be a very elegant solution to the common problem of locating an appropriate action handler. Since it addresses a common problem in building a web app. and follows several other

Tomcat3.2 cannot load ActionServlet on startup????

2001-03-08 Thread Dung Hoang
2001-03-08 12:57:41 - Ctx( /dvbs ): JasperException: R( /dvbs + /index.jsp + null) E:\DVBS\Apps\tomcat_3.2\webapps\dvbs\index.jsp(1,0) Unable to open taglibrary /WEB-INF/struts-bean.tld : Could not locate TLD META-INF/taglib.tld The above line I got from tomcat.log Any ideas would be

Re: ActionForm question (repost)

2001-03-08 Thread Maya Muchnik
Brian, I think, the best way to have a bean with String properties, and corresponding form. When you perform data checking convert there to a number if this field has to be a number. If validation is OK, put to database converted data. Maya Bryan Field-Elliot wrote: Question reposted (never

Re: ActionForm question (repost)

2001-03-08 Thread John Raley
Use Strings. However, I think an empty textfield will set its String property to "" (empty string), not null. Bryan Field-Elliot wrote: Question reposted (never got any responses) -- please respond, someone :) Question about creating ActionForm beans -- What kinds of data types are

RE: ActionForm question (repost)

2001-03-08 Thread Fickes, Vic
It sounds like you should leave your property as an Integer but have your getter and setter return/accept Strings. Then do whatever conversions you want in your getter and setter to convert your Integer to/from Strings. I'm new to Struts too, but with regard to what datatypes are supported,

Iterate an indexed property?

2001-03-08 Thread Katarina Nelson
Hi, I try on my jsp page iterate an indexed property. I get this exception: "javax.servlet.ServletException: Invalid indexed property 'routingData[<%=s%>]'" My code: %int counter = 0;String s = null s.valueOf(counter);for (int i = 0; i myRoutingList.getRouteElements().size(); i++) {%

Re: Need one example ...

2001-03-08 Thread Maya Muchnik
If you are using struts 1.0 you have several examples, including struts-example.war with a source code provided. Raymond wrote: Hi, Can someone give me an example to pass a parameter with struts-form.tld. Thanx, Raymond

changing scope of the ActionForm objects at runtime

2001-03-08 Thread Nanduri, Amarnath
Hi all, Is it possible to change the scope of the ActionForm bean during runtime ? For example i have a multi-page ActionForm Bean being used by different Actions. After the user has filled in all the information in this ActionForm, the user submits the information to an other Action

session scope action form

2001-03-08 Thread Anand Raman
hi guys How to retrieve a session scope action form in some other jsp file .. I tries doing a session.getAttribute("[name]") but didnt work.. I am doing something wrong.. Thanks Anand

text tag

2001-03-08 Thread Sachin Tendulkar
Hi, I am trying to use the html:text tag like this: html:text property="%= FormConstants.LOGON_USERNAME %" size="16" maxlength="16"/ when i execute the jsp i get the following error : javax.servlet.ServletException: runtime failure in custom tag 'form' but if for the property attribute I use a

RE: Problem with multiple submit image buttons

2001-03-08 Thread Deadman, Hal
Are you doing anything in the reset method of the ActionForm? You may want to include the jsp code fragment that uses the html:image tags. Hal -Original Message- From: Wax, Michael [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 12:36 PM To: '[EMAIL PROTECTED]' Cc: Boulatian,

RE: Minimizing Action class proliferation

2001-03-08 Thread DONNIE HALE
What you call a "handler" I originally called "method" in my post which started this thread. In any case, that's what I'd like to see - something like Niall's "StandardAction" with cached Methods configured by a "handler" or "method" attrbute on the action element. And as has been indicated,

Question about PropUtils.copyProperties()

2001-03-08 Thread Bryan Field-Elliot
Question -- in evaluating names of properties (get/setter methods), does it do a case-INsensitive match, or case-sensitive? Due to the tool I'm using, some classes have method names like: getcc_number() putcc_number() while others will have it as: getCc_number() putCc_number() Will these be

RE: session scope action form

2001-03-08 Thread Nanduri, Amarnath
Try to use the jsp:useBean id="user" scope="session" type="org.apache.struts.example.User"/ -Original Message- From: Anand Raman [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 2:05 PM To: struts Subject: session scope action form hi guys How to retrieve a session scope

RE: text tag

2001-03-08 Thread Nanduri, Amarnath
Use singlequotes... html:text property='%= FormConstants.LOGON_USERNAME %' size="16" maxlength="16"/ This will take care of your error Amar.. -Original Message- From: Sachin Tendulkar [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 2:05 PM To: [EMAIL PROTECTED]

FYI: disable Javascript in IE

2001-03-08 Thread Maya Muchnik
Hi, I remember, that somebody told me that disabling JavaScript is possible only in Netscape. I have found out (through Netscape site) how to disable JavaScipt in IE: go to Tools-Internet Options-Security-Custom Level-Scripting-Active scripting (disable, enable, prompt). But after you change

Re: session scope action form

2001-03-08 Thread Ratnadeep Bhattacharjee
What exactly is the error you are getting? Generally you'd save something as follows: session.setAttribute(key, object); and retrieve it as follows: ObjectType object = (ObjectType) session.getAttribute(key); -Deep. hi guys How to retrieve a session scope

Re: logic:iterate and form controls, revisited

2001-03-08 Thread Jim Newsham
Brian Knorr wrote: Jim, Hi... could you show me a small example of how you got this to work with the html:text tags... I can only get it to work with the way Eric Wu describes below. Do you know if this will problem is going to be fixed anytime soon? Thanks. --Brian

Re: Question about PropUtils.copyProperties()

2001-03-08 Thread Maya Muchnik
All getters and setters have to follow a JavaBean convention. This means you can have getCc_number(), not getcc_number(). The second thing the properties names have to match (case sensitive) in a source and destination beans. Bryan Field-Elliot wrote: Question -- in evaluating names of

user's timezone

2001-03-08 Thread Peter Alfors
Hello all, Is there any way to retrieve the time-zone of the current user? The request object of coarse has the Locale object, but I don't see anything in it that will lead me to the user's time-zone. The country and language are there, but that obviously is not enough. Please tell me that

user time-zone

2001-03-08 Thread Peter Alfors
It appears that the time-zone offset could be retrieved via javascript on a startup page, then entered in to the users session through an action class / hidden field combo. Its ugly, but it would work. Any better ideas? begin:vcard n:; x-mozilla-html:FALSE org:BRIMG

RE: disable Javascript in IE

2001-03-08 Thread Nanduri, Amarnath
IE does not hang for me. -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 3:25 PM To: [EMAIL PROTECTED] Subject: FYI: disable Javascript in IE Hi, I remember, that somebody told me that disabling JavaScript is possible only in

Re: disable Javascript in IE

2001-03-08 Thread Maya Muchnik
I have IE 5.00, and I did not wait a lot. "Nanduri, Amarnath" wrote: IE does not hang for me. -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 3:25 PM To: [EMAIL PROTECTED] Subject: FYI: disable Javascript in IE Hi, I remember,

Re: user time-zone

2001-03-08 Thread Maya Muchnik
Please, provide a javascript code how to do this. Peter Alfors wrote: It appears that the time-zone offset could be retrieved via javascript on a startup page, then entered in to the users session through an action class / hidden field combo. Its ugly, but it would work. Any better

Re: user time-zone

2001-03-08 Thread Peter Alfors
I have not tried this yet, but according to the books, it should work. function getTimeZoneOffset() { var date = new Date(); var offset = date.getTimeZoneOffset(); alert(offset); } This is the offset (in minutes) from GMT/UTC. HTH, Pete Maya Muchnik wrote: Please, provide a

Re: user time-zone

2001-03-08 Thread Peter Alfors
oops, should be a lowercase 'z' getTimezoneOffset() Peter Alfors wrote: I have not tried this yet, but according to the books, it should work. function getTimeZoneOffset() { var date = new Date(); var offset = date.getTimeZoneOffset(); alert(offset); } This is the offset (in

RE: struts.upload, performance and more

2001-03-08 Thread Schachter, Michael
Rusty, I'm currently modifying the upload package to not use the ServletInputStream.readLine() method for those very same reasons. I'm also fixing some other issues. I hope to get this done soon. I cc'ed this to struts-user, hope you don't mind. -Original Message- From: Knabe, Rusty

Datasource proposal

2001-03-08 Thread Johan Compagner
Using another one is very difficult because how the properties are set. (I want to use the org.apache.struts.sql one but this one has many more options and totally different method names to set the properties (like url ect) And also the open en close methods aren't called automaticly. So i

Re: user time-zone

2001-03-08 Thread Maya Muchnik
I have got a response from my colleagues, that the time offset can not be used to establish correct time zone. The offset depends on a season and other factors. A user can change a time zone through "Date/Time Properties" window for NT. It means you need to ask the user what time zone he / she

Re: user time-zone

2001-03-08 Thread Peter Alfors
I have decided against attempting to display date/times in the user's timezone. It is not a current client requirement, so I will defer it. However, I think that you could sufficiently handle the daylight savings issue if necessary. So, once you retrieved the user's environment setting for the

Business Object Bean Persistence Strategies

2001-03-08 Thread Michael McCallister
What strategies or patterns do people use to manage persistence of business object data in a Struts application when there is no EJB layer and there is a desire to keep the business objects as independent of the web portion of the application as possible? Do you use the Struts DataSource and

bundle param in message tag

2001-03-08 Thread Ratnadeep Bhattacharjee
Hi, I was wondering if someone could please help me with this problem: I have created my own properties file called "Resources.properties" and it is located in WEB-INF/classes/com/x/y/resources. I am tring to use it in a jsp page as follows: %@ taglib uri="/WEB-INF/struts-bean.tld"

RE: bundle param in message tag

2001-03-08 Thread Shamdasani Nimmi-ANS004
Use html:form instead of form:form also include %@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" % -Original Message- From: Ratnadeep Bhattacharjee [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 4:58 PM To: [EMAIL PROTECTED] Subject: bundle param in message tag Hi,

Re: bundle param in message tag

2001-03-08 Thread Maya Muchnik
In struts-example you can find web.xml file (under WEB-INF) directory. A part of this file: ... !-- Action Servlet Configuration --> servlet> servlet-name>action/servlet-name> servlet-class>org.apache.struts.action.ActionServlet/servlet-class> init-param> param-name>application/param-name>

Re: bundle param in message tag

2001-03-08 Thread Ratnadeep Bhattacharjee
In struts-example you can find web.xml file (under WEB-INF) directory. A part of this file: ... !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param

RE: Iterate an indexed property?

2001-03-08 Thread Hatinder Chawla
I got a similar problem and resolved it by adding indexed accessors to the bean. Add methods like getRoutingData(int index) and setRoutingData(int index, RoutinData data). Hatinder -Original Message-From: Katarina Nelson [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 08,

Re: Business Object Bean Persistence Strategies

2001-03-08 Thread Dan Malks
Hi Mike, We just released a catalog of commonly used patterns and strategies to the developer community. We touch on this issue among others. ( For specific discussion of this issue have a look at the View Helper pattern. There is a sidebar titled Helpers about halfway down the page in the

RE: Problem using struts-example.war with J2SDKEE1.3(beta)

2001-03-08 Thread Thai Thanh Ha
Thank you for your help. Now I have found the reason. The deploy tool always changes the web.xml in my WAR file( *.do to /*.do ) so anything.do can't be found. Maybe this is a bug of deploy tool? I found where the J2EE server stores its JAR files and change them every time I want to change my

PLS HELP!

2001-03-08 Thread JeanX
Hi struts-user , I extend ActionForward class for some new property . //MyForward.class private boolean some=false; public boolean getSome(){ return this.some; } public void setSome(boolean is){ this.some=is; } //end And i set the new property value in struts-config.xml by

Re: Business Object Bean Persistence Strategies

2001-03-08 Thread Jim Richards
My approach is to have: JSP - Struts Form/Action - Business Rules - Database The busines rules are set up as singleton object on servlet startup. I've subclassed the ActionServlet and overloaded the datasource init method, there I set up the four business rule classes and

Re: select options

2001-03-08 Thread Martin Cooper
The FormBean will be updated with the selection. Your DataBean will not be modified. -- Martin Cooper - Original Message - From: "Nick Pellow" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 08, 2001 3:16 PM Subject: Re: select options Martin Cooper wrote: It

Re: ActionForm question (repost)

2001-03-08 Thread Anand Raman
Hi Bryan I have used both primitive data types like int, float, boolean and String objects in the ActionForm class.. It has been working fine.. Meaning that a text filed which is filled with a numeric value populates the primitive setter method appropriatly.. The same happens in the case of a

Re: significance of property attribute in select tag

2001-03-08 Thread Martin Cooper
Working from the example you gave, the html:select tag would use the string obtained by calling yourFormBean.getPaymentMode() to determine which of the options is initially selected when the page is displayed. It uses yourFormBean because that is the default bean when no "name=" attribute is

[INFORMATIONAL] Javasoft J2EE Patterns Catalog

2001-03-08 Thread Philip Hart
Hi All Javasoft have just released a J2EE Patterns Catalog (http://www.javasoft.com/features/2001/03/patterns.html) To quote: The Sun Java Center has just released, in beta form, the J2EE Patterns Catalog to the development community via the Java Developer ConnectionSM (JDC) program.

Re: text tag

2001-03-08 Thread Martin Cooper
Did you import the FormConstants class at the top of your JSP? -- Martin Cooper - Original Message - From: "Sachin Tendulkar" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 08, 2001 11:04 AM Subject: text tag Hi, I am trying to use the html:text tag like this:

Re: [INFORMATIONAL] Javasoft J2EE Patterns Catalog

2001-03-08 Thread Wong Kok Wai
I would also suggest reading the Service Locator and Service Activator patterns which address Struts and EJB integration. --- Philip Hart [EMAIL PROTECTED] wrote: Hi All Javasoft have just released a J2EE Patterns Catalog (http://www.javasoft.com/features/2001/03/patterns.html) To quote:

Re: Indexed and nested references

2001-03-08 Thread John Tangney
Thanks to all those who responded! I have figured it out. The problem, as usual, was in my form bean. The getQuestion(int index) accessor needed to *create* a new QuestionForm if none existed for the given index. That was it. The succession of exceptions that were throw were horrifyingly