- Q What is known as ‘the Fourth Arm of Defence and Force behind the Armed Forces’ ?
- Q What is Runtime Host?
- Q what is the total amounts or money deposited in all banks of india by people in one day?
- Q Difference between iterator and listiterator?
- Q What courses did you like least and why ?
- Q What is brainstorming?
- Q Define co-ordination covalent bond.
- Q What is the Load Balancing Advisory? - Oracle RAC
- Q Under the total force policy, what plan covers all degrees of volunteerism, involuntary recall, mobilization, and demobilization to support the Joint Strategic Plan (JSCP) and Deliberate Plans and Crisis Action Planning (A)Demobilization (B)Mobilization (C)Execution (D)Strategic
- Q Scientific name of Human beings?
- Q Watch this video (http://openstaxcollege.org/l/l_3-D1) to learn more about how the brain perceives 3-D motion. Similar to how retinal disparity offers 3-D moviegoers a way to extract 3-D information from the two-dimensional visual field projected onto the retina, the brain can extract information about movement in space by comparing what the two eyes see. If movement of a visual stimulus is leftward in one eye and rightward in the opposite eye, the brain interprets this as movement toward (or away) from the face along the midline. If both eyes see an object moving in the same direction, but at different rates, what would that mean for spatial movement?
Question
What are best practices to follow while developing Struts2 application
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
Answers
Some of the best practices while developing Struts2 application are:
• Always try to extend struts-default package while creating your package to avoid code redundancy in configuring interceptors.
• For common tasks across the application, such as logging request params, try to use interceptors.
• Always keep action classes java bean properties in a separate bean for code reuse and implement ModelDriven interface.
• If you have custom interceptor that you will use in multiple actions, create interceptor stack for that and then use it.
• Try to divide your application in different modules with namespace configuration based on functional areas.
• Try to use Struts2 tags in result pages for code clarify, if needed create your own type converters.
• Use development mode for faster development, however make sure production code doesn’t run in dev mode.
• Use Struts2 i18n support for resource bundles and to support localization.
• Struts2 provides a lot of places where you can have resource bundles but try to keep one global resource bundle and one for action class to avoid confusion.
• struts-default package configures all the interceptors and creates different interceptor stacks. Try to use only what is needed, for example if you don’t have localization requirement, you can avoid i18n interceptor. Your Comment
• Always try to extend struts-default package while creating your package to avoid code redundancy in configuring interceptors.
• For common tasks across the application, such as logging request params, try to use interceptors.
• Always keep action classes java bean properties in a separate bean for code reuse and implement ModelDriven interface.
• If you have custom interceptor that you will use in multiple actions, create interceptor stack for that and then use it.
• Try to divide your application in different modules with namespace configuration based on functional areas.
• Try to use Struts2 tags in result pages for code clarify, if needed create your own type converters.
• Use development mode for faster development, however make sure production code doesn’t run in dev mode.
• Use Struts2 i18n support for resource bundles and to support localization.
• Struts2 provides a lot of places where you can have resource bundles but try to keep one global resource bundle and one for action class to avoid confusion.
• struts-default package configures all the interceptors and creates different interceptor stacks. Try to use only what is needed, for example if you don’t have localization requirement, you can avoid i18n interceptor. Your Comment
- 0
- 0
- New Answer
- Contributors: *,
More Software,Java Questions..
What is the inputsplit in map reduce software?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Can variables be used in Java without initialization?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Java,
What is the difference between java bean and enterprise java bean?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Java,
What is software configuration management?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How does the java database connectivity (jdbc) work?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Java,
What are the advantages of threads in java?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 0 )
- Tags: Java,
What Is Java Api For Xml-based Rpc (jax-rpc)?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
How can you implement fine-grained auditing?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is IBM’s simple explanation for Big Data’s four critical features?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is static synchronized method in JDBC API? Give an example?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
What does the NULLIF function do?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What happens if a start method is not invoked and the run method is directly invoked?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Should we override finalize method
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
what is the difference between mysql_fetch_array and mysql_fetch_object?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How will XML affect my document links?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is object cloning in Java?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 0 )
- Tags: Java,
Why to use Style Sheets?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What are Filters in MVC?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Can you explain Application layer in OSI model?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How to define new testplan attributes?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,