Thanks Ron,yes I do have some plugins installed,one thats called as developers tool(in IE9) and in Chrome.I think I know whats was wrong here.

Problem i think was that when I run the application via NB, it launches the IE browser in quirks mode rather than Standard mode.Now I am not getting why only home page is launched in Quirks mode and rest all 11 pages in Standard mode though all has same doc type declared.
<!DOCTYPE html>

On 11/6/2011 2:22 AM, Ron McNulty wrote:
Hi Kiran

There is nothing wrong with your JSP. I dropped it into Tomcat 7.0.16 as /webapps/ROOT/test.jsp and it showed up correctly as http://localhost:8080/test.jsp.

It sounds like the browser is not seeing the CSS. If you don't already have the following installed, I suggest you try:

 Firefox - latest version
 HTML validator plugin
 Web tools plugin
 Firebug plugin

(I'm sure others will add to this list). HTML validator will tell you if there are HTML errors (There are none). Firebug will tell you what styles are affecting an element, and allow you to switch them on and off. Web tools has many useful functions.

I can't comment on NetBeans. I have always been an Eclipse user. I nearly always run Tomcat from inside Eclipse (which allows easy debugging of your Java code) and have never had this kind of issue. I have tried DW, but I've never come to grips with it.

Regards

Ron

----- Original Message ----- From: "Kiran Badi" <ki...@poonam.org>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Sunday, November 06, 2011 6:57 AM
Subject: o Tomcat alter the page encoding for JSP file created via Netbeans 7.01


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>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<style type="text/css">
            div.cldivheader{
                background-color: yellowgreen;
                width:100%;
                height:10%;
                border:1px solid #000;
            }
            li.clheader {
                display: inline-table;
                font-size:14px;
                list-style:none;
                margin-left:50px;
                margin-right:50px;
                margin-bottom: 5px;
            }

</style>
</head>
<body>
<div class="cldivheader">
<ul>
<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>
</ul>
</div>
</body>
</html>

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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to