RE: paging taglib and struts?

2002-04-17 Thread Mattos, John
Malcolm I've been reading throughthe documentation for the taglib, and I'm getting the impression that the collectionof things I'm interating over has to exist in it's entirety in server memory. Is that true? This is slightly problematic for me because it's a large collection of data (I know, I

Preselecting an Option within a Select

2002-04-05 Thread Mattos, John
Hi All, I have the following code in my JSP jsp:useBean id=dataTypes scope=request class=java.util.ArrayList/ html:select property=dataType html:options collection=dataTypes property=value labelProperty=label/ /html:select I need to preselect one of the OPTIONS in the SELECT list. The

RE: Announce Struts E-Book for less than $10

2002-04-05 Thread Mattos, John
But really, it does suck. John Mattos Sr. Developer and Architect iNDEMAND 345 Hudson St. 16th Floor New York, New York 10014 -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 11:20 AM To: 'Struts Users Mailing List' Subject: RE: Announce

RE [2]: Form Question - Dynamic number of checkboxes - Multibox ?

2002-03-22 Thread Mattos, John
and it will create indexed names for them. Have to use nightly build or new 1.1 beta. Cheers, Dave Mattos, John [EMAIL PROTECTED] on 03/22/2002 11:13:16 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] cc:(bcc: David Hay/Lex

Date Form Fields Question

2002-03-05 Thread Mattos, John
Hi all I have a form that contains a StartDate and EndDate text fields, and I'm wondering what the best way to deal with them is. Should the Form Bean attribute be of type Date, or should I make it a String, and just use DateFormat.parse(StartDate); to parse it in the validate method?

Pre Populating Fields - bit of a newbie question

2002-03-05 Thread Mattos, John
Hi I need to have a startDate and endDate field in my form, and I'd like to prepopulate the endDate field with today's date. There's a bean that has set/getEndDate() methods, and I get to the form from an Action.perform() call What's the best way to prepopulate that field? -- To unsubscribe,

RE: Pre Populating Fields - bit of a newbie question

2002-03-05 Thread Mattos, John
Anyone? Pre populating fields? John Mattos Sr. Developer and Architect iNDEMAND 345 Hudson St. 16th Floor New York, New York 10014 -Original Message- From: Mattos, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:19 AM To: 'Struts Users Mailing List' Subject: Pre

RE: how to use an images for submit, cancel button etc

2002-02-22 Thread Mattos, John
Could you do the following... !-- JSP Snippet-- html:image onclick=javascript:submit(); src=../images/onion.gif border=0/ html:image onclick=../whereIWasBefore.jsp src=../images/onionCancel.gif border=0/ html:image onclick=javascript:reset();return false; src=../images/onionReset.gif border=0/

RE: html:submit button

2002-02-21 Thread Mattos, John
Hi Konstantina, I don;t know if you have a solution yet, but I have two separate ones for you. The first is more struts oriented. If you have the following in your JSP: !-- JSP Snippet-- html:submit property=btnProcess bean:message key=button.processSuspends / /html:submit html:submit

RE: Development Environment

2002-02-21 Thread Mattos, John
I'm using Visual Age For Java and Websphere Studio (for JSPs) on Win2k. We're moving to Websphere Studio App Dev 4.0 I'd rather be using JBuilder 6 but that's me. John Mattos Sr. Developer and Architect iNDEMAND 345 Hudson St. 16th Floor New York, New York 10014 -Original Message-

Displaying Test if html:errors is free of errors...

2002-02-19 Thread Mattos, John
Hi In a jsp, I want to display some text if there are no errors present, that is, that html:errors hasn't been populated with any errors in my perform() method. What's the best way to do this? John John Mattos Sr. Developer and Architect iNDEMAND 345 Hudson St. 16th Floor New York, New York

HTML / Struts Help

2002-02-13 Thread Mattos, John
Hi. I have a form that can be submitted by three different buttons, for example the buttons read (Button Labels) Process View by Org View by Product What I want to do is in the Action Class handling the submission, find out which button was pressed, and act accordingly, whether it's an

RE: HTML / Struts Help

2002-02-13 Thread Mattos, John
property=Process onclick=form.action.value='Process' -Original Message- From: Mattos, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 10:12 AM To: '[EMAIL PROTECTED]' Subject: HTML / Struts Help Hi. I have a form that can be submitted by three different buttons

RE: HTML / Struts Help - Summary

2002-02-13 Thread Mattos, John
(); if ( param.startsWith(btn) ) { button_pressed = param; break; } } At this point, button_pressed tells you the name of the button that was pressed. I have a utility class that has this code in it and I use it everywhere. Jay On Wed, 13 Feb 2002, Mattos, John

RE: HTML / Struts Help - addendum to summary.

2002-02-13 Thread Mattos, John
++) { String paramName = (String)enum.nextElement(); if(paramName.startsWith(VALUE-OF-PROPERTY-NAME)) { // what ever you want to do } } Marcel -Original Message- From: Mattos, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 4:12 PM

Passing Action Errors from one perform() method to another perform() method - Expert help?

2002-02-13 Thread Mattos, John
Hi all. I'm trying to do the following. In an Action.perform() method, I'm adding an ActionErrors object to the request as follows // Snippet from an Action.perform() method ActionErrors errors = new ActionErrors (); errors.add(Processed, new ActionError(Processing Done)); saveErrors(request,

changing Built in Validation Error Message

2002-02-13 Thread Mattos, John
Is there some sort of Message service that I can use, analogous to the Error service, or can I temporarily change the errors.header and errors.footer? John Mattos Sr. Developer and Architect iNDEMAND 345 Hudson St. 16th Floor New York, New York 10014 -Original Message- From: Mattos, John [mailto

RE: HTML / Struts Help - addendum to summary.

2002-02-13 Thread Mattos, John
Message- From: Mattos, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 11:31 AM To: 'Struts Users Mailing List' Subject: RE: HTML / Struts Help - addendum to summary. I like that solution. I Think I'll alter my solution so that I'm doing it this way. Originally, I was concerned

if tag

2002-02-12 Thread Mattos, John
Hi all Are there any plans in the next release of Struts to have a logic:if tag? John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: if tag

2002-02-12 Thread Mattos, John
: if tag If there are plans for an if then else tag can they please be dropped. Scriptlets are far cleaner than inventing a tag which exactly mimics java. Jonathan Message History From: Mattos, John [EMAIL

RE: if tag

2002-02-12 Thread Mattos, John
they go mad and get out of hand, they are not evil of themselves. Jonathan Message History From: Mattos, John [EMAIL PROTECTED] on 12/02/2002 11:52 EST Please respond to Struts Users Mailing List

RE: Using JavaScript in the JSP Pages

2002-02-08 Thread Mattos, John
Satish, Are you just using garden variety client side JavaScript for validation, calling a method in the onSubmit of your form tag? If so.. return false; in your JS method will prevent the form from being submitted. An alternative you might consider is to check out the Struts Validator

RE: Initializer Servlet?

2002-02-08 Thread Mattos, John
Also, make sure the number in the load-on-startup2/load-on-startup tag is lower than the Action Servlet so it loads first... John Mattos Sr. Developer and Architect iNDEMAND 345 Hudson St. 16th Floor New York, New York 10014 -Original Message- From: Thinh Doan [mailto:[EMAIL PROTECTED]]