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
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
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
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
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?
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,
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
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/
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
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-
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
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
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
();
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
++) {
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
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,
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
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
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]
: 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
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
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
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]]
23 matches
Mail list logo