Java Link

See which of your colleagues or former colleagues are already on Java Link: Check out the Contact Finder
Java Frameworks » Struts » doubt regarding validation.xml instruts2

203 Views
  2 Replies

0
Vote Vote
doubt regarding validation.xml instruts2
Share  
 Type: Professional, Report if fun topic
govind reddy
govind reddy Picture
17 Posts
back to top
Posted 16-04-2009Reply

Hi friends,



WEB-INF

|---------WEB.XML

|-----CLASSES

|--------STRUTS.XML

|--------HIBERNATE.cfg

|--------com

|----ZIZA

|----------Login-validation.xml

|----------actions

|---------Login.class





the problem is.





my application is not recognizing Login-validation .xml

1)I kept Login.validation.xml along with struts.xml also. but still it is not recognizing.

2)i kept Login.validation.xml directly in com.ziza ,it is also recognizing.



3)I tried to keep direcltly in actions folder .i am getting deployment problem.



can any one help me.



regards,

aaryareddy@gmail.com

Tannu
Tannu Picture
4 Posts
back to top
  Rated 0 | Posted 18-04-2009

Hi Govind,

Try to keep your login-validation.xml under WEB-INF-->Classes->com->ZIZA. It should recognize it. I hope you are giving proper package tag in struts.xml

Viresh
Viresh Picture
17 Posts
back to top
  Rated 0 | Posted 10-09-2009

Hi Govind,



Try to keep your login-v... See Tannu's complete reply


Hi,

You Should enable that in a plug-in tag of struts-config.xml and validate=true in actionmapping tag and keep it in WEB-INF/validation.xml and please check the path of validation.xml and rule.xml both in the plug in tag. just like WEB-INF/validation.xml and validation-rules.xml. If the paths are correct and you enabled int the struts config file then it should work...

0
Vote Vote
Share  
 Type: Professional, please report if fun topic

Recent Activity in Forums

05-04-2012.
05-04-2012.
Kanchana posted a new forum topic in
27-02-2012.
11-02-2012.
Kanchana posted a new forum topic in
11-02-2012.