Hi,
I've noticed that since validation is defined in the action mapping, it
will apply to all methods of
a dispatch action. But what if only one method in the dispatch action
requires field X to
be populated/selected and another method doesn't care. Is there a way to
apply struts
validation to
mappings look like?
Thanks,
SB
Joe Germuska wrote:
At 4:56 PM -0500 12/15/03, Sonam Belbase wrote:
Hi,
I've noticed that since validation is defined in the action mapping, it
will apply to all methods of
a dispatch action. But what if only one method in the dispatch action
requires field X
I'm trying to get the image be a link and not be underlined, but the
following still
renders an image with with a border.
html:link href=javascript:setSaveUrl('save');
style={text-decoration: none;}
img src=../../images/save_journal.gif/
/html:link
If anyone can tell me how I can get the
Hi,
If I have
%
List myList = (List) someList;
%
where someList is a list of objects whose name property I want to
display in a dropdown,
why doesn't the following work?
bean:define id=availableNames name=myList type=java.util.List /
html:options collection=availableNames
Hi,
Inside a html:form/html:form section I have some java code:
%
String theTab = ;
%
how do I get theTab to have the value of a property on the form such as:
html:hidden property=currentTab /
Thanks,
SB
--
NOTICE: If received in error, please destroy and notify sender. Sender
does not
Does html:link have to be within a html:form/html:form section?
Thanks,
SB
--
NOTICE: If received in error, please destroy and notify sender. Sender
does not waive confidentiality or privilege, and use is prohibited.
-
To
Hi,
I am looking to use Wildcard matching support for my action mappings.
I am currently using Struts 1.1 .
This feature does not seem to be supported in the build I have .
If any one has used the WildCardMatching support in struts ,I would like
to know the release build to use to pick up these
.
Based on the formIteration value you know which of the n forms was used to
login.
Hope that helps.
-Tim
-Original Message-
From: Sonam Belbase [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 6:37 PM
To: Struts Users Mailing List
Subject: Re: please help: ActionForms
for the
associated form (which from the action-mapping is LoginFormTypeA)
and since it cannot find one, creates one. Thus form.get(userName)
returns null.
Hope this is not too confusing!
: ) SB
Sonam Belbase wrote:
Tim,
We do have the same form and the same action and more
specifically, we
I'm trying to understand ActionForms a bit better and here is my
question:
If the servlet controller automatically invokes the reset() method
before passing the ActionForm bean to the Action implementation class
instance, how can you use the form's properties' values in your action?
Is this why
OK thanks Brice and Manish,
I was not able to retrieve the values of my form properties in my action and
according to your explanations, I can rule out reset() as the source of the
problem.
Thanks.
SB
Manish Singla wrote:
Please see below ..
Sonam Belbase wrote:
I'm trying to understand
Given the following code in my jsp:
logic:iterate id=element name=dynamicFormList
type=java.lang.String
html:form action=/login name=%=element%
type=com.oreilly.struts.storefront.security.LoginForm
User Name:
html:text property=userName size=20 maxlength=50/
Password:
html:text
not html:form name in Struts
1.1+ but rather use name in action definition).
Or If you explain your requirements a bit more we could come up with a
better solution/explanation.
-Tim
-Original Message-
From: Sonam Belbase [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 6:16 PM
Hi Ted,
Has the html:control you mention below been implemented already
or is it in the works at all?
Thanks,
SB
Ted Husted wrote:
Shishir K. Singh wrote:
Is there a way that I can create a form dynamically based on some XML
configurable file. The configurable file will say what kind
Hi,
If I've got
% String choice = hello; %
bean:define id=nameOfButton value=%=choice% /
html:link action=dcIndicator
target=templateFrame
paramId=choice
paramName=nameOfButton
Click here
/html:link
why does
request_.getAttribute(choice);
in my action retrieve null? Is this
Michael,
Not sure if this works, but I thought I might suggest this:
frame src=tiles:getAsString name='left'/ name=menu
in your layout.
Then in your definition or your jsp you can
assign the path of the jsp with
put name=left value=/path/to/your/jspfile.jsp /
Hope it works..
SB
Frers
Thanks, that worked!
SB
Ghanakota, Vishu wrote:
Try request.getParameter()
-Original Message-
From: Sonam Belbase [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 11:43 AM
To: Struts Users Mailing List
Subject: quick html:link question
Hi,
If I've got
% String
How would you do this using Struts?
User goes to a page where they can add profiles to a repository. There are
two
types of profiles a user can add. But the user can add as many profiles
of each type as they want on that page.
Profile type A requires input from 3 text boxes, and profile type B
Hi,
Is it possible to have multiple instances of the same form on one JSP?
If yes,
how can you make sure that only one form gets submitted at a time?
--
NOTICE: If received in error, please destroy and notify sender. Sender
does not waive confidentiality or privilege, and use is prohibited.
Hi,
I have an actionA whose success should display jspA using properties from
formA. These
properties were set in actionA.
Once the user is done with jspA, they click on a submit button and it should
go
to actionB, which has it's own form bean formB and display jspB on success.
jspA looks
Hi,
What is the best way of setting a Java Collection which holds Java
Objects
as a property of the form, and retrieving the Object and it's properties
on a JSP?
I've tried it as such but have not been successful:
In my action, I have created a list called myList which holds objects
of type
in the form.
robert
-Original Message-
From: Sonam Belbase [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 12:49 PM
To: Struts Users Mailing List
Subject: form properties and html:options with collection
Hi,
What is the best way of setting a Java Collection which
:
If you continue to forward, it shouldn't. But if you redirect anywhere
in the chain, then that data is gone.
Double check your attribute name spelling in your code and config file.
That's tripped me up before.
robert
-Original Message-
From: Sonam Belbase [mailto:[EMAIL
Hi,
I have a layout contentFrameLayout.jsp:
html
head/head
body
tiles:useAttribute name=screenName scope=request/
tiles:insert attribute=header /
tiles:insert attribute=body /
tiles:insert attribute=footer /
/body
/html
In my tiles-def.xml, I assign values to these attributes:
add the line:
bean:define id=screenName name=screenName toScope=request /
And it should work for you.
Sonam Belbase wrote:
Hi,
I have a layout contentFrameLayout.jsp:
html
head/head
body
tiles:useAttribute name=screenName scope=request/
tiles:insert attribute=header
25 matches
Mail list logo