Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-14-2007, 05:39 PM
Senior Member
 
Join Date: Jun 2007
Posts: 130
Jack is on a distinguished road
Struts validation
Hi, I can't do the validation !
can you check my code? I don't know what is the problem.

Code:
SolForm (extends ValidatorForm), in the struts-config <form-bean name="SolForm " type="users.actions.forms.SolValidateForm"></form-bean> <action path="/Sol" type="users.actions.solAction" unknown="false" validate="true"> <forward name="no" path="solPage" redirect="false"></forward> <action path="/getForm" type="users.actions.sol.SolGetAction" name="SolForm" scope="request" unknown="false" validate="true"> <forward name="OK" path="ResultPage" redirect="false"></forward>
in the validation.xml I have
Code:
field property="DATE" depends="required,date"> msg name="required,date" key="fail.DATE"></msg> arg0 key="SolForm .DATE"></arg0> /field> field property="Subject" depends="required"> msg name="required" key="fail.Subject"></msg> arg0 key="SolForm .Subject"></arg0></field> field property="person" depends="required"> msg name="required" key="fail.tut"></msg> arg0 key="SolForm .person"></arg0></field>
In the jsp I have this:
Code:
<html:form action="getForm.do" method="POST"> SUBJECT<html:text property="SUBJECT"></html:text><html:errors property="SUBJECT"></html:errors> REVISION DATE<html:text property="REVISION DATE"></html:text><html:errors property=" DATESESSION "></html:errors> PERSON<html:select property="PERSON"> <html:options collection="lPERSON" roperty="ID" abelProperty="Name""></html:options></html:select><html:errors property="PERSON"></html:errors> <html:submit>accept</html:submit> </html:form>
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-04-2007, 04:38 AM
Senior Member
 
Join Date: Jun 2007
Posts: 164
Heather is on a distinguished road
I give you an example, maybe you can resolve it

About the Struts Declarative Form Validation Example
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-04-2007, 04:41 AM
Senior Member
 
Join Date: Jun 2007
Posts: 119
Peter is on a distinguished road
I didn't find your error
Can you paste more code?
anyway i give you this link,
check it out
Struts Tutorial: Struts Validation (Client and Server Side)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
form validation abhiN New To Java 0 03-07-2008 08:04 AM
Swing Validation ppayal AWT / Swing 0 02-09-2008 10:00 AM
Swing validation ppayal New To Java 0 02-09-2008 09:59 AM
Another Query On Validation Albert Web Frameworks 1 07-05-2007 07:47 PM
javascript validation yuchuang New To Java 5 05-14-2007 04:38 PM


All times are GMT +3. The time now is 06:26 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org