摘要 |
Mechanisms are provided for mobile enablement of webpages (e.g., HTML webpages). In one example, mechanisms are provided for refactoring Java Server Pages “JSP” of a web application into an abstraction layer that partitions the visual presentation elements of HTML pages of the web application into a set of views and a Javascript home page. Further, mechanisms are provided for enabling access to the HTML pages over a mobile device by stacking views one atop another (in one specific example, the views may be rendered only one view at a time as needed; in another specific example any number of views (e.g., all of the views) may be rendered at once). Further, mechanisms are provided for enabling navigation between the views for the HTML pages by providing buttons along with each view. |
主权项 |
1. A method for providing information to be displayed in a user interface of a device, wherein the device comprises a processor, the method comprising:
obtaining, by the processor, a first webpage; obtaining, by the processor, a view map corresponding to the first webpage; generating, by the processor, a first view based at least in part upon the first webpage and the view map; generating, by the processor, a second view based at least in part upon the first webpage and the view map; displaying by the processor, in the user interface, the first view; and displaying by the processor, in the user interface, the second view; wherein each of the first view and the second view is displayed in the user interface independently of one another and without the first webpage; and wherein each of the first view and the second view is displayed in the user interface at times that are mutually exclusive. |