Top "Struts2" questions

Apache Struts 2 is an extensible framework based on servlets and implements model–view–controller (MVC) pattern in its architecture for creating enterprise-ready Java web applications.

How do I set default selected value in Struts2 <s:select> tag?

I am new in Struts2. I have user form, role column have a drop-down list. When user form is in …

struts2 html-select struts-tags
What's the difference between # , % and $ signs in Struts tags?

I'm working with Struts2 and when I'm accessing value stack variables I don't know whether to use % or # or $. I …

jsp struts2 ognl struts-tags
JQuery Ajax adding hash in the url

I have this code here that uses struts2-jquery plugin <h4>Choose A task</h4> <…

javascript jquery ajax url struts2
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher

log when start the tomcat Apr 28, 2011 10:52:57 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native …

java struts2
How to solve this Java type safety warning?

Map session = ActionContext.getContext().getSession(); session.put("user", user); This code generates a warning: Type safety: The method put(Object, …

java generics casting struts2
Whitelist security constraint in web.xml

I'm using Tomcat for my Struts2 application. The web.xml has certain entries as shown below: <security-constraint> <…

java tomcat struts2 web.xml security-constraint
Format number in Struts 2 <s:property/> tag

I would like to format number displayed by <s:property value="summary.total"/> tag in Struts 2. There is …

java struts2 ognl
applicationContext.xml with datasource or hibernate.cfg.xml. Difference?

Want to clear some confusion. I have applicationContext.xml. Question 1: Whats the difference between 1 & 2. Are they both same with …

spring hibernate jakarta-ee struts2
Struts - In which jar file all the .tld files located

I am developing a Struts based web application. I am new to Struts. I want to use struts-html.tld taglib, …

java struts2 struts struts-html
Struts Hello world example : There is no Action mapped for namespace [/] and action name error

i am absolute beginner to Struts2. I am tying to follow tutorials on struts web site. i followed this tutorial. …

struts2 struts2-namespace action-mapping