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.
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.
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
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,
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]
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
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
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
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
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
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:
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()
(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
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
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
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
-
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
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
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
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
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
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
);
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
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;
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
:
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
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
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
(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
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
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()
%
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
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
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
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
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:
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
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
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,
, 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
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
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
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
60 matches
Mail list logo