struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Caroline Jen <jiapei_...@yahoo.com>
Subject How To Get the 'initial' in the form-property?
Date Fri, 18 Jun 2004 18:10:32 GMT
In my struts-config.xml, I provided some initial
values:

     <form-bean
        name="threadForm"
          
type="org.apache.struts.validator.DynaValidatorForm">
          <form-property
            name="sort"
            initial="thread_last_post_date"
            type="java.lang.String"/>
          <form-property
            name="order"
            initial="DESC"
            type="java.lang.String"/>
        </form-bean>    

How do I get the initial value in my servlet that
extends Action?

I tried:

form.get( "sort" );
form.get( "order" );

and 

form.getProperty( "sort" );
form.getProperty( "order" );

The compiler complains "cannot resolve symbol: method
get" and "cannot resolve symbol: method getProperty".

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message