I'm not sure exactly what you're trying to do, but you can do both of the
following:
html:link page/myPage.do?myParam=someValueparam2=anotherValue /
or
html:link page/myPage.do paramId=myParam paramName=someBean
paramProperty=somePropertyOfTheBean /
Hope this helps.
- Keith
-Original
Yeah, if you truly want to support internationalization, then you have to
display all of your text with message keys.
-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 1:50 PM
To: [EMAIL PROTECTED]
Subject: Question for you
Yes.
:-)
-Original Message-
From: Ionel Gardais [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 2:48 AM
To: Struts Users Mailing List
Subject: force precompilation of JSPs
Hi,
I am experiencing a slow down when I access a JSP page for the first
time after I deploy e web
Hey everyone,
I've got some nice custom validations working using the validation
framework. However, I'm having a hard time with one seemingly imple issue.
In the validation method in my custom validation class, how do I get the
value of the field I'm validating?
I found one example that did
I personally prefer to use: return mapping.getInputForward();
It's much neater, prettier and intuitive.
Shouldn't really matter though.
- Keith
-Original Message-
From: Deepak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 7:01 AM
To: Struts Users Mailing List
Subject: Re:
It looks like you're just trying to make sue that the password field is
filled in right? If so, all you need to use is the 'required' validation.
Just replace requiredif with required, and get rid of the var section. This
will make sure a password was entered.
Is this what you want to do?
-
This is definitely what I would do.
And just to be more clear, I would copy that action mapping into as many new
ones as you need. Just change the name and input page, then you should be
all set.
Also, if you don't specify the input page correctly, you can't return to
that page if there are
: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 9:02 PM
To: Struts (E-mail)
Subject: validwhen Alternative
Hey everyone,
From what I hear, it seems like the validwhen validation is not supported in
the final release of Struts 1.1. Is there an alternative
Hey everyone,
I'm working on a custom validator right now, and all the validation method
does is return false. That means it fails that validation, right?
Anyway, when I submit the form, I get a NoSuchMethod error. What would
cause this? All of my regular validations work, just not this custom
Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 12:40 PM
To: Struts (E-mail)
Subject: NoSuchMethodException
Hey everyone,
I'm working on a custom validator right now, and all the validation method
does is return false. That means it fails
:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 3:06 PM
To: 'Struts Users Mailing List'
Subject: RE: NoSuchMethodException
How about supplying more information like the name of the method that is not
being found?
Regards,
Richard
-Original Message-
From: Kamholz, Keith (corp-staff) USX
Doh!
Thanks to Alex, Richard, and Yansheng, sometimes another set of eyes looking
at your code really helps catch the stupid mistakes. I'm sure you can all
relate.
Hopefully I can get it to work when I fix this!
- Keith
-Original Message-
From: Alex Shneyderman [mailto:[EMAIL
(),
ValidatorUtil.getActionError(servletContext,
request, va, field));
before the return statement.
Try it. I spent a lot of time before on this too.
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: August 1, 2003 10:40 AM
To: Struts (E-mail)
Subject
To: 'Struts Users Mailing List'
Subject: RE: NoSuchMethodException
Yes, it would be StrutsValidatorUtil now.
It's part of struts util package. org.apache.struts.util?
Weird, works fine for me just now. I am using struts-1.1-RC1.
-Original Message-
From: Kamholz, Keith (corp-staff) USX
Changed that and it's working! Thanks for the help.
What a load off the shoulders... way too much stress for a Friday, lol.
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 3:50 PM
To: 'Struts Users Mailing List'
Subject
Hahahaha, that's a good one.
-Original Message-
From: Jing Zhou [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 4:06 PM
To: Struts Users Mailing List
Subject: [Friday] TV Commercial 2
[Four years later, Jim is now the Struts team lead in a
corporate IT shop. If you haven't heard
So it's not available in the initial Struts 1.1 final release?
Is there an alternative to validwhen that can do the same job?
- Keith
-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 4:49 AM
To: [EMAIL PROTECTED]
Subject: Re:
Hmm.
I'm not going to be impatient, but do we have any rough idea how long it
will be until the 1.2 release comes out? Just curious.
Anyway, thanks for answering my question.
- Keith
-Original Message-
From: Steve Raeburn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003
Hey everyone,
I finally got the validator working! Turned out to be issues with the
version of struts I was using or somthing like that. In any case, it's
fixed.
I'm slightly confused about this one statement in the online documentation.
It says that Only two items may be joined with and or or.
By the way, that field that I gave as an example should only accept any of
those 4 values. I think I need to use == rather than !=, but it doesn't
work either way.
Any ideas?
- Keith
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Monday, July
IBM's Websphere Studio Application Developer, version 5, has a good struts
UI. It does quite a bit of validation, a lot of what is being mentioned
here.
My one complaint though is that I get a warning for every time I use a tiles
definition though. It doesn't hurt anything, it's just so ugly...
I had some issues with the standard method using reset(), so I came up with
something else that works very nicely.
In the JSP, right after the code for the checkbox, use:
jsp:setProperty name=beanName property=checkboxProperty value=false
/
This allows the form submission to work correctly,
I can't believe people actually ask for this kind of thing. Completely
ridiculous.
It's hard to believe that someone fluent enough in computers to use struts
wouldn't have a grasp of the difficulty of language translation.
-Original Message-
From: Kearney, Michael [mailto:[EMAIL
The new version of IBM's Websphere Studio Application Developer, version 5,
has full struts integration. The fact that struts is built right into the
program gives it a lot of support.
Now if only WSAD would stop complaining about tiles definitions!
- Keith
-Original Message-
From:
I'd be interested in finding out about this too.
-Original Message-
From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 7:30 AM
To: 'Struts Users Mailing List'
Subject: Using JSTL tags instead of Struts tags
A previous thread had encouraged me to
replaced with a combination of the
c:if and c:forEach tags plus the expression language.
The JSPs are remarkably easy to maintain and debug using this strategy
because there aren't any scriptlets or complicated business logic in them.
David
--- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED
I agree. What you wants sounds like it would cause more harm than good.
Just my humble opinion though.
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:41 AM
To: Struts Users Mailing List
Subject: RE: Validation of user input depending upon
I apologize if this is a bit off topic, and if it is a bit of a newbie
question.
I've never used JSTL before, and I'm not sure exactly what it is. Is it
built into standard JSP technology (thus usable without any add-ons), or is
it a tag lib that you have to download and put in your project?
-
That's not overly general or anything
** Note the sarcasm **
What do you want to know?
-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:13 PM
To: Struts Users Mailing List
Subject: Logic Iterate in Struts
Can some body some body
Hey everyone,
I need to use multiple dynamic parameters for some of my links, and I have
this working nicely using a map. Unfortunately, my boss doesn't like
scriptlets in the JSP pages, and wants me to find out about any
alternatives. It's alright if there aren't, but I have to at least try to
Hey everyone,
I'm trying to add 2 dynamic parameters to a link. Someone posted the
following solution a while back. I'm using this, slightly modified, within
a logic:iterate tag. However, the param names are showing up in the
generated link, but the param values aren't. Should I be able to
Sorry, ignore my last post. I figured it out. The call to
ansm.getNumberType() was just returning an empty string. Sorry to waste
space in your inbox.
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 1:04 PM
To: 'Struts
Does the required option of the validator check to see if the field is null
or an empty string? Maybe this is why my validations have been passing when
they shouldn't, because I initialize all my properties to .
I hope I've finally found my problem!
- Keith
-Original Message-
From:
Websphere 5 has a nice struts-config UI that helps to keep everything
organized. I've heard of other UI's out there too.
- Keith
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 5:26 PM
To: Struts Users Mailing List
Subject: Re: Validation
Hahaha.
That's awesome.
-Original Message-
From: Jamie M. Guillemette [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 1:42 PM
To: Struts Users Mailing List
Subject: Cause its a virtual friday
-go to http://www.google.com
-- type: weapons of mass destruction (with the
So do you have to do anything differently in your validation.xml?
Also, where can I find some documentation on this?
- Keith
-Original Message-
From: Butash, Bob [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 12:59 PM
To: 'Struts Users Mailing List'
Subject: RE: Difference
-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 1:35 PM
To: Struts Users Mailing List
Subject: Re: [OT] Empty Result Set
boolean isEmpty = !rs.next();
David
--- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote:
Hey everyone,
This isn't really a struts
Why wouldn't you want to use an ActionForward?
It's the struts way.
- Keith
-Original Message-
From: Chip Paul [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 2:28 PM
To: Struts User
Subject: html:link forward to tiles definition?
Is there a way to make a link (not an action
I think you mean for check boxes.
A set of radio buttons more often than not needs more than 2 possible
values.
- Keith
-Original Message-
From: Sandeep Takhar [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 3:28 PM
To: Struts Users Mailing List
Subject: Re: Question reguarding
Can you explain what you want to do in english, rather than pseudocode?
-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:54 AM
To: [EMAIL PROTECTED]
Subject: Tiles question
I am looking to do something like what is listed below,
I'm having a similar problem. All I'm trying to do is have a 'required'
condition for 2 fields of my form. Mine submits just fine when I leave it
blank as well. I posted my code here yesterday, but nobody was able to help
me. If you figure this out, I'd appreciate it if you let me know what
Hey everyone,
This isn't really a struts question, but it's applicable. I'm just
wondering how to find out if a ResultSet is empty or not after I execute my
query. I've searched online, but I'm having a hard time finding much of
anything.
Can I just use:
if (myResultSet.next() )
{
empty
---
From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: requiredif question
Date: Wed, 25 Jun 2003 13:26:48 -0400
I'm having a similar problem. All I'm trying to do is have
Hey,
I'm trying to use a PreparedStatement to get a ResultSet. I know how to get
a customized ResultSet if you're only using a Statement, but how can I get a
scrollable ResultSet with my PreparedStatement?
Thanks!
- Keith
-
To
Hey everyone,
I posted recently regarding my issues with the Validator plugin. There were
a few suggestions, but I had already checked everything that was mentioned.
I'm going crazy, I've been trying for a several days to get this thing
working, but have gotten nowhere. I'm posting some of my
I'm sure there's an option to turn that off somewhere. What version are you
running?
Websphere tends to be kinda slow. I've had some issues with that,
especially in version 4 and version 5 integration edition.
- Keith
-Original Message-
From: Alawadhi, Mona [mailto:[EMAIL PROTECTED]
]
Sent: Tuesday, June 24, 2003 11:14 AM
To: Struts Users Mailing List
Subject: Re: Damn Validator...
Can you post the relevant form definition in validation.xml? I'm having a
hard time downloading the attachment.
David
--- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote:
Hey everyone
? I'm having a
hard time downloading the attachment.
David
--- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote:
Hey everyone,
I posted recently regarding my issues with the Validator plugin. There
were
a few suggestions, but I had already checked everything that was
mentioned.
I'm
the instructions and everything,
but no go.
- Keith
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 1:47 PM
To: Struts Users Mailing List
Subject: RE: Damn Validator...
Does the validator example app work?
David
--- Kamholz, Keith (corp-staff) USX
and server side
validations?
David
--- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote:
Sure thing, thanks for checking it out. Here's my validation.xml:
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE form-validation PUBLIC
-//Apache Software Foundation//DTD Commons
.
Client-site validation requires less steps to implement and, ofter,
light
the mispeling errors. If client-site validation works, you need just a
couple more steps to have a server-site validation working.
- Original Message -
From: Kamholz, Keith (corp-staff) USX [EMAIL
Also, when using the validator, I have to set validate=true for each
applicable action in my struts config.xml right?
- Keith
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 10:27 AM
To: 'Struts Users Mailing List'
Subject
Hey,
I'm trying to put validation into my application using the validator plugin.
However it doesn't seem like it's doing anything at all. I know it's a very
general question, but what are some things I should look for? Are there any
common mistakes in setting up that I should check for?
I'm
-
From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
To: Struts (E-mail) [EMAIL PROTECTED]
Sent: Friday, June 20, 2003 9:25 AM
Subject: Validator
Hey,
I'm trying to put validation into my application using the validator
plugin.
However it doesn't seem like it's doing anything at all. I
Use this:
logic:iterate id=thisElement name=someList type=java.lang.String
bean:write name=thisElement/
/logic:iterate
This will go through a list of Strings and print out each one. This also
works for lists of non-string objects. Let me know if you need help with
that modification.
If all you want to do is forward to another JSP page, make a forward action
in your struts-config like this:
action path=/ForwardPageTwo forward=tiles.pageTwo name=myBean/
That way, no parameters are necessary. You'll just have to make a whole
bunch of forward actions.
Now if only I could get
: Wizard forms
On Jun 11, 2003, Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
wrote:
|If all you want to do is forward to another JSP page, make a forward
action
|in your struts-config like this:
|
|action path=/ForwardPageTwo forward=tiles.pageTwo name=myBean/
|
|That way, no parameters
I had some issues with the methods, so I came up with something else that
works very nicely.
In the JSP, right after the code for the checkbox, use:
jsp:setProperty name=beanName property=checkboxProperty value=false
/
This allows the form submission to work correctly, without any messy code.
Well, I'm not sure exactly what you want to know, but here's an example of
how I used it in an application I'm currently working on:
table
logic:iterate id=ansm name=groups
type=com.moog.us.app.ans.data.AnsmItem
tr
td
html:link page=/GetFormatGroup.do?type=group
Hey everyone,
I'm aware of the issues with using beans in the session context. I'm
wondering if there's any method I can call to remove all the beans from the
session. Does anything like that exist? Are there any adverse effects of
removing something from the session if it isn't in there? Do
As far as your question about rebuilding the table, I'm not sure exactly
what you're asking. These sorts of things are generally done automatically.
I can answer your other question though. The 'type' attribute of the
logic:iterate tag specifies the name of the class that is stored in your
What package is HttpSession in?
Keith Kamholz
Programming and Architecture
Moog Inc.
Phone: (716) 687-7001
-Original Message-
From: Josh McCulloch [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 1:31 PM
To: Struts Users Mailing List
Subject: Re: Session beans
Try something
I've noticed that I can do that too.
I'm not expert, but I'm guessing that it's not an issue, and this behavior
is fine (as long as it is login protected if necessary).
I'm also GUESSING that the rule that actions can only be called from JSP
pages is made with the assumption that you're taking
Hey everyone,
This is more of a Java question than a Struts question, I hope you all don't
mind.
I'm just wondering if there is any way to use a String for a switch
statement, or if you are restricted to the true primitive types.
I haven't found a way, but it seems like something that lots of
Right, I'm running Websphere and we couldn't get it to work. However, I
just upgraded to version 5. Does anyone know if changes in v5 allow the
web-inf trick to work?
Keith Kamholz
Programming and Architecture
Moog Inc.
Phone: (716) 687-7001
-Original Message-
From: Karr, David
11:38 AM
To: Struts Users Mailing List
Subject: Re: switch statement
Kamholz, Keith (corp-staff) USX wrote:
Hey everyone,
This is more of a Java question than a Struts question, I hope you all
don't
mind.
Not really, but for future reference I have found this resource to be
more helpful
and Architecture
Moog Inc.
Phone: (716) 687-7001
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 11:38 AM
To: Struts Users Mailing List
Subject: Re: switch statement
Kamholz, Keith (corp-staff) USX wrote:
Hey everyone
, but useful in the end.
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 11:52 AM
To: 'Struts Users Mailing List'
Subject: RE: switch statement
Because having descriptive values for parameters helps make your code
more
Hey everyone,
I'm having an issue with setting the value for an hml:hidden .../ tag.
That form uses a bean called ansa. I want to set the value of the hidden
element to the numberType property of a bean called ansm. I tried putting a
bean:write .../ in the body of the html:hidden tag, but that
Yes it is. Use the logic:equal and logic:notEqual tags to do this.
Let me know if you need more info.
Keith Kamholz
Programming and Architecture
Moog Inc.
Phone: (716) 687-7001
www.buffalo.edu/~kkamholz
-Original Message-
From: Ionel Gardais [mailto:[EMAIL PROTECTED]
Sent: Friday,
Use this:
if(request.getSession(true).getAttribute(dispsOfPO_action).equals(123))
int s11 = 1;
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From: dream weaver [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 9:02 AM
To: [EMAIL PROTECTED]
Subject: syntax
Hey,
I'm using a table to display a form, but there's one row that I want to
hide, depending on a previous user selection.
Right now, my code is:
table
tr
td
b
bean:message key=app.label.numberType/:
-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 11:09 AM
To: 'Struts Users Mailing List'
Subject: RE: Nesting logic tags
If ansm is a member variable of your ActionForm, use
html:hidden property=ansm.entryType
-Original Message-
From: Kamholz, Keith (corp
library.
HTH
m
--- Kamholz, Keith (corp-staff) USX
[EMAIL PROTECTED] wrote:
The issue isn't getting entryType into the form.
The issue is conditionally
displaying a couple rows in the table/form. I
already have the entryType in
a hidden input earlier in the form.
Input anybody?
I'd
I had some issues with this method, so I came up with something else that
works very nicely.
In the JSP, right after the code for the checkbox, use:
jsp:setProperty name=beanName property=checkboxProperty value=false
/
This works very nicely, regardless of the scope that the bean is in.
However,
Use something similar to this:
logic:iterate name=addressListFormBean property=letterOptions
id=choice
html:link page=/addressListAction.do paramId=userSelection
paramName=choice paramProperty=labelStr
bean:write name=choice property=labelStr/
/html:link
I'm curious, what exactly do you want to do?
(How do you want them to be integrated?)
- Keith
www.buffalo.edu/~kkamholz
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 11:17 AM
To: 'Struts Users Mailing List'
Subject: RE: A question long
viditur.
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 10:18 AM
To: 'Struts Users Mailing List'
Subject: RE: A question long not raised
I'm curious, what exactly do you want to do?
(How do you want them
Evangelist
http://www.open-tools.org
- Original Message -
From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 11:35 AM
Subject: RE: A question long not raised
Hahahaha. I should've figured
LOVING flashers. A fetish interest in development,
looks like. ;)
James Mitchell wrote:
So.you admit to being a flasher?
--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org
- Original Message -
From: Kamholz, Keith (corp-staff
Hey everyone,
I'm trying to use the same JSP to update two similar but different types of
data.
The form is the same for both, but I want to use a different action mapping
for each.
I tried this:
logic:equal value=format name=type
html:form action=/UpdateFormat.do
/logic:equal
Hey everyone,
I have a logic:equal ... tag commented out in a JSP. However, when I go
to that page, it says:
[ServletException in:Edit.jsp] No such tag equal in the tag library imported
with prefix logic'
Shouldn't the tag be ignored? I also don't know why it can't find the equal
tag, but
: Weirdness...
What kind of comment are you using, !-- HTML -- or %-- JSP --%
As far as why logic:equal isn't being found, post your JSP...
- Original Message -
From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 10:13 AM
Subject
the tags but to
totally change them by removing spaces when I want to comment one out.
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 10:13 AM
To: '[EMAIL PROTECTED]'
Subject: Weirdness...
Hey everyone,
I have
Quick question...
I'm using 2 submit buttons in the same form, so that I can do 1 of 2 things,
with the same input data.
(You can do that, right?)
I have the value attribute for one of them set to 'delete'. What I'm
wondering is how to get the value of the submit button that was clicked from
doesn't.
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: May 28, 2003 1:01 PM
To: '[EMAIL PROTECTED]'
Subject: Submit Value
Quick question...
I'm using 2 submit buttons in the same form, so that I can do 1 of 2 things,
with the same input data.
(You
.
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: May 28, 2003 1:01 PM
To: '[EMAIL PROTECTED]'
Subject: Submit Value
Quick question...
I'm using 2 submit buttons in the same form, so that I can do 1 of 2 things,
with the same input data.
(You can do
doesn't.
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: May 28, 2003 1:01 PM
To: '[EMAIL PROTECTED]'
Subject: Submit Value
Quick question...
I'm using 2 submit buttons in the same form, so that I can do 1 of 2
things,
with the same input data.
(You
Hi everyone,
I'm creating a web app that uses struts and tiles. I have a question about
my action mapping
When you specify the input attribute for an action mapping, should I use the
name of the JSP that forwards to my form page, or the tiles name of that
entire page?
Thanks in advance.
-
For your html:errors/ tag, don't specify the name attribute. Specify the
property attribute instead. It would look like:
html:errors property=userID /
I hope this helps ya out.
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL
? Ideas?
Jerry
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 1:44 PM
To: 'Struts Users Mailing List'
Subject: RE: html:errors/ not displaying message?
For your html:errors/ tag, don't specify the name
now (still) getting ???en_US.error.bad.userid??? - kinda worthless, ya
know?
Jerry
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 2:29 PM
To: 'Struts Users Mailing List'
Subject: RE: html:errors/ not displaying message
Hey,
You kinda confused me about what your problem was. Could you maybe explain
it better if I'm wrong about it?
It sounds like you just want to know which rows are checked. You need to
specify the 'indexId' attribute in the logic:iterate ... tag to create a
variable that stores the index of
Sorry, I forgot to mention that the corresponding property would be a
String[] that will be filled with all the checked indexes.
Is this what you're trying to do?
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED
:[FieldListAction.perform()] Exception
:+e.toString());
e.printStackTrace();
}
throw new ServletException(e.toString()+:+e.getMessage());
}
Does it help?
Gilles Vandaele
Kamholz, Keith
(corp-staff) USXTo:'Struts
Hey,
Is msgBoard the form bean associated with that form? If so and if you're
only trying to display the current data when the user hits the form, you
don't need to specify the value. Struts will automatically pre-populate the
form for you.
Is this what you're trying to do?
- Keith
Hey,
For your first question, I think you should specify the 'type' attribute of
the iterate tag. This indicates the type of variable that the collection
contains, and is pretty important (i think).
For the radio button, use a little scriptlet to set the value. In your case
it would be:
. There must be
a way to get this to work without having to use a getter method.
From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Use of Iterator tag
Date: Wed, 14 Aug 2002 12:41
Yeah, struts usually expecs a String[] for lists, but i don't see how it is
awkward. It shouldn't matter how many items are in the list. Struts will
automatically fill the array with all the values sent from the form.
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From:
Well, I haven't tried custom tags in the properties file, but i know it
takes any standard html tags. Could you use a href= if html:link
.../ doesn't work?
I'm curious to find out if the custom tags would work though.
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
1 - 100 of 210 matches
Mail list logo