For 2> how about readonly=true .... works fine in our case.


Basudeb Acharya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



Rafael Taboada <[EMAIL PROTECTED]> 
07/15/2005 01:44 PM
Please respond to
"Struts Users Mailing List" <user@struts.apache.org>


To
Struts List <user@struts.apache.org>
cc

Subject
Some advice






Hi folks. I'm refining my project. I need to solve some inconveniences.
 1)In my validation, all work fine. But I have an action class for an 
actionform. This action class extends dispatchaction because in my jsp i 
have several buttons in order to submit something. My doubt is if there is 

some way to validate only some fields. Because I want that 'search method' 

validate only username and date fields, and 'drope method' validate only 
chkBills field... How can I do that? I tried to use ValidatorActionForm 
instead of ValidatorForm but it's the same because I have only one Action 
and inside all my methods.
 2)When I want to fill some fields in a 'mother jsp' I use a 'child jsp', 
this child search data from database and when I submit 'select button', it 

closes itself and fill some fields of the mother jsp. But of course I 
don't 
want the user modify those fields because it's only information. Those 
fields are specified as:
 <html:text maxlength="50" property="strRazonSocial" size="50" 
styleClass="Form" />
 How can I disable this field in order to the user can't modify it?. I 
tried 
with 'disabled' option but I need this field in order to save this 
information and when I use 'disabled="true"' there is an error because it 
can't find that field. I tried to use html:hidden with write option but it 

doesn't show the data...
 Thanks in advance for ur help.

-- 
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi 
vida"

ForwardSourceID:NT0000756E 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Reply via email to