Wrox Programmer Forums
|
BOOK: Professional Jakarta Struts
This is the forum to discuss the Wrox book Professional Jakarta Struts by James Goodwill, Richard Hightower; ISBN: 9780764544378
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Jakarta Struts section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 2nd, 2004, 09:56 AM
Registered User
 
Join Date: Sep 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Probs with LookupDispatcherAction

Hii
I have four submit buttons each of them need different types
of validations But when I connect to validator.xml file , the
validation is being called since all of them are submit buttons.
So hoe can I write different valdations for each buttons using
validation.xml file? Anyone pls do help me out

thanx in advance
jophy



jophy
 
Old September 12th, 2004, 06:34 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you can set a hidden parameter in your submiting jsp page:
<input Type=submit name="firstbutton" onclick="this.form.x.value='firstbutton'">
<input Type=hidden name=x value="">
then you can handle how to validate your other fields in you action form(I hope you are talking about struts)according to the value of the x hidden parameter.e.g if you click the first submit
you'll handle your input values by considering that the x hidden value will be "firstbutton"...





Similar Threads
Thread Thread Starter Forum Replies Last Post
Pong probs --- Help... ironchef BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 6 February 21st, 2009 04:12 PM
More session_start() probs LaVey Beginning PHP 13 March 4th, 2007 10:20 AM
probs while taking backup anukagni MySQL 3 April 20th, 2006 03:47 AM
data storing probs anukagni Access 1 April 3rd, 2006 06:33 AM
validator and LookupDispatcherAction jophy XML 0 September 2nd, 2004 09:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.