Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem rendering the action in HTML

Status
Not open for further replies.

taken

Programmer
Jun 22, 2005
6
GB
Hi everyone,

I am using struts 1.2.4 with tomcat 5.0.27, and have 1 module setup.

I am experience a very strange problem that only happens on the production environment. ie. It works fine on the test machine. The problem is when I have an html:link tag in my JSP, the rendered href is incorrect. Eg.

JSP:
<html:link action="home"/>Home</html:link>

HTML output (note the '//'):
<a href="//home.do">Home</a>

As you can see the href is incorrect. I have tryed all kinds of variations on the html:link action attribute, but nothing has returned the correct results.

The only difference I can see between the testing and the production environments would be the applicatoin is referenced using the domain name ( rather than testing URL (
Any help is appreciated.
 
Hi,

I am not sure about the reson why it is behaving, but you can try this <html:link href="home.do"/> insted of action attribute.

Cheers
Venu
 
Thats how Im getting around it at the moment, but it is only a bandaid solution. I really need a complete answer for this.

Thanks anyway :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top