Re: Codebehind + zero config options

2008-03-15 Thread Alex Shneyderman
hmm, is this question too stupid to be answered ? On Fri, Mar 14, 2008 at 1:07 PM, Alex Shneyderman [EMAIL PROTECTED] wrote: I am a bit confused by how it works maybe you guys could shed some light :-) I have a package structure and JSP pages structure that match. To be concrete actions are

Re: Codebehind + zero config options

2008-03-15 Thread Jeromy Evans
CodeBehind doesn't provide automatic index actions. Only the URL /my/namespace/index.action maps to IndexAction You may be thinking of the SmartURLs plugin or Convention plugin in 2.1 (or my own alpha struts2urlsplugin plugin at googlecode that was discussed recently) Also, the

Re: redirection problem

2008-03-15 Thread Jeromy Evans
This discussion should give you some ideas: http://www.nabble.com/Interceptors-with-Ajax-Actions-td15706322.html matthieu martin wrote: Hi all. I am handling login issue through an interceptor. Basically it looks in the session if a user entry exists before letting you go through to the

Re: Exception in Validation

2008-03-15 Thread Dave Newton
--- 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

Re: Exception in Validation

2008-03-15 Thread aum strut
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:

Re: Exception in Validation

2008-03-15 Thread Dave Newton
--- 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

Re: Exception in Validation

2008-03-15 Thread Martin Gainty
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 (or post it here and we can check for you..) Martin- - Original Message - From: Dave Newton [EMAIL

Re: Exception in Validation

2008-03-15 Thread Dave Newton
--- 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.

Re: redirection problem

2008-03-15 Thread Martin Gainty
a test harness import com.mockobjects.dynamic.C; com.opensymphony.xwork2.ActionInvocation invocation= (com.opensymphony.xwork2.ActionInvocation) new Mock(com.opensymphony.xwork2.ActionInvocation.class).proxy(); org.apache.struts2.dispatcher.HttpHeaderResult result=new

Wildcard mapping should not suck (but does)

2008-03-15 Thread stanlick
I am writing what should have been the simplest three page wizard ever. It involves a single wildcard action mapping action name=wizard_* class=acme.action.wizard.Wizard method={1} interceptor-ref name=starterStack session /interceptor-ref result

Re: Exception in Validation

2008-03-15 Thread aum strut
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?