You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dola Woolfe <do...@yahoo.com> on 2007/09/15 19:57:17 UTC
JSP -> static mirroring
Hi,
I have built a website with Tomcat, but all the pages
are essentially static, as there are no forms, etc. I
used JSP because I have libraries that produce HTML.
Now I want to move the pages to a webhost that doesn't
support JSP so basically I need to convert my pages to
static.
"wget -m" works, but it saves my pages with a .jsp
extension, which conuses many broswers so what I
basically need is "wget -m --convert-jsp-to-html".
Does anything like that exist?
Thank you very much in advance!
Aaron Fude
____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: JSP -> static mirroring
Posted by Hassan Schroeder <ha...@gmail.com>.
On 9/21/07, Dola Woolfe <do...@yahoo.com> wrote:
> Would you happen to know how to get Eclipse to ...
Sorry, no, only a very occasional -- under duress -- Eclipse user :-)
Best of luck!
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: JSP -> static mirroring
Posted by Sonal Goyal <so...@gmail.com>.
What do you mean by "parse, compile and highlight .htmls" ?
On 9/22/07, Dola Woolfe <do...@yahoo.com> wrote:
>
> Hassan, that's terrific, thank you!
>
> Would you happen to know how to get Eclipse to parse,
> compile, and highlight .html's the same way it does
> .jsp's?
>
> Thanks again!
>
> Dola
> --- Hassan Schroeder <ha...@gmail.com>
> wrote:
>
> > On 9/19/07, Dola Woolfe <do...@yahoo.com> wrote:
> > > How do I configure Tomcat to process .html files
> > as .jsp?
> >
> > Add this to the web.xml of the relevant Context:
> >
> > <servlet-mapping>
> > <servlet-name>jsp</servlet-name>
> > <url-pattern>*.html</url-pattern>
> > </servlet-mapping>
> >
> > That's it :-)
> >
> > HTH!
> > --
> > Hassan Schroeder ------------------------
> > hassan.schroeder@gmail.com
> >
> >
> ---------------------------------------------------------------------
> > To start a new topic, e-mail:
> > users@tomcat.apache.org
> > To unsubscribe, e-mail:
> > users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail:
> > users-help@tomcat.apache.org
> >
> >
>
>
>
>
>
> ____________________________________________________________________________________
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
> news, photos & more.
> http://mobile.yahoo.com/go?refer=1GNXIC
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
Thanks and Regards,
Sonal
Re: JSP -> static mirroring
Posted by Dola Woolfe <do...@yahoo.com>.
Hassan, that's terrific, thank you!
Would you happen to know how to get Eclipse to parse,
compile, and highlight .html's the same way it does
.jsp's?
Thanks again!
Dola
--- Hassan Schroeder <ha...@gmail.com>
wrote:
> On 9/19/07, Dola Woolfe <do...@yahoo.com> wrote:
> > How do I configure Tomcat to process .html files
> as .jsp?
>
> Add this to the web.xml of the relevant Context:
>
> <servlet-mapping>
> <servlet-name>jsp</servlet-name>
> <url-pattern>*.html</url-pattern>
> </servlet-mapping>
>
> That's it :-)
>
> HTH!
> --
> Hassan Schroeder ------------------------
> hassan.schroeder@gmail.com
>
>
---------------------------------------------------------------------
> To start a new topic, e-mail:
> users@tomcat.apache.org
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
>
>
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: JSP -> static mirroring
Posted by Hassan Schroeder <ha...@gmail.com>.
On 9/19/07, Dola Woolfe <do...@yahoo.com> wrote:
> How do I configure Tomcat to process .html files as .jsp?
Add this to the web.xml of the relevant Context:
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
That's it :-)
HTH!
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: JSP -> static mirroring
Posted by Dola Woolfe <do...@yahoo.com>.
--- Hassan Schroeder <ha...@gmail.com>
wrote:
> On 9/15/07, Dola Woolfe <do...@yahoo.com> wrote:
>
> > I have built a website with Tomcat, but all the
> pages
> > are essentially static, as there are no forms,
> etc. I
> > used JSP because I have libraries that produce
> HTML.
> >
> > Now I want to move the pages to a webhost that
> doesn't
> > support JSP so basically I need to convert my
> pages to
> > static.
>
> Batch-rename all your .jsp files to .html, mass
> search-and-replace
> all the internal links appropriately, and configure
> Tomcat to process
> .html files as JSPs.
>
> Then wget the site and you're set. :-)
>
> HTH,
> --
> Hassan Schroeder ------------------------
> hassan.schroeder@gmail.com
>
Sounds like a great idea. How do I configure Tomcat to
process .html files as .jsp? (Please be specific if
you can.)
Many thanks in advance!
Dola
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: JSP -> static mirroring
Posted by Hassan Schroeder <ha...@gmail.com>.
On 9/15/07, Dola Woolfe <do...@yahoo.com> wrote:
> I have built a website with Tomcat, but all the pages
> are essentially static, as there are no forms, etc. I
> used JSP because I have libraries that produce HTML.
>
> Now I want to move the pages to a webhost that doesn't
> support JSP so basically I need to convert my pages to
> static.
Batch-rename all your .jsp files to .html, mass search-and-replace
all the internal links appropriately, and configure Tomcat to process
.html files as JSPs.
Then wget the site and you're set. :-)
HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: JSP -> static mirroring
Posted by Dola Woolfe <do...@yahoo.com>.
--- Mladen Turk <ml...@gmail.com> wrote:
> Dola Woolfe wrote:
> > Hi,
> >
> > I have built a website with Tomcat, but all the
> pages
> > are essentially static, as there are no forms,
> etc. I
> > used JSP because I have libraries that produce
> HTML.
> >
> > Now I want to move the pages to a webhost that
> doesn't
> > support JSP so basically I need to convert my
> pages to
> > static.
> >
> > "wget -m" works, but it saves my pages with a .jsp
> > extension, which conuses many broswers so what I
> > basically need is "wget -m --convert-jsp-to-html".
> > Does anything like that exist?
> >
> >
>
> What's wrong with
> wget tomcat.apache.org -O tomcat.main.page.html ?
> or
> wget http://www.java.com/en/download/manual.jsp -O
> manual.html
>
> Regards,
> Mladen
>
I need to recursively traverse the entire website and
replace jsp with html in all embedded links.
____________________________________________________________________________________
Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more!
http://tv.yahoo.com/collections/3658
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: JSP -> static mirroring
Posted by Mladen Turk <ml...@gmail.com>.
Dola Woolfe wrote:
> Hi,
>
> I have built a website with Tomcat, but all the pages
> are essentially static, as there are no forms, etc. I
> used JSP because I have libraries that produce HTML.
>
> Now I want to move the pages to a webhost that doesn't
> support JSP so basically I need to convert my pages to
> static.
>
> "wget -m" works, but it saves my pages with a .jsp
> extension, which conuses many broswers so what I
> basically need is "wget -m --convert-jsp-to-html".
> Does anything like that exist?
>
>
What's wrong with
wget tomcat.apache.org -O tomcat.main.page.html ?
or
wget http://www.java.com/en/download/manual.jsp -O manual.html
Regards,
Mladen
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org