Re: Struts2 :Tiles request page without action class
Thank you both After incorporating both your comments it's working fine. :clap: DustFrog wrote: > > What about this line: > > > > Noticing that there is not a "/" in front of pages, but in your other > references, there is. Is this a typo or is this the way that you actually > have it in your project? Could this be causing your problem? > -- View this message in context: http://old.nabble.com/Struts2-%3ATiles-request-page-without-action-class-tp27266243p27281685.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 :Tiles request page without action class
Do you see an exception at the start of your app? no How do you configure the StrutsTilesListener? web.xml org.apache.struts2.tiles.StrutsTilesListener Where are Tiles definitions stored? there are stored in tiles.xml and the xml is avilable at the classpath. Antonio Petrelli-3 wrote: > > 2010/1/22 Shasha : >> I am trying to show welcome page using tiles so i am calling to call an >> action where the action doesn't exists (since this a feature in struts2) >> it >> thrown an error >> >> org.apache.tiles.definition.NoSuchDefinitionException: SUCCESS > > Usually this happens when your app failed to load definitions. > Do you see an exception at the start of your app? > Where are Tiles definitions stored? How do you configure the > StrutsTilesListener? > > Antonio > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://old.nabble.com/Struts2-%3ATiles-request-page-without-action-class-tp27266243p27272187.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts2 :Tiles request page without action class
Hi All, I am trying to show welcome page using tiles so i am calling to call an action where the action doesn't exists (since this a feature in struts2) it thrown an error org.apache.tiles.definition.NoSuchDefinitionException: SUCCESS can any let me know what must be the error. web.xml org.apache.struts2.tiles.StrutsTilesListener tiles.xml struts.xml SUCCESS -- View this message in context: http://old.nabble.com/Struts2-%3ATiles-request-page-without-action-class-tp27266243p27266243.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: validation in struts2
Thanks all. It was working fine after changing to LoginAction-validation.xml . musomesa wrote: > > > Also, the file should be LoginAction-validation.xml . Use the > config-browser to see that you have the validators in place. > > > > Chris > > > > > -Original Message- > From: Gabriel Belingueres > To: Struts Users Mailing List > Sent: Wed, Jan 20, 2010 10:12 am > Subject: Re: validation in struts2 > > > the form tag is wrong? > > try: > > > > 2010/1/19 Shasha : >> >> Hi All, >> >> I am not able to get the validation errors from Login-validation.xml when >> i >> am using Modeldriven . >> >> Login-validation.xml >> 1. > 2. "-//OpenSymphony Group//XWork Validator 1.0.2//EN" >> 3. >> "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";> >> 4. >> 5. >> 6. >> 7. >> 8. >> 9. >> 10. >> 11. >> 12. >> 13. >> 14. >> 15. >> 16. >> >> LoginAction.java >> >> 1. public class LoginAction extends ActionSupport implements >> ModelDriven,SessionAware{ >> 2. >> 3. private User user = new User(); >> 4. private Map session; >> 5. private UserDAO userDAO = new UserDAOImpl(); >> 6. >> 7. public String execute() throws Exception { >> 8. >> 9. boolean success=userDAO.verifyUser(user); >> 10. if (success) >> 11. return SUCCESS; >> 12. else >> 13. return ERROR; >> 14. } >> 15. >> 16. public Object getModel() { >> 17. return user; >> 18. } >> 19. >> 20. public void setSession(Map session) { >> 21. this.session=session; >> 22. } >> 23. >> 24. public Map getSession() { >> 25. return session; >> 26. } >> 27. >> 28. } >> >> login.jsp >> >> 1. <%@ taglib prefix="s" uri="/struts-tags" %> >> 2. >> 3. >> 4. Struts 2 Login Application! >> 5. >> 6. " rel="stylesheet" >> type="text/css"/> >> 7. >> 8. >> 9. >> 10. >> 11. >> 12. Login >> 13. >> 14. >> 15. >> 16. >> 17. >> 18. >> 19. >> 20. >> 21. >> 22. >> 23. >> 24. >> 25. >> 26. >> 27. >> 28. >> 29. >> >> http://old.nabble.com/file/p27236040/error.jpg >> >> >> -- >> View this message in context: >> http://old.nabble.com/validation-in-struts2-tp27236040p27236040.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > > -- View this message in context: http://old.nabble.com/validation-in-struts2-tp27236040p27266241.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
validation in struts2
Hi All, I am not able to get the validation errors from Login-validation.xml when i am using Modeldriven . Login-validation.xml 1. http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";> 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. LoginAction.java 1. public class LoginAction extends ActionSupport implements ModelDriven,SessionAware{ 2. 3. private User user = new User(); 4. private Map session; 5. private UserDAO userDAO = new UserDAOImpl(); 6. 7. public String execute() throws Exception { 8. 9. boolean success=userDAO.verifyUser(user); 10. if (success) 11. return SUCCESS; 12. else 13. return ERROR; 14. } 15. 16. public Object getModel() { 17. return user; 18. } 19. 20. public void setSession(Map session) { 21. this.session=session; 22. } 23. 24. public Map getSession() { 25. return session; 26. } 27. 28. } login.jsp 1. <%@ taglib prefix="s" uri="/struts-tags" %> 2. 3. 4. Struts 2 Login Application! 5. 6. " rel="stylesheet" type="text/css"/> 7. 8. 9. 10. 11. 12. Login 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. http://old.nabble.com/file/p27236040/error.jpg -- View this message in context: http://old.nabble.com/validation-in-struts2-tp27236040p27236040.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org