You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/02/26 02:11:18 UTC

DO NOT REPLY [Bug 17407] New: - using mozilla browser, scriptlets are rendered as raw html

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17407>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17407

using mozilla browser, scriptlets are rendered as raw html

           Summary: using mozilla browser, scriptlets are rendered as raw
                    html
           Product: Tomcat 4
           Version: 4.1.12
          Platform: PC
               URL: http://www.world-outdoors.com
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: duane5000@hotmail.com


Occurance of scriptlet code style <%= username %> renders as HTML. Other of 
style <%  some java code %> seems to work fine in Mozilla.

I was able to move some of my scriptlet code into the header section of the 
HTML source. This eliminated part of the problem. But anywhere there occurs a 
section of scriptlet (syle1 above)in the page, the scriptlet is being rendered, 
not parsed. I'm attempting the following:
<%
String username = validUser.getUsername();
%>
...
<center>Welcome <%=username == null ? ' to World-Outdoors.com' : username %>!
</center>

The hosting is provided by bwhitehead@whiteheadconsulting.com. The 
implementation is apache web server on linux, but my development machine is 
Win2K and has same symptoms. I checked the newslist first; found a similar 
issue with HTML tags being rendered(subject: Tomcat and Mozilla). Several tips 
to check servlet code/apache config/JSP tags. I tried both 
<%@ page language="java"%> and <%@ page contentType="text/html"%> combined and 
seperatly with no improvement.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org