Thursday, September 13, 2007

[completeJava] Vexed by debugging Javascript/HTML code?

Hello all,

Install Firefox with FireBug add on to debug javascript/HTML code. It has all debugging options available in typical development IDE's.

You can
- Put break points
- Monitor variable values at runtime
- And more...

Install FireBug from https://addons.mozilla.org/en-US/firefox/addon/1843

-Naveen


______________________________________________________________________________________
"Though we cannot rewrite the past, we should write a better future"
M Naveen Kumar Reddy 
Novartis Pharmaceuticals Corporation
East Hanover, NJ 07936, USA
Direct phone: +1 862-778-9356
Cell: +1 732-318-8956


Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.

__._,_.___
Recent Activity
Visit Your Group
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Popular Y! Groups

Is your group one?

Check it out and

see.

Yahoo! Groups

Find Green Groups

Share with others

Help the Planet.

.

__,_._,___

[completeJava] Hyderabad Live Traffic Info. , Directions and more...

Hi,

Check http://www.htis. in/  (Hyderabad Transport Information System)

This is really a great effort from Hyderabad Traffic/Transport authorities.



Where you can find the optimal routes between any two
places.

http://www.htis. in/ (for Hyderabad )

http://www.btis. in/ (for Bangalore )

-Naveen


______________________________________________________________________________________
"Though we cannot rewrite the past, we should write a better future"
M Naveen Kumar Reddy 
Novartis Pharmaceuticals Corporation
East Hanover, NJ 07936, USA
Direct phone: +1 862-778-9356
Cell: +1 732-318-8956


Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.

__._,_.___
Recent Activity
Visit Your Group
SPONSORED LINKS
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Search Ads

Get new customers.

List your web site

in Yahoo! Search.

Yoga Groups

Exchange insights

with members of

the yoga community.

.

__,_._,___

Tuesday, September 4, 2007

RE: [completeJava] problem with client side page caching.

Anil,
 
These lines are working in case of a regular jsp file. but When my page was build from a tile deffination, then it is not working at all.  I thogut we need to do something else in case of tiles frame work. Because it is always caching the webpage tiles at the client side.
 
Santhosh.

anil <anilkumark@huawei.com> wrote:
Hi santhosh,
Try for this code,
<% 
response.setHeader("pragma","no-cache");//HTTP 1.1 
response.setHeader("Cache-Control","no-cache"); 
response.setHeader("Cache-Control","no-store"); 
response.addDateHeader("Expires", -1); 
response.setDateHeader("max-age", 0); 
//response.setIntHeader ("Expires", -1); //prevents caching at the proxy server 
response.addHeader("cache-Control", "private"); 

%>
K. Anil Kumar
Huawei Technologies India Pvt. Ltd.
Mailid: anilkumark@huawei.com
Mobile: 09980644933
********************************************************************************************************
 This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!

From: completeJava@yahoogroups.com [mailto:completeJava@yahoogroups.com] On Behalf Of SANTHOSH GANDHE
Sent: Monday, September 03, 2007 9:26 PM
To: completeJava@yahoogroups.com
Subject: [completeJava] problem with client side page caching.
Hi All,
I am unable to restrict the browser from not to caching my webpage at the client side. I am getting this problem only when i use tiles with struts. in case regular jsp files it is working fine.  I am using the following code in my jsp files to restrict client side caching.
< 
meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cach! e-Control" content="no-cache" />
<meta http-equiv="Pragma-directive" content="no-cache" />
<meta http-equiv="Cache-Directive" content="no-cache" />
I also tried with the other way
<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader(
"Pragma","no-cache"); //HTTP 1.0
response.setDateHeader (
"Expires", 0); //prevents caching at the proxy server
%>
Both these code snippets are working incase of a simple jsp file. But in case of Struts tiles , it the meta tags are not even visible in the client side generated web page. 
Can anybody triggerout that where might be I am making mistake ?
Thanks in Advance :)
Santhosh.


Santhosh.G
me@santhoshgandhe.com
 

Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.



Santhosh.G
me@santhoshgandhe.com


Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.

__._,_.___
Recent Activity
Visit Your Group
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

New business?

Get new customers.

List your web site

in Yahoo! Search.

Yahoo! Groups

Endurance Zone

A Yahoo! Group

for better endurance.

.

__,_._,___

Monday, September 3, 2007

RE: [completeJava] problem with client side page caching.

Hi santhosh,

 

Try for this code,

 

<% 
response.setHeader("pragma","no-cache");//HTTP 1.1 
response.setHeader("Cache-Control","no-cache"); 
response.setHeader("Cache-Control","no-store"); 
response.addDateHeader("Expires", -1); 
response.setDateHeader("max-age", 0); 
//response.setIntHeader ("Expires", -1); //prevents caching at the proxy server 
response.addHeader("cache-Control", "private"); 

%>

 

K. Anil Kumar

Huawei Technologies India Pvt. Ltd.
Mailid: anilkumark@huawei.com

Mobile: 09980644933

********************************************************************************************************
 This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!


From: completeJava@yahoogroups.com [mailto:completeJava@yahoogroups.com] On Behalf Of SANTHOSH GANDHE
Sent: Monday, September 03, 2007 9:26 PM
To: completeJava@yahoogroups.com
Subject: [completeJava] problem with client side page caching.

 

Hi All,

 

I am unable to restrict the browser from not to caching my webpage at the client side. I am getting this problem only when i use tiles with struts. in case regular jsp files it is working fine.  I am using the following code in my jsp files to restrict client side caching.

 

< 

meta http-equiv="Pragma" content="no-cache" />

<meta http-equiv="Cach! e-Control" content="no-cache" />

<meta http-equiv="Pragma-directive" content="no-cache" />

<meta http-equiv="Cache-Directive" content="no-cache" />

 

I also tried with the other way

 

<%

response.setHeader("Cache-Control","no-cache"); //HTTP 1.1

response.setHeader(

"Pragma","no-cache"); //HTTP 1.0

response.setDateHeader (

"Expires", 0); //prevents caching at the proxy server

%>

 

Both these code snippets are working incase of a simple jsp file. But in case of Struts tiles , it the meta tags are not even visible in the client side generated web page. 

 

Can anybody triggerout that where might be I am making mistake ?

 

Thanks in Advance :)

 

Santhosh.



Santhosh.G
me@santhoshgandhe.com

 


Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.

__._,_.___
Recent Activity
Visit Your Group
Give Back

Yahoo! for Good

Get inspired

by a good cause.

Y! Toolbar

Get it Free!

easy 1-click access

to your groups.

Yahoo! Groups

Start a group

in 3 easy steps.

Connect with others.

.

__,_._,___

[completeJava] problem with client side page caching.

Hi All,
 
I am unable to restrict the browser from not to caching my webpage at the client side. I am getting this problem only when i use tiles with struts. in case regular jsp files it is working fine.  I am using the following code in my jsp files to restrict client side caching.
 
<
meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma-directive" content="no-cache" />
<meta http-equiv="Cache-Directive" content="no-cache" />
 
I also tried with the other way
 
<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader(
"Pragma","no-cache"); //HTTP 1.0
response.setDateHeader (
"Expires", 0); //prevents caching at the proxy server
%>
 
Both these code snippets are working incase of a simple jsp file. But in case of Struts tiles , it the meta tags are not even visible in the client side generated web page. 
 
Can anybody triggerout that where might be I am making mistake ?
 
Thanks in Advance :)
 
Santhosh.


Santhosh.G
me@santhoshgandhe.com


Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.

__._,_.___
Recent Activity
Visit Your Group
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Ads on Yahoo!

Learn more now.

Reach customers

searching for you.

Food Lovers

Real Food Group

on Yahoo! Groups

find out more.

.

__,_._,___