Don't be too hard on yourself. I'm not sure how much of programming has ever
become second nature to me. No matter how experienced one gets, there's always
too much new stuff to learn.
There is no right answer. You have to work out what is best for yourself. Some
advocate an approach that starts
String loadButton = (String)request.getParameter(load);
String submitButton = (String)request.getParameter(submit);
- Original Message -
From: Bernhard J. Hirschmann [EMAIL PROTECTED]
To: Struts-User [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 6:26 AM
Subject: recognizing a button
I can't really understand what you are saying, but if you haven't yet worked
through the struts-example, I think you should do that.
Will
- Original Message -
From: kaka wika [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 6:36 AM
Subject: the complete picture
I believe this problem relates to some changes in tomcat4 and xml parsing.
Here's the relevant portion of the Release Notes:
--
Tomcat 4.0 and XML Parsers:
--
Previous versions of Tomcat 4.0 exposed the XML parser used by Jasper (the
JAXP/1.1
I believe this should be:
logic:iterate id=entry name=clientSingleForm
property=clientSingleQueryList
...
form:text name=entry property=clientLogin size=10 /
- Original Message -
From: Calvin Lau [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 7:24 AM
Subject:
As another data point, I use resin and tomcat3. I typically configure poolman
locally for each web app. That is, I put poolman.jar into each WEB-INF/lib
directory and an application specific poolman.xml into each WEB-INF/classes
directory. Things also work if I configure poolman globally by
Ted,
I just installed Tomcat4 and got poolman to work for me. As I said, my typical
setup is to have poolman.jar in each WEB-INF/lib and poolman.xml in each
WEB-INF/classes. After setting up tomcat4 for struts (copying jaxp.jar and
crimson.jar from /tomcat4/jasper to /tomcat4/lib) and for poolman
The easiest way is to let the log4j static initializer work for you. Place
log4j.jar in your WEB-INF/lib directory and your log4j.properties file in
WEB-INF/classes.
- Original Message -
From: DUPRAT Alexandre [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 31, 2001 5:03 AM
If your jsp has a submit tag like:
shtml:submit property=OK value=Press Here if OK/
then your Action would contain something like
String okButton = request.getParameter(OK);
if (null != okButton) { ...code... }
However, RESET and CANCEL are generally something different. A standard reset
David,
Barracuda does this nested Exception procedure (as I believe you
probably know already). I've been playing with their forms package a bit
in a Struts app of mine. I like the scheme, in general, but the problem
I have with their particular implementation is as follows... The
Validator
You can alway save objects to the session and application scopes. If the
forward is a redirect you'll have to do that. If it isn't a redirect (as
is usual) then the request still exists and is passed along. So the next
Action would still have access to it. I sometimes add an attribute to
the
assign the arraylist in the Action like:
request.setAttribute(myArrayListOfBeans, theList);
Then in the forwarded to jsp
slogic:iterate id=row name=myArrayListOfBeans
bean:write name=row property=firstProperty
bean.write name=row property=nextProperty
/slogic:iterate
- Original
Just a comment... Looks like your method of checking the RefreshOption
property will only work if the scope of the ActionForm is session.
That's ok if one doesn't mind the use of resources.
- Original Message -
From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Easiest thing is to have a propery in your ActionForm that tests whether
the combo box is empty or not. Then in your jsp you'll need to surround
the select/option tags with a logic tag of some kind, like
logic:equal name=form property=comboEmpty value=false
...
/logic:equal
- Original
I put my style sheets in a directory at the top level of my web
application. For example in /tomcat/webapps/myapp/css. Then in the jsp I
reference it simply as
link rel=stylesheet href=css/templates.css charset=ISO-8859-1
type=text/css
- Original Message -
From: kuma.cra [EMAIL
I, too, use Resin without problems. I have seen the repeating problem,
but only when mistakenly I bring up Resin on a port that is already
being used by some other server.
- Original Message -
From: Matthew Heaton (Software Engineer) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday,
I'm not exactly sure of your sequence of events, but keep in mind:
- If your form bean has a validate() method, then by default the
ActionServlet will call that validate method. If it returns any error
messages then the ActionServlet forwards to the specified input. This
all happens BEFORE the
I would do this on the server side by wrapping the text box in a logic
tag.
logic:present name=visibilityFlag
html:text ... \
/logic:present
But perhaps you have a requirement to do it on the client.
- Original Message -
From: Dinesh Chaturvedi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Use 'validate="false"' as an action attribute to
prevent a return to the input page after a failed validate. Struts will continue
on to the action, and you'll need to decide what to do there.
- Original Message -
From:
Jeff
Trent
To: [EMAIL PROTECTED]
Sent:
I usually need 'wrap=virtual' as an attribute for my textareas. It
isn't part of the HTML spec, but it's supported in both Netscape and IE,
and it's pretty useful. I wonder how people are dealing with the lack of
a wrap attribute in the struts textarea tag.
--
William Jaynes | University
I create many of my application scope lists in an
initialization servlet, analogous to the DatabaseServlet in the Struts example
app.
- Original Message -
From:
Jeff
Trent
To: [EMAIL PROTECTED]
Sent: Tuesday, May 08, 2001 10:51
AM
Subject: Application Scoped
I'll presume that you mean, (1) you check a checkbox, (2) hit submit (3)
page redisplays with checkbox checked (4) you uncheck it (5) hit submit
(6) page displays with checkbox still checked. The problem is that an
unchecked checkbox doesn't return any request parameter, so there's no
way for
I can appreciate your concern. And it's always good to emphasize
security concerns. But you are suggesting that I (or any developer)
would write some Action that would accept this UserForm, including the
sensitive admin flag, without checking as to whether the admin flag is
acceptable in the
This is definately not true. You need to make a distinction between web containers and
EJB containers, or to be more specific EJBs
themselves. There are some restrictions on EJBs with respect to threading. I'm not
sure what they are exactly. But creating your own
threads is perfectly fine in
I'll say. I spent quite a while trying to get the reloading to work in Tomcat4.
Everyone kept
insisting that it "just worked". I finally switched to Resin and am very happy because
it really
does "just work". Plus it detects almost any change, from it's own config file, to a
new war file,
to
Here are some utility methods I use for date validation and rendering to and from
strings. Nothing
fancy.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 29, 2001 2:53 PM
Subject: Validating dates
Does anyone have a code example for
I still am unable to get Tomcat4 to reload my app when a class changes. Can't figure
it out. Resin
does the reload with no problem, so it isn't some problem within my app. Guess I'll be
using Resin
for the time being.
- Original Message -
From: "William Jaynes" [EMAIL
I find that application reloading with Tomcat 4 b1 simply doesn't work for me,
although others on
this list seem to have no problem. (I do notice that Tomcat 4 isn't in the
installation special
instructions list). I would appreciate any help.
I have tomcat configured as follows:
- I had to
ation
On Mon, 26 Mar 2001, William Jaynes wrote:
I find that application reloading with Tomcat 4 b1 simply doesn't work for me,
although others
on
this list seem to have no problem. (I do notice that Tomcat 4 isn't in the
installation special
instructions list). I would apprecia
We do this exact thing. In the Action that leads to the display of the jsp with the
multibox we use
the code below. Given an object (created from the database) that has an ArrayList of
the ids the
user previously selected:
ArrayList list = (ArrayList)obj.getCheckedIssueIDList();
At the risk of sounding flip, so repack them in the Action. Define an object that can
contain both
elements, and create an ArrayList of those objects, each object populated from the
corresponding
element from each of the two arrays. Then put that collection in the request or
session and use it
gave the error. I am not sure if that is possible.
- eric
- Original Message -
From: "William Jaynes" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 07, 2001 2:02 PM
Subject: Re: Anyway to onFocus without Javascript?
Sorry, Jessica,
There is no
I wonder if someone could give me an example of the multibox usage.
If I have something like this in my jsp:
logic:iterate ...
...
html:multibox property="checkbox" value="%=candidate.getCandidateId()%"/
...
/logic:iterate
What do I need in the ActionFormBean for this jsp with respect to the
..
/logic:iterate
Now your form needs to have
public String[] getCheckbox() {...}
public void setCheckbox(String []) {...}
R,
Nick
-----Original Message-
From: William Jaynes [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 11:56 AM
To: struts user
Subject: multi
I think the question was (and my question is), can the collection used for the
options tag be a property of some bean, like the form bean? Or does the
collection itself have to be in the request (or some other) context, as you've
shown below.
- Original Message -
From: Ted Husted
To:
I use a December Struts nightly build with Java 1.3 and Tomcat 3.2. No problems.
You can check the 1.0 release notes on the Struts site. Those include the major
changes. But there are so many changes I'll bet there isn't any complete list of
them, other than in the source code and the CVS logs.
36 matches
Mail list logo