You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by va...@onvol.net on 2004/11/02 15:13:27 UTC

Can anyone help me/guide me?

Dear All,

i have a domain name and i am using no-ip software to bind my IP address (my ISP provides dynamic IP )

so, i have redirected my domain name: http://www.export4u.co.uk to micsexport.servepics.com

In tomcat Server.xml file, i have put host name
Host name="www.export4u.co.uk"

now problem is:
when u visit http://www.export4u.co.uk

and u click on contact us section.

If a user refreshes a page while he is on any section.. contact us, about us ... and etc , the browser  takes back the user to the home page which is index page. (http://www.export4u.co.uk )

I want the user to remain on the same page where he visited. .
Also, when u go through different pages, u cannot see which page on Address URL . ( complete Encapsulation :) 

Also, google is only indexing my home page.

I think it has to do with redirection as i am redirected

What changes do i need to do in server.xml so that i doesnt happen?

Thankx in advance.
Vaneet


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


refresh problem

Posted by va...@onvol.net.
Dear hassan,

pls see two files attached.

the first one is WEB.xml from the conf directory
and second one is from the WEBAPPS directory

thankx again.

lets solve it :)

vaneet





-----------------------------------------------------------
>vaneet@onvol.net wrote:
>
>> yes.the problem is the redirection and nothing else.
>>
>> read my first email again
>> and click on export4u.co.uk
>> and browse. ON the status bar , u can see the pages but on address bar... only http://www.export4u.co.uk
>>
>> Also, when u visit any section, u refresh on that page, u are redirected to home page.
>
>Yes, and -- I'll repeat -- this isn't a standard behavior. Please
>go to "contact us" and use your browser to display "Page Info" (in
>Moz/Firefox) or "Properties" (IE).
>
>What URL does that show? "http://www.export4u.co.uk/", which is what
>will be loaded when the browser "refresh" button is clicked.
>
>If you *explicitly* load <http://www.export4u.co.uk/html/contact.html>
>and hit refresh -- surprise! that's what reloads. No problem.
>
>Hence my suggestion that your problem is in your server|web.xml :-)
>
>--
>Hassan Schroeder ----------------------------- hassan@webtuitive.com
>Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
>
>                           dream.  code.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


Re: refresh problem

Posted by Hassan Schroeder <ha...@webtuitive.com>.
vaneet@onvol.net wrote:

> yes.the problem is the redirection and nothing else.
> 
> read my first email again
> and click on export4u.co.uk
> and browse. ON the status bar , u can see the pages but on address bar... only http://www.export4u.co.uk
> 
> Also, when u visit any section, u refresh on that page, u are redirected to home page.

Yes, and -- I'll repeat -- this isn't a standard behavior. Please
go to "contact us" and use your browser to display "Page Info" (in
Moz/Firefox) or "Properties" (IE).

What URL does that show? "http://www.export4u.co.uk/", which is what
will be loaded when the browser "refresh" button is clicked.

If you *explicitly* load <http://www.export4u.co.uk/html/contact.html>
and hit refresh -- surprise! that's what reloads. No problem.

Hence my suggestion that your problem is in your server|web.xml :-)

-- 
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.



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


Re: Hassan Schroeder

Posted by va...@onvol.net.
Dear Sir,

yes.the problem is the redirection and nothing else.

read my first email again
and click on export4u.co.uk
and browse. ON the status bar , u can see the pages but on address bar... only http://www.export4u.co.uk

Also, when u visit any section, u refresh on that page, u are redirected to home page.

Thankx

Vaneet


-----------------------------------------------------------
>vaneet@onvol.net wrote:
>
>> I am not using any servlets.
>> this is just an HTML website.
>>
>> However, the web sever is TOMCAT.
>> so i thought , might be some settings in server.xml and web.xml which can help me resolve this.
>>
>> I hope u understood my question.
>
>Well, I can't imagine any way that plain HTML files would *not* show
>up as the page URL in a default Tomcat install; they certainly do on
>any of my systems.
>
>Perhaps if you post your server.xml and web.xml files...
>
>--
>Hassan Schroeder ----------------------------- hassan@webtuitive.com
>Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
>
>                           dream.  code.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


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


Re: Can anyone help me/guide me?

Posted by Hassan Schroeder <ha...@webtuitive.com>.
vaneet@onvol.net wrote:

> I am not using any servlets.
> this is just an HTML website.
> 
> However, the web sever is TOMCAT.
> so i thought , might be some settings in server.xml and web.xml which can help me resolve this.
> 
> I hope u understood my question.

Well, I can't imagine any way that plain HTML files would *not* show
up as the page URL in a default Tomcat install; they certainly do on
any of my systems.

Perhaps if you post your server.xml and web.xml files...

-- 
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.



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


Re: Re: Can anyone help me/guide me?

Posted by va...@onvol.net.
Dear hassan,
Thankx

I am not using any servlets.
this is just an HTML website.

However, the web sever is TOMCAT.
so i thought , might be some settings in server.xml and web.xml which can help me resolve this.

I hope u understood my question.

Regards
Vaneet


-----------------------------------------------------------
>vaneet@onvol.net wrote:
>
>> now problem is:
>> when u visit http://www.export4u.co.uk
>>
>> and u click on contact us section.
>>
>> If a user refreshes a page while he is on any section.. contact us,
> > about us ... and etc , the browser  takes back the user to the home
> > page which is index page. (http://www.export4u.co.uk )
>
>... which is what shows in the browser address bar, regardless of
>the content being displayed. So of course a reload will just bring
>you back to the default page view.
>
>You'll need to provide a proper URL, e.g., at least something like
>"http://www.export4u.co.uk/contact", instead of (apparently) just
>forwarding within your main servlet. Or keep track of the user's
>"real" page location as part of the session. Or something :-)
>
>HTH!
>--
>Hassan Schroeder ----------------------------- hassan@webtuitive.com
>Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
>
>                           dream.  code.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


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


Re: Can anyone help me/guide me?

Posted by Hassan Schroeder <ha...@webtuitive.com>.
vaneet@onvol.net wrote:

> now problem is:
> when u visit http://www.export4u.co.uk
> 
> and u click on contact us section.
> 
> If a user refreshes a page while he is on any section.. contact us,
 > about us ... and etc , the browser  takes back the user to the home
 > page which is index page. (http://www.export4u.co.uk )

... which is what shows in the browser address bar, regardless of
the content being displayed. So of course a reload will just bring
you back to the default page view.

You'll need to provide a proper URL, e.g., at least something like
"http://www.export4u.co.uk/contact", instead of (apparently) just 
forwarding within your main servlet. Or keep track of the user's
"real" page location as part of the session. Or something :-)

HTH!
-- 
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.



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