MAP | PageMixer Documents > Tutorial > Mixing with Struts > Overview of migration | << | >> |
This section explains how to migrate from JSP files of struts-mailreader in Struts to Servlet with PageMixer.
Process to migrate is shwon below.
At first, we create filters to process HTML page, for example:
ActionForm
"
ActionForm
" field
You may choose to combine filters already defined by PageMixer as one filter for convenience.
Then, we create HTML file corresponding to JSP file to be replaced.
In this process,
tags of TagLib are replaced with normal HTML tags,
like as span
.
Servlet needs mapping configuration in WEB-INF/web.xml
to use,
though JSP files are available without any configuration.
So, configure Servlet corresponding to JSP file.
In Struts configuration file,
WEB-INF/struts-config.xml
of struts-mailreader WAR for example,
JSP files are specified as forward destination or
input page of ActionForm
.
So, configure Struts to use Servlet mapped in
WEB-INF/web.xml
instead of JSP file.
In this tutorial, creation of filters below is explained at first.
Next, creation of filters below is explained.
ActionForm
ActionForm
ActionForm
In these explanations, how to create HTML page from JSP is also explained.
Then, configuration of Servlet and Struts are explained.
MAP | PageMixer Documents > Tutorial > Mixing with Struts > Overview of migration | << | >> |