tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Badi <>
Subject o Tomcat alter the page encoding for JSP file created via Netbeans 7.01
Date Sat, 05 Nov 2011 17:57:58 GMT
Hi All,

I working on creating my own website with JSP/Servlet/Jquery with Tomcat 
7.0.11 which I had installed it as a package via Netbeans 7.0.1.I am 
trying to build a header JSP File and below is my code for it,
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
                 background-color: yellowgreen;
                 border:1px solid #000;
             li.clheader {
                 display: inline-table;
                 margin-bottom: 5px;

<div class="cldivheader">
<li class="clheader"><a href="./registeruser.jsp" 
target="_top"><b>Create An Account</b></a></li>
<li class="clheader"><a href="./login.jsp" target="_top"><b>Login to 
your Account</b></a></li>
<li class="clheader"><a href="./forgotdetails.jsp" 
target="_top"><b>Forgot Account Details</b></a></li>
<li class="clheader"><a href="./Categories.jsp" target="_top"><b>Check 
Available Categories.</b></a></li>

I am pretty much sure that its might not be related to Tomcat but just 
wanted to check and rule out tomcat.

Problem Statement: When I run this code via netbeans, I dont see links 
as horizontal tabs and for some reasons it shows up as default list 
items.Initally I thought markup might be dependent on encoding used,so  
I created a new jsp file and one HTML file both with UTF-8 and could 
still see the same behavior.Netbeans folks say that its not the netbeans 
which is playing mischief but the browser, but with same browser with DW 
,it runs perfectly fine on the same box which has both DW and NB.

the same code runs perfectly fine with Dreamweaver CS5.5 and gives me 
the result what I want and on the same browser and box.Is it possible to 
integrate DW with tomcat and use JSP/Servlets with Tomcat on DW.

Has anyone done this before ? I am somewhat coming back to java world 
after nearly 9 years and so. I dont mind taking some pain to achieve 
this.All I want to have is 1 IDE which can integrate Tomcat and can show 
all my JS/CSS stuff correctly.

I am aware this  might be offtopic but being a silent member to this 
list, I think this list can give me  better suggestion than doing a 
google.So posting here.

- Kiran

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message