File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes webapp not on 8080 and html:base Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "webapp not on 8080 and html:base" Watch "webapp not on 8080 and html:base" New topic
Author

webapp not on 8080 and html:base

Vilpesh Mistry
Ranch Hand

Joined: May 27, 2003
Posts: 62
(SORRY I HAVE POSTED THE SAME QUESTION AlSO UNDER TOMCAT FORUM)

hi,
iam using struts and making a website.

During the development phase, we had used the default port 8080.
so to access my webpage i used to write,
http://localhost:8080/simliv/action/welcome

well all files in my jsp pages use struts <html:base> tag

so under view source for any jsp page,
the url looks like http://localhost:8080/simliv/welcome.jsp

well now its deployment time,after deploying,i have been asked to remove
the port number ie 8080 coming after localhost.

I think this whole is configuring apache and tomcat,
please specify how do i configure tomcat so that when i access

http://localhost/simliv/action/welcome ,

i get the same welcome page and all other pages without the port number after the localhost

The problem been that struts carries the base address 8080 in all other pages if html:base tag is used.

thanks


Thanks.
Vilpesh Mistry
Ranch Hand

Joined: May 27, 2003
Posts: 62
hi all
well changing the port for the http/1.1 non-ssl coyote connector from 8080 to 80 solves the problem.This can be useful only if just Tomcat is serving pages
The only problem been if Apache Web server is also used then both tomcat & apache web server will listen on port 80.
So i think it is best not to use html:base tag for developing big websites as this tag carries the port number which gets displayed on the url in the location bar + in the view Source of the Page u get the base address.


thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: webapp not on 8080 and html:base