Hi,
How do you start your project? With maven2 maybe? The xml file have to
be in the same output directory, next to compiled class. If you use
maven2, put your xml in to folder resources with the same path as for
action class.
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
i am using myeclipse for the development purpose
and putting the file in the same folderwhere action class mean .java class
is placed..
its neithergiving me any error or exception nor doing any validation
On 3/16/08, Lukasz Lenart [EMAIL PROTECTED] wrote:
Hi,
How do you start your project?
Ok, check if xml file is in WebRoot/WEB-INF/classes/path
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
yes it is there in the same folder
structure is
1)WebRoot\WEB-INF\classes\TestExample-validation
where as my class file for the action is in
2)WebRoot\WEB-INF\classes\aum
and if i will put it in the aum folder it is giving error.while it is
neithergiving any error nor performing validation
--- aum strut [EMAIL PROTECTED] wrote:
structure is
1)WebRoot\WEB-INF\classes\TestExample-validation
where as my class file for the action is in
2)WebRoot\WEB-INF\classes\aum
and if i will put it in the aum folder it is giving error.while it is
neithergiving any error nor performing
Hi Dave,
As my complied action class namely TestExample.class is at the following
position
WebRoot\WEB-INF\classes\aum
and if i am putting my TestExample-validation in this folder,it is giving
following error in the console
SEVERE: Could not find action or result
No result defined for action
hi dave,
Thanks for the help.i have solved the problem,actually i was not configuring
for the input result type in the struts.xml file.
after configuring its working fine..
:)
--aum
On 3/16/08, aum strut [EMAIL PROTECTED] wrote:
Hi Dave,
As my complied action class namely
--- aum strut [EMAIL PROTECTED] wrote:
Thanks for the help.i have solved the problem,actually i was not
configuring for the input result type in the struts.xml file.
Sometimes reading the error message is actually useful!
Not always :/ But sometimes.
Dave
thats true
:)
On 3/16/08, Dave Newton [EMAIL PROTECTED] wrote:
--- aum strut [EMAIL PROTECTED] wrote:
Thanks for the help.i have solved the problem,actually i was not
configuring for the input result type in the struts.xml file.
Sometimes reading the error message is actually useful!
--- aum strut [EMAIL PROTECTED] wrote:
TestExample.java. i have two files namely validators.xml
Why are you creating a validators.xml?
That aside, you don't have a grammar in the validators.xml, which is exactly
what the error message states.
Dave
Hi Dave,
Thanks for the rply..
i have already removed validators.xml
i am not sure about the two points:
1) i am only using the two fields in my input form:
namely Name and password.
the name of the action is TestExample i have created a
TestExample-validation.xml file with following contents:
--- aum strut [EMAIL PROTECTED] wrote:
what is meant by grammer not defined?? as i am not getting it.
Are you still getting the error after removing validators.xml?
If not, it probably means that the XML parser was expecting there to be an
XML grammar (like a DTD) specified in the XML file.
If
PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Saturday, March 15, 2008 1:08 PM
Subject: Re: Exception in Validation
--- aum strut [EMAIL PROTECTED] wrote:
TestExample.java. i have two files namely validators.xml
Why are you creating a validators.xml?
That aside, you
--- Martin Gainty [EMAIL PROTECTED] wrote:
sounds as if you might possibly a Speech to Text engine you're working
with? check the referenced DTD is a valid 'grammar DTD'
http://www.w3.org/TR/2001/WD-speech-grammar-20010820/#AppB
?!
The validators.xml didn't have a doctype with a DTD in it.
Hi Dave,
I have removed validators.xml.
i have put the TestExample-validation.xml in the same folder where my action
is placed.
now it is not giving me any error but validation is not working at all.
belw is snap shop of my TestExample-validation.xml:
?xml version=1.0 encoding=UTF-8?
15 matches
Mail list logo