Programmatically obtain a request-mapping URL for a module in Spring

Java-Design-and-Development

In this article, we will discuss how to programmatically obtain a request-mapping URL for a module in Spring. Java developers know that all versions of Spring from version 3.0 onward, allow the developer to manage handler mapping by defining it in the controller class using an @RequestMapping annotation as an alternative to the XML configuration file.In addition to this capability, developers can also annotate the controller class for top-level request-mapping URL. In that case, the class level URL will be prefixed to the method-level URL to form a complete URL and send a request to the controller.Normally, developers establish one controller per module. But, sometimes they need to obtain the class-level request-mapping URL programmatically. In this article, we will provide an example of this technique, and show you how it can be achieved in Spring.

For our example, we’ll use a module called ‘Employee’. For this example, we’ll need to display an employee’s personal details, in addition to other information, on the main employeeDetail page. We’ll separate the main page into several small jsp pages. The file that will display the employee’s personal information is empPersonalDetails.jsp and that page must be included in the main page (employeeDetails.jsp), using action.

Let’s assume that you have used apache tiles to provide consistent layout for each such sub-page (due to some requirement or just for decorative purpose) and you want to include that through a controller call. To accomplish that, you will use code similar to what we have detailed below:

###

Want to Succeed in RWD Design? We’ve Got Your Back!

RWD2

Responsive Web Design (RWD) and Adaptive Web Design (AWD) are hot topics in the development and technology community and with good cause. The surge in mobile application development, software product re-engineering and interest in the user experience (Ux) and in user interface redesign is prompted by the demands of sophisticated consumers and business users. Businesses need to satisfy these demands, whether the user is accessing an application on a desktop, laptop, tablet or any one of the numerous mobile devices and screen sizes.
###

SMEs Take Tally ERP to the Next Level with Integrated BI – Part IV Data Mining and Personalization

SMEs Take Tally ERP to the Next Level with Integrated BI - Part IV Data Mining and Personalization

As an SME business grows, it must achieve true business management and take a business intelligence view of the enterprise. This comprehensive view requires more than the Tally ERP solution can offer in the way of data mining or user personalization. Part I of this series of articles focused the issues a small to medium sized (SME) business faces as its reporting requirements become more complex and the need for flexibility increases. In Part II of the series, we discussed the benefits of integrating data from Tally ERP and other enterprise solutions into a single view within a BI system. Part III of the article series focused on the importance of providing this integrated information with mobile access for users on all types of devices. Part IV of this series will focus on the importance of data mining and creating a personalized user environment.

###

Is Your Retail Business Doing a Good Job of Integrating Brick and Mortar and Online Sales?

BI-for-Retail

This report reveals some interesting facts and it is worth noting that the proactive retailer will analyze business intelligence to see what their customers want and how they wish to access, order and receive products and services. If you don’t truly understand your customers, you can’t serve them well, nor can you beat the competition at their game.

Article Source: http://ow.ly/IAt49