JP2004348418A - Webpage update/management device and program - Google Patents

Webpage update/management device and program Download PDF

Info

Publication number
JP2004348418A
JP2004348418A JP2003144558A JP2003144558A JP2004348418A JP 2004348418 A JP2004348418 A JP 2004348418A JP 2003144558 A JP2003144558 A JP 2003144558A JP 2003144558 A JP2003144558 A JP 2003144558A JP 2004348418 A JP2004348418 A JP 2004348418A
Authority
JP
Japan
Prior art keywords
html document
update
web page
html
unit
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
JP2003144558A
Other languages
Japanese (ja)
Inventor
Kunio Takahari
邦夫 高張
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP2003144558A priority Critical patent/JP2004348418A/en
Publication of JP2004348418A publication Critical patent/JP2004348418A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide means for simply updating/managing the content of a webpage via a Web browser irrespective of the structure of an HTML document. <P>SOLUTION: The means comprise an updating HTML document generation part 12 for generating a Web screen for updating the content of a given part in a webpage, a link information insertion part 14 for inserting a hyperlink tag to the Web screen just before an HTML source character string describing the given part, and a transmission part 15 for transmitting the webpage with the hyperlink tag inserted to a Web browser. When an administrator clicks on the given part to update it, the updating Web screen is displayed. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
この発明は、Webページを管理・更新するWebページ更新・管理装置及びそのプログラムに係るものであり、特にWebブラウザを介して簡易にWebページを更新するWebページ管理技術に関する。
【0002】
【従来の技術】
インターネットは情報伝搬力という観点で、印刷物や放送メディアに匹敵するものである。特に、情報発信主がWebページを更新すると、更新された情報が即座に発信されるという特質を有しているので、情報発信主が発信したい情報を迅速に伝えることができる。また頻繁に情報の内容を更新することで、利用者の側にとっても常に鮮度の高い情報が得られるというメリットが生ずる。Webページの情報発信媒体としての価値を計る尺度としてページビュー(一定時間内にそのWebページを参照した回数、以下PVと呼ぶ)が用いられることが多いが、情報の鮮度とWebページのPVとは密接な関係を有していると言われている。
【0003】
ところで、WebページはHTML(HyperText Markup Language)という専用言語によって記述される。したがってWebページを更新するには、HTMLについての知識が必要となる。しかしHTMLはコンピュータ言語であるので、HTMLによる定義のままで内容を更新する作業は専門家であっても厄介であり、間違いを起こし易い。そこで、HTML文法を意識せずに済み、ワープロ文書を編集するようにWebページを作成・変更できるようにした、いわゆるHTMLエディタと呼ばれる製品が出現し、普及してきている。Webページのデザイナーなどの専門家であれば、これらのHTMLエディタによって作業効率が大幅に改善されるので問題はほぼ解決される。
【0004】
しかし、Webページの掲載依頼者、すなわちインターネット接続業者(以下、ISP)やレンタルサーバ業者にWebページの掲載を依頼する者が、常にこのような専門家であるとは限らない。HTMLエディタを以てしても、専門知識のないWebページ掲載依頼者にとっては、Webページの更新を行うことは容易ではない。以下にその理由を述べる。
【0005】
まず、Webページは多くの利用者に閲覧可能とすべく、公開されたWebサーバ上に存在しているが、セキュリティの関係からこのようなWebサーバに直接ログインしてWebページを編集することは通常許されておらず、一旦自身のPCにファイル転送し、その後内容を更新した後に、再度Webサーバにファイル転送しなければならないという煩わしさが最初の理由として挙げられる。
【0006】
HTMLエディタの中には、Webサーバとのファイル転送機能まで備えたものもあり、利用者がファイル転送を意識しないでWebページの修正を行えるようにした製品も存在する。にもかかわらず、このような製品は、専門知識を持たないWebページの掲載依頼者が自らWebページを頻繁に行うための決め手となるには至っていない。HTMLエディタはオペレーティングシステム(OS)とは別の製品であり、新たなソフトウェア製品を購入して自身のPCに導入する作業が煩わしいからである。
【0007】
また、専門知識を持たないWebページ掲載依頼者にとって、HTMLエディタの提供する機能が多すぎることもHTML文書を用いてWebページを頻繁に更新しない理由となっている。HTMLエディタはさまざまなWebページを作成・編集できるようになっているので、WebページのHTML文書をオープンすると、極端な場合には誤操作により文書の内容をすべて消去してしまうこともある。専門知識を持たないWebページ掲載依頼者が、一旦作成したWebページの内容を大幅に変更することはあまりないので、このような人々にとっては、何でも行えるHTMLエディタは却って不便である。
【0008】
このような問題を解決するために、ISP自身が、特定の形式のWebページに限って、簡単にWebページを更新できるような機能を提供するという方法が開示されている(例えば、特許文献1)。
【0009】
さらに、マルチメディアオブジェクトを含むWebページの更新・管理を容易にする方法も開示されている(例えば、特許文献2)。
【0010】
【特許文献1】
特開2002−41406「インターネットホームページ登録、更新システム」 第5図、第3頁−第5頁
【0011】
【特許文献2】
特開2001−243108「インターネットにおいてホームページの内容を迅速に変換して送信する方法」 第2図、第4頁−第5頁
【0012】
【発明が解決しようとする課題】
上記の特許文献1および2を初めとするWebページの更新・管理を容易化する従来の方法は、HTMLエディタのように新たなソフトウェア製品の導入を必要とせず、インターネットへのアクセスに用いるWebブラウザから所定のWebページ更新用HTML文書を読み込むことで、Webページ掲載依頼者がWebページに所望の修正を加えるというものである。
【0013】
ところで、これらの方法は、いずれもWebページの形式に一定の制限を与えるものである。すなわち、Webページの形式に所定の制限を与えることで、HTMLエディタのような自由な変更を制限する一方で、その分作業を簡略化するものである。上述のとおり、HTMLエディタは多機能過ぎるために、かえってWebページの管理が難しくなってしまっている。そうすると、Webページの形式に一定の制限を与える従来の方法は、多機能過ぎて却って管理を難しくしているHTMLエディタの問題を解決するという目的に合致しているようにみえる。
【0014】
しかし現実に使用されているWebページの多くは、初期段階では専門のWebデザイナーによって見栄えよく作成されたものである。このような専門家が作成したWebページは、HTML文書として複雑な構造を有することが多く、上記のような方法の許容するHTML文書の形式に適合しないことが多い。その結果、見栄えのよいWebページを作成しても、頻繁に更新することができない、というジレンマに陥る。
【0015】
この発明は、上記のような問題を解決するためになされたものである。すなわち、HTMLエディタのような特別なソフトウェアの導入を必要とせず、また更新・管理対象となるWebページの形式に特別な制限を加えないで、Webページの更新・管理を簡単にすることを目的とするものである。
【0016】
【課題を解決するための手段】
請求項1に記載された発明に係るWebページ更新・管理装置は、Webページの所定の箇所を更新するWeb画面を構成する更新用HTML文書を生成する更新用HTML文書生成手段と、
前記更新用HTML文書を保持する更新用HTML文書記憶手段と、
前記更新用HTML文書記憶手段が保持している更新用HTML文書のURLを含むハイパーリンクタグを、前記Webページの所定の箇所を記述するHTMLソース文字列の直前に挿入し、そのハイパーリンクタグが挿入されたHTML文書を編集対象選択用HTML文書として出力するリンク情報挿入手段と、
前記編集対象選択用HTML文書を管理者のWebブラウザに送信する送信手段と、を備えたものである。
【0017】
このWebページ更新・管理装置は、HTML文書の所定の箇所にハイパーリンクタグを挿入しておき、管理者がWebブラウザ上でその箇所をクリック(以下「クリック」という語は、リンク情報が定義されている文字列をマウスやスタイラスペンなどのポインティングデバイスで選択する操作を示すこととする。以後、クリックという語に「マウスやスタイラスペンなどのポインティングデバイスで」という修飾節は特に付記しないが、いずれも同様の意味で用いることはいうまでもない)すると、その位置のHTML文書の部位を修正するWebページ(更新用HTML文書)が呼び出されるようにする。それと同時にその箇所を更新するWeb画面を表示する更新用HTML文書も生成しておく。この更新用HTML文書は、Webページ掲載依頼者が更新・管理しようとするWebページの中のHTML文字列のみの修正を行うための専用HTML文書であって、更新用HTML文書生成手段は、このような専用HTML文書をWebページ掲載依頼者のWebページに基づいて動的に生成するのである。
【0018】
したがって、Webページ掲載依頼者は所望の部位のみを修正することができ、Webページ掲載依頼者が望まない部位の修正まで誤って行ってしまうことがないのである。
【0019】
またこのような処理はHTML文書の構造を問わないので、特定の形式を有するHTML文書はもちろん、そうでないHTML文書、例えばWebデザイナーが作成した複雑な構造を有するHTML文書を対象とした場合であっても、この発明が発揮する特徴は失われることがないのである。
【0020】
請求項2に記載された発明に係るWebページ更新・管理装置は、Webページを編集単位に分割するとともに、前記編集単位を一意に識別する識別情報を算出する編集単位分割手段と、
前記識別情報をパラメータとするハイパーリンクタグを、前記編集単位を記述するHTMLソース文字列の直前に挿入し、そのハイパーリンクタグが挿入されたHTML文書を編集対象選択用HTML文書として出力するリンク情報挿入手段と、
前記編集対象選択用HTML文書を管理者のWebブラウザに送信する送信手段と、
前記Webブラウザからのリクエストに基づいて、前記識別情報から一意に特定される前記編集単位を更新する更新用HTML文書を生成する外部Webサーバに前記識別情報を通知する識別情報通知手段と、を備えたものである。
【0021】
このWebページ更新・管理装置も請求項1に記載された発明に係るWebページ更新・管理装置と同様に、HTML文書の所定の箇所にハイパーリンクタグを挿入しておき、管理者がその箇所をクリックすると、その位置のHTML文書の部位を修正するWebページ(更新用HTML文書)が呼び出されるようにするものである。ただし請求項1のWebページ更新・管理装置とは異なり、このWebページ更新・管理装置では、更新用HTML文書を予め準備しておくわけではない。このWebページ更新・管理装置では、管理者が修正しようとするHTML文書の部位を選択してクリックすると、その部分を一意に識別する識別情報がWebブラウザからこのWebページ更新・管理装置に通知され、この時点で更新用HTML文書を生成する。したがって最低限必要となる更新用HTML文書のみを生成するので、ディスクの使用効率がよい。
【0022】
また、このWebページ更新・管理装置は、更新用HTML文書を生成する処理を外部Webサーバに任せるようにしている点で、請求項1によるWebページ更新・管理装置と異なる構成を採る。この場合において、このWebページ更新・管理装置は、外部Webサーバに、管理者が更新しようとしているWebページの部位を一意に特定しうる識別情報を通知するものである。
【0023】
請求項3に記載された発明に係るWebページ更新・管理装置は、Webページを編集単位に分割するとともに、前記編集単位を一意に識別する識別情報を算出する編集単位分割手段と、
前記編集単位をパラメータとするハイパーリンクタグを、前記編集単位を記述するHTMLソース文字列の直前に挿入し、そのハイパーリンクタグが挿入されたHTML文書を編集対象選択用HTML文書として出力するリンク情報挿入手段と、
前記編集対象選択用HTML文書を管理者のWebブラウザに送信する送信手段と、
前記Webブラウザに表示された前記編集対象選択用HTML文書において、前記管理者が前記ハイパーリンクタグをクリックした場合に、前記ハイパーリンクタグの識別情報を取得して、この識別情報から一意に特定される前記編集単位を更新する更新用HTML文書を生成し、その更新用HTML文書を前記Webブラウザに送信する編集単位更新用HTML生成手段と、を備えたものである。
【0024】
このWebページ更新・管理装置は、請求項2のWebページ更新・管理装置と比して、更新用HTML文書を生成する処理と他の処理とを一体として行う点で異なっているが、請求項2のWebページ更新・管理装置と同様の効果を奏するものである。
【0025】
請求項4に記載された発明に係るWebページ更新・管理装置は、前記リンク情報挿入手段が、前記Webページを記述するHTML文書における前記編集単位の位置に基づいて、前記識別情報を決定するものである。
【0026】
その他、編集する部位を一意に特定する識別情報としては、乱数を発生させてその乱数列と編集する部位とを対応付けるなどの方法があるが、HTML文書の中で編集する部位を一意に特定する方法としては、HTML文書内の位置に基づいて識別情報を定義する方法が最も単純である。なお、ここでHTML文書内の位置とは行位置や文頭からの文字数などさまざまなものを用いることができる。
【0027】
請求項5に記載された発明に係るWebページ更新・管理装置は、前記Webブラウザに表示された前記更新用HTML文書を介して、前記管理者が入力した入力値を前記Webブラウザより受信する受信手段と、
前記受信手段が受信した入力値に基づいて前記Webページを変更し、その変更結果を新たなHTMLソースとして出力するHTML更新手段と、
前記HTML更新手段が出力したHTMLソースを前記Webページを記述するHTMLに置換するHTML置換手段をさらに備えるものである。
【0028】
したがって、請求項5に記載された発明に係るWebページ更新・管理装置によれば、Webページ更新画面の表示だけでなく、Webページの更新処理までも一体で行うことができる、という効果を奏するものである。
【0029】
請求項6に記載された発明に係るWebページ更新・管理プログラムは、請求項1に記載された発明に係るWebページ更新・管理装置と同等の機能をコンピュータに実行させるものである。
【0030】
また、請求項7に記載された発明に係るWebページ更新・管理プログラムは、請求項2に記載された発明に係るWebページ更新・管理装置と同等の機能をコンピュータに実行させるものである。
【0031】
さらに、請求項8に記載された発明に係るWebページ更新・管理プログラムは、請求項3に記載された発明に係るWebページ更新・管理装置と同等の機能をコンピュータに実行させるものである。
【0032】
【発明の実施の形態】
次に、この発明の実施の形態について説明する。
実施の形態1.
図1は、この発明の実施の形態1に係るWebページ更新・管理装置と他のWebサーバ、及び利用者と管理者(Webページ掲載依頼者、又はWebページ掲載依頼者が情報発信に用いるWebページの内容を管理するようWebページ掲載依頼者から指示を受けている者をいう)の利用するコンピュータとが接続されたネットワークの構成を示すブロック図である。図において、利用者コンピュータ1及び管理者コンピュータ2は、ネットワーク3を介して、Webサーバ4及びWebページ更新・管理装置5に接続されている。
【0033】
ここで、利用者コンピュータ1は、特別な権限を持たない一般利用者が操作するコンピュータであって、Webサーバ4が記憶するWebページを閲覧すべくWebブラウザ(インターネット閲覧用コンピュータプログラム)がインストールされ、動作するようになっている。管理者コンピュータ2は、Webページ更新・管理装置5にアクセスする権限を有する管理者が操作するコンピュータであり、Webサーバ4が管理するWebページ6に加えて、Webページ更新・管理装置5が管理するWebページ7及びWebページ8をWebブラウザによって閲覧できるようになっている。さらにネットワーク3は、いわゆるインターネットまたはLAN(Local Area Network)などのイントラネットを指す。
【0034】
Webサーバ4およびWebページ更新・管理装置5はWebページを管理するサーバコンピュータである。ここで、Webページを管理する、とは、Webページがこれらのサーバコンピュータ上に導入されたオペレーティングシステムによって管理されるファイルシステムの中のファイルとして記憶されており、さらにこれらのサーバコンピュータ上で動作するhttp(hypertext transfer protocol)サーバプログラムまたはhttpリクエストを処理しうるサーバプログラムがこれらのWebページをhttpに基づいて送信できるようになっていることを意味する。
【0035】
さらにWebページ更新・管理装置5は、アクセスしてくる利用者に対して、パスワード照合などによる認証を行い、Webページ更新・管理装置5の管理する計算機資源(ファイル、CPUなど)を利用する権限を有しているか調べるようになっている。こうすることによって、特定の管理者だけがWebページ更新・管理装置5の管理するWebページ7及びWebページ8を参照することができるのである。なお、Webサーバ4とWebページ更新・管理装置5は、必ずしも別体として構成しなければならないわけではなく、物理的に同一のサーバコンピュータを用いて構成してもよい。
【0036】
次にWebページ6とWebページ7及びWebページ8との関係についても説明する。Webページ6は特別な権限を持たない利用者が閲覧可能なWebページである。例えば、ネットワーク3がインターネットであり、またWebサーバ4がISPの提供するサーバコンピュータである場合には、Webページ掲載依頼者が依頼したWebページがこのWebページ6に該当する。またISPはWebサーバ4のディスクの特定のディレクトリをWebページ6の保存場所として指定するだけであって、Webページ掲載依頼者が自分でftp(FileTransfer Protocol)などを用いてWebページ6を掲載する場合もある。
【0037】
これに対して、Webページ7はWebページ6を管理更新するためのWebページ(更新用HTML文書)である。すなわちWebページ7はWebページ6の一部の内容または表示属性等を変更するための入力フィールドをWebブラウザに表示させるHTML文書である。Webページ7は、Webページ更新・管理装置5がWebサーバ4からWebページ6を取得して、Webページ6の内容に基づいて生成するものである。またWebページ8は、Webページ7をリンクしたWebページ(編集対象選択用HTML文書)である。この結果、WebブラウザにWebページ8が表示され、管理者がWebページ8中のリンクをクリックすることによってWebページ7が管理者のWebブラウザに表示されるようになっている。
【0038】
次に、図2はWebページ更新・管理装置5の詳細な構成を示すブロック図である。図のWebページ更新・管理装置5の内部において、HTML取得部11は、Webサーバ4からWebページ6を取得する部位である。また更新用HTML文書生成部12は、HTML取得部11が取得したWebページ6に基づいてWebページ7のHTMLソースを生成する部位である。なお上述のとおり、Webサーバ4とWebページ更新・管理装置5とを別体で構成する必要はないが、同一のサーバコンピュータを用いてWebサーバ4とWebページ更新・管理装置5に相当する機能を構成する場合には、HTML取得部11はオペレーティングシステムの提供するファイル入出力処理に相当することとなり、改めて独立した部位として構成する必要はない。
【0039】
また更新用HTML文書記憶部13は、更新用HTML文書生成部12が生成したWebページ7のHTML文書を記憶するための部位であって、具体的にはハードディスク装置などの記憶装置によって構成される。リンク情報挿入部14は、Webページ6のHTMLソースにリンク情報を挿入して新たなHTML文書を生成する。ここで、Webページ6のHTMLソースに挿入されるリンク情報とは、更新用HTML文書記憶部13によって記憶されているWebページ7へのリンク情報である。送信部15は、リンク情報挿入部14が生成した新たなHTML文書をWebページ8として管理者のWebブラウザ9に送信するようになっている。
【0040】
また受信部16は、管理者のWebブラウザ9を介して管理者が設定したWebページの修正内容について入力値を受信する部位である。HTML更新部17は、受信部16が取得したWebページの修正内容についての入力値に基づいて、Webページ6のHTMLソースを変更するようになっている。HTML置換部18は、HTML更新部17が生成した新しいWebページ6のHTML文書をWebサーバ4に転送して、もとのWebページ6のHTML文書を置換する部位である。その結果、利用者コンピュータ1のWebブラウザがWebページ6を閲覧した場合に、新しいWebページ6が表示されるようになる。
【0041】
次に、Webページ更新・管理装置5の動作について、図を用いて説明する。Webページ更新・管理装置5の処理は、編集対象選択用HTML文書を生成する編集対象選択用HTML文書生成処理と、管理者が更新しようとしているWebページの内容を更新するWebページ更新処理とに大きく分類される。編集対象選択用HTML文書生成処理とは、編集対象選択用HTML文書を生成する処理である。編集対象選択用HTML文書とは、Webページ6のうち、管理者が修正しようとしている部分を選択させるためのHTML文書である。またWebページ更新処理とは、管理者が設定したパラメータに基づいてWebページ6の内容を書き換える処理である。そこで、まず編集対象選択用HTML文書生成処理から説明する。
【0042】
(編集対象選択用HTML文書生成処理)
図3は、Webページ更新・管理装置5の動作を示したフローチャートである。まず以後の処理に先だって、管理者はWebページ6の更新操作を行うために、管理者コンピュータ2上のWebブラウザ9を介して、Webページ8(編集対象選択用HTML文書)の送信をWebページ更新・管理装置5にリクエストする。この処理を行うには、例えばWebページ8へのハイパーリンクを有するISPの専用ホームページを予め準備しておき、その専用ホームページをクリックすればリクエストが発生されるようにしておけばよい。この場合、このようなリクエストの処理は、通常、Webページ更新・管理装置5上で動作するhttpサーバプログラムによって行われる。すなわち、このリクエストがhttpサーバプログラムに送信されると、httpサーバプログラムはCGI(Common Gateway Interface)プログラムなどを起動する手順で、以下の処理を実行する。
【0043】
HTML取得部11は、Webページ6のHTML文書ファイルをWebサーバ4から取得する(ステップS101)。Webサーバ4ではhttpサーバプログラムが動作しているので、Webブラウザ9と同様にhttpを介してWebページ6のHTML文書ファイルを取得すればよいし、Webページ6のHTML文書ファイルをftpなどによってファイル転送する方法も考えられる。
【0044】
次に、更新用HTML文書生成部12は、Webページ6のHTML文書ファイルを構成する文字列を、編集単位に分割する(ステップS102)。分割された編集単位は、メモリ上に記憶しておく。例えば、編集単位を構成する文字列を所定のメモリ領域に順に格納し、編集単位の先頭アドレスを指し示すポインタを配列変数に格納しておくようにする。
【0045】
ここで、編集単位とは、Webページに表示される情報のうち、更新の対象となる情報と、その情報についてHTMLまたはHTMLの機能を追加・拡張する言語によって定義される属性との組み合わせ、をいうものとする。具体的には、Webページに表示される情報はHTMLによって記述されるが、Webページを構成するHTML文書は、文章など、Webページを閲覧する利用者に対する情報として意味のある部分と、その情報の表示方法(フォントのサイズや表示色、テーブルの構造など)やハイパーリンクなど、情報の書式やWebブラウザの動作を定義する部分などから構成される。
【0046】
そこで、編集単位とは、このようなHTML文書の各部分を、”Webページに表示される情報”と”その情報に対する属性”との組み合わせとして捉えた概念である。編集単位の中心となるのは、Webページに表示される情報である。したがって、例えばHTML文書の中にタグでない文字列がある場合、この文字列はWebブラウザの画面上に表示されることになるので、”Webページに表示される情報”である。そこで、この文字列の前後に、この文字列の表示属性やハイパーリンク属性を定義するタグが存在するならば、そのようなタグをも含めて編集単位とする。
【0047】
例えば、”<TR><TD><A href=”nenmatsu.htm#1”>1.住宅取得等特別控除の概要、主な要件</A></TD></TR><TR><TD><A href=”nenmatsu.htm#2”>2.住宅取得等特別控除額</A></TD></TR>”という文字列がある場合、この文字列の中でタグでない部分の文字列とは、”1.住宅取得等特別控除の概要、主な要件”(文字列1と呼ぶ)と”2.住宅取得等特別控除額”(文字列2)である。そして、文字列1の前後には<TR>〜</TR>、<TD>〜</TD>、<Ahref=”nenmatsu.htm#1”>〜</A>という開始タグと終了タグの対が存在している。そこで、更新用HTML文書生成部12は、この文字列のうち、”<TR><TD><A href=”nenmatsu.htm#1”>1.住宅取得等特別控除の概要、主な要件</A></TD></TR>”という文字列を一つの編集単位として切り出す。同様に、文字列2の前後にも<TR>〜</TR>、<TD>〜</TD>、<A href=”nenmatsu.htm#2”>〜</A>という開始タグと終了タグとの対が存在しているので、”<TR><TD><A href=”nenmatsu.htm#2”>2.住宅取得等特別控除額</A></TD></TR>”という文字列を別の編集単位として切り出す。
【0048】
また編集単位は、”Webページに表示される情報”を中心に構成されるものであるから、タグでない文字列ばかりではなく、タグ文字列からも編集単位が構成される。例えば、<IMG SRC=画像ファイルのURL>というタグが存在する場合、Webブラウザはこのタグを実行解釈することによりWeb画面上に画像を表示する。このような画像もWebページに表示される情報である。
【0049】
そこで、例えばHTML文書の中の部分文字列として<CENTER><IMG alt=インデックス border=0 height=29 src=”menu.files/index00.gif” width=166></CENTER>という文字列が存在する場合、”<IMG alt=インデックスborder=0 height=29 src=”menu.files/index00.gif” width=166>”という文字列の前後に付されている<CENTER>〜</CENTER>というタグは、<IMG>タグについての表示属性を定義するものであるので、<IMG>タグと合わせて同じ編集単位中の文字列として切り出される。
【0050】
なお、編集単位はWeb画面に表示される文字列や画像だけではなく、例えばその他のプログラミング言語によって記述されたアプレッツ(Webブラウザの機能を拡張するプログラム)、MIDIなどのストリームデータにも適用される。その場合においても、例えばアプレッツを中心に、その属性を定義する前後のタグを編集単位とすればよい。
【0051】
次に、更新用HTML文書生成部12は、ステップS102で切り出した編集単位のうち、最初の編集単位のポインタを取得する(ステップS103)。これは、後述するステップS104〜ステップS108までのループ処理の初期値設定に相当する。続いて、すべての編集単位を処理したかどうかを調べる(ステップS104)。具体的には、例えば編集単位のポインタ配列変数のインデックスが配列の要素数を超えたかどうかを調べる。ステップS103で最初の編集単位から処理を開始しているので、当初はステップS104においてすべての編集単位を処理したことにはならず、ステップS105に進む(ステップS104:No)。すべての編集単位を処理した場合については後述する。
【0052】
続いて、更新用HTML文書生成部12は、現在処理中の編集単位について更新用WebページのHTML文書を生成する(ステップS105)。更新用WebページのHTML文書とは、現在処理中の編集単位の文字列と属性値とを修正するための入力ボタンやテキスト入力フィールドを備えた画面を生成するためのHTML文書である。図4は、このようなHTML文書の内容の例を示す図である。また図5は、図4のHTML文書に基づいてWebブラウザ9が表示することになるWebページ7の例を示した図であり、編集単位がWebページ中に表示されるテキストである場合に生成される画面の例である。そこで、次に図5の画面の構成について説明する。
【0053】
図5において、符号50で示した矩形は、文字列の内容を設定するための文字列入力フィールドである。文字列入力フィールド50には、初期値として現在の編集単位の文字列が設定されており、必要に応じて管理者コンピュータ2のキーボードから他の文字列に変更することができるようになっている。また符号51が示す矩形は、入力または設定した値を確定して、画面の操作を終了する場合に押下するボタンである。ボタン51を押下すると、この画面はクローズして、それぞれの入力フィールドの設定値がWebページ更新・管理装置5に送信される。
【0054】
また符号52で示される楕円は、入力フィールド50に設定されている文字列の表示色を選択するための矩形状のボタンを囲むものである。符号53で示される楕円は、文字列サイズを変更するための文字サイズ変更ボタンを囲むものである。この例では予め選択された4通りの文字列サイズのそれぞれに対して、一つずつのボタンが準備されている。符号54で示される楕円は、入力フィールド50に設定されている文字列の表示位置を指定するための文字列位置指定ボタンであり、それぞれのボタンは左詰め、中央揃え、右詰めに対応している。その他、文字の濃さ、斜体字か否か、打ち消し線、下線などを表す文字修飾ボタンを配置するようにしてもよい。
【0055】
また<IMG>タグに対する編集単位に対しては、図6で示すような画面を生成するHTML文書ファイルを生成する。図において、符号60で示される矩形は、編集単位の画像を表示するための画像表示領域である。また、符号61で示される矩形は新しい画像ファイルを指定するための画像ファイルパス指定入力フィールドである。符号62で示される矩形は、画像ファイルのパスをファイルシステム(フォルダやディレクトリ階層)を参照して指定する画面を表示するボタンである。なお、入力フィールド61と、ボタン62は、例えば<INPUT type=”file” name=”nfilepath” size=”68”>というHTMLステートメントを定義することで表示される。符号63で示される矩形は、この画面の入力操作が完了したときに押下するボタンであって、このボタンを押下することで各入力フィールドの設定値がWebページ更新・管理装置5に送信される。さらに符号64で示される楕円は、画像のサイズの大小を指定するための画像サイズ指定ボタンを囲むものである。
【0056】
このようにして生成された更新用WebページのHTML文書は、更新用HTML文書記憶部13に記憶される(ステップS106)。次にリンク情報挿入部14は、Webページ6の現在の編集単位の前にハイパーリンク情報を付加する(ステップS107)。具体的には、ステップS106で更新用HTML文書記憶部13によって記憶された更新用WebページのHTML文書を参照して、<A HREF=”更新用WebページのHTML文書のURL”>というタグを編集単位文字列の直前に挿入し、さらに編集単位文字列の直後に</A>タグを挿入する。次に現在の編集単位についての処理が完了したので、次の編集単位に処理を移行する(ステップS108)。その後ステップS104に戻って、再びすべての編集単位を処理したか否かを検定する。すべての編集単位を処理していない場合は、すでに説明したようにステップS105からステップS108までの処理を繰り返し、すべての編集単位を処理した場合には、ステップS109に進む(ステップS104:Yes)。
【0057】
ステップS109では、送信部15がステップS107において編集単位毎にハイパーリンク情報を付加したHTML文書(編集対象選択用HTML文書)を、管理者コンピュータ2のWebブラウザ9に送信し、Webページ更新・管理装置5は編集対象選択用HTML文書の生成処理を終了する。
【0058】
この段階において、管理者コンピュータ2上のWebブラウザ9には編集対象選択用HTML文書が表示されている。編集対象選択用HTML文書は、Webページ6と表示内容がほとんど同じであるが、Webページ6の表示内容(テキストや画像)にWebページ7(更新用HTML文書)へのハイパーリンクが設定されている点で異なるものである。管理者は、自らが修正を所望するテキストや画像をクリックすると、そのテキストや画像の編集対象のハイパーリンク機能により、図5や図6で示されるような更新用HTML文書が呼び出されることになる。そしてそれぞれの更新用HTML文書により表示されるWebページの入力フィールドやボタンを操作することで、更新作業を行う。そしてボタン51やボタン63を押下することでそれぞれの入力値を確定し、更新作業を終了する。その結果、Webブラウザ9はhttpに基づいて、これらの画面の設定値をWebページ更新・管理装置5に送信する。そこで次に、Webページ更新・管理装置5がこれらの設定値に基づいて、Webページ6を更新する処理について説明する。
【0059】
(Webページ更新処理)
図7は、更新作業によって設定された画面の設定値に基づいて、Webページ6を更新する処理を表すフローチャートである。これらの処理はWebページ更新・管理装置5のサーバコンピュータで動作するhttpサーバプログラムが、管理者コンピュータ2のWebブラウザ9からの送信に応じて、例えばCGIプログラムなどとして実行される。図において、まず受信部16は、httpヘッダを解析して、管理者コンピュータ2のWebブラウザ9が送信してきた各種設定値を取得する(ステップS201)。次に各種設定値に基づいて、Webページ6のHTML文書の更新を行う(ステップS202)。なおWebページ6のHTML文書は、すでに説明した編集対象選択用HTML文書生成処理のステップS101でWebサーバ4から取得したものを用いる。また更新処理はWebページ6のHTML文書の一部を置換するもので、周知の文字列操作により実現する。最後に、更新処理の完了したWebページ6をWebサーバ4に転送して、古いWebページ6と入れ替える(ステップS203)。
【0060】
以上から明らかなように、実施の形態1によるWebページ更新・管理装置5によれば、管理者が更新しようとしているWebぺージのHTML文書に対して、HTML文法に基づいてハイパーリンク情報を付加し、インターネットのハイパーリンク機能を用いて、更新用HTML文書を呼び出すようにしたので、Webページ6として適用するWebページの形式や構造に制限がなく、幅広いWebページの更新に用いることができる、という効果を奏する。
【0061】
また、ハイパーリンク情報を、編集単位に設定するようにしているので、ハイパーリンク情報の挿入前(すなわちオリジナルのWebページ6)とハイパーリンク情報の挿入後(編集対象選択用HTML文書)とではWebページの表示のされ方がほぼ同じである。したがって、管理者にとって、編集対象選択用HTML文書とオリジナルのWebページとの対応付けを行うことが容易で、分かりやすい操作方法を提供することができる、という効果を奏する。
【0062】
なお、上記において、Webページ更新処理についても、Webページ更新・管理装置5で実行する構成としたが、Webページ更新処理については他のWebサーバで実行するようにするようにしてもよい。この場合は、ボタン51やボタン63に設定するハイパーリンク情報において、他のWebサーバのURLを参照するようにしておけばよい。
【0063】
また、上記において、Webページ6のHTML文書を編集単位に分割して、それぞれの編集単位ごとに更新作業ができるようにしたが、HTML文書のうち、特定部分の更新のみを許すように制限してもよい。例えば、画像(<IMG>タグに対応する部分のみ)やテキストのみ、あるいはテーブルや特定のパターンにマッチする文字列のみの更新だけができるように制限する構成を採ってもよい。このようにすることによって、Webページ更新・管理装置5の処理内容をより簡略化することができ、また管理者が行わなければならない更新作業の負荷も軽減できる。
【0064】
さらに、実施の形態1によるWebページ更新・管理装置5と同等の機能をコンピュータに実行させるようなコンピュータプログラムを構成することも当然に可能である。このコンピュータプログラムは、HTML取得部11、更新用HTML文書生成部12、更新用HTML文書記憶部13、リンク情報挿入部14、送信部15、受信部16、HTML更新部17、HTML置換部18に相当する処理を行うコンピュータプログラムを順次コンピュータに実行させるものとして構成する。
【0065】
実施の形態2.
実施の形態1によるWebページ更新・管理装置5は、更新用HTML文書を生成してから、これを更新用HTML文書記憶部13に記憶させておき、この更新用HTML文書によって修正されるWebページ6の編集単位に更新用HTML文書のURLを含むハイパーリンク情報を付加するものであった。しかしこの他に、先に編集単位毎に識別情報を付加し、識別情報を含むハイパーリンク情報を編集単位に挿入しておき、後から識別情報に基づいて更新用HTML文書を生成するという方法も考えられる。実施の形態2によるWebページ更新・管理装置は、このような処理を行うものである。
【0066】
次に、この発明の実施の形態2によるWebページ更新・管理装置5の構成について説明する。まず利用者コンピュータ及び管理者コンピュータ、Webサーバなどとの接続構成については実施の形態1と同様であって、図1によって示されるように実施の形態1と同一の符号を付すこととし、説明を省略する。
【0067】
続いて実施の形態2におけるWebページ更新・管理装置5の詳細な構成について説明する。図8は、実施の形態2によるWebページ更新・管理装置5の詳細な構成を示したブロック図である。図において、編集単位分割部21は、更新・管理の対象となるWebページ6のHTML文書を編集単位に分割し、さらに分割した編集単位を一意に識別する識別情報を算出する部位である。編集単位という語句の意味は実施の形態1と同様である。また編集単位更新用HTML文書生成部22は、編集単位分割部21が算出した編集単位に基づいて、編集単位更新用HTML文書を生成する部位である。その他、実施の形態1と同一の符号を付した構成要素については、実施の形態1と同様であるので、説明を省略する。
【0068】
次に、実施の形態2におけるWebページ更新・管理装置5の動作について説明する。Webページ更新・管理装置5による処理は大きく、編集対象選択用HTML文書生成処理と、編集単位更新用HTML文書生成処理、さらにはWebページ更新処理とに分かれる。このうち、実施の形態1と比して、実施の形態2と特有の処理となるのは、編集単位更新用HTML文書生成処理である。以下にそれぞれの処理について説明する。
【0069】
(編集対象選択用HTML文書生成処理)
図9はWebページ更新・管理装置5の動作を示すフローチャートである。なお、図において、図3のフローチャートと異なる点はステップS105〜S107とステップS301〜S302とが入れ替えられている点である。その他については図3のフローチャートと同一であるので、以降においてはステップS301〜S302の処理を中心に説明することとする。
【0070】
ステップS301に至るまでの処理(ステップS101〜S104)において、Webページ6を取得して、HTML文書を編集単位に分割し、さらに編集単位ごと処理を行う点は実施の形態1と同様である。ただし実施の形態1ではHTML取得部11と更新用HTML文書生成部12がWebページ6を編集単位に分割したが、実施の形態2では編集単位分割部21がこれらの処理を行う。
【0071】
次に編集単位分割部は、分割した編集単位を一意に識別する識別情報を算出する(ステップS301)。識別情報とは、後述する編集単位更新用HTML文書生成処理において必要となる情報である。そこで、ここでは識別情報の構成について説明する。
【0072】
識別情報は上述のとおり、編集単位を一意に識別できる情報であればよい。この「編集単位を一意に識別できる」とは、同一のHTML文書内で識別情報を決定すれば、識別情報に対応する編集単位が一意に定められる状態にあることをいう。このような識別情報としては次のようなものが考えられる。
【0073】
まずWebページ6のHTML文書における、編集単位文字列の開始位置を識別情報としたものである。開始位置とは、文頭から編集単位文字列の先頭文字までの文字数、またはバイト数としてもよい。また、編集単位が存在する行の行位置(その行に至る文頭からの行数)と、その行の行頭からその編集単位に至るまでに出現する編集単位の個数によって表現してもよい。例えば、ある編集単位が3行目に存在しており、3行目の行の内容が”<TR><TD><A href=”nenmatsu.htm#1”>1.住宅取得等特別控除の概要、主な要件</A></TD></TR><TR><TD><A href=”nenmatsu.htm#2”>2.住宅取得等特別控除額</A></TD></TR>”である場合、編集単位”<TR><TD><A href=”nenmatsu.htm#2”>2.住宅取得等特別控除額</A></TD></TR>”(これを目的編集単位という)に至るまでに、1個の編集単位”<TR><TD><A href=”nenmatsu.htm#1”>1.住宅取得等特別控除の概要、主な要件</A></TD></TR>”が出現するから、目的編集単位の識別情報を例えば”3%1”などと表現する。なお%の前の数字は編集単位の存在する行の行番号であって、%の後ろの数字は目的編集単位に至るまでに出現する編集単位の個数である。
【0074】
また、編集情報のHTML文書内における位置に基づく識別情報ではなく、乱数を発生して、乱数列を識別情報として割り当てるようにしてもよい。この場合は、識別情報として割り当てた乱数列を図示せぬ記憶領域(例えばファイル)に記憶させておき、一度使用した乱数列を一定の期間内には識別情報として使用しないようにする。またこのようにして乱数列を記憶させられるファイルなどの記憶領域は、後述する編集単位更新用HTML文書を生成する編集単位更新用HTML文書生成処理で参照される。
【0075】
次に、リンク情報挿入部14は、Webページ6の編集単位の前後にステップS301で算出した識別情報を含むハイパーリンクタグを挿入する。ここで、実施の形態1では、すでに生成してある更新用HTML文書のURLをハイパーリンクタグに含めるようにしたが、実施の形態2では、ハイパーリンクタグ中のURLを常にWebページ更新・管理装置5のURLとし、識別情報を含むパラメータを付加することとする。例えばWebページ更新・管理装置5のURLを”http://www.●●●.com/manage.bin”とし、識別情報を3%1とした場合に、<A HREF=”http://www.●●●.com/manage.bin?p=Webページ6のURL#3%1”>のようなハイパーリンクタグを編集単位に対応する文字列の直前に挿入する。
【0076】
以後、ステップS108〜S109の処理については、実施の形態1と同様であるので、説明を省略する。以上が編集対象選択用HTML文書生成処理の内容である。
【0077】
(編集単位更新用HTML文書生成処理)
次に編集単位更新用HTML文書生成処理について説明する。編集対象選択用HTML文書生成処理におけるステップS109によって、編集対象選択用HTML文書はWebブラウザ9に送信され、管理者は自身が修正しようとしているWebページ6の部位をクリックする。そうすると、Webブラウザ9は、そのWebページ6の部位に設定されているハイパーリンク情報に基づいて、Webページ更新・管理装置5にhttpのSENDリクエストを送信する。
【0078】
ここで、Webブラウザ9が送信するhttpパケットには、ステップS302において設定したハイパーリンクタグのURL(例えば、”http://www.●●●.com/manage.bin?p=Webページ6のURL#3%1”が含まれている。Webページ更新・管理装置5のhttpサーバプログラムは、この文字列を取得して、例えば環境変数query_stringを介して、編集単位更新用HTML文書生成部22に入力する。
【0079】
編集単位更新用HTML文書生成部22は、環境変数などの文字列p=Webページ6のURL#3%1から、Webページ6のURLと識別情報を切り出す。Webページ6のURLを取得するので、httpによってWebページ6をファイル転送することができ、また識別情報3%1によってWebページ6のどの編集単位を管理者が選択したか、についても取得できる。そこで、編集単位更新用HTML文書生成部22は、実施の形態1における更新用HTML文書生成部12がステップS105で行った処理と同じように更新用HTML文書を生成する。以上が編集単位更新用HTML文書生成処理の内容である。
【0080】
(Webページ更新処理)
Webページ更新処理については、実施の形態1と同様であるので、説明を省略する。
【0081】
以上から明らかなように、実施の形態2によるWebページ更新・管理装置5によれば、実施の形態1と同じように管理者が更新しようとしているWebぺージのHTML文書を簡易に更新・管理することができる。また分かりやすい操作方法によってWebページの更新・管理が行える点についても実施の形態1と同様である。
【0082】
さらに、実施の形態2によるWebページ更新・管理装置5によれば、編集単位を更新する上で必要となる更新用HTML文書のみを生成するので、ディスク容量の節約を図ることができ、また更新用HTML文書を生成する処理を行わない分だけ処理を高速に行うことができる、という効果を奏する。
【0083】
なお、実施の形態2において、Webページ更新処理(受信部16、HTML更新部17、HTML置換部18)と、その他の処理とが、一体として構成されたWebページ更新・管理装置5によって実行されるものとして説明した。しかし、編集対象選択用HTML文書生成処理と、編集単位更新用HTML文書生成処理とを実行する構成要素(編集単位分割部21、リンク情報挿入部14、送信部15、編集単位更新用HTML文書生成部22)とWebページ更新処理を実行する構成要素を別体として構成してもよい。つまり、Webページ更新処理を実行する外部Webサーバを準備し、Webページ更新・管理装置5は編集対象選択用HTML文書生成処理と、編集単位更新用HTML文書生成処理のみを実行し、さらにこの外部Webサーバに識別情報だけを通知する構成を採るのである。このようにしても、この発明の特徴が失われることはない。
【0084】
また、実施の形態2によるWebページ更新・管理装置5と同等の機能をコンピュータに実行させるようなコンピュータプログラムを構成することも当然に可能である。このコンピュータプログラムは、リンク情報挿入部14、送信部15、受信部16、HTML更新部17、HTML置換部18、編集単位分割部21、編集単位更新用HTML文書生成部22に相当する処理を行うコンピュータプログラムを順次コンピュータに実行させるものとして構成する。
【図面の簡単な説明】
【図1】この発明の実施の形態1に係るWebページ更新・管理装置が接続されたネットワークの構成を示すブロック図である。
【図2】この発明の実施の形態1に係るWebページ更新・管理装置の構成を示すブロック図である。
【図3】この発明の実施の形態1に係るWebページ更新・管理装置の編集対象選択用HTML文書生成処理を示したフローチャートである。
【図4】この発明の実施の形態1に係るWebページ更新・管理装置が生成する更新用WebページのHTML文書の例を示した図である。
【図5】編集単位がWebページ中に表示されるテキストである場合に生成される画面の例を示した図である。
【図6】編集単位がWebページ中に表示される画像である場合に生成される画面の例を示した図である。
【図7】この発明の実施の形態1に係るWebページ更新・管理装置のWebページ更新処理のフローチャートである。
【図8】この発明の実施の形態2に係るWebページ更新・管理装置の構成を示すブロック図である。
【図9】この発明の実施の形態2に係るWebページ更新・管理装置の編集対象選択用HTML文書生成処理を示したフローチャートである。
【符号の説明】
1 利用者コンピュータ、
2 管理者コンピュータ、
3 ネットワーク、
4 Webサーバ、
5 Web更新・管理装置、
6〜8 Webページ、
9 Webブラウザ、
11 HTML取得部、
12 更新用HTML文書生成部、
13 更新用HTML文書記憶部、
14 リンク情報挿入部、
15 送信部、
16 受信部、
17 HTML更新部、
18 HTML置換部、
21 編集単位分割部、
22 編集単位更新用HTML文書生成部。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a Web page update / management apparatus for managing / updating a Web page and a program therefor, and more particularly to a Web page management technique for easily updating a Web page via a Web browser.
[0002]
[Prior art]
The Internet is comparable to print and broadcast media in terms of information propagation. In particular, when the information sender updates the Web page, the updated information is immediately transmitted, so that the information sender can quickly transmit the information he or she wants to transmit. Frequently updating the content of information has the advantage that the user can always obtain highly fresh information. As a measure for measuring the value of a Web page as an information transmission medium, a page view (the number of times the Web page is referred to within a certain period of time; hereinafter, referred to as PV) is often used. Is said to have a close relationship.
[0003]
By the way, a Web page is described in a special language called HTML (HyperText Markup Language). Therefore, updating a Web page requires knowledge of HTML. However, since HTML is a computer language, the task of updating the contents as defined by HTML is troublesome and error-prone even for an expert. Therefore, products called so-called HTML editors, which do not need to be conscious of the HTML grammar and can create and change Web pages so as to edit word processing documents, have appeared and become popular. For professionals such as Web page designers, these HTML editors substantially improve the work efficiency, and the problem is almost solved.
[0004]
However, a Web page posting requester, that is, a person who requests an Internet connection company (hereinafter referred to as an ISP) or a rental server company to post a Web page is not always such a specialist. Even with an HTML editor, it is not easy for a Web page publication requester who does not have specialized knowledge to update a Web page. The reason is described below.
[0005]
First, a web page exists on a public web server so that many users can view it. However, it is not possible to directly log in to such a web server and edit the web page for security reasons. Usually, it is not permitted, and the first reason is that the file must be transferred to its own PC, the content must be updated, and then the file must be transferred to the Web server again.
[0006]
Some HTML editors have even a file transfer function with a Web server, and there are also products that allow users to modify Web pages without being aware of file transfer. Nevertheless, such a product has not become a decisive factor for a Web page posting requester having no specialized knowledge to frequently execute the Web page by himself. This is because the HTML editor is a product different from the operating system (OS), and it is troublesome to purchase a new software product and introduce it into its own PC.
[0007]
In addition, for a Web page publication requester who does not have specialized knowledge, the HTML editor provides too many functions, which is another reason why the Web page is not frequently updated using an HTML document. Since the HTML editor is capable of creating and editing various Web pages, opening an HTML document of a Web page may erase all contents of the document due to an erroneous operation in an extreme case. An HTML editor that can do anything is rather inconvenient for such people because a Web page publication requester without specialized knowledge rarely changes the contents of a Web page once created.
[0008]
In order to solve such a problem, there has been disclosed a method in which an ISP itself provides a function of easily updating a Web page only in a Web page of a specific format (for example, Patent Document 1). ).
[0009]
Further, a method for easily updating and managing a Web page including a multimedia object has been disclosed (for example, Patent Document 2).
[0010]
[Patent Document 1]
Japanese Patent Application Laid-Open No. 2002-41406, "Internet homepage registration and update system" FIG. 5, page 3-5
[0011]
[Patent Document 2]
Japanese Patent Application Laid-Open No. 2001-243108, "Method of Rapidly Converting and Transmitting Contents of Homepage on the Internet" FIG. 2, page 4-5
[0012]
[Problems to be solved by the invention]
The conventional methods for facilitating the updating and management of Web pages, such as the above-mentioned Patent Documents 1 and 2, do not require the introduction of a new software product like an HTML editor, and use a Web browser for accessing the Internet. By reading a predetermined HTML document for updating a Web page from the Web site, the Web page publication requester makes a desired correction to the Web page.
[0013]
By the way, each of these methods imposes a certain restriction on the format of a Web page. That is, by giving a predetermined restriction to the format of the Web page, it is possible to restrict a free change as in an HTML editor, while simplifying the work accordingly. As described above, the HTML editor has too many functions, which makes it difficult to manage Web pages. Then, the conventional method of restricting the format of the Web page seems to meet the purpose of solving the problem of the HTML editor, which is too versatile and rather difficult to manage.
[0014]
However, many of the Web pages that are actually used are initially created by professional Web designers in good looks. A Web page created by such an expert often has a complicated structure as an HTML document, and often does not conform to the format of the HTML document permitted by the above method. As a result, there is a dilemma that even if a good-looking Web page is created, it cannot be updated frequently.
[0015]
The present invention has been made to solve the above problems. That is, the purpose of the present invention is to simplify the updating and management of Web pages without requiring the introduction of special software such as an HTML editor, and without special restrictions on the format of the Web pages to be updated and managed. It is assumed that.
[0016]
[Means for Solving the Problems]
A web page update / management apparatus according to the first aspect of the present invention includes: an update HTML document generation unit configured to generate an update HTML document configuring a web screen for updating a predetermined portion of a web page;
Update HTML document storage means for holding the update HTML document;
A hyperlink tag including the URL of the update HTML document stored in the update HTML document storage unit is inserted immediately before an HTML source character string describing a predetermined portion of the Web page, and the hyperlink tag is Link information inserting means for outputting the inserted HTML document as an editing target selection HTML document;
Transmitting means for transmitting the editing target selecting HTML document to a Web browser of an administrator.
[0017]
This Web page update / management apparatus inserts a hyperlink tag at a predetermined position in an HTML document, and an administrator clicks the position on a Web browser (hereinafter, the term “click” means that link information is defined. In the following, the word "click" is not modified by the phrase "with a pointing device such as a mouse or stylus pen". It goes without saying that the Web page (update HTML document) for correcting the portion of the HTML document at that position is called. At the same time, an update HTML document for displaying a Web screen for updating the location is also generated. The update HTML document is a dedicated HTML document for correcting only the HTML character string in the Web page to be updated / managed by the Web page posting requester. Such a dedicated HTML document is dynamically generated based on the Web page of the Web page posting requester.
[0018]
Therefore, the Web page publication requester can correct only the desired part, and the Web page publication requester does not erroneously correct the undesired part.
[0019]
Further, since such processing does not depend on the structure of the HTML document, it is applicable not only to an HTML document having a specific format but also to an HTML document which does not have such a format, for example, an HTML document having a complicated structure created by a Web designer. However, the features exhibited by the present invention are not lost.
[0020]
An editing unit dividing unit that divides a Web page into editing units and calculates identification information for uniquely identifying the editing units, the editing unit dividing unit according to the invention described in claim 2,
Link information that inserts a hyperlink tag having the identification information as a parameter immediately before an HTML source character string describing the editing unit, and outputs the HTML document into which the hyperlink tag has been inserted as an HTML document for selecting an edit target. Insertion means;
Transmitting means for transmitting the editing target selecting HTML document to a Web browser of an administrator;
Identification information notifying means for notifying the external Web server that generates an update HTML document that updates the editing unit uniquely specified from the identification information based on a request from the Web browser. It is a thing.
[0021]
This Web page update / management device also inserts a hyperlink tag at a predetermined position in the HTML document, as in the case of the Web page update / management device according to the first aspect of the present invention. When clicked, a Web page (update HTML document) for correcting the portion of the HTML document at that position is called. However, unlike the Web page update / management apparatus of the first aspect, the Web page update / management apparatus does not necessarily prepare an update HTML document in advance. In this Web page updating / managing apparatus, when an administrator selects and clicks a part of an HTML document to be corrected, identification information for uniquely identifying the part is transmitted from the Web browser to the Web page updating / managing apparatus. At this point, an update HTML document is generated. Therefore, since only the minimum required update HTML document is generated, the disk use efficiency is high.
[0022]
This Web page update / management apparatus adopts a configuration different from the Web page update / management apparatus according to claim 1 in that processing for generating an update HTML document is left to an external Web server. In this case, the Web page update / management device notifies the external Web server of identification information that can uniquely specify a part of the Web page that is to be updated by the administrator.
[0023]
An editing unit dividing unit that divides a Web page into editing units and calculates identification information for uniquely identifying the editing units, the editing unit dividing unit according to the invention according to claim 3,
Link information that inserts a hyperlink tag having the edit unit as a parameter immediately before an HTML source character string describing the edit unit, and outputs the HTML document into which the hyperlink tag is inserted as an HTML document for selecting an edit target. Insertion means;
Transmitting means for transmitting the editing target selecting HTML document to a Web browser of an administrator;
When the administrator clicks the hyperlink tag in the editing target selection HTML document displayed on the web browser, the hyperlink tag identification information is acquired and uniquely identified from the identification information. And generating an update HTML document for updating the edit unit, and transmitting the update HTML document to the Web browser.
[0024]
This Web page update / management apparatus is different from the Web page update / management apparatus of the second aspect in that the processing for generating an update HTML document and the other processing are performed integrally. 2 has the same effect as the Web page updating / managing apparatus 2.
[0025]
5. The Web page updating / managing apparatus according to claim 4, wherein the link information inserting unit determines the identification information based on a position of the editing unit in an HTML document describing the Web page. It is.
[0026]
In addition, as identification information for uniquely specifying a part to be edited, there is a method of generating a random number and associating the random number sequence with the part to be edited. However, the part to be edited is uniquely specified in the HTML document. The simplest method is to define the identification information based on the position in the HTML document. Here, the position in the HTML document may be various ones such as a line position or the number of characters from the beginning of a sentence.
[0027]
The web page update / management device according to the invention according to claim 5, wherein the input value input by the administrator is received from the web browser via the update HTML document displayed on the web browser. Means,
HTML updating means for changing the Web page based on the input value received by the receiving means and outputting the changed result as a new HTML source;
The apparatus further includes HTML replacement means for replacing the HTML source output by the HTML update means with HTML describing the Web page.
[0028]
Therefore, according to the Web page update / management apparatus according to the fifth aspect of the invention, not only the display of the Web page update screen but also the Web page update processing can be performed integrally. Things.
[0029]
A Web page update / management program according to a sixth aspect of the present invention causes a computer to execute functions equivalent to those of the Web page update / management apparatus according to the first aspect.
[0030]
A Web page update / management program according to the invention described in claim 7 causes a computer to execute a function equivalent to the Web page update / management apparatus according to the invention described in claim 2.
[0031]
Further, a Web page update / management program according to the invention described in claim 8 causes a computer to execute a function equivalent to the Web page update / management apparatus according to the invention described in claim 3.
[0032]
BEST MODE FOR CARRYING OUT THE INVENTION
Next, an embodiment of the present invention will be described.
Embodiment 1 FIG.
FIG. 1 shows a Web page update / management apparatus and another Web server according to Embodiment 1 of the present invention, and a user and an administrator (a Web page publication requester, or a Web page used by a Web page publication requester for transmitting information). FIG. 2 is a block diagram illustrating a configuration of a network connected to a computer used by a Web page posting requester to manage the contents of a page. In the figure, a user computer 1 and an administrator computer 2 are connected to a Web server 4 and a Web page update / management device 5 via a network 3.
[0033]
Here, the user computer 1 is a computer operated by a general user who does not have special authority, and a Web browser (a computer program for Internet browsing) is installed to browse Web pages stored in the Web server 4. , Is working. The administrator computer 2 is a computer operated by an administrator who has authority to access the Web page update / management device 5, and is managed by the Web page update / management device 5 in addition to the Web page 6 managed by the Web server 4. Web pages 7 and 8 to be viewed can be browsed by a Web browser. Further, the network 3 refers to an intranet such as the so-called Internet or LAN (Local Area Network).
[0034]
The Web server 4 and the Web page update / management device 5 are server computers that manage Web pages. Here, managing a Web page means that the Web page is stored as a file in a file system managed by an operating system installed on these server computers, and further operated on these server computers. This means that an http (hypertext transfer protocol) server program or a server program capable of processing an http request can transmit these Web pages based on http.
[0035]
Further, the Web page update / management device 5 authenticates the accessing user by password matching or the like, and uses the computer resources (file, CPU, etc.) managed by the Web page update / management device 5. To check if you have By doing so, only a specific administrator can refer to the Web pages 7 and 8 managed by the Web page update / management device 5. Note that the Web server 4 and the Web page update / management device 5 do not necessarily have to be configured separately, but may be configured using the same physically same server computer.
[0036]
Next, the relationship between Web page 6, Web page 7, and Web page 8 will be described. The Web page 6 is a Web page that can be browsed by a user without special authority. For example, when the network 3 is the Internet and the Web server 4 is a server computer provided by the ISP, the Web page requested by the Web page posting requester corresponds to the Web page 6. In addition, the ISP merely designates a specific directory on the disk of the Web server 4 as a storage location of the Web page 6, and the Web page posting requester himself posts the Web page 6 using ftp (File Transfer Protocol) or the like. In some cases.
[0037]
On the other hand, the Web page 7 is a Web page (an update HTML document) for managing and updating the Web page 6. That is, the Web page 7 is an HTML document that displays an input field for changing a part of the Web page 6 or a display attribute on the Web browser. The Web page 7 is generated by the Web page update / management device 5 acquiring the Web page 6 from the Web server 4 and based on the contents of the Web page 6. The Web page 8 is a Web page (HTML document for selecting an edit target) that links the Web page 7. As a result, the Web page 8 is displayed on the Web browser, and when the administrator clicks a link in the Web page 8, the Web page 7 is displayed on the Web browser of the administrator.
[0038]
Next, FIG. 2 is a block diagram showing a detailed configuration of the Web page update / management device 5. In the illustrated Web page update / management device 5, the HTML acquisition unit 11 is a part that acquires the Web page 6 from the Web server 4. The update HTML document generation unit 12 is a unit that generates an HTML source of the Web page 7 based on the Web page 6 acquired by the HTML acquisition unit 11. As described above, the Web server 4 and the Web page update / management device 5 do not need to be configured separately, but a function corresponding to the Web server 4 and the Web page update / management device 5 using the same server computer. In this case, the HTML acquisition unit 11 corresponds to the file input / output processing provided by the operating system, and does not need to be configured as an independent part.
[0039]
The update HTML document storage unit 13 is a unit for storing the HTML document of the Web page 7 generated by the update HTML document generation unit 12, and is specifically configured by a storage device such as a hard disk device. . The link information insertion unit 14 inserts link information into the HTML source of the Web page 6 to generate a new HTML document. Here, the link information inserted into the HTML source of the Web page 6 is the link information to the Web page 7 stored in the update HTML document storage unit 13. The transmission unit 15 transmits the new HTML document generated by the link information insertion unit 14 as the Web page 8 to the Web browser 9 of the administrator.
[0040]
Further, the receiving unit 16 is a unit that receives an input value regarding the correction content of the Web page set by the administrator via the Web browser 9 of the administrator. The HTML updating unit 17 changes the HTML source of the Web page 6 based on the input value of the Web page correction content acquired by the receiving unit 16. The HTML replacing unit 18 is a part that transfers the HTML document of the new Web page 6 generated by the HTML updating unit 17 to the Web server 4, and replaces the HTML document of the original Web page 6. As a result, when the Web browser of the user computer 1 browses the Web page 6, a new Web page 6 is displayed.
[0041]
Next, the operation of the Web page update / management device 5 will be described with reference to the drawings. The processing of the Web page update / management device 5 includes an edit target selection HTML document generation process of generating an edit target selection HTML document, and a Web page update process of updating the contents of a Web page that is to be updated by an administrator. Broadly classified. The edit target selection HTML document generation process is a process of generating an edit target selection HTML document. The editing target selection HTML document is an HTML document for allowing the administrator to select a portion of the Web page 6 that is to be modified. The web page update process is a process of rewriting the content of the web page 6 based on the parameters set by the administrator. Therefore, the editing target selection HTML document generation processing will be described first.
[0042]
(HTML document generation processing for editing target selection)
FIG. 3 is a flowchart showing the operation of the Web page update / management device 5. First, prior to the subsequent processing, the administrator transmits the Web page 8 (HTML document for selecting an edit target) via the Web browser 9 on the administrator computer 2 in order to perform an update operation of the Web page 6. Request to the update / management device 5. In order to perform this process, for example, a dedicated homepage of the ISP having a hyperlink to the Web page 8 is prepared in advance, and a request may be generated by clicking the dedicated homepage. In this case, the processing of such a request is usually performed by an http server program running on the Web page update / management device 5. That is, when this request is transmitted to the http server program, the http server program executes the following processing in a procedure for activating a CGI (Common Gateway Interface) program or the like.
[0043]
The HTML acquisition unit 11 acquires an HTML document file of the Web page 6 from the Web server 4 (Step S101). Since the http server program is running on the web server 4, the HTML document file of the web page 6 may be obtained via http as in the case of the web browser 9, or the HTML document file of the web page 6 may be converted to a file by ftp or the like. A transfer method is also conceivable.
[0044]
Next, the update HTML document generation unit 12 divides the character string constituting the HTML document file of the Web page 6 into edit units (step S102). The divided editing units are stored on a memory. For example, a character string constituting an editing unit is sequentially stored in a predetermined memory area, and a pointer indicating the start address of the editing unit is stored in an array variable.
[0045]
Here, the editing unit refers to a combination of information to be updated and attributes defined by HTML or a language that adds or extends HTML functions to the information, among the information displayed on the Web page. Shall be referred to. Specifically, the information displayed on the Web page is described in HTML, but the HTML document constituting the Web page includes a portion, such as a sentence, that is meaningful as information for a user who views the Web page, and the information. And a part that defines the information format and the operation of the Web browser, such as the display method (font size, display color, table structure, etc.) and hyperlink.
[0046]
Therefore, the editing unit is a concept in which each part of the HTML document is regarded as a combination of “information displayed on a Web page” and “attribute to the information”. At the center of the editing unit is information displayed on the Web page. Therefore, for example, if there is a character string that is not a tag in the HTML document, this character string is displayed on the screen of the Web browser, and is “information displayed on the Web page”. Therefore, if there is a tag that defines the display attribute or the hyperlink attribute of this character string before and after this character string, it is set as an editing unit including such a tag.
[0047]
For example, “<TR><TD><A href =” nenmatsu. htm # 1 "> 1. Outline of special deductions such as acquisition of homes, main requirements </A></TD></TR><TR><TD><A href =" nenmatsu. htm # 2 "> 2. If there is a character string of" / A></TD></TR>", such as a house deduction, the character string of the part other than the tag in the character string is" 1 ". The outline and main requirements of special deduction such as home acquisition "(referred to as character string 1) and" 2. Special deduction amount such as home acquisition "(character string 2). Before and after the character string 1, the start tag and the end tag of <TR> to </ TR>, <TD> to </ TD>, <Ahref = "nenanmatsu.htm # 1"> to </A> A pair exists. Therefore, the updating HTML document generation unit 12 outputs “<TR><TD><A href =” nenmatsu. htm # 1 ″> 1. Outline of special deduction such as acquisition of house, and character string of main requirements </A></TD></TR> is cut out as one editing unit. Similarly, before and after the character string 2, start tags <TR> to </ TR>, <TD> to </ TD>, <A href=“nenmatsu.htm#2”> to </A> and an end tag Since there is a pair with a tag, "<TR><TD><A href =" nenmatsu. htm # 2 "> 2. A character string" / A></TD></TR>"is cut out as another editing unit.
[0048]
Further, since the editing unit is mainly composed of "information displayed on the Web page", the editing unit is formed not only of a character string which is not a tag but also of a tag character string. For example, if there is a tag <IMG SRC = URL of image file>, the Web browser displays the image on the Web screen by executing and interpreting this tag. Such an image is also information displayed on a Web page.
[0049]
Therefore, for example, a character string of <CENTER><IMG alt = index border = 0 height = 29 src = “menu.files / index00.gif” width = 166><//CENTER> exists as a partial character string in the HTML document. If “<IMG alt = index border = 0 height = 29 src =” menu. files / index00. The tags <CENTER> to </ CENTER> attached before and after the character string “gif“ width = 166> ”define the display attributes of the <IMG> tag. Together, they are cut out as character strings in the same editing unit.
[0050]
The editing unit is not limited to a character string or an image displayed on a Web screen, but is also applied to stream data such as applets (a program for extending the function of a Web browser) written in another programming language, MIDI, and the like. . Even in such a case, for example, the tag before and after defining the attribute with the applets at the center may be set as the editing unit.
[0051]
Next, the updating HTML document generation unit 12 acquires a pointer of the first editing unit among the editing units cut out in step S102 (step S103). This corresponds to the initial value setting of the loop processing from step S104 to step S108 described later. Subsequently, it is determined whether or not all the editing units have been processed (step S104). Specifically, for example, it is determined whether or not the index of the pointer array variable in the editing unit has exceeded the number of elements of the array. Since the processing is started from the first editing unit in step S103, not all the editing units have been processed in step S104 at first, and the process proceeds to step S105 (step S104: No). The case where all the editing units have been processed will be described later.
[0052]
Subsequently, the update HTML document generation unit 12 generates an HTML document of the update Web page for the editing unit currently being processed (step S105). The HTML document of the update Web page is an HTML document for generating a screen provided with input buttons and a text input field for correcting the character string and the attribute value of the editing unit currently being processed. FIG. 4 is a diagram showing an example of the contents of such an HTML document. FIG. 5 is a diagram showing an example of a Web page 7 to be displayed by the Web browser 9 based on the HTML document of FIG. 4, which is generated when the editing unit is text displayed in the Web page. It is an example of a screen to be displayed. Therefore, the configuration of the screen in FIG. 5 will be described next.
[0053]
In FIG. 5, a rectangle indicated by reference numeral 50 is a character string input field for setting the contents of the character string. In the character string input field 50, a character string in the current editing unit is set as an initial value, and the character string can be changed from the keyboard of the administrator computer 2 to another character string as needed. . The rectangle indicated by reference numeral 51 is a button to be pressed when the input or set value is determined and the operation on the screen ends. When the button 51 is pressed, this screen is closed, and the set values of the respective input fields are transmitted to the Web page update / management device 5.
[0054]
An ellipse indicated by reference numeral 52 surrounds a rectangular button for selecting a display color of a character string set in the input field 50. An ellipse indicated by reference numeral 53 surrounds a character size change button for changing a character string size. In this example, one button is prepared for each of the four character string sizes selected in advance. The ellipse indicated by reference numeral 54 is a character string position designation button for designating the display position of the character string set in the input field 50. I have. In addition, a character modification button indicating the density of a character, whether or not it is an italic character, a strike-through line, an underline, or the like may be arranged.
[0055]
In addition, an HTML document file for generating a screen as shown in FIG. 6 is generated for the editing unit for the <IMG> tag. In the figure, a rectangle indicated by reference numeral 60 is an image display area for displaying an image in edit units. A rectangle indicated by reference numeral 61 is an image file path designation input field for designating a new image file. The rectangle indicated by reference numeral 62 is a button for displaying a screen for designating the path of the image file by referring to the file system (folder or directory hierarchy). The input field 61 and the button 62 are displayed by defining an HTML statement, for example, <INPUT type = “file” name = “nfilepath” size = “68”>. The rectangle indicated by reference numeral 63 is a button to be pressed when the input operation on this screen is completed, and the setting value of each input field is transmitted to the Web page update / management device 5 by pressing this button. . Further, an ellipse denoted by reference numeral 64 surrounds an image size designation button for designating the size of the image.
[0056]
The HTML document of the update Web page generated in this manner is stored in the update HTML document storage unit 13 (step S106). Next, the link information insertion unit 14 adds hyperlink information before the current editing unit of the Web page 6 (step S107). Specifically, the tag <A HREF=“URL of HTML document of update Web page”> is referenced with reference to the HTML document of the update Web page stored in update HTML document storage unit 13 in step S106. It is inserted immediately before the edit unit character string, and a </A> tag is inserted immediately after the edit unit character string. Next, since the processing for the current editing unit has been completed, the processing shifts to the next editing unit (step S108). Thereafter, the process returns to step S104, and it is determined whether or not all the editing units have been processed. If all the editing units have not been processed, the processing from step S105 to step S108 is repeated as described above, and if all the editing units have been processed, the process proceeds to step S109 (step S104: Yes).
[0057]
In step S109, the transmission unit 15 transmits the HTML document to which the hyperlink information has been added for each editing unit in step S107 (HTML document for editing target selection) to the Web browser 9 of the administrator computer 2, and updates / manages the Web page. The device 5 terminates the generation processing of the editing target selection HTML document.
[0058]
At this stage, an HTML document for selecting an object to be edited is displayed on the Web browser 9 on the administrator computer 2. The display content of the edit target selection HTML document is almost the same as that of the Web page 6, but the display content (text or image) of the Web page 6 is set with a hyperlink to the Web page 7 (the update HTML document). Are different. When the administrator himself / herself clicks on the text or image that he / she wants to modify, the update HTML document as shown in FIG. 5 or FIG. 6 is called by the hyperlink function for editing the text or image. . Then, an update operation is performed by operating input fields and buttons on a Web page displayed by each update HTML document. Then, by depressing the button 51 or the button 63, each input value is determined, and the updating operation is completed. As a result, the Web browser 9 transmits the setting values of these screens to the Web page update / management device 5 based on http. Therefore, next, a process in which the Web page update / management device 5 updates the Web page 6 based on these set values will be described.
[0059]
(Web page update processing)
FIG. 7 is a flowchart illustrating a process of updating the Web page 6 based on the setting values of the screen set by the updating operation. These processes are executed, for example, as a CGI program or the like by an http server program running on the server computer of the web page update / management device 5 in response to transmission from the web browser 9 of the administrator computer 2. In the figure, first, the receiving unit 16 analyzes the http header and acquires various setting values transmitted by the web browser 9 of the administrator computer 2 (step S201). Next, based on the various setting values, the HTML document of the Web page 6 is updated (step S202). As the HTML document of the Web page 6, the HTML document acquired from the Web server 4 in step S101 of the editing target selection HTML document generation process described above is used. The update process replaces a part of the HTML document of the Web page 6, and is realized by a well-known character string operation. Finally, the Web page 6 on which the update process has been completed is transferred to the Web server 4 and replaced with the old Web page 6 (step S203).
[0060]
As is clear from the above, according to the Web page update / management device 5 according to the first embodiment, the hyperlink information is added to the HTML document of the Web page that the administrator intends to update based on the HTML grammar. Since the updating HTML document is called using the hyperlink function of the Internet, there is no limitation on the format and structure of the Web page applied as the Web page 6, and the Web document can be used for updating a wide range of Web pages. This has the effect.
[0061]
In addition, since the hyperlink information is set in units of editing, the Web page is not inserted before the insertion of the hyperlink information (that is, the original Web page 6) and after the insertion of the hyperlink information (the HTML document for selecting the object to be edited). The way the pages are displayed is almost the same. Therefore, it is possible for the administrator to easily associate the editing target selection HTML document with the original Web page, thereby providing an easy-to-understand operation method.
[0062]
In the above description, the Web page update processing is also executed by the Web page update / management device 5, but the Web page update processing may be executed by another Web server. In this case, the URL of another Web server may be referred to in the hyperlink information set for the button 51 or the button 63.
[0063]
Further, in the above description, the HTML document of the Web page 6 is divided into edit units so that the update work can be performed for each edit unit. However, the HTML document is restricted so that only a specific part of the HTML document can be updated. You may. For example, a configuration may be adopted in which only an image (only a portion corresponding to the <IMG> tag) or text, or a table or a character string matching a specific pattern can be updated only. By doing so, the processing content of the Web page update / management device 5 can be further simplified, and the load of the update work that must be performed by the administrator can be reduced.
[0064]
Further, it is naturally possible to configure a computer program that causes a computer to execute the same function as the Web page update / management device 5 according to the first embodiment. This computer program is sent to an HTML acquisition unit 11, an update HTML document generation unit 12, an update HTML document storage unit 13, a link information insertion unit 14, a transmission unit 15, a reception unit 16, an HTML update unit 17, and an HTML replacement unit 18. A computer program for performing the corresponding processing is configured to be sequentially executed by a computer.
[0065]
Embodiment 2 FIG.
The Web page update / management device 5 according to the first embodiment generates an update HTML document, stores the generated update HTML document in the update HTML document storage unit 13, and corrects the Web page corrected by the update HTML document. In this case, the hyperlink information including the URL of the update HTML document is added to the editing unit No. 6. However, in addition to this, there is also a method of first adding identification information for each editing unit, inserting hyperlink information including the identification information into the editing unit, and subsequently generating an update HTML document based on the identification information. Conceivable. The Web page update / management device according to the second embodiment performs such processing.
[0066]
Next, the configuration of the Web page update / management device 5 according to the second embodiment of the present invention will be described. First, the connection configuration between a user computer, an administrator computer, a Web server, and the like is the same as in the first embodiment, and the same reference numerals as in the first embodiment are used as shown in FIG. Omitted.
[0067]
Next, a detailed configuration of the Web page update / management device 5 according to the second embodiment will be described. FIG. 8 is a block diagram showing a detailed configuration of the Web page update / management device 5 according to the second embodiment. In the figure, an editing unit dividing unit 21 is a unit that divides an HTML document of a Web page 6 to be updated / managed into editing units, and calculates identification information for uniquely identifying the divided editing units. The meaning of the word “editing unit” is the same as in the first embodiment. The editing unit updating HTML document generating unit 22 is a unit that generates an editing unit updating HTML document based on the editing unit calculated by the editing unit dividing unit 21. The other components denoted by the same reference numerals as those in the first embodiment are the same as those in the first embodiment, and thus the description thereof will be omitted.
[0068]
Next, the operation of the Web page update / management device 5 according to the second embodiment will be described. The processing by the Web page update / management device 5 is broadly divided into an edit target selection HTML document generation processing, an edit unit update HTML document generation processing, and a Web page update processing. Among them, the processing unique to the second embodiment as compared with the first embodiment is the editing unit updating HTML document generation processing. The respective processes will be described below.
[0069]
(HTML document generation processing for editing target selection)
FIG. 9 is a flowchart showing the operation of the Web page update / management device 5. In the drawing, the difference from the flowchart of FIG. 3 is that steps S105 to S107 and steps S301 to S302 are interchanged. Other steps are the same as those in the flowchart of FIG. 3, and hence the following description will focus on the processing of steps S301 to S302.
[0070]
In the processing up to step S301 (steps S101 to S104), the Web page 6 is obtained, the HTML document is divided into edit units, and processing is performed for each edit unit, as in the first embodiment. However, in the first embodiment, the HTML acquisition unit 11 and the update HTML document generation unit 12 divide the Web page 6 into edit units. In the second embodiment, the edit unit division unit 21 performs these processes.
[0071]
Next, the editing unit dividing unit calculates identification information for uniquely identifying the divided editing unit (step S301). The identification information is information that is required in an editing unit update HTML document generation process described later. Therefore, the configuration of the identification information will be described here.
[0072]
As described above, the identification information may be any information that can uniquely identify the editing unit. This “can uniquely identify the editing unit” means that if the identification information is determined in the same HTML document, the editing unit corresponding to the identification information is uniquely determined. The following can be considered as such identification information.
[0073]
First, the start position of the edit unit character string in the HTML document of the Web page 6 is used as identification information. The start position may be the number of characters or the number of bytes from the beginning of the sentence to the first character of the edit unit character string. Alternatively, it may be expressed by the line position of the line where the editing unit exists (the number of lines from the beginning of the sentence to the line) and the number of editing units appearing from the beginning of the line to the editing unit. For example, a certain editing unit exists on the third line, and the content of the third line is “<TR><TD><A href =” nenmatsu. htm # 1 "> 1. Outline of special deductions such as acquisition of homes, main requirements </A></TD></TR><TR><TD><A href =" nenmatsu. htm # 2 "> 2. Special deduction such as house acquisition </A></TD></TR>", edit unit "<TR><TD><A href =" nenmatsu. htm # 2 "> 2. One deduction unit"<TR><TD"up to the special deduction amount </ A></TD></TR> (such as home acquisition) ><A href = “nenmatsu. htm # 1 "> 1. Outline of special deduction such as acquisition of house, and main requirements </A></TD></TR>" appear, so the identification information of the target editing unit is, for example, "3% 1". Is expressed as The number before the% is the line number of the line where the editing unit exists, and the number after the% is the number of editing units appearing up to the target editing unit.
[0074]
Instead of identification information based on the position of the editing information in the HTML document, a random number may be generated and a random number sequence may be assigned as the identification information. In this case, the random number sequence assigned as the identification information is stored in a storage area (for example, a file) not shown, and the once used random number sequence is not used as the identification information within a certain period. A storage area such as a file in which a random number sequence is stored in this manner is referred to in an edit unit update HTML document generation process for generating an edit unit update HTML document to be described later.
[0075]
Next, the link information insertion unit 14 inserts a hyperlink tag including the identification information calculated in step S301 before and after the editing unit of the Web page 6. Here, in the first embodiment, the URL of the already generated HTML document for update is included in the hyperlink tag. However, in the second embodiment, the URL in the hyperlink tag is always updated and managed on the Web page. A URL including the identification information is added to the URL of the device 5. For example, if the URL of the Web page update / management device 5 is “http: //www.●●●.com/manage.bin” and the identification information is 3% 1, <A HREF = “http: // // A hyperlink tag such as www. ●●● .com / manage.bin? p = URL # 3% 1 ″ of Web page 6 is inserted immediately before the character string corresponding to the editing unit.
[0076]
The subsequent steps S108 to S109 are the same as in the first embodiment, and a description thereof will not be repeated. The above is the contents of the editing target selection HTML document generation processing.
[0077]
(HTML document generation processing for editing unit update)
Next, the editing unit updating HTML document generation processing will be described. In step S109 in the edit target selection HTML document generation process, the edit target selection HTML document is transmitted to the Web browser 9, and the administrator clicks on a part of the Web page 6 that the administrator intends to modify. Then, the Web browser 9 transmits an http SEND request to the Web page update / management device 5 based on the hyperlink information set in the portion of the Web page 6.
[0078]
Here, the http packet transmitted by the web browser 9 includes the URL of the hyperlink tag set in step S302 (for example, “http: //www.●●●.com/manage.bin? P = Web page 6”). URL # 3% 1 "is included. The http server program of the Web page update / management device 5 acquires this character string and, for example, via an environment variable query_string, generates an HTML document generation unit 22 for editing unit update. To enter.
[0079]
The editing unit updating HTML document generation unit 22 cuts out the URL and identification information of the Web page 6 from the character string p = URL # 3% 1 of the Web page 6 such as an environment variable. Since the URL of the Web page 6 is obtained, the file of the Web page 6 can be transferred by using http, and which editing unit of the Web page 6 has been selected by the administrator can be obtained by using the identification information 3% 1. Therefore, the editing unit updating HTML document generating unit 22 generates an updating HTML document in the same manner as the process performed by the updating HTML document generating unit 12 in the first embodiment in step S105. The above is the contents of the editing unit updating HTML document generation processing.
[0080]
(Web page update processing)
Web page update processing is the same as in the first embodiment, and a description thereof will not be repeated.
[0081]
As is clear from the above, according to the Web page updating / managing apparatus 5 according to the second embodiment, similarly to the first embodiment, the administrator easily updates / manages the HTML document of the Web page which the administrator intends to update. can do. Also, the point that the Web page can be updated and managed by an easy-to-understand operation method is the same as in the first embodiment.
[0082]
Furthermore, according to the Web page update / management device 5 according to the second embodiment, since only the update HTML document necessary for updating the editing unit is generated, it is possible to save the disk capacity and to update the disk. This is advantageous in that the processing can be performed at a high speed as much as the processing for generating the HTML document is not performed.
[0083]
In the second embodiment, the Web page updating process (the receiving unit 16, the HTML updating unit 17, the HTML replacing unit 18) and other processes are executed by the Web page updating / managing apparatus 5 which is integrally configured. Described as However, the components that execute the edit target selection HTML document generation processing and the edit unit update HTML document generation processing (edit unit division unit 21, link information insertion unit 14, transmission unit 15, edit unit update HTML document generation) The component for executing the web page update process may be configured separately from the component that executes the web page update process. That is, an external Web server for executing the Web page update processing is prepared, and the Web page update / management device 5 executes only the edit target selection HTML document generation processing and the edit unit update HTML document generation processing. This is a configuration in which only the identification information is notified to the Web server. Even if it does in this way, the characteristic of this invention is not lost.
[0084]
In addition, it is of course possible to configure a computer program that causes a computer to execute functions equivalent to those of the Web page update / management device 5 according to the second embodiment. This computer program performs processing corresponding to the link information inserting unit 14, the transmitting unit 15, the receiving unit 16, the HTML updating unit 17, the HTML replacing unit 18, the editing unit dividing unit 21, and the editing unit updating HTML document generating unit 22. The computer program is configured to be sequentially executed by a computer.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a network to which a Web page update / management device according to Embodiment 1 of the present invention is connected.
FIG. 2 is a block diagram showing a configuration of a Web page update / management device according to Embodiment 1 of the present invention.
FIG. 3 is a flowchart showing an HTML document generation process for selecting an edit target of the Web page updating / managing apparatus according to the first embodiment of the present invention.
FIG. 4 is a diagram showing an example of an HTML document of an update Web page generated by the Web page update / management device according to the first embodiment of the present invention.
FIG. 5 is a diagram showing an example of a screen generated when an editing unit is text displayed in a Web page.
FIG. 6 is a diagram illustrating an example of a screen generated when an editing unit is an image displayed in a Web page.
FIG. 7 is a flowchart of a Web page update process of the Web page update / management device according to the first embodiment of the present invention.
FIG. 8 is a block diagram showing a configuration of a Web page update / management device according to Embodiment 2 of the present invention.
FIG. 9 is a flowchart showing an editing target selection HTML document generation process of the Web page updating / managing apparatus according to the second embodiment of the present invention.
[Explanation of symbols]
1 user computer,
2 administrator computer,
3 network,
4 Web server,
5 Web update / management device,
6-8 web pages,
9 Web browser,
11 HTML acquisition unit,
12. Update HTML document generation unit,
13 HTML document storage for update,
14 link information insertion unit,
15 transmitting section,
16 receiver,
17 HTML update unit,
18 HTML replacement part,
21 edit unit division part,
22 HTML document generation unit for editing unit update.

Claims (8)

Webページの所定の箇所を更新するWeb画面を構成する更新用HTML文書を生成する更新用HTML文書生成手段と、
前記更新用HTML文書を保持する更新用HTML文書記憶手段と、
前記更新用HTML文書記憶手段が保持している更新用HTML文書のURLを含むハイパーリンクタグを、前記Webページの所定の箇所を記述するHTMLソース文字列の直前に挿入し、そのハイパーリンクタグが挿入されたHTML文書を編集対象選択用HTML文書として出力するリンク情報挿入手段と、
前記編集対象選択用HTML文書を管理者のWebブラウザに送信する送信手段と、を備えたことを特徴とするWebページ更新・管理装置。
An update HTML document generating means for generating an update HTML document constituting a Web screen for updating a predetermined portion of a Web page;
Update HTML document storage means for holding the update HTML document;
A hyperlink tag including the URL of the update HTML document stored in the update HTML document storage unit is inserted immediately before an HTML source character string describing a predetermined portion of the Web page, and the hyperlink tag is Link information inserting means for outputting the inserted HTML document as an editing target selection HTML document;
A transmission unit for transmitting the editing target selection HTML document to a Web browser of an administrator.
Webページを編集単位に分割するとともに、前記編集単位を一意に識別する識別情報を算出する編集単位分割手段と、
前記識別情報をパラメータとするハイパーリンクタグを、前記編集単位を記述するHTMLソース文字列の直前に挿入し、そのハイパーリンクタグが挿入されたHTML文書を編集対象選択用HTML文書として出力するリンク情報挿入手段と、
前記編集対象選択用HTML文書を管理者のWebブラウザに送信する送信手段と、
前記Webブラウザからのリクエストに基づいて、前記識別情報から一意に特定される前記編集単位を更新する更新用HTML文書を生成する外部Webサーバに前記識別情報を通知する識別情報通知手段と、を備えたことを特徴とするWebページ更新・管理装置。
Editing unit dividing means for dividing a Web page into editing units and calculating identification information for uniquely identifying the editing units;
Link information that inserts a hyperlink tag having the identification information as a parameter immediately before an HTML source character string describing the editing unit, and outputs the HTML document into which the hyperlink tag has been inserted as an HTML document for selecting an edit target. Insertion means;
Transmitting means for transmitting the editing target selecting HTML document to a Web browser of an administrator;
Identification information notifying means for notifying the external Web server that generates an update HTML document that updates the editing unit uniquely specified from the identification information based on a request from the Web browser. A Web page update / management device characterized by the following.
Webページを編集単位に分割するとともに、前記編集単位を一意に識別する識別情報を算出する編集単位分割手段と、
前記編集単位をパラメータとするハイパーリンクタグを、前記編集単位を記述するHTMLソース文字列の直前に挿入し、そのハイパーリンクタグが挿入されたHTML文書を編集対象選択用HTML文書として出力するリンク情報挿入手段と、
前記編集対象選択用HTML文書を管理者のWebブラウザに送信する送信手段と、
前記Webブラウザに表示された前記編集対象選択用HTML文書において、前記管理者が前記ハイパーリンクタグをクリックした場合に、前記ハイパーリンクタグの識別情報を取得して、この識別情報から一意に特定される前記編集単位を更新する更新用HTML文書を生成し、その更新用HTML文書を前記Webブラウザに送信する編集単位更新用HTML生成手段と、を備えたことを特徴とするWebページ更新・管理装置。
Editing unit dividing means for dividing a Web page into editing units and calculating identification information for uniquely identifying the editing units;
Link information that inserts a hyperlink tag having the edit unit as a parameter immediately before an HTML source character string describing the edit unit, and outputs the HTML document into which the hyperlink tag is inserted as an HTML document for selecting an edit target. Insertion means;
Transmitting means for transmitting the editing target selecting HTML document to a Web browser of an administrator;
When the administrator clicks the hyperlink tag in the editing target selection HTML document displayed on the web browser, the hyperlink tag identification information is acquired and uniquely identified from the identification information. A Web page update / management apparatus, comprising: an update unit generating an update HTML document for updating the edit unit; and transmitting the update HTML document to the Web browser. .
前記リンク情報挿入手段は、前記Webページを記述するHTML文書における前記編集単位の位置に基づいて、前記識別情報を決定することを特徴とする請求項2又は請求項3のいずれかに記載したWebページ更新・管理装置。4. The Web according to claim 2, wherein the link information insertion unit determines the identification information based on a position of the editing unit in an HTML document describing the Web page. Page update and management device. 前記Webブラウザに表示された前記更新用HTML文書を介して、前記管理者が入力した入力値を前記Webブラウザより受信する受信手段と、
前記受信手段が受信した入力値に基づいて前記Webページを変更し、その変更結果を新たなHTMLソースとして出力するHTML更新手段と、
前記HTML更新手段が出力したHTMLソースを前記Webページを記述するHTMLに置換するHTML置換手段をさらに備えることを特徴とする請求項1乃至請求項4のいずれか一に記載のWebページ更新・管理装置。
Receiving means for receiving, from the web browser, an input value input by the administrator via the update HTML document displayed on the web browser;
HTML updating means for changing the Web page based on the input value received by the receiving means and outputting the changed result as a new HTML source;
The Web page update / management according to any one of claims 1 to 4, further comprising HTML replacement means for replacing the HTML source output by the HTML update means with HTML describing the Web page. apparatus.
Webページの所定の箇所を更新するWeb画面を構成する更新用HTML文書を生成する更新用HTML文書生成手順と、
前記更新用HTML文書を保持する更新用HTML文書記憶手順と、
前記更新用HTML文書記憶手段が保持している更新用HTML文書のURLを含むハイパーリンクタグを、前記Webページの所定の箇所を記述するHTMLソース文字列の直前に挿入し、そのハイパーリンクタグが挿入されたHTML文書を編集対象選択用HTML文書として出力するリンク情報挿入手順と、
前記編集対象選択用HTML文書を管理者のWebブラウザに送信する送信手順と、をコンピュータに逐次実行させることを特徴とするWebページ更新・管理プログラム。
An update HTML document generation procedure for generating an update HTML document that constitutes a web screen for updating a predetermined portion of a web page;
An update HTML document storing procedure for holding the update HTML document,
A hyperlink tag including the URL of the update HTML document stored in the update HTML document storage unit is inserted immediately before an HTML source character string describing a predetermined portion of the Web page, and the hyperlink tag is A link information insertion procedure for outputting the inserted HTML document as an HTML document for selecting an edit target;
A transmission procedure for transmitting the editing target selection HTML document to a Web browser of an administrator; and a computer sequentially executing the transmission procedure.
Webページを編集単位に分割するとともに、前記編集単位を一意に識別する識別情報を算出する編集単位分割手順と、
前記識別情報をパラメータとするハイパーリンクタグを、前記編集単位を記述するHTMLソース文字列の直前に挿入し、そのハイパーリンクタグが挿入されたHTML文書を編集対象選択用HTML文書として出力するリンク情報挿入手順と、
前記編集対象選択用HTML文書を管理者のWebブラウザに送信する送信手順と、
前記Webブラウザからのリクエストに基づいて、前記識別情報から一意に特定される前記編集単位を更新する更新用HTML文書を生成する外部Webサーバに前記識別情報を通知する識別情報通知手順と、をコンピュータに逐次実行させることを特徴とするWebページ更新・管理プログラム。
An editing unit dividing procedure for dividing a web page into editing units and calculating identification information for uniquely identifying the editing unit;
Link information that inserts a hyperlink tag having the identification information as a parameter immediately before an HTML source character string describing the editing unit, and outputs the HTML document into which the hyperlink tag has been inserted as an HTML document for selecting an edit target. Insertion procedure,
A transmission procedure for transmitting the editing target selection HTML document to a web browser of an administrator;
An identification information notification procedure of notifying the external Web server that generates an update HTML document that updates the editing unit uniquely specified from the identification information based on a request from the Web browser, with the identification information notification procedure. A Web page update / management program characterized in that the Web page update / management program is executed sequentially.
Webページを編集単位に分割するとともに、前記編集単位を一意に識別する識別情報を算出する編集単位分割手順と、
前記編集単位をパラメータとするハイパーリンクタグを、前記編集単位を記述するHTMLソース文字列の直前に挿入し、そのハイパーリンクタグが挿入されたHTML文書を編集対象選択用HTML文書として出力するリンク情報挿入手順と、
前記編集対象選択用HTML文書を管理者のWebブラウザに送信する送信手順と、
前記Webブラウザに表示された前記編集対象選択用HTML文書において、前記管理者が前記ハイパーリンクタグをクリックした場合に、前記ハイパーリンクタグの識別情報を取得して、この識別情報から一意に特定される前記編集単位を更新する更新用HTML文書を生成し、その更新用HTML文書を前記Webブラウザに送信する編集単位更新用HTML生成手順と、をコンピュータに逐次実行させることを特徴とするWebページ更新・管理プログラム。
An editing unit dividing procedure for dividing a web page into editing units and calculating identification information for uniquely identifying the editing unit;
Link information that inserts a hyperlink tag having the edit unit as a parameter immediately before an HTML source character string describing the edit unit, and outputs the HTML document into which the hyperlink tag is inserted as an HTML document for selecting an edit target. Insertion procedure,
A transmission procedure for transmitting the editing target selection HTML document to a web browser of an administrator;
When the administrator clicks the hyperlink tag in the editing target selection HTML document displayed on the web browser, the hyperlink tag identification information is acquired and uniquely identified from the identification information. Generating an update HTML document for updating the edit unit, and transmitting the update HTML document to the Web browser. -Management program.
JP2003144558A 2003-05-22 2003-05-22 Webpage update/management device and program Pending JP2004348418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003144558A JP2004348418A (en) 2003-05-22 2003-05-22 Webpage update/management device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003144558A JP2004348418A (en) 2003-05-22 2003-05-22 Webpage update/management device and program

Publications (1)

Publication Number Publication Date
JP2004348418A true JP2004348418A (en) 2004-12-09

Family

ID=33531980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003144558A Pending JP2004348418A (en) 2003-05-22 2003-05-22 Webpage update/management device and program

Country Status (1)

Country Link
JP (1) JP2004348418A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7356762B2 (en) 2002-07-08 2008-04-08 Asm International Nv Method for the automatic generation of an interactive electronic equipment documentation package
JP2009064239A (en) * 2007-09-06 2009-03-26 Seiko Epson Corp Document management device, document management method, and document management program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7356762B2 (en) 2002-07-08 2008-04-08 Asm International Nv Method for the automatic generation of an interactive electronic equipment documentation package
JP2009064239A (en) * 2007-09-06 2009-03-26 Seiko Epson Corp Document management device, document management method, and document management program

Similar Documents

Publication Publication Date Title
US8584009B2 (en) Automatically propagating changes in document access rights for subordinate document components to superordinate document components
KR101099272B1 (en) Web page rendering mechanism using external programmatic themes
US7987418B2 (en) Automatic bibliographical information within electronic documents
JP2004030582A (en) Structured document compiling apparatus, structured document compiling method and program
US20130019189A1 (en) Augmented editing of an online document
US20110154187A1 (en) Methods, software and devices for providing server hosted web applications
WO2009011837A1 (en) Extraction and reapplication of design information to existing websites
US8239754B1 (en) System and method for annotating data through a document metaphor
JP4440716B2 (en) Display data generation device, display device, display data generation system, display data generation device control method, display data generation program, recording medium, electronic device, and electronic device control method
US20040205584A1 (en) System and method for template creation and execution
US20030229850A1 (en) Web browser
JP2005100319A (en) Data display system, data output device, image forming apparatus, data display device, and data display program
JP2013058150A (en) Information processor and program
JP2006313484A (en) Document management system, document management method, information processor, program and storage medium
JP2010282587A (en) Mash up program, mash up device, and mash up method
Ono et al. XSLT stylesheet generation by example with WYSIWYG editing
JP2004348418A (en) Webpage update/management device and program
US8533588B2 (en) Overriding images in user interfaces
JP4801555B2 (en) Document processing apparatus, document processing method, and document processing program
WO2012042599A1 (en) Method for adding information, information processing device and program
JP2004038334A (en) Operating position storing method, structured document displaying method, structured document display unit, its program, and operating position storage data
JP2006209650A (en) Use right issuing method and use right issuing device
US8230327B2 (en) Identifying statements requiring additional processing when forwarding a web page description
JP2016167816A (en) Information processor and program
JP2009026013A (en) Content registration/provision device, content registration/provision control method, and content registration/provision control program