Re: Kick start to Struts

2001-08-09 Thread William Jaynes
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

Re: recognizing a button

2001-08-09 Thread William Jaynes
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

Re: the complete picture

2001-08-09 Thread William Jaynes
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

Re: Exception: Cannot find message resources under key org.apache.struts.action.MESSAGE

2001-08-09 Thread William Jaynes
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

Re: Beans In Form Tags

2001-08-09 Thread William Jaynes
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:

Re: Poolman under Tomcat 4

2001-08-08 Thread William Jaynes
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

Re: Poolman under Tomcat 4

2001-08-08 Thread William Jaynes
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

Re: struts and log4J

2001-07-31 Thread William Jaynes
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

Re: Begginer: how do i know what button is clicked from a strut form

2001-07-18 Thread William Jaynes
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

Re: validation in the form vs. validation in the business domain object

2001-06-20 Thread William Jaynes
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

Re: forward data

2001-06-12 Thread William Jaynes
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

Re: Displaying data retrieved from a database

2001-06-12 Thread William Jaynes
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

Re: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-08 Thread William Jaynes
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:

Re: viewing combo box

2001-06-07 Thread William Jaynes
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

Re: how does one invoke cascasde style sheets

2001-06-06 Thread William Jaynes
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

Re: Problems with struts and resin

2001-06-05 Thread William Jaynes
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,

Re: New user: ActionForms, request attributes and validation

2001-05-31 Thread William Jaynes
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

Re: Hide and Show Problem

2001-05-22 Thread William Jaynes
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]

Re: Override Input Form / JSP when Errors Are Encountered

2001-05-09 Thread William Jaynes
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:

textarea and wrap

2001-05-08 Thread William Jaynes
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

Re: Application Scoped Object Initialization

2001-05-08 Thread William Jaynes
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

Re: Unchecking radio buttons?

2001-05-08 Thread William Jaynes
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

Re: Potential Security Flaw in Struts MVC

2001-05-07 Thread William Jaynes
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

Re: Servlets, Beans, Struts, and Threading

2001-05-04 Thread William Jaynes
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

Re: Server Reloading classes

2001-04-13 Thread William Jaynes
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

Re: Validating dates

2001-03-30 Thread William Jaynes
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

Re: tomcat 4 and reloading application

2001-03-29 Thread William Jaynes
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

tomcat 4 and reloading application

2001-03-26 Thread William Jaynes
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

Re: tomcat 4 and reloading application

2001-03-26 Thread William Jaynes
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

Re: REPOST: Prechecking with html:multibox

2001-03-22 Thread William Jaynes
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();

Re: Parallel iteration

2001-03-22 Thread William Jaynes
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

Re: Anyway to onFocus without Javascript?

2001-03-08 Thread William Jaynes
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

multibox

2001-02-09 Thread William Jaynes
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

Re: multibox

2001-02-09 Thread William Jaynes
.. /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

Re: options-Tag

2001-01-17 Thread William Jaynes
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:

Re: Does struts work with jdk 1.3?

2001-01-10 Thread William Jaynes
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.