Hi all.
Is there any way to produce HTML from a JSP file?
I'm wrting a servlet which can get the HTML result of a JSP file in
the same container.
Is there any class or method can do this?
Thanks.
Sorry for that my English is poor
How about servletContext.getRequestDispatcher( path ).include( req, resp
)? Seems like it should do what you are asking.
--David
Luo Yong wrote:
Hi all.
Is there any way to produce HTML from a JSP file?
I'm wrting a servlet which can get the HTML result of a JSP file in
the same container
On Dec 18, 2007 4:36 AM, Luo Yong [EMAIL PROTECTED] wrote:
Is there any way to produce HTML from a JSP file?
JSPs produce HTML by default :-)
And usually a servlet is used to populate values for a JSP -- the View
in MVC -- rather than the other way around.
FWIW,
--
Hassan Schroeder
://www.oreilly.com/catalog/javaxslt/chapter/ch05.html
Anyone else?
Martin--
- Original Message -
From: Luo Yong [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Tuesday, December 18, 2007 7:36 AM
Subject: JSP to HTML
Hi all.
Is there any way to produce HTML from a JSP file?
I'm wrting a servlet
PROTECTED] wrote:
Is there any way to produce HTML from a JSP file?
JSPs produce HTML by default :-)
And usually a servlet is used to populate values for a JSP -- the View
in MVC -- rather than the other way around.
FWIW,
--
Hassan Schroeder [EMAIL PROTECTED
On Dec 18, 2007 8:27 AM, Luo Yong [EMAIL PROTECTED] wrote:
In fact, I'm implementing a new web development framework. JSP tag
must not be supported in the framework and the web page cannot contain
any java code. so i must analyse the jsp page within a servlet and
expand it with web component
is not in place.Can
you send your web.xml and struts-conf.xml.
Thanks,
Dronesh
-Original Message-
From: Lothar Krenzien [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 31, 2006 1:42 PM
To: users@tomcat.apache.org
Subject: File /jsp/struts-html not found
Hi,
I'm having a struts
/jsp/struts-html not found
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154
: File /jsp/struts-html not found
Hi,
I'm having a struts 1.1 application on tomcat 5.5.9. Because of some
mysterious problems (see my previous post can't load any JSP anymore
in this list) I switched to 5.5.15 but now have an another problem. In
the browser I get the following error