Category Archives: Struts 2

Struts2 vs. Struts1

1.  Servlet Dependency: Actions in Struts1 have dependencies on the servlet API since theHttpServletRequest and HttpServletResponse objects are passed to the execute method when an Action is invoked but in case of Struts 2, Actions are not container dependent because they are made simple POJOs. … Continue reading

Posted in Struts 2 | Leave a comment

Struts 2 Iterator tag example

Source : http://www.mkyong.com/struts2/struts-2-iterator-tag-example/ Struts 2 Iterator tag example Struts 2 Iterator tag is used to iterate over a value, which can be any of java.util.Collection or java.util.Iterator. In this tutorials, you will create a list variable, use Iterator tag to … Continue reading

Posted in Struts 2 | 2 Comments

BUG in struts2

Actually I used Now, I have specified type as button, so I expected that it will not go to action on click on the button. But what happens is when I click on button, it asks if I want to … Continue reading

Posted in Struts 2 | Leave a comment

Color of Error Messages in struts 2

Problem: I am working on struts 2.I have one text field and have put validation (with xml)on the text field if its blank, throw an error.But the field error I am getting is in black colour.Does anyone have idea how … Continue reading

Posted in Struts 2 | Leave a comment

How to put two S:submit button in one line, but its not working

How to put two S:submit button in one line?? Solution : There is attribute theme in button.you have to put it as theme=”simple” and put the two button in one tr (that means one row).

Posted in Struts 2 | Leave a comment