Re: How to bypass validation in struts2
Hi, thanks for the solutions. It works when i follow your advise. I will like to ask another question. It seems that when i use this example to escape the validation, i'm not able to access to another page when i click on the submit button. Please correct me if i'm wrong. It is because of this line: in the struts.xml that that the method="{1}" always caused struts to have the value input and forgo calling the class file to process the data? Thanks newbie-gero wrote: > > Hi, > > i'm new to struts 2 and i'm trying out the example in the struts2 webpage. > Currently i'm trying on the struts2 tutorial on bypassing the validation > as listed on http://struts.apache.org/2.x/docs/validating-input.html > > However i encounter a few problems when i deploy the code in tomcat > server. > When the page is up by entering > http://localhost:8080/tutorial/HelloWorld.action in the url section on the > browser, i click on the English language. > > NExt i click on the 'Sign On' hyperlink. It should direct me to the > Logon.jsp page, but the result on my browser shows error 404 and states > that the requested source /tutorial/Login_input.jsp is not available. > > This is my section on the validation on my struts.xml > > /Logon.jsp > Menu > > > > I have already follow every possible instruction on the struts tutorial > page but i still cannot solve this issue. I have upload my code running on > my tomcat server along with this post. > http://www.nabble.com/file/p20082857/tutorial.zip tutorial.zip > > Please help me with this issue. > Thanks in advance > > -- View this message in context: http://www.nabble.com/How-to-bypass-validation-in-struts2-tp20082857p20083722.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to bypass validation in struts2
Your problem is in the following line in your struts.xml file - /{1}.jsp In itself, this configuration is not a bad thing, but it's location is your problem. I think order is important in the struts.xml file. Since this wildcard is located before your "Logon_*" action, it is matched first. Try moving your wildcard action further down in your package configuration so that Logon_* will be matched first. -Wes On Mon, 2008-10-20 at 20:26 -0700, newbie-gero wrote: > Hi, > > i'm new to struts 2 and i'm trying out the example in the struts2 webpage. > Currently i'm trying on the struts2 tutorial on bypassing the validation as > listed on http://struts.apache.org/2.x/docs/validating-input.html > > However i encounter a few problems when i deploy the code in tomcat server. > When the page is up by entering > http://localhost:8080/tutorial/HelloWorld.action in the url section on the > browser, i click on the English language. > > NExt i click on the 'Sign On' hyperlink. It should direct me to the > Logon.jsp page, but the result on my browser shows error 404 and states that > the requested source /tutorial/Login_input.jsp is not available. > > This is my section on the validation on my struts.xml > > /Logon.jsp > Menu > > > > I have already follow every possible instruction on the struts tutorial page > but i still cannot solve this issue. I have upload my code running on my > tomcat server along with this post. > http://www.nabble.com/file/p20082857/tutorial.zip tutorial.zip > > Please help me with this issue. > Thanks in advance > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to bypass validation in struts2
Hi, i'm new to struts 2 and i'm trying out the example in the struts2 webpage. Currently i'm trying on the struts2 tutorial on bypassing the validation as listed on http://struts.apache.org/2.x/docs/validating-input.html However i encounter a few problems when i deploy the code in tomcat server. When the page is up by entering http://localhost:8080/tutorial/HelloWorld.action in the url section on the browser, i click on the English language. NExt i click on the 'Sign On' hyperlink. It should direct me to the Logon.jsp page, but the result on my browser shows error 404 and states that the requested source /tutorial/Login_input.jsp is not available. This is my section on the validation on my struts.xml /Logon.jsp Menu I have already follow every possible instruction on the struts tutorial page but i still cannot solve this issue. I have upload my code running on my tomcat server along with this post. http://www.nabble.com/file/p20082857/tutorial.zip tutorial.zip Please help me with this issue. Thanks in advance -- View this message in context: http://www.nabble.com/How-to-bypass-validation-in-struts2-tp20082857p20082857.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]