I think it's better to explain my problem a little clearly:).
I have two servers:
1. Windows NT IIS 4.0 with JRun 2.3.3;
2. Red Hat Linux 6.2 Apache 1.3(1.4?) with JRun 2.3.3.
I have a jsp page named test.jsp (attached below) with a line
<jsp:useBean id="register" scope="session"
class="stockalert.RegisterBean" />
In server 1, the problem is: it cannot parse the page because of the tag:
<?xml .....?>. In server
2, the problem is: it just print out the <jsp:useBean.../> line and doesn't
parse it anyway!!!
I am going to be mad about it:).
Liwen
<%@ page language="java" %>
<jsp:useBean id="register" scope="session" class="stockalert.RegisterBean"
/>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<% boolean success = false; %>
<% String message = "A", title = "B"; %>
<% if (success == false) title = "Sign Failed";
else title = "Signup Successful";
%>
<card id="card1" title="<%= title %>">
<p>
<% if (success == true) {
%>
<p>
<%= message %>
</p>
<p><i><a href="login.wml">Login</a></i></p>
<% } else { %>
<p>
<%= message %>
<p>
<p><i><a href="welcome.wml">Home</a></i></p>
<% } %>
</card>
</wml>
___________________________________________________________________________
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