If you have a form bean with an attribute for CompanyName,
with get and set methods, than it should default if it is set prior
-Original Message-
From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 26, 2001 12:43 AM
To: Struts Users Mailing List
Subject: Setting
Hello,
IN my jsp; I want to set a variable in my form bean (which is in scope)that
requires an argument
Can I
%MyFormbean.setBank(code) %
I get the error: Non Static method cannot be referenced from a static
context
How can I refer to my Form???
This message contains information which may
Hi,
I need to call a method in my Formbean that returns an object but, requires
a string as an argument
For example:
bean:define id=bankCode name=customerResults property=bankID/
bean:write name=customerResults property=banks(bankCode)
filter=true/
How can I pass arguments ??
Please...seriously need some help with this.
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 3:41 PM
To: [EMAIL PROTECTED]
Subject: Help with bean:write\bean:define whn property requires an
argumen t
Hi,
I need to call a method
what is the return false about?
try removing that
a href= onClick=send('logon.do'); return false img
scr=image.gif/a
-Original Message-
From: Kiet Nguyen [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 08, 2001 2:42 PM
To: '[EMAIL PROTECTED]'; Struts-User (E-mail)
Subject: strut help
Hi,
I am iterating over a results set and instead of doing
a bean:write... /
I need to convert the property to something more meaningful.
I added a method in my FormBean that will convert the value for me.
But, I do not know how to properly call it.
I have
logic:iterate id=customerResults
I am confused.
If anyone can clear this up for me, I would appreciate it.
I have a global forward to an action that will load my form before
displaying the jps.
If I put the following in another jsp:
html:form action=/customerMaintenance/search
or in the url type:
In an iterate,
if I do this
logic:iterate id=addressResults name=customerResults
property=addresses indexId=Index
%=Index%
the index prints out to the screen for me.
But, how do I do this??
logic:iterate id=addressResults name=customerResults
property=addresses indexId=Index
indexId=Index
logic:greaterThan name=Index value=0
br
/logic:greaterThan
/logic:iterate
HTH
Andrej
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 11:56 AM
To: 'Struts Users Mailing List'
Subject: Problem with Index
1. I have the web.xml with the ApplicationResources in it.
2. I have the tag struts-html at the top of my jsp page.
3. I am saving errors in the action and forwarding to input..
in Action I have:
errors.add(ActionErrors.GLOBAL_ERROR,
I am getting desperate on what to do with the issue below.
Does anyone have any suggestions on what to try next..
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 1:32 PM
To: 'Struts Users Mailing List'
Subject: Help with Html errors
with error.detail but your messages file has
errors.detail?
Jeff
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:11 PM
To: Struts Users Mailing List
Subject: RE: Help with Html errors not showing errors
I am getting desperate on what
Hi,
Can anyone tell me how to test that I am actually reading\loading the
application.resources file.
or
How to test is action errors exist in my form (or action) after I save them.
Beth.
This message contains information which may be confidential and privileged.
Unless you are the addressee
Hi,
Any ideas on what tag, or how to compare to attributes from my form bean?
Typically I would do
logic:greaterThan property=number value=7
A little lower...
/logic:greaterThan
But, I need to see to compare two properties.
Thanks,
Beth.
This message contains information
Why do you need the index for checkbox?? if it is to create a dynamic
checkbox in an iterate, use
multibox...
-Original Message-
From: Curt Peterson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 3:25 AM
To: [EMAIL PROTECTED]
Subject: indexed checkboxes
Somewhere in the
I want to do this:
logic:messagesPresent property=name
font color=redbean:message
key=errors.header//font
ul
html:messages id=message property=name
libean:write name=message//li
/html:messages
/ul
/logic:messagesPresent
But, how do I add a message when I am
I thought I read somewhere that I can add to the message bean
and then in a jsp see if this message bean exists and output it kind
of like errors???
errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(error.database.missing));
Can anyone point me in the right
I thought I read somewhere that I can add to the message bean
and then in a jsp see if this message bean exists and output it kind
of like errors???
errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(error.database.missing));
Can anyone point me in the right
I have
the same question...
Does
anyone out there know???
-Original Message-From: michael duggan
[mailto:[EMAIL PROTECTED]]Sent: Monday, October 22, 2001 9:19
PMTo: [EMAIL PROTECTED]Subject: Getting the
value of onject in the iterate
If I am iterating over a
//td
bean:define id=Patients name=Patients
type=com.domain.Patients/
%= Patients.getAccount().getSsn()%
/logic:iterate
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 9:21 AM
To: [EMAIL PROTECTED]
Subject: RE
How about
input type=submit name=buttonSelected value=Get onclick=return
doSubmit('bean:write ... /'); /
instead.
Or, you might have to expose the bean as a scripting variable before
using it in a scriptlet.
Strichartz, Beth wrote:
Thanks! I got that working..
Now I am having
Thanks Ted!! :)
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 11:17 AM
To: [EMAIL PROTECTED]
Subject: RE: Getting the value of object in the iterate
Ted,
Is that an html:input or straight html input.
I ask because the end tag
Hi all,
I have a similar questions.
In my iterate I have a regular Button and I need to know which one was
clicked. Therefore, I have to have a dynamic value generated in the iterate.
I have tried defaulting the value to be part of the bean that I am iterating
over ,
but this has not worked
property will work if you use the nightly build. The name of
the
submit button will be suffixed with [x] where x is the interation index.
You
can then check that in your action.
Cheers,
Dave
Strichartz, Beth [EMAIL PROTECTED] on
10/22/2001 05:10:45 PM
Please respond to [EMAIL PROTECTED
Love the site!
-Original Message-
From: Frederick N. Brier [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 30, 2001 11:36 AM
To: [EMAIL PROTECTED]
Subject: Re: New professional STRUTS website
Beautiful site! I haven't been through it all yet, but a very impressive
web application.
Hi,
I need some serious help.
I am a novice Java and Struts developer.
I am trying to develope a prototype that will work with backend EJBS..
I have an CustomerSearchForm, Form bean and action bean
my Action class is below.
Questions?
1) Is this the appropriate way to call EJBS (in an action
. Look at previous posts on how to properly
implement.
2) Your form should have get and set methods?
3) Collection
4) None that I am aware of.
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 1:09 PM
To: [EMAIL PROTECTED]
Subject: Help
27 matches
Mail list logo