This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Dyna Validator form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dyna Validator form" Watch "Dyna Validator form" New topic
Author

Dyna Validator form

Prashanth Chandra
Ranch Hand

Joined: Dec 07, 2005
Posts: 79
Hi
I am new to struts. Could someone please help me of what is a dyna validator form and how to use it.

thanks in advance
Prashanth
Aaron Ting
Ranch Hand

Joined: Dec 13, 2005
Posts: 78
Originally posted by Prashanth Chandra:
Hi
I am new to struts. Could someone please help me of what is a dyna validator form and how to use it.

thanks in advance
Prashanth


Greetings,

To my understanding, a Dyna Validator Form is used whenever you have several form pages whereby the values involved are of the same type.

Using the Dyna Validator Form, you can make validation through the struts-config.xml file with optimised performance instead of creating individual .java classes which serves the same functionality.

For example, you have this page whereby requires the user to re-authorise themself in order to enter some special functionality, (e.g. Admin page), you can use a dyna validator form to link up the validation steps required with the standard login page and the admin page. By doing so, you need not create two different .java files just to achieve this result, instead, using a dyna validator form will be able to get the same desired results.

Hope these information helps...


If you can't convince them, confuse them!
Prashanth Chandra
Ranch Hand

Joined: Dec 07, 2005
Posts: 79
Hi Aaron Ting,
Thanks for the reply.

I am trying to call the model class where i have some 3 or 4 methods from a jsp page by using the .tld defined as part of struts. I am not getting how to invoke a particular method from the model class.

thanks in advance
Saidattu Gangu
Greenhorn

Joined: Sep 27, 2013
Posts: 1
hi prashanth chandra


you said that you said that you are trying to call methods in jsp... it is not at all recommended to write java code in the jsp file... model is nothing but a jaba bean how can you call java bean methods in jsp..


ok

from tld file it is too dificult but not impossible for that you need to create your own tld file in that you define your own uri and prefix and with our own class name and atttributes

and develop your TagHandler Class which extends Predefined class called TagSupport pad in the taghandler class write setters and getter methods then doEnd() in the do end tag write a code which will create object of model and which can call methods also

then import that userdefined taglib in to your jsp like <% taglib uri="" prefix="'%>

and call the attributes of the tld ...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Dyna Validator form
 
Similar Threads
struts
Problem in DynaForm
Action Form,Dyna Action Form,Validator Form,DynaValidatorForm,ValidatorAction,DynaValidatorAction
Problem with using DynaValidatorForm, is it possible to do it??
dynavalidator - required, date, String[]