CN102254023A - Method and device for editing webpage - Google Patents

Method and device for editing webpage Download PDF

Info

Publication number
CN102254023A
CN102254023A CN2011102122692A CN201110212269A CN102254023A CN 102254023 A CN102254023 A CN 102254023A CN 2011102122692 A CN2011102122692 A CN 2011102122692A CN 201110212269 A CN201110212269 A CN 201110212269A CN 102254023 A CN102254023 A CN 102254023A
Authority
CN
China
Prior art keywords
resource
user
pagefile
module
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011102122692A
Other languages
Chinese (zh)
Inventor
黄海宽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Wuju Technology Co Ltd
Original Assignee
Shenzhen Wuju Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Wuju Technology Co Ltd filed Critical Shenzhen Wuju Technology Co Ltd
Priority to CN2011102122692A priority Critical patent/CN102254023A/en
Publication of CN102254023A publication Critical patent/CN102254023A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention belongs to the technical field of multimedia, and particularly relates to a method for and a device for editing a webpage. The method for editing the webpage comprises the following steps of: a, establishing a blank Java server page (jsp) file according to a file name of a user name; b, reading corresponding source data line by line and row by row from a database according to a resource path selected by a user; and c, generating a page file which can be displayed by a mobile terminal by using the resource data according to the operation of the user. The technical scheme has the advantages that: by the method and device for editing the webpage, the process for editing webpage is simplified; and for the generation of early page files and the repairing of later pages, a large amount of work is saved, and the working efficiency is improved.

Description

A kind of Webpage editor's method and device
Technical field
The invention belongs to multimedia technology field, relate in particular to a kind of Webpage editor's method and device.
Background technology
Web page editing is meant that the web page editing personnel write content and release news, and more new web page is operated dynamically.Existing web page editing mode is to provide the content of pages and the page to set type by the web page editing personnel earlier, write page code by the backstage personnel according to the content and the composing of the page then, compile pagefile by the backstage developer according to browser protocol more at last and be deployed to server for the mobile phone users visit.When content of pages need be revised or the page when set type to need optimizing, the web page editing personnel need rearrange content of pages again and the page is set type, the backstage personnel write page code again according to content of pages that rearranged and composing again, could generate last pagefile.
But, this traditional web page editing mode needs special backstage personnel and comes the processing page editor, and when content of pages or set type when changing to some extent, the backstage personnel also need to update page change code, processing procedure is too loaded down with trivial details, also can influence work efficiency when increasing workload.
Summary of the invention
The invention provides a kind of Webpage editor's method and device, it is too loaded down with trivial details to be intended to solve existing web page editing mode processing procedure, increases workload, influences the problem of work efficiency.
The present invention is achieved in that a kind of Webpage editor's method, comprising:
Step a: name the pagefile of creating blank according to the user;
Step b: the resource path according to the user preserves, read the respective resources data from database;
Step c: according to browser protocol related content is write pagefile, and pagefile is deployed to server.
Technical scheme of the present invention also comprises: described step a also comprises: obtain the file of user's name and the resource distribution that the user is provided with, wherein, resource distribution specifically is meant: resource be set be by literal show or by icon display, resource literal size is set.
Technical scheme of the present invention also comprises: described step a also comprises: the filename of mobile phone users name and the resource distribution of setting are stored in the database, and the resource display position of recording user.
Technical scheme of the present invention also comprises: in described step a, described pagefile is the JSP pagefile.
Technical scheme of the present invention also comprises: described step b also comprises: will show by the pre-configured mode of user from the resource data that database reads, read the respective resources data mode be from database: read the respective resources data line by line.
Technical scheme of the present invention also comprises: described step c also comprises: the related content that writes pagefile comprises: the configuration display mode and the resource type of the resource data that reads from database, resource data.
Another technical scheme of the present invention is: a kind of Webpage editor's device comprises:
Document creation module: be used for naming the blank pagefile of establishment according to the user;
Data read module: be used for resource path, from database, read the respective resources data according to user's selection;
File writing module: be used for related content being write pagefile, and pagefile is deployed to server according to browser protocol.
Technical scheme of the present invention also comprises: Webpage editor's of the present invention device also comprises data acquisition module, database storing module and location records module, described data acquisition module is used to obtain the file of mobile phone users name, the resource path of user's selection and the resource distribution that the user is provided with, described database storing module is used to preserve resource path, the filename of user's name and the resource distribution that the user is provided with that the user selects, and described location records module is used for the resource display position of recording user.
Technical scheme of the present invention also comprises: Webpage editor's of the present invention device also comprises resource display module and type judging module, the resource data that described resource display module is used for reading is presented at pagefile according to the resource distribution of user's setting and user's resource display position composing, and described type judging module is used to judge the type of resource.
Technical scheme of the present invention also comprises: the blank pagefile of described document creation module creation is the JSP pagefile, described data read module reads the respective resources data from database mode is: read resource data from database line by line, the related content that described file writing module writes pagefile comprises: the configuration display mode and the resource type of the resource data that reads from database, resource data.
Technical scheme of the present invention has following advantage or beneficial effect: Webpage editor's provided by the invention method and device can directly allow the own edit selection page of web page editing personnel add the type (as music, picture, e-book, note etc.) of content, position and content display format (the literal size color that content shows, link, list, picture etc.), generating a last portable terminal then can the page displayed file, and the resource content that is provided according to the web page editing personnel by the backstage personnel is not provided again and sets type and write code again; Simplified the page editing process by enforcement of the present invention, no matter for early stage pagefile generation still be the modification of the later stage page, all saved a large amount of workloads, and improved work efficiency.
Description of drawings
Accompanying drawing 1 is the Webpage editor's of first embodiment of the invention the process flow diagram of method;
Accompanying drawing 2 is process flow diagrams of method of the Webpage editor of second embodiment of the invention;
Accompanying drawing 3 is structural representations of device of the Webpage editor of first embodiment of the invention;
Accompanying drawing 4 is structural representations of device of the Webpage editor of second embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Seeing also Fig. 1, is the Webpage editor's of first embodiment of the invention the process flow diagram of method.The Webpage editor's of first embodiment of the invention method may further comprise the steps:
Step 100: name the pagefile of creating blank according to the user;
In step 100, creating blank pagefile is JSP (Java Server Pages) pagefile, JSP is traditional. insert the java applet section in the webpage .HTML file (* .htm, * .html). (Scriptlet) with JSP mark (tag), thereby form jsp file (* .jsp).The file content of pages shows that by ranks the relevant informations such as columns of every capable content displayed and every row can be by User Defined.
Step 110: the resource path according to the user preserves, read the respective resources data, and resource data shown by the pre-configured mode of user from database;
In step 110, resource path is meant that the user obtains resource addresses, reading the respective resources data mode from database is: read the respective resources data line by line, the resource distribution that the resource data that reads is provided with by the user shows and is mainly: resource distribution that is provided with according to the user and resource display position are set type and are presented in the jsp pagefile, wherein, resource distribution is meant that resource is set to be by the literal demonstration or by icon display, resource literal size and resource display formats such as color, link, list and picture are set; The specific implementation of record resource display position is: suppose that the display position that the user adds first resource is LAW=0, and COL=0, this resource display position is LAW=LAW+1 if the user has selected to enter a new line then when adding next resource; If the user do not select when adding next resource line feed then this resource display position be COL=COL+1.This display mode is decided according to the current demand of user, does not need to set in advance to set type.
Step 120: according to browser protocol related content is write pagefile, dispose pagefile and supply mobile terminal accessing to server.
In step 120, the pagefile that related content is write is named the blank pagefile of jsp of establishment for the user, and relevant content comprises: the configuration display mode of the resource data that reads from database, resource data and resource type etc.
Seeing also Fig. 2, is the Webpage editor's of second embodiment of the invention the process flow diagram of method.The Webpage editor's of second embodiment of the invention method may further comprise the steps:
Step 200: the file that obtains user's name;
In step 200, the file of user's name is jsp (Java Server Pages) pagefile, JSP is traditional. insert the java applet section in the webpage .HTML file (* .htm, * .html). (Scriptlet) with JSP mark (tag), thereby form jsp file (* .jsp).The file content of pages shows that by ranks the relevant informations such as columns of every capable content displayed and every row can be by User Defined.
Step 210: obtain the resource path that the user selects, and this resource path is saved in the database;
Wherein, resource path is meant that the user obtains resource addresses.
Step 220: obtain the resource distribution that the user is provided with;
In step 220, resource distribution specifically is meant: resource be set be by literal show or by icon display, resource literal size and resource display formats such as color, link, list and picture are set.
Step 230: the filename of user's name and the resource distribution of setting are stored in the database;
Step 240: the resource display position of recording user;
In step 240, the specific implementation of record resource display position is: suppose that the display position that the user adds first resource is LAW=0, COL=0, if the user selected when adding next resource line feed then this resource display position be LAW=LAW+1; If the user do not select when adding next resource line feed then this resource display position be COL=COL+1; This display mode is decided according to the current demand of user, does not need to set in advance to set type.
Step 250: name the establishment null file according to the user;
In step 250, null file is blank jsp pagefile, and jsp is the dynamic web page technique on the function that provides of a kind of servlet of being based upon standard, can embed java code and jsp mark in web page files.
Step 260: the resource path according to the user selects, read the respective resources data from database;
In step 260, from database, read the respective resources data mode and be: read the respective resources data line by line.
Step 270: the resource data that reads is shown by the resource distribution that the user is provided with;
In step 270, the resource distribution that the resource data that reads is provided with by the user shows and is mainly: resource distribution that is provided with according to the user and resource display position are set type and are presented in the jsp pagefile;
Step 280: judge the type of resource, and generate according to different resource types can the page displayed file with the portable terminal of user's name;
In this step, resource type comprises types such as music, picture, e-book, note.
Step 290: according to browser protocol related content is write pagefile, and the deployment pagefile supplies mobile terminal accessing to server;
In step 290, the pagefile that related content is write is named the blank pagefile of jsp of establishment for the user, and relevant content comprises: the configuration display mode of the resource data that reads from database, resource data and resource type etc.
Step 300: finish this page editing.
Please participate in Fig. 3, be the Webpage editor's of first embodiment of the invention the structural representation of device.The Webpage editor's of first embodiment of the invention device comprises document creation module, data read module, resource display module and file writing module, wherein
The document creation module is used for naming the blank jsp pagefile of establishment according to the user; Wherein, jsp is the dynamic web page technique on the function that provides of a kind of servlet of being based upon standard, can embed java code and jsp mark in web page files.
Data read module is used for the resource path according to user's selection, reads the respective resources data from database line by line; Wherein, resource path is meant that the user obtains resource addresses.
The resource display module is used for according to showing resource data by the pre-configured mode of user; Wherein, the pre-configured mode of user specifically comprises resource distribution and the resource display position that the user is provided with; Resource distribution is meant that resource is set to be by the literal demonstration or by icon display, resource literal size and resource display formats such as color, link, list and picture are set; The specific implementation of record resource display position is: suppose that the display position that the user adds first resource is LAW=0, and COL=0, this resource display position is LAW=LAW+1 if the user has selected to enter a new line then when adding next resource; If the user do not select when adding next resource line feed then this resource display position be COL=COL+1.This display mode is decided according to the current demand of user, does not need to set in advance to set type.
The file writing module is used for according to browser protocol related content being write the jsp pagefile, and the deployment pagefile supplies mobile phone access to server.Wherein, the pagefile that the file writing module writes related content is named the blank pagefile of jsp of establishment for the user, and relevant content comprises: the configuration display mode of the resource data that reads from database, resource data and resource type etc.
Please participate in Fig. 4, be the Webpage editor's of second embodiment of the invention the structural representation of device.The Webpage editor's of second embodiment of the invention device comprises server, server comprises data acquisition module, database storing module, location records module, document creation module, data read module, resource display module, type judging module and file writing module, wherein
Data acquisition module is used to obtain the file of mobile phone users name, the resource path of user's selection and the information such as resource distribution that the user is provided with; Wherein, resource path is meant that the user obtains resource addresses; Resource distribution specifically is meant: resource be set be by literal show or by icon display, resource literal size and resource display formats such as color, link, list and picture are set.
The database storing module is used to preserve resource path, the filename of user's name and the resource distribution that the user is provided with that the user selects;
The location records module is used for the resource display position of recording user; Wherein, the specific implementation of record resource display position is: suppose that the display position that the user adds first resource is LAW=0, and COL=0, this resource display position is LAW=LAW+1 if the user has selected to enter a new line then when adding next resource; If the user do not select when adding next resource line feed then this resource display position be COL=COL+1.This display mode is decided according to the current demand of user, does not need to set in advance to set type.
The document creation module is used for naming the blank jsp pagefile of establishment according to the user; Wherein, jsp is the dynamic web page technique on the function that provides of a kind of servlet of being based upon standard, can embed java code and jsp mark in web page files.
Data read module is used for the resource path according to user's selection, reads resource data from database line by line;
The resource data that the resource display module is used for reading is presented at the jsp pagefile according to the resource distribution of user's setting and user's resource display position composing;
Type judging module is used to judge the type of resource, and generate according to different resource type can the page displayed file with the portable terminal of user's name; Wherein, resource type comprises types such as music, picture, e-book, note.
The file writing module is used for according to browser protocol related content being write the jsp pagefile, and the deployment pagefile supplies mobile phone access to server.Wherein, the pagefile that the file writing module writes related content is named the blank pagefile of jsp of establishment for the user, and relevant content comprises: the configuration display mode of the resource data that reads from database, resource data and resource type etc.
Webpage editor's provided by the invention method and device can directly allow the own edit selection page of web page editing personnel add the type (as music, picture, e-book, note etc.) of content, position and content display format (the literal size color that content shows, link, list, picture etc.), generating a last portable terminal then can the page displayed file, and the resource content that is provided according to the web page editing personnel by the backstage personnel is not provided again and sets type and write code again; Simplified the page editing process by enforcement of the present invention, no matter for early stage pagefile generation still be the modification of the later stage page, all saved a large amount of workloads, and improved work efficiency.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a Webpage editor method comprises:
Step a: name the pagefile of creating blank according to the user;
Step b: the resource path according to the user preserves, read the respective resources data from database;
Step c: according to browser protocol related content is write pagefile, and pagefile is deployed to server.
2. Webpage editor's according to claim 1 method, it is characterized in that, described step a also comprises: obtain the file of user's name and the resource distribution that the user is provided with, wherein, resource distribution specifically is meant: resource be set be by literal show or by icon display, resource literal size is set.
3. Webpage editor's according to claim 2 method is characterized in that, described step a also comprises: the filename of mobile phone users name and the resource distribution of setting are stored in the database, and the resource display position of recording user.
4. according to each described Webpage editor's of claim 1 to 3 method, it is characterized in that in described step a, described pagefile is the JSP pagefile.
5. Webpage editor's according to claim 1 method, it is characterized in that, described step b also comprises: will show by the pre-configured mode of user from the resource data that database reads, read the respective resources data mode be from database: read the respective resources data line by line.
6. Webpage editor's according to claim 1 method is characterized in that, described step c also comprises: the related content that writes pagefile comprises: the configuration display mode and the resource type of the resource data that reads from database, resource data.
7. a Webpage editor device is characterized in that, comprising:
Document creation module: be used for naming the blank pagefile of establishment according to the user;
Data read module: be used for resource path, from database, read the respective resources data according to user's selection;
File writing module: be used for related content being write pagefile, and pagefile is deployed to server according to browser protocol.
8. Webpage editor's according to claim 7 device, it is characterized in that, also comprise data acquisition module, database storing module and location records module, described data acquisition module is used to obtain the file of mobile phone users name, the resource path of user's selection and the resource distribution that the user is provided with, described database storing module is used to preserve resource path, the filename of user's name and the resource distribution that the user is provided with that the user selects, and described location records module is used for the resource display position of recording user.
9. according to claim 7 or 8 described Webpage editors' device, it is characterized in that, also comprise resource display module and type judging module, the resource data that described resource display module is used for reading is presented at pagefile according to the resource distribution of user's setting and user's resource display position composing, and described type judging module is used to judge the type of resource.
10. according to claim 7 or 8 described Webpage editors' device, it is characterized in that, the blank pagefile of described document creation module creation is the JSP pagefile, described data read module reads the respective resources data from database mode is: read resource data from database line by line, the related content that described file writing module writes pagefile comprises: the configuration display mode and the resource type of the resource data that reads from database, resource data.
CN2011102122692A 2011-07-27 2011-07-27 Method and device for editing webpage Pending CN102254023A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102122692A CN102254023A (en) 2011-07-27 2011-07-27 Method and device for editing webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102122692A CN102254023A (en) 2011-07-27 2011-07-27 Method and device for editing webpage

Publications (1)

Publication Number Publication Date
CN102254023A true CN102254023A (en) 2011-11-23

Family

ID=44981287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102122692A Pending CN102254023A (en) 2011-07-27 2011-07-27 Method and device for editing webpage

Country Status (1)

Country Link
CN (1) CN102254023A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521352A (en) * 2011-12-12 2012-06-27 中国建设银行股份有限公司 Method and device for generating page
CN104252444A (en) * 2013-06-27 2014-12-31 腾讯科技(北京)有限公司 Typesetting method, module and system for magazine application
CN105279144A (en) * 2015-10-10 2016-01-27 中国空气动力研究与发展中心高速空气动力研究所 Method and device for typesetting wind tunnel test data text files
CN105938431A (en) * 2016-06-30 2016-09-14 乐视控股(北京)有限公司 Web page developing method and device
CN109358919A (en) * 2018-08-20 2019-02-19 中国平安人寿保险股份有限公司 Dynamic Configuration, device, computer equipment and the storage medium of Universal page
WO2020215692A1 (en) * 2019-04-26 2020-10-29 平安科技(深圳)有限公司 Page generation method, device, terminal and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534508A (en) * 2003-03-31 2004-10-06 联想(北京)有限公司 Method of prereading network resources
US7376660B2 (en) * 2004-09-29 2008-05-20 International Business Machines Corporation System and method for extensible java server page resource management
US7500182B2 (en) * 2004-12-22 2009-03-03 Go Daddy Group, Inc. Host web page displaying target web page image
CN101593207A (en) * 2009-07-06 2009-12-02 孟智平 The method and system of a kind of structure and generation webpage
CN101593186A (en) * 2008-05-29 2009-12-02 阿里巴巴集团控股有限公司 Visual web editor method and visual web editor system
CN101980205A (en) * 2010-11-04 2011-02-23 上海银杏界信息科技有限公司 Universal page generating method
US7941748B1 (en) * 2003-10-21 2011-05-10 Adobe Systems Incorporated Systems and methods for web site editing interfaces

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534508A (en) * 2003-03-31 2004-10-06 联想(北京)有限公司 Method of prereading network resources
US7941748B1 (en) * 2003-10-21 2011-05-10 Adobe Systems Incorporated Systems and methods for web site editing interfaces
US7376660B2 (en) * 2004-09-29 2008-05-20 International Business Machines Corporation System and method for extensible java server page resource management
US7500182B2 (en) * 2004-12-22 2009-03-03 Go Daddy Group, Inc. Host web page displaying target web page image
CN101593186A (en) * 2008-05-29 2009-12-02 阿里巴巴集团控股有限公司 Visual web editor method and visual web editor system
CN101593207A (en) * 2009-07-06 2009-12-02 孟智平 The method and system of a kind of structure and generation webpage
CN101980205A (en) * 2010-11-04 2011-02-23 上海银杏界信息科技有限公司 Universal page generating method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
未知: "《网页的基本编辑技术》", 23 October 2010, HTTP://WENKU.BAIDU.COM/VIEW/8E414B1FB7360B4C2E3F64B0.HTML *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521352A (en) * 2011-12-12 2012-06-27 中国建设银行股份有限公司 Method and device for generating page
CN104252444A (en) * 2013-06-27 2014-12-31 腾讯科技(北京)有限公司 Typesetting method, module and system for magazine application
CN105279144A (en) * 2015-10-10 2016-01-27 中国空气动力研究与发展中心高速空气动力研究所 Method and device for typesetting wind tunnel test data text files
CN105279144B (en) * 2015-10-10 2018-08-28 中国空气动力研究与发展中心高速空气动力研究所 A kind of composition method and device of wind tunnel test data text file
CN105938431A (en) * 2016-06-30 2016-09-14 乐视控股(北京)有限公司 Web page developing method and device
CN109358919A (en) * 2018-08-20 2019-02-19 中国平安人寿保险股份有限公司 Dynamic Configuration, device, computer equipment and the storage medium of Universal page
CN109358919B (en) * 2018-08-20 2024-04-02 中国平安人寿保险股份有限公司 Dynamic configuration method and device for universal page, computer equipment and storage medium
WO2020215692A1 (en) * 2019-04-26 2020-10-29 平安科技(深圳)有限公司 Page generation method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN103955364B (en) A kind of front end assemblies method suitable for mobile phone
CN101122899B (en) Report generation method and device
CN105183475A (en) Method and system for customizing individuality pages of portal website by user himself
JP2019067411A (en) Method and apparatus for providing clipboard function in mobile terminal
CN102567516B (en) Script loading method and device
CN102254023A (en) Method and device for editing webpage
CN101504672B (en) Method and system for dynamically configuring physical data table
CN102637184A (en) Method and system for customizing webpages
CN104484216A (en) Method and device for generating service interface document and on-line test tool
CN104079652B (en) A kind of making of HTML promotional literatures and player method
CN102662928A (en) Rich text editing method for importing documents and device thereof
CN105376502A (en) All media on-line editing tool
CN103310329A (en) Schedule information adding system and method thereof, and mobile phone and schedule information adding method thereof
CN102662921B (en) A kind of document processing method, device and editing machine
CN106681698A (en) Dynamic list generating method and device
CN102169483A (en) Filmstrip automatic generation method based on electronic spreadsheet
CN105447723A (en) Promotion system and promotion method
CN102289426A (en) E-book reading mark positioning method and mobile terminal
CN105787091A (en) Content publishing system and method supporting multiple terminals
CN105278971A (en) Mobile terminal installation package batch generation method and device
CN101976197A (en) Method for automatically installing a plurality of mobile phone software
CN104834715A (en) Website generating method and system based on components and container
KR101709186B1 (en) Interactive multimedia E-book authoring apparatus and method
KR101115302B1 (en) Method for executing rich internet application having availibility of supporing to multi type display and recording medium for the same
CN102054005A (en) Method and device for loading file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111123