Hmmm I would think that html:reset would tie into the Form.reset()
method, but you said you are using a DynaForm so I'm not sure how that
would work (I hard code all my forms because I like wasting time :)
Michael Weaver wrote:
I am new to Struts and have tried to used a DynaActionForm to hold
My solution to highlight error fields was to create a custom tag
which checks if the property associated with the tag has an error in the
ActionErrors object - other than the tag I use the standard struts
validation - nothing extra required in the Actions. Source code is here:
http://www.niallp.
I developed LazyDynaBean and LazyDynaClass (which implements
MutableDynaClass) which don't need their properties to be pre-defined.
I have also used them to create LazyValidatorForm which is a version of
DynaValidatorForm backed by a LazyDynaBean.
All thats needed in the struts-config.xml is:
my problem..
I have a list-backed actionform...
That list can have more than one locationObject javabean...
The locationObject javabean has some fields, including an errorFormat
field..
That errorFormat field can be set using a mutator method from the javabean
called setErrorFormat("BACKGROUND:#0
I am new to Struts and have tried to used a DynaActionForm to hold the users form
choices across requests by setting the form to session scope. This causes a problem
with html:reset since I get back the same values on reset and in effect nothing is
reset. I could be committing a big design no no
To make this kind of feature useful there needs to be some way of indicating
which occurance of the "indexed" property is in error. So, for example, if
you had a bunch of "order" beans and were validating the order value I would
want to be able to output a message along the lines of...
"Order
I am using the for displaying the error messages. In the
properties file, I have the following entry
ApplicationResources.properties
==
error.emptyUserid=• Please enter a username.
In the HTML, it shows the null in the beginning and end. Why? Please help!
null
• Please e
://jroller.com/page/netsql2/20040430#more_struts_sites
This way I spam the list less.
Also, I will post my trainings on here:
http://groups.yahoo.com/group/RIA_CMS/links
.V
Amin Lalji wrote:
For anybody who might be interested in a solution:
After some considerable research and wheel spinning, I
Use a String for the form's fields (be it Date, int, double, whatever).
Format the data before it's shown and parse it upon submission.
--- "Inamdar, Anil - Cons" <[EMAIL PROTECTED]> wrote:
> Hello,
> I have a getter and setter on a Date field in my Action form.
> When I display the field strut
> I have a getter and setter on a Date field in my Action form.
> When I display the field struts seems to call toString on the
> object. Is there a way I can control the formatting on the
> Date object thanks Anil
Yes! Use the JSTL tag.
--
Tim Slattery
[EMAIL PROTECTED]
--
Hello,
I have a getter and setter on a Date field in my Action form.
When I display the field struts seems to call toString on the object.
Is there a way I can control the formatting on the Date object
thanks
Anil
-
To unsubscri
How about:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&group=comp.lang.
java.programmer
for the java programming part?
-Original Message-
From: Irfandhy Franciscus [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 28, 2004 10:53 AM
To: [EMAIL PROTECTED]
Subject: Java Resou
Hi,
Does any of you know a good mailing list under one these topics :
1. IT Project Management
2. Java programming
Thank you.
Best Regards,
Irfandhy Franciscus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
At 2:29 PM +0200 4/30/04, Nicolas De Loof wrote:
Hello,
I just discovered the use of BeanUtils.copyProperties to populate my
formbeans from business objets. I would like to
know where to configure my Converters (using ConvertUtils.register) ?
I use a static initialiser in my BaseAction class. Do
At 8:24 AM -0700 4/30/04, Steve Lewis wrote:
Given that the Dynaform is dynamic I am wondering why I need to
declare a dynaform and list its properties in struts-config. I would
prefer to have my action populate a form adding properties that it
knows without having to declare the form in struts-
Hi it seems that you can use the Struts DispatchAction to do this.
Please refer this:
http://www.jguru.com/faq/view.jsp?EID=995474
Paulo Murphy wrote:
Hi again all,
I have a couple of actions with respective forwards that are all working
fine.
Now what I am trying to do is use a single url to r
Given that the Dynaform is dynamic I am wondering why I need to declare a
dynaform and list its properties in struts-config. I would prefer to have
my action populate a form adding properties that it knows without having to
declare the form in struts-config.
1) Is this possible
2) If so how do y
Hello,
I just discovered the use of BeanUtils.copyProperties to populate my formbeans from
business objets. I would like to
know where to configure my Converters (using ConvertUtils.register) ?
I use a static initialiser in my BaseAction class. Do you have something better to
suggest ?
Nico.
Hi try adding this method in your ActionForm:
public String getToto(int i)
{
return (String)toto.get(i);
}
The struts logic:iterate will automatically pass in an index value to
the method in order to get the object inside the Array.
Hope this works
Francois Boccou wrote:
Hello,
I have
Scott,
That was it. Thanks a bunch.
One thing I don't understand though. If the setProperty for the BeanUtils
couldn't find an appropriate setter (which it couldn't until I declared
setIsf() in the form), shouldn't it have squawked about it with TRACE
level logging?
Wayne
-Original Messag
Hello there,
The problem using multiple actions for one form is solved :-)
I followed exactly the instructions in the API reference for the class
org.apache.struts.actions.LookupDispatchAction (like explained in the
newbie faq), and everything is fine.
Sincerly
Samuel
--- andinasoft SA - Soft
Hello,
I had an error in my jsp page, there still was a lost tag before
my tag.
Samuel
--- andinasoft SA - Software y Consulting ---
Mariano Aguilera 276 y Almagro - Quito, Ecuador
Tel. +593 2 290 55 18 Cel. +593 9 946 4046
- http://www.andinasoft.com -
--
Little more input to the issue.It's working when i have this . So that mean that the
lazyList trick is not working for some reason.see the commented codes
public class myTestForm extends DynaActionForm {
public void reset(ActionMapping mapping, HttpServletRequest request) {
Hello,
I have a problem displaying on my jsp pages a list of String that is part of
my bean.
Here is my bean:
myBean {
ArrayList toto; //of type String
}
here is my JSP:
+
This doesn't work, I miss something but I can't find what, someone would
give me a tip ?
Name is a required property
Little more input to the issue.It's working when i have this . So that mean that the
lazyList trick is not working for some reason.see the commented codes
public class myTestForm extends DynaActionForm {
public void reset(ActionMapping mapping, HttpServletRequest request) {
Hello Abhi,
I am sorry, which one is the storeToBean and storeToProperty with
reference to my example?
I can't say, cause your example show me only the code in the JSP.
Think about where do you want to store the object selected in your
option. I assume it is in a bean in which you'll store the
Hi,
Is it practical to have a log file created per
sessoin? I am using log4j
1.2.8. It logs all messages to one log file. What is
your suggestion?
Thanks,
Chiming
__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
h
Hello there,
I'vesolved it like this, using the bean tag inside the html src tag:
Sincerly
Samuel
--- andinasoft SA - Software y Consulting ---
Mariano Aguilera 276 y Almagro - Quito, Ecuador
Tel. +593 2 290 55 18 Cel. +593 9 946 4046
- http://www.andinasoft.com -
-
Samuel:
I am sorry, which one is the storeToBean and storeToProperty with
reference to my example?
The vector lstCountry contains CountryObject beans that have getters and
setters
for country_id and name.
Thanks,
Abhi
-
Hello Abhi,
request.setAttribute("lstCountry", v)
So the bean with you list is "lstCountry".
JSP:
Explanation:
-storeTo is the bean where to store the result
-storeToProperty is the property of the bean storeTo where to store the
result
-lstCountry: your bean with the collect
I think the id attribute on the iterate tag must match the getter on the
"get row (index)" method of your form bean. For example I have:-
and my form bean is:-
private List rows = null;
public FormRow getRows (int index)
{
return (RenamePD
You don't understand me ( probably)
I don't want set criteria for every class - I want features btw search, like load,
find, save etc
session.search(PermanentClass.class,BeanClass.class)
for any PermanentClass and any BeanClass
method search find properties in BeanClass like properties in Permanen
Hi,
Won\t logic:iterate help somewhere, along with tiles?
Regards
marco
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Ludovic Bailly
Sent: 30 April 2004 15:54
To: [EMAIL PROTECTED]
Subject: Re: How to create a custom tag which returns struts tag ?
H
Hi,
Thanks for your response.
I'm agree with you there must be a better approach :-)
What I want to do is really simple. In a jsp page I want to display a
collection of products. I've created a custom tag that takes a product
object as parameter and display it using a velocity template.
Each pro
I've been tearing my hair out trying to get indexed properties
to work. Apparently, there is some correspondence between the HTML
fields and the ActionForm indexed properties because when the ActionForm
is initialized, it does correctly populate the default HTML form fields.
However, when I modify
Hello there,
The link:
http://project:8080/start.do
shows me the page configured in struts-config.xml:
This form contains a tag which looks like that in the
generated html page:
If I press the submit button, the page shown is:
http://project:8080/start.do?category=4 ...
and not, like I would ex
Sorry, this is the exception I get:
javax.servlet.ServletException: Cannot find bean c in any scope
> -Original Message-
> From: Basu, Abhijit (Abhi)
> Sent: Friday, April 30, 2004 9:58 AM
> To: '[EMAIL PROTECTED]'
> Subject: Drop down population question
>
> I am new
I am new to Struts and am having problems populating drop-downs from the
database. I am actually getting a little frustrated with these tags, seems
like
no coding in java anymore. :)
1. ActionClass code excerpt:
mBean.makeConnection();
//get country list vector
38 matches
Mail list logo