Telmo,
<%@ include file="" /> probably works because that causes the target page
code to be compiled into the calling page. Why <jsp:include page="" />
worked in both cases for JRun but not Tomcat I couldn't say, but make sure
your target servlet implements both doGet and doPost (you can just have
doPost call doGet). When a JSP gets compiled, it uses the service() method
rather than either doGet or doPosts, so it doesn't matter how the form posts
to the JSP.
Lance Lavandowska
www.AgDomain.com
www.Brainopolis.com
----- Original Message -----
From: "Telmo S�" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 07, 2000 10:38 AM
Subject: <%@ include file= or <jsp:include page=
Hi all!
I've been using Jrun2.3.3 but now i am using Tomcat 3.0.(its free)
Under Jrun i used to use <jsp:include page="/some_dir/somepage.html" />.
I had a servlet that was called using GET and a servlet that was called
using POST, they both called the JSP page in question, and everything was
ok. (i use getRequestDispatcher to call the JSP )
Now, with Tomcat 3.0, when i call the JSP page from a servlet called using
GET and use
<jsp:include page="/some_dir/somepage.html" /> it works ok.
When i call the JSP page from a servlet called using POST, (using
getRequestDispatcher to call the JSP) and use <jsp:include
page="/some_dir/somepage.html" /> in the JSP page i get this:
Included servlet error: 400: HTTP method POST is not supported by this URL
If i use <%@ include file= .... everything is OK.
I dont get it!
Can anyone pleas help?
THank you!
Telmo
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html