Re: o Tomcat alter the page encoding for JSP file created via Netbeans 7.01

2011-11-08 Thread Kiran Badi

Got it Pid.Thanks.

On 11/8/2011 8:53 PM, Pid wrote:

On 05/11/2011 17:57, Kiran Badi wrote:

Hi All,
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.


Unfortunately it was on someone else's topic.  In future please don't
just edit a reply's subject line&  body (which is called
thread-hijacking).  Start an entirely new email.


p







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



Re: o Tomcat alter the page encoding for JSP file created via Netbeans 7.01

2011-11-08 Thread Pid
On 05/11/2011 17:57, Kiran Badi wrote:
> Hi All,

> 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.


Unfortunately it was on someone else's topic.  In future please don't
just edit a reply's subject line & body (which is called
thread-hijacking).  Start an entirely new email.


p




-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


Re: o Tomcat alter the page encoding for JSP file created via Netbeans 7.01

2011-11-06 Thread Kiran Badi

Thanks Konstantin,

I will make the changes.Now I understand somewhat as why for some of the 
files were complaining of mismatch encoding.


On 11/6/2011 5:32 AM, Konstantin Kolinko wrote:

2011/11/5 Kiran Badi:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

The above contentType value does not include charset argument.
Thus the actual content type in HTTP response will be "text/html;
charset=ISO-8859-1",  which does not match with your HTML  tag
below.







I'd recommend to use

so that Content-Type HTTP header and the above  tag always have
the same value.

Best regards,
Konstantin Kolinko

-
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



Re: o Tomcat alter the page encoding for JSP file created via Netbeans 7.01

2011-11-05 Thread Konstantin Kolinko
2011/11/5 Kiran Badi :
> <%@page contentType="text/html" pageEncoding="UTF-8"%>

The above contentType value does not include charset argument.
Thus the actual content type in HTTP response will be "text/html;
charset=ISO-8859-1",  which does not match with your HTML  tag
below.

> 
> 
> 
> 

I'd recommend to use

so that Content-Type HTTP header and the above  tag always have
the same value.

Best regards,
Konstantin Kolinko

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



Re: o Tomcat alter the page encoding for JSP file created via Netbeans 7.01

2011-11-05 Thread Kiran Badi
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.



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" 
To: "Tomcat Users List" 
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"%>






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;
}






target="_top">Create An Account
Login to 
your Account
target="_top">Forgot Account Details
target="_top">Check Available Categories.






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



Re: o Tomcat alter the page encoding for JSP file created via Netbeans 7.01

2011-11-05 Thread Ron McNulty

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" 

To: "Tomcat Users List" 
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"%>






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;
}






Create 
An Account
Login to your 
Account
Forgot 
Account Details
Check 
Available Categories.






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