Users clicking twice

2002-10-15 Thread Tim Sawyer
Hi, We have a problem with users clicking two links on a page, and our app falls over. The user clicks a link on the first page, then whilst that page is being processed by the struts servlet, they click another on the first page. How has everyone else got around this problem? ta, Tim.

Websphere 4.0.1

2002-07-21 Thread Tim Sawyer
Hi, Do we have to do anything special to deploy on Websphere 4.0.1? Our code is complaining it can't find the struts tag libraries, yet it works fine on Orion 1.5.2. Anyone know what version of Tomcat WebSphere 4.0.1 is based on? I'll have a go and see if I can get our code working with that.

RE: Have anyone info on using Struts with WebServices(SOAP) or XML(for RPC)....

2002-06-12 Thread Tim Sawyer
We have a big back end system that accepts SOAP style XML messages, and returns SOAP style XML messages in response. It's home grown as there was no SOAP functionality available for Forte 4GL at the time. All the transactions are documented in Select, our case tool. We have an automatic

Re: Disbaling Back Button of Browser

2002-06-10 Thread Tim Sawyer
Sanjeev_dutt [EMAIL PROTECTED] wrote : Any pointers on how to disable the back button of the browser ( Both IE and Netscape ) ? Brute force method is to pop up your app in a new window, with the toolbar disabled. var w = window.open(/Common/AgreementNotepad.do, AgreementNotepad, left=10,

max length on html:textarea

2002-06-10 Thread Tim Sawyer
Can I set a maximum length of text in an html:textarea ? Tim. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: max length on html:textarea

2002-06-10 Thread Tim Sawyer
Thanks everyone, I'd forgotten to look at the basic html textarea, seems a bit of an oversight that you can't do a max size! Ho hum, isn't the web just so thrown together? ta, Tim. On Mon, 2002-06-10 at 14:59, Ted Husted wrote: Tim Sawyer wrote: Can I set a maximum length of text

2 forms on a single JSP

2002-06-07 Thread Tim Sawyer
Hello. If I have two html:form's on a JSP page, that submit to two different actions, I have problems where those actions have different form beans. Either form works individually, but when put together I get an error when the page is displayed. The only way around this I have found is to

RE: 2 forms on a single JSP

2002-06-07 Thread Tim Sawyer
workaround is the recommended approach. That is, use one form bean for both forms. The form bean could implement two different Form interfaces (one per html:form) to make the seperation more obvious. -Original Message- From: Tim Sawyer [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07

Re: 2 forms on a single JSP

2002-06-07 Thread Tim Sawyer
version of struts are you using? 1.0.2? Tim. [EMAIL PROTECTED] wrote : Hi Tim, What's the error that you're getting? In the application I'm working on we have 2 forms with 2 different form beans and 2 different actions on the same JSP, with no problem. Tim Sawyer [EMAIL PROTECTED

Re: 2 forms on a single JSP

2002-06-07 Thread Tim Sawyer
at my struts-config.xml first to be sure that I had set up the action right. You might need to put the bean scope at the session level (not always desirable, I know). Tim Sawyer [EMAIL PROTECTED] wrote: To be honest, I can't remember. It was a while ago now, and I used the workaround

Re: Tomcat Performance: Interesting Weblog

2002-06-07 Thread Tim Sawyer
Just a heads up - Orion is $1500 *per year*. It's not obvious on their website... Tim. On Fri, 2002-06-07 at 14:25, Struts Newsgroup wrote: Subject: Tomcat Performance: Interesting Weblog From: Matt Raible [EMAIL PROTECTED] === A friend sent me this today:

Re: a newbie question on iterate

2002-06-02 Thread Tim Sawyer
Use an action to put an object that implements Iterator interface into session memory, and then in the JSP, your logic:iterate tag refers to the name that you put the object in session memory under. This code will cycle through the objects in the Iterator returned by usersList.getMyIterator()

Re: Tags generating custom tags

2002-06-01 Thread Tim Sawyer
(a href=\); lHTML.append(lUrl); lHTML.append(\); lHTML.append(this.description); lHTML.append(/a); Tim On Wed, 2002-05-29 at 16:13, Tim Sawyer wrote: I've been having a look at the source for html:link, to see if I can reuse or replicate it. I don't understand which bit of code adds

Re: Arbitrary parameters in ActionMapping?

2002-06-01 Thread Tim Sawyer
Doesn't this have multiuser issues? If there is only one action class instance given multiple users of the action, how do you get data from this set() method to read it in the main perform() method? What am I missing? Tim. On Fri, 2002-05-31 at 22:03, James Holmes wrote: That's just the

Tags generating custom tags

2002-05-29 Thread Tim Sawyer
Hello. I'm trying to write a generic progress bar for my site. I will be implementing it as a custom tag on the page, which then renders in the browser as the HTML required for the links. I've just realised that what I want to generate is html:link tags, but that won't work will it? Won't

disabling an html:text box

2002-05-22 Thread Tim Sawyer
Hello all, I have an html:text input box on a form on my page. I want to disable the box if the user is editing a record, or enable it if the user is creating a new record. What's the best way to do this? The disabled property is marked (RT Expr) which I presume means I can set it at

Re: disabling an html:text box

2002-05-22 Thread Tim Sawyer
- De: Tim Sawyer [EMAIL PROTECTED]; Data: Quarta, Maio 22, 2002 8:06 am Subject: disabling an html:text box Hello all, I have an html:text input box on a form on my page. I want to disable the box if the user is editing a record, or enable it if the user is creating a new record

Re: No getter method available for property ... trying to use aform + formbean

2002-05-19 Thread Tim Sawyer
On Sun, 2002-05-19 at 18:47, jfc100 wrote: Hi, I get this msg when trying to reference one of my pages ('captureProfile.jsp'): 'No getter method available for property profile for bean under name org.apache.struts.taglib.html.BEAN' I had this when I had some untested code later in my

RE: Small Complaint - Struts Impl.

2002-05-18 Thread Tim Sawyer
Mark wrote: I'll be testing my app with multiple clients soon, but what I'm not clear on now is how Struts handles beans in session scope with respect to different simultaneous clients. Does ActionServlet create a pool of stateless beans to serve each client, or are multiple clients

RE: Small Complaint - Struts Impl.

2002-05-18 Thread Tim Sawyer
On Sat, 2002-05-18 at 16:42, Galbreath, Mark wrote: That's my feeling as well, Tim. I asked Craig about this a few weeks ago and based on (probably my misunderstanding of) his response, I synchronized all the mutators and accessors in the bean. Since it's session scoped, I don't think this

RE: Small Complaint - Struts Impl.

2002-05-18 Thread Tim Sawyer
On Sat, 2002-05-18 at 16:52, Craig R. McClanahan wrote: It is the third rule that is the most likely cause for problems, especially if you are using a single form bean to capture the data from multiple pages (such as in a wizard dialog) -- which is about the only time that using form beans in

Simple Scope Question (I Hope)

2002-05-01 Thread Tim Sawyer
Hi, I would like to put an object in application scope rather than session scope, from an action handler, but I can't find out how. To put it in session scope I do: theSession.setAttribute(makeList, lMakeBean); What's the equivalent for application scope? I'm trying to share an object

RE: Simple Scope Question (I Hope)

2002-05-01 Thread Tim Sawyer
); Mark -Original Message- From: Tim Sawyer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:23 AM To: [EMAIL PROTECTED] Cc: Tim Sawyer Subject: Simple Scope Question (I Hope) Hi, I would like to put an object in application scope rather than session scope, from

[OTish] BeanUtils and Booleans

2002-04-04 Thread Tim Sawyer
Does BeanUtils support using is and set when dealing with booleans? If I do this: Map lMap = BeanUtils.describe(lBean); Set lSet = lMap.keySet(); Iterator lIterator = lSet.iterator(); while (lIterator.hasNext()) { Object lObject = lIterator.next(); String lTempValue = (String)lObject;

RE: Re[2]: At wits end, questions JRun, Oracle9ias

2002-04-04 Thread Tim Sawyer
Oracle 9i is based on the Orion application server. I think Oracle bought the source and are developing it, like they did with JBuilder - JDeveloper. The orion application server is free for development, and $1500 per server for deployment. We're using it instead of paying Oracle ?20,000 or

RE: Struts html:link tag

2002-04-04 Thread Tim Sawyer
You can turn off validation on a form bean for a particular ActionMapping by specifying validate=false in the action mapping. See http://jakarta.apache.org/struts/doc-1.0.2/api/index.html for more details. action path=/addUser type=strutstest1.SystemUserAction

Design Diagrams

2002-04-02 Thread Tim Sawyer
Hello, Does anyone have any thoughts about documenting the design for a struts based website? We currently have a design that has a box for each page and lines between them, but this doesn't cover the do's, and it's hard to document actions. Thoughts? Tim. -- To unsubscribe, e-mail:

RE: sorting in logic:iterate

2002-04-02 Thread Tim Sawyer
I've created specific iterators (classes that implement iterator interface) that do the sorting for you. So you can ask an object to give you an iterator, or an orderedIterator, or a reverseIterator etc. You then refer to this property from the logic:iterate tag. Tim. -Original

RE: Big problem with tomcat's security manager and dataSource in the struts_config.xml file

2002-04-01 Thread Tim Sawyer
This might be completely unrelated, but I'll mention it anyway. This weekend I had a quick play with accessing MySQL through JDBC (I've never done anything with JDBC before). Latest stable version of MySQL on Win2k, latest stable JDBC driver. I was running on Orion 1.5.2. I found that if I

RE: Comments on Struts framework

2002-03-29 Thread Tim Sawyer
I'm new to struts too. All this is my opinion, older hands may have better explanations. 1) Struts is a framework for a web application (web server centric) not for an Enterprise J2EE Application (EJB centric). [srinivas] As per my reading till now I disagree with him. Struts does not

RE: Passing JSP Variable Values to html:link tag - Ryan Norman

2002-03-28 Thread Tim Sawyer
Try: html:link page=/strutstest1/viewUser.do paramId=UserID paramName=BeanName paramProperty=userIDbean:write name=BeanName property=userID//html:link Where BeanName is a JavaBean and userID is a property of that bean that contains the value of userID you want to pass on the URL. Try to get

RE: what is .war file

2002-03-25 Thread Tim Sawyer
http://java.sun.com/webservices/docs/ea2/tutorial/doc/WebApp3.html I recommend ant (http://jakarta.apache.org/ant) for creating one. Tim. -Original Message- From: divyakant verma [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 2:22 PM To: [EMAIL PROTECTED] Subject: what is .war

RE: Pass parameters between Action classes

2002-03-24 Thread Tim Sawyer
You could always use the session instead of the request, and if you're bothered about using up session memory, remove the stuff from the session when you've read it back. So, same code as you have, but call session.setAttribute(param, param) Tim. -Original Message- From: Enrique

RE: Programmed Actions With Struts Applications

2002-03-21 Thread Tim Sawyer
Presuming you've split out your business logic from your presentation layer, you can write a simple client to your business logic (bypassing all the struts stuff completely) and then call that simple client at 2am. Or write a client that sits there until 2am and then calls your business logic

Passing Multiple Parameters do a .do

2002-03-19 Thread Tim Sawyer
Hello. I'm using Quick Address to return a list of addresses that match some search criteria. I want to select one of the returned addresses and pass it through somewhere else. Problem is, there is no unique identifier for the address other than the data that makes it up. I can't think of a

RE: Form beans in session scope

2002-03-19 Thread Tim Sawyer
I'm using form beans in session memory too, mainly because I want to refer to their contents in other pages further down the line, not just the next one. If you put a form bean into session memory, then it will stay there. If you call MyFormBean mfb = (MyFormBean) form You have a pointer to

RE: Stress Testing

2002-03-19 Thread Tim Sawyer
Microsoft one is at http://homer.rte.microsoft.com I haven't used it at all myself. Tim. -Original Message- From: Jay sissom [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 6:57 PM To: Struts Users Mailing List Subject: Re: Stress Testing We've used Jmeter and it worked for

RE: live progress...

2002-03-08 Thread Tim Sawyer
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg23602.html hth, Tim. -Original Message- From: Keith Chew [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 2:02 AM To: Struts Users Mailing List Subject: live progress... Hi I would like to implement a live progress

RE: jsp pagis in /WEB-INF directory

2002-03-08 Thread Tim Sawyer
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg24099.html Dunno why it doesn't work though, I've never done it. Tim. -Original Message- From: Ferran Parra [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 1:10 PM To: Struts Users Mailing List Subject: jsp pagis in

RE: Form Bean problem - Fixed for now

2002-03-04 Thread Tim Sawyer
Right, I'm back (finally!) I narrowed the problem down to a struts-config problem. I deleted everything from struts-config that wasn't related to the one page that I was having problems with. I then found that the page would work, and not give me the getter missing error. So went back to my

RE: Form Bean problem

2002-02-27 Thread Tim Sawyer
I'm using the do something else and then come back to it debugging technique today, I'll get back onto this stuff later today or tomorrow... Tim. -Original Message- From: keithBacon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 1:54 PM To: Struts Users Mailing List; Tim

Re: Form Bean problem

2002-02-26 Thread Tim Sawyer
Nope, same error. It seems to be in the html library somewhere. javax.servlet.jsp.JspException: No getter method for property dob of bean org.apache.struts.taglib.html.BEAN at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517) at

Re: Form Bean problem

2002-02-26 Thread Tim Sawyer
: Hi, I have got the same type of problem and it was due to the fact that my property was not lowercase... Have a look at your JSP and specially to your dob property ... Hope that helps Jean-Guillaume LALANNE - Original Message - From: Tim Sawyer amp;lang=en[EMAIL PROTECTED

Re: Form Bean problem

2002-02-26 Thread Tim Sawyer
to be allergic to my property name * I know it wasn't a spelling error. Good luck! --- Tim Sawyer amp;lang=en[EMAIL PROTECTED] wrote: Thanks to everyone for your suggestions. JSP property looks like this: Get and set methods look like this: /** Getter for property dob

Re: Form Bean problem

2002-02-26 Thread Tim Sawyer
I don't need to use an action form at all with this page. You do if you have a form on the page don't you? That's interesting I have a form that is only data entry. Do I have to define an action form for this page? I will in the action that it calls when the form is submitted, because

Re: iterate tag to repeat for a collection of individula objects

2002-02-26 Thread Tim Sawyer
(Struts Beginner Warning!) If the clientList is an attribute of the form bean, isn't it the form bean that's in session memory and not the clientList. So in order to access clientList you will have to get a reference to the form bean and then use that. The error seems to imply you are

Re: Form Bean problem

2002-02-26 Thread Tim Sawyer
so no problems there. Keith. --- Tim Sawyer amp;lang=en[EMAIL PROTECTED] wrote: I don't need to use an action form at all with this page. You do if you have a form on the page don't you? That's interesting I have a form that is only data entry. Do I have to define

Re: Form Bean problem

2002-02-26 Thread Tim Sawyer
Hmmm. This works: %@ page language=java import=com.pancredit.tkbespoke.tjs.strutstest.form.* % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % html:html head titleUntitled Document/title !-- %=((AddExtraPersonDetailsForm)session.getAttribute(addExtraPersonInfoForm)).getDateOfBirth() %

Re: Form Bean problem

2002-02-26 Thread Tim Sawyer
KeithBacon [EMAIL PROTECTED] wrote : does the form work OK if you remove dateOfBirth but leave the other form fields? Nope. I only have two fields on the form, and if I remove date of birth it complains about the second one... Is it possible you have 1 mapping that puts the form in the

RE: html:link Tag and Actions

2002-02-26 Thread Tim Sawyer
Try html:link page=/testFinishReason.do Tim. -Original Message- From: MARK NICHOLS [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 8:37 PM To: [EMAIL PROTECTED] Subject: html:link Tag and Actions I have searched the archive, and read through the documentation but I can't

Form Bean problem

2002-02-25 Thread Tim Sawyer
Hello. I'm calling a JSP page as the successful outcome of an action, and it's complaining that one of my get methods doesn't exist. I can't work out what's going on, can someone give me a nudge in the right direction? The page contains a form, for entering date of birth and marital status

Re: Form Bean problem

2002-02-25 Thread Tim Sawyer
is org.apache.struts.taglib.html.BEAN actually referring to? Tim. - Original Message - From: Tim Sawyer amp;lang=en[EMAIL PROTECTED] To: amp;lang=en[EMAIL PROTECTED] Sent: Monday, February 25, 2002 10:41 AM Subject: Form Bean problem Hello. I'm calling a JSP page as the successful outcome of an action

RE: ActionForm scoping problems?

2002-02-24 Thread Tim Sawyer
Have you implemented the reset() method on the action form? I found that struts calls reset more often than you would expect. Tim. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 24, 2002 11:02 PM To: Struts Users Mailing List Subject:

400

2002-02-21 Thread Tim Sawyer
My strange problem just got stranger. I decided that I'd try out the code on Orion, which is our deployment server, rather than Tomcat. After fixing some problems where Orion was stricter than Tomcat, I finally got so I could run the code which used 100% CPU on Tomcat. This time, I get a

Re: 400 - Fixed

2002-02-21 Thread Tim Sawyer
now producing validation errors. Which is progress. :-) Cheers, Tim. KeithBacon [EMAIL PROTECTED] wrote : I have mine defined with a / in front --- Tim Sawyer amp;lang=en[EMAIL PROTECTED] wrote: My strange problem just got stranger. I decided that I'd try out the code on Orion

RE: Development Environment

2002-02-21 Thread Tim Sawyer
Netbeans/Ant/Windows NT Tim. -Original Message- From: Dave Wellman [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 5:41 PM To: [EMAIL PROTECTED] Subject: Development Environment Hello, Quick question, what is the preferred development environment that you are all using,

RE: Strange problem

2002-02-20 Thread Tim Sawyer
, 2002 3:53 PM To: Struts Users Mailing List; Tim Sawyer Subject: Re: Strange problem I loop if I set up struts-config so input=SelectParty.do when it should be SelectParty.jsp. But then you would see SelectPartyAction's perform method being executed your debug msg. Is it possible you have a more

Action Forwards

2002-02-16 Thread Tim Sawyer
Hi, There's nothing to stop me forwarding to a do rather than a jsp in the struts config is there? Like this: action path=/AddFindParty/FindPartyResults type=com.pancredit.tkbespoke.tjs.strutstest.action.FindPartyPostAction name=addFindPartyModuleForm

RE: Showing a result after a long running query

2002-02-14 Thread Tim Sawyer
A solution that was written before we used Struts, but it works for us. We have a process that generates some figures for bank loans. It takes interest rate and loan amount, and works out repayments etc, taking into account lots of other variables. This process can take minutes to complete. In

RE: Pre and Post Processing

2002-02-12 Thread Tim Sawyer
Thanks for the info. For things like drop lists, we will be using a custom tag, as most of our drop lists come from a standard validation group XML transaction to our back end. We pass in a group serial, and it returns a set of values for the drop list. (Plus I don't particularly like the idea